ETH Price: $3,391.05 (+6.25%)
Gas: 23 Gwei

Token

Dooms (DOOMS)
 

Overview

Max Total Supply

400 DOOMS

Holders

187

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
kocham.eth
Balance
1 DOOMS
0x18772056026d50300ad9a23e153d20409abfd827
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:
Dooms

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : Dooms.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/DefaultOperatorFilterer.sol";
import "https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract Dooms is ERC721, Ownable, DefaultOperatorFilterer {
    error InvalidProof();
    error AllowedMintsExceeded();
    error RevealIncorrectOwner();
    error RevealClosed();
    error DoesNotExist();
    error IndexOutOfBound();

    bytes32 private _root;
    string private _metadataURI;
    string private _metadataExtension;
    mapping(address => uint256) private _minted;
    uint256 private _burned;

    bool public revealOpen;
    uint256 public nextTokenId;
    mapping(uint256 => bool) public revealed;

    constructor() ERC721("Dooms", "DOOMS") {}

    // Public
    function mint(bytes32[] memory proof_, uint256 quantity_) external {
        bytes32 leaf = keccak256(
            bytes.concat(keccak256(abi.encode(msg.sender, quantity_)))
        );

        if (!MerkleProof.verify(proof_, _root, leaf)) {
            revert InvalidProof();
        }

        if (_minted[msg.sender] >= quantity_) {
            revert AllowedMintsExceeded();
        }

        uint256 allowance = quantity_ - _minted[msg.sender];

        _minted[msg.sender] = quantity_;

        _mintBatch(msg.sender, allowance);
    }

    function reveal(uint256 id_) external {
        if (!revealOpen) {
            revert RevealClosed();
        }

        if (_ownerOf[id_] != msg.sender) {
            revert RevealIncorrectOwner();
        }

        revealed[id_] = true;
    }

    // Owner only
    function airdrop(address to_, uint256 quantity_) external onlyOwner {
        _mintBatch(to_, quantity_);
    }

    function burn(uint256 id_) external onlyOwner {
        _burn(id_);
        unchecked {
            _burned++;
        }
    }

    function remint(address to_, uint256 id_) external onlyOwner {
        _mint(to_, id_);
        unchecked {
            _burned--;
        }
    }

    function setMerkleRoot(bytes32 root_) external onlyOwner {
        _root = root_;
    }

    function setMetadataURI(string memory metadataURI_) external onlyOwner {
        _metadataURI = metadataURI_;
    }

    function setMetadataExtension(string memory metadataExtension_)
        external
        onlyOwner
    {
        _metadataExtension = metadataExtension_;
    }

    function toggleReveal() external onlyOwner {
        revealOpen = !revealOpen;
    }

    // Overrides
    function setApprovalForAll(address operator_, bool approved_)
        public
        override
        onlyAllowedOperatorApproval(operator_)
    {
        super.setApprovalForAll(operator_, approved_);
    }

    function approve(address operator_, uint256 id_)
        public
        override
        onlyAllowedOperatorApproval(operator_)
    {
        super.approve(operator_, id_);
    }

    function transferFrom(
        address from_,
        address to_,
        uint256 id_
    ) public override onlyAllowedOperator(from_) {
        super.transferFrom(from_, to_, id_);
    }

    function safeTransferFrom(
        address from_,
        address to_,
        uint256 id_
    ) public override onlyAllowedOperator(from_) {
        super.safeTransferFrom(from_, to_, id_);
    }

    function safeTransferFrom(
        address from_,
        address to_,
        uint256 id_,
        bytes calldata data_
    ) public override onlyAllowedOperator(from_) {
        super.safeTransferFrom(from_, to_, id_, data_);
    }

    function tokenURI(uint256 id_)
        public
        view
        override
        returns (string memory)
    {
        if (_ownerOf[id_] == address(0)) revert DoesNotExist();

        return
            bytes(_metadataURI).length != 0
                ? string(
                    abi.encodePacked(
                        _metadataURI,
                        _toString(id_),
                        _metadataExtension
                    )
                )
                : "";
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override
        returns (bool)
    {
        return
            interfaceId == 0x780e9d63 || // ERC165 Interface ID for ERC721Enumerable
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    // Extension
    function totalSupply() external view returns (uint256) {
        return nextTokenId - _burned;
    }

    function tokenByIndex(uint256 index_) external view returns (uint256) {
        if (_ownerOf[index_] == address(0)) revert DoesNotExist();
        return index_;
    }

    function tokenOfOwnerByIndex(address owner_, uint256 index_)
        external
        view
        returns (uint256)
    {
        if (index_ >= _balanceOf[owner_]) revert IndexOutOfBound();

        unchecked {
            uint256 count;

            for (uint256 i; i < nextTokenId; i++) {
                if (owner_ == _ownerOf[i]) {
                    if (count == index_) {
                        return i;
                    } else {
                        count++;
                    }
                }
            }
        }

        revert IndexOutOfBound();
    }

    function tokensOfOwner(address owner_)
        external
        view
        returns (uint256[] memory)
    {
        unchecked {
            uint256 balance = _balanceOf[owner_];
            uint256 count;
            uint256[] memory ids = new uint256[](balance);

            for (uint256 i; count != balance; i++) {
                if (owner_ == _ownerOf[i]) {
                    ids[count++] = i;
                }
            }

            return ids;
        }
    }

    // Rescue
    function withdraw() external onlyOwner {
        (bool success, ) = payable(owner()).call{value: address(this).balance}(
            ""
        );

        require(success);
    }

    // Utils
    function _mintBatch(address to_, uint256 quantity_) private {
        unchecked {
            for (uint256 i; i < quantity_; i++) {
                _mint(to_, nextTokenId++);
            }
        }
    }

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

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

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

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

File 2 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 4 of 8 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

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

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 5 of 8 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 6 of 8 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 7 of 8 : 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 8 of 8 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowedMintsExceeded","type":"error"},{"inputs":[],"name":"DoesNotExist","type":"error"},{"inputs":[],"name":"IndexOutOfBound","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RevealClosed","type":"error"},{"inputs":[],"name":"RevealIncorrectOwner","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"quantity_","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"uint256","name":"quantity_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","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":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"remint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","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":"id_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator_","type":"address"},{"internalType":"bool","name":"approved_","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metadataExtension_","type":"string"}],"name":"setMetadataExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metadataURI_","type":"string"}],"name":"setMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"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":"id_","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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb6600160405180604001604052806005815260200164446f6f6d7360d81b81525060405180604001604052806005815260200164444f4f4d5360d81b8152508160009081620000769190620002ea565b506001620000858282620002ea565b505050620000a26200009c620001ef60201b60201c565b620001f3565b6daaeb6d7670e522a718067333cd4e3b15620001e75780156200013557604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200011657600080fd5b505af11580156200012b573d6000803e3d6000fd5b50505050620001e7565b6001600160a01b03821615620001865760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000fb565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001cd57600080fd5b505af1158015620001e2573d6000803e3d6000fd5b505050505b5050620003b6565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200027057607f821691505b6020821081036200029157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002e557600081815260208120601f850160051c81016020861015620002c05750805b601f850160051c820191505b81811015620002e157828155600101620002cc565b5050505b505050565b81516001600160401b0381111562000306576200030662000245565b6200031e816200031784546200025b565b8462000297565b602080601f8311600181146200035657600084156200033d5750858301515b600019600386901b1c1916600185901b178555620002e1565b600085815260208120601f198616915b82811015620003875788860151825594840194600190910190840162000366565b5085821015620003a65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611cdf80620003c66000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a5780638da5cb5b116100ad578063b88d4fde1161007c578063b88d4fde1461045d578063c2ca0ac514610470578063c87b56dd14610483578063e985e9c514610496578063f2fde38b146104c457600080fd5b80638da5cb5b1461041e57806395d89b411461042f5780639f6350e614610437578063a22cb4651461044a57600080fd5b806375794a3c116100e957806375794a3c146103cf5780637cb64759146103d85780638462151c146103eb5780638ba4cc3c1461040b57600080fd5b806370a0823114610394578063715018a6146103a7578063750521f5146103af57806375793cc3146103c257600080fd5b806341f434341161019d5780634f6ccce71161016c5780634f6ccce71461033057806353056bf6146103435780635b8ad4291461035657806361a2bc011461035e5780636352211e1461038157600080fd5b806341f43434146102e257806342842e0e146102f757806342966c681461030a57806345de0d9b1461031d57600080fd5b806318160ddd116101d957806318160ddd1461029e57806323b872dd146102b45780632f745c59146102c75780633ccfd60b146102da57600080fd5b806301ffc9a71461020b57806306fdde0314610233578063081812fc14610248578063095ea7b314610289575b600080fd5b61021e6102193660046115d9565b6104d7565b60405190151581526020015b60405180910390f35b61023b610544565b60405161022a919061161a565b61027161025636600461164d565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161022a565b61029c61029736600461167d565b6105d2565b005b6102a66105eb565b60405190815260200161022a565b61029c6102c23660046116a7565b610602565b6102a66102d536600461167d565b61062d565b61029c6106cf565b6102716daaeb6d7670e522a718067333cd4e81565b61029c6103053660046116a7565b61074b565b61029c61031836600461164d565b610770565b61029c61032b36600461172a565b61078d565b6102a661033e36600461164d565b61086a565b61029c61035136600461167d565b6108a3565b61029c6108c3565b61021e61036c36600461164d565b600e6020526000908152604090205460ff1681565b61027161038f36600461164d565b6108df565b6102a66103a23660046117d6565b61093b565b61029c61099e565b61029c6103bd3660046117f1565b6109b2565b600c5461021e9060ff1681565b6102a6600d5481565b61029c6103e636600461164d565b6109ca565b6103fe6103f93660046117d6565b6109d7565b60405161022a9190611886565b61029c61041936600461167d565b610a9c565b6006546001600160a01b0316610271565b61023b610aae565b61029c6104453660046117f1565b610abb565b61029c6104583660046118d8565b610acf565b61029c61046b36600461190f565b610ae3565b61029c61047e36600461164d565b610b12565b61023b61049136600461164d565b610b87565b61021e6104a43660046119aa565b600560209081526000928352604080842090915290825290205460ff1681565b61029c6104d23660046117d6565b610c1e565b600063780e9d6360e01b6001600160e01b03198316148061050857506301ffc9a760e01b6001600160e01b03198316145b8061052357506380ac58cd60e01b6001600160e01b03198316145b8061053e5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60008054610551906119dd565b80601f016020809104026020016040519081016040528092919081815260200182805461057d906119dd565b80156105ca5780601f1061059f576101008083540402835291602001916105ca565b820191906000526020600020905b8154815290600101906020018083116105ad57829003601f168201915b505050505081565b816105dc81610c94565b6105e68383610d4d565b505050565b6000600b54600d546105fd9190611a2d565b905090565b826001600160a01b038116331461061c5761061c33610c94565b610627848484610e2f565b50505050565b6001600160a01b03821660009081526003602052604081205482106106655760405163d3482f7b60e01b815260040160405180910390fd5b6000805b600d548110156106b4576000818152600260205260409020546001600160a01b03908116908616036106ac578382036106a557915061053e9050565b6001909101905b600101610669565b505060405163d3482f7b60e01b815260040160405180910390fd5b6106d7610ff6565b60006106eb6006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610735576040519150601f19603f3d011682016040523d82523d6000602084013e61073a565b606091505b505090508061074857600080fd5b50565b826001600160a01b03811633146107655761076533610c94565b610627848484611050565b610778610ff6565b61078181611143565b50600b80546001019055565b6040805133602082015290810182905260009060600160408051601f19818403018152828252805160209182012090830152016040516020818303038152906040528051906020012090506107e58360075483611210565b610802576040516309bde33960e01b815260040160405180910390fd5b336000908152600a602052604090205482116108315760405163883eba8360e01b815260040160405180910390fd5b336000908152600a602052604081205461084b9084611a2d565b336000818152600a602052604090208590559091506106279082611226565b6000818152600260205260408120546001600160a01b031661089f5760405163b0ce759160e01b815260040160405180910390fd5b5090565b6108ab610ff6565b6108b5828261124f565b5050600b8054600019019055565b6108cb610ff6565b600c805460ff19811660ff90911615179055565b6000818152600260205260409020546001600160a01b0316806109365760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064015b60405180910390fd5b919050565b60006001600160a01b0382166109825760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161092d565b506001600160a01b031660009081526003602052604090205490565b6109a6610ff6565b6109b0600061135a565b565b6109ba610ff6565b60086109c68282611a86565b5050565b6109d2610ff6565b600755565b6001600160a01b038116600090815260036020526040812054606091808267ffffffffffffffff811115610a0d57610a0d6116e3565b604051908082528060200260200182016040528015610a36578160200160208202803683370190505b50905060005b838314610a93576000818152600260205260409020546001600160a01b0390811690871603610a8b5780828480600101955081518110610a7e57610a7e611b46565b6020026020010181815250505b600101610a3c565b50949350505050565b610aa4610ff6565b6109c68282611226565b60018054610551906119dd565b610ac3610ff6565b60096109c68282611a86565b81610ad981610c94565b6105e683836113ac565b846001600160a01b0381163314610afd57610afd33610c94565b610b0a8686868686611418565b505050505050565b600c5460ff16610b3557604051636c4b02a360e11b815260040160405180910390fd5b6000818152600260205260409020546001600160a01b03163314610b6c5760405163086e6b2960e21b815260040160405180910390fd5b6000908152600e60205260409020805460ff19166001179055565b6000818152600260205260409020546060906001600160a01b0316610bbf5760405163b0ce759160e01b815260040160405180910390fd5b60088054610bcc906119dd565b9050600003610bea576040518060200160405280600081525061053e565b6008610bf583611500565b6009604051602001610c0993929190611bcf565b60405160208183030381529060405292915050565b610c26610ff6565b6001600160a01b038116610c8b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092d565b6107488161135a565b6daaeb6d7670e522a718067333cd4e3b1561074857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d259190611c02565b61074857604051633b79c77360e21b81526001600160a01b038216600482015260240161092d565b6000818152600260205260409020546001600160a01b031633811480610d9657506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b610dd35760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161092d565b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b03848116911614610e855760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161092d565b6001600160a01b038216610ecf5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161092d565b336001600160a01b0384161480610f0957506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610f2a57506000818152600460205260409020546001600160a01b031633145b610f675760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161092d565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b031633146109b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161092d565b61105b838383610602565b6001600160a01b0382163b15806111045750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156110d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f89190611c1f565b6001600160e01b031916145b6105e65760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161092d565b6000818152600260205260409020546001600160a01b0316806111955760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161092d565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008261121d8584611544565b14949350505050565b60005b818110156105e657600d80546001810190915561124790849061124f565b600101611229565b6001600160a01b0382166112995760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161092d565b6000818152600260205260409020546001600160a01b0316156112ef5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161092d565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611423858585610602565b6001600160a01b0384163b15806114ba5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a029061146b9033908a90899089908990600401611c3c565b6020604051808303816000875af115801561148a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ae9190611c1f565b6001600160e01b031916145b6114f95760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161092d565b5050505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061151a5750819003601f19909101908152919050565b600081815b8451811015611589576115758286838151811061156857611568611b46565b6020026020010151611591565b91508061158181611c90565b915050611549565b509392505050565b60008183106115ad5760008281526020849052604090206115bc565b60008381526020839052604090205b9392505050565b6001600160e01b03198116811461074857600080fd5b6000602082840312156115eb57600080fd5b81356115bc816115c3565b60005b838110156116115781810151838201526020016115f9565b50506000910152565b60208152600082518060208401526116398160408501602087016115f6565b601f01601f19169190910160400192915050565b60006020828403121561165f57600080fd5b5035919050565b80356001600160a01b038116811461093657600080fd5b6000806040838503121561169057600080fd5b61169983611666565b946020939093013593505050565b6000806000606084860312156116bc57600080fd5b6116c584611666565b92506116d360208501611666565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611722576117226116e3565b604052919050565b6000806040838503121561173d57600080fd5b823567ffffffffffffffff8082111561175557600080fd5b818501915085601f83011261176957600080fd5b813560208282111561177d5761177d6116e3565b8160051b925061178e8184016116f9565b82815292840181019281810190898511156117a857600080fd5b948201945b848610156117c6578535825294820194908201906117ad565b9997909101359750505050505050565b6000602082840312156117e857600080fd5b6115bc82611666565b6000602080838503121561180457600080fd5b823567ffffffffffffffff8082111561181c57600080fd5b818501915085601f83011261183057600080fd5b813581811115611842576118426116e3565b611854601f8201601f191685016116f9565b9150808252868482850101111561186a57600080fd5b8084840185840137600090820190930192909252509392505050565b6020808252825182820181905260009190848201906040850190845b818110156118be578351835292840192918401916001016118a2565b50909695505050505050565b801515811461074857600080fd5b600080604083850312156118eb57600080fd5b6118f483611666565b91506020830135611904816118ca565b809150509250929050565b60008060008060006080868803121561192757600080fd5b61193086611666565b945061193e60208701611666565b935060408601359250606086013567ffffffffffffffff8082111561196257600080fd5b818801915088601f83011261197657600080fd5b81358181111561198557600080fd5b89602082850101111561199757600080fd5b9699959850939650602001949392505050565b600080604083850312156119bd57600080fd5b6119c683611666565b91506119d460208401611666565b90509250929050565b600181811c908216806119f157607f821691505b602082108103611a1157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561053e5761053e611a17565b601f8211156105e657600081815260208120601f850160051c81016020861015611a675750805b601f850160051c820191505b81811015610b0a57828155600101611a73565b815167ffffffffffffffff811115611aa057611aa06116e3565b611ab481611aae84546119dd565b84611a40565b602080601f831160018114611ae95760008415611ad15750858301515b600019600386901b1c1916600185901b178555610b0a565b600085815260208120601f198616915b82811015611b1857888601518255948401946001909101908401611af9565b5085821015611b365787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60008154611b69816119dd565b60018281168015611b815760018114611b9657611bc5565b60ff1984168752821515830287019450611bc5565b8560005260208060002060005b85811015611bbc5781548a820152908401908201611ba3565b50505082870194505b5050505092915050565b6000611bdb8286611b5c565b8451611beb8183602089016115f6565b611bf781830186611b5c565b979650505050505050565b600060208284031215611c1457600080fd5b81516115bc816118ca565b600060208284031215611c3157600080fd5b81516115bc816115c3565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b600060018201611ca257611ca2611a17565b506001019056fea2646970667358221220ee58356cdec88953c19c65b568327666b3c5d66241fe1e9347dd8363465b020f64736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a5780638da5cb5b116100ad578063b88d4fde1161007c578063b88d4fde1461045d578063c2ca0ac514610470578063c87b56dd14610483578063e985e9c514610496578063f2fde38b146104c457600080fd5b80638da5cb5b1461041e57806395d89b411461042f5780639f6350e614610437578063a22cb4651461044a57600080fd5b806375794a3c116100e957806375794a3c146103cf5780637cb64759146103d85780638462151c146103eb5780638ba4cc3c1461040b57600080fd5b806370a0823114610394578063715018a6146103a7578063750521f5146103af57806375793cc3146103c257600080fd5b806341f434341161019d5780634f6ccce71161016c5780634f6ccce71461033057806353056bf6146103435780635b8ad4291461035657806361a2bc011461035e5780636352211e1461038157600080fd5b806341f43434146102e257806342842e0e146102f757806342966c681461030a57806345de0d9b1461031d57600080fd5b806318160ddd116101d957806318160ddd1461029e57806323b872dd146102b45780632f745c59146102c75780633ccfd60b146102da57600080fd5b806301ffc9a71461020b57806306fdde0314610233578063081812fc14610248578063095ea7b314610289575b600080fd5b61021e6102193660046115d9565b6104d7565b60405190151581526020015b60405180910390f35b61023b610544565b60405161022a919061161a565b61027161025636600461164d565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161022a565b61029c61029736600461167d565b6105d2565b005b6102a66105eb565b60405190815260200161022a565b61029c6102c23660046116a7565b610602565b6102a66102d536600461167d565b61062d565b61029c6106cf565b6102716daaeb6d7670e522a718067333cd4e81565b61029c6103053660046116a7565b61074b565b61029c61031836600461164d565b610770565b61029c61032b36600461172a565b61078d565b6102a661033e36600461164d565b61086a565b61029c61035136600461167d565b6108a3565b61029c6108c3565b61021e61036c36600461164d565b600e6020526000908152604090205460ff1681565b61027161038f36600461164d565b6108df565b6102a66103a23660046117d6565b61093b565b61029c61099e565b61029c6103bd3660046117f1565b6109b2565b600c5461021e9060ff1681565b6102a6600d5481565b61029c6103e636600461164d565b6109ca565b6103fe6103f93660046117d6565b6109d7565b60405161022a9190611886565b61029c61041936600461167d565b610a9c565b6006546001600160a01b0316610271565b61023b610aae565b61029c6104453660046117f1565b610abb565b61029c6104583660046118d8565b610acf565b61029c61046b36600461190f565b610ae3565b61029c61047e36600461164d565b610b12565b61023b61049136600461164d565b610b87565b61021e6104a43660046119aa565b600560209081526000928352604080842090915290825290205460ff1681565b61029c6104d23660046117d6565b610c1e565b600063780e9d6360e01b6001600160e01b03198316148061050857506301ffc9a760e01b6001600160e01b03198316145b8061052357506380ac58cd60e01b6001600160e01b03198316145b8061053e5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60008054610551906119dd565b80601f016020809104026020016040519081016040528092919081815260200182805461057d906119dd565b80156105ca5780601f1061059f576101008083540402835291602001916105ca565b820191906000526020600020905b8154815290600101906020018083116105ad57829003601f168201915b505050505081565b816105dc81610c94565b6105e68383610d4d565b505050565b6000600b54600d546105fd9190611a2d565b905090565b826001600160a01b038116331461061c5761061c33610c94565b610627848484610e2f565b50505050565b6001600160a01b03821660009081526003602052604081205482106106655760405163d3482f7b60e01b815260040160405180910390fd5b6000805b600d548110156106b4576000818152600260205260409020546001600160a01b03908116908616036106ac578382036106a557915061053e9050565b6001909101905b600101610669565b505060405163d3482f7b60e01b815260040160405180910390fd5b6106d7610ff6565b60006106eb6006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610735576040519150601f19603f3d011682016040523d82523d6000602084013e61073a565b606091505b505090508061074857600080fd5b50565b826001600160a01b03811633146107655761076533610c94565b610627848484611050565b610778610ff6565b61078181611143565b50600b80546001019055565b6040805133602082015290810182905260009060600160408051601f19818403018152828252805160209182012090830152016040516020818303038152906040528051906020012090506107e58360075483611210565b610802576040516309bde33960e01b815260040160405180910390fd5b336000908152600a602052604090205482116108315760405163883eba8360e01b815260040160405180910390fd5b336000908152600a602052604081205461084b9084611a2d565b336000818152600a602052604090208590559091506106279082611226565b6000818152600260205260408120546001600160a01b031661089f5760405163b0ce759160e01b815260040160405180910390fd5b5090565b6108ab610ff6565b6108b5828261124f565b5050600b8054600019019055565b6108cb610ff6565b600c805460ff19811660ff90911615179055565b6000818152600260205260409020546001600160a01b0316806109365760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064015b60405180910390fd5b919050565b60006001600160a01b0382166109825760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161092d565b506001600160a01b031660009081526003602052604090205490565b6109a6610ff6565b6109b0600061135a565b565b6109ba610ff6565b60086109c68282611a86565b5050565b6109d2610ff6565b600755565b6001600160a01b038116600090815260036020526040812054606091808267ffffffffffffffff811115610a0d57610a0d6116e3565b604051908082528060200260200182016040528015610a36578160200160208202803683370190505b50905060005b838314610a93576000818152600260205260409020546001600160a01b0390811690871603610a8b5780828480600101955081518110610a7e57610a7e611b46565b6020026020010181815250505b600101610a3c565b50949350505050565b610aa4610ff6565b6109c68282611226565b60018054610551906119dd565b610ac3610ff6565b60096109c68282611a86565b81610ad981610c94565b6105e683836113ac565b846001600160a01b0381163314610afd57610afd33610c94565b610b0a8686868686611418565b505050505050565b600c5460ff16610b3557604051636c4b02a360e11b815260040160405180910390fd5b6000818152600260205260409020546001600160a01b03163314610b6c5760405163086e6b2960e21b815260040160405180910390fd5b6000908152600e60205260409020805460ff19166001179055565b6000818152600260205260409020546060906001600160a01b0316610bbf5760405163b0ce759160e01b815260040160405180910390fd5b60088054610bcc906119dd565b9050600003610bea576040518060200160405280600081525061053e565b6008610bf583611500565b6009604051602001610c0993929190611bcf565b60405160208183030381529060405292915050565b610c26610ff6565b6001600160a01b038116610c8b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092d565b6107488161135a565b6daaeb6d7670e522a718067333cd4e3b1561074857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610d01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d259190611c02565b61074857604051633b79c77360e21b81526001600160a01b038216600482015260240161092d565b6000818152600260205260409020546001600160a01b031633811480610d9657506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b610dd35760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161092d565b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b03848116911614610e855760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161092d565b6001600160a01b038216610ecf5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161092d565b336001600160a01b0384161480610f0957506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610f2a57506000818152600460205260409020546001600160a01b031633145b610f675760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161092d565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b031633146109b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161092d565b61105b838383610602565b6001600160a01b0382163b15806111045750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156110d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f89190611c1f565b6001600160e01b031916145b6105e65760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161092d565b6000818152600260205260409020546001600160a01b0316806111955760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161092d565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008261121d8584611544565b14949350505050565b60005b818110156105e657600d80546001810190915561124790849061124f565b600101611229565b6001600160a01b0382166112995760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161092d565b6000818152600260205260409020546001600160a01b0316156112ef5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161092d565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611423858585610602565b6001600160a01b0384163b15806114ba5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a029061146b9033908a90899089908990600401611c3c565b6020604051808303816000875af115801561148a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ae9190611c1f565b6001600160e01b031916145b6114f95760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161092d565b5050505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061151a5750819003601f19909101908152919050565b600081815b8451811015611589576115758286838151811061156857611568611b46565b6020026020010151611591565b91508061158181611c90565b915050611549565b509392505050565b60008183106115ad5760008281526020849052604090206115bc565b60008381526020839052604090205b9392505050565b6001600160e01b03198116811461074857600080fd5b6000602082840312156115eb57600080fd5b81356115bc816115c3565b60005b838110156116115781810151838201526020016115f9565b50506000910152565b60208152600082518060208401526116398160408501602087016115f6565b601f01601f19169190910160400192915050565b60006020828403121561165f57600080fd5b5035919050565b80356001600160a01b038116811461093657600080fd5b6000806040838503121561169057600080fd5b61169983611666565b946020939093013593505050565b6000806000606084860312156116bc57600080fd5b6116c584611666565b92506116d360208501611666565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611722576117226116e3565b604052919050565b6000806040838503121561173d57600080fd5b823567ffffffffffffffff8082111561175557600080fd5b818501915085601f83011261176957600080fd5b813560208282111561177d5761177d6116e3565b8160051b925061178e8184016116f9565b82815292840181019281810190898511156117a857600080fd5b948201945b848610156117c6578535825294820194908201906117ad565b9997909101359750505050505050565b6000602082840312156117e857600080fd5b6115bc82611666565b6000602080838503121561180457600080fd5b823567ffffffffffffffff8082111561181c57600080fd5b818501915085601f83011261183057600080fd5b813581811115611842576118426116e3565b611854601f8201601f191685016116f9565b9150808252868482850101111561186a57600080fd5b8084840185840137600090820190930192909252509392505050565b6020808252825182820181905260009190848201906040850190845b818110156118be578351835292840192918401916001016118a2565b50909695505050505050565b801515811461074857600080fd5b600080604083850312156118eb57600080fd5b6118f483611666565b91506020830135611904816118ca565b809150509250929050565b60008060008060006080868803121561192757600080fd5b61193086611666565b945061193e60208701611666565b935060408601359250606086013567ffffffffffffffff8082111561196257600080fd5b818801915088601f83011261197657600080fd5b81358181111561198557600080fd5b89602082850101111561199757600080fd5b9699959850939650602001949392505050565b600080604083850312156119bd57600080fd5b6119c683611666565b91506119d460208401611666565b90509250929050565b600181811c908216806119f157607f821691505b602082108103611a1157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561053e5761053e611a17565b601f8211156105e657600081815260208120601f850160051c81016020861015611a675750805b601f850160051c820191505b81811015610b0a57828155600101611a73565b815167ffffffffffffffff811115611aa057611aa06116e3565b611ab481611aae84546119dd565b84611a40565b602080601f831160018114611ae95760008415611ad15750858301515b600019600386901b1c1916600185901b178555610b0a565b600085815260208120601f198616915b82811015611b1857888601518255948401946001909101908401611af9565b5085821015611b365787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60008154611b69816119dd565b60018281168015611b815760018114611b9657611bc5565b60ff1984168752821515830287019450611bc5565b8560005260208060002060005b85811015611bbc5781548a820152908401908201611ba3565b50505082870194505b5050505092915050565b6000611bdb8286611b5c565b8451611beb8183602089016115f6565b611bf781830186611b5c565b979650505050505050565b600060208284031215611c1457600080fd5b81516115bc816118ca565b600060208284031215611c3157600080fd5b81516115bc816115c3565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b600060018201611ca257611ca2611a17565b506001019056fea2646970667358221220ee58356cdec88953c19c65b568327666b3c5d66241fe1e9347dd8363465b020f64736f6c63430008110033

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.