ETH Price: $3,250.80 (+4.36%)
Gas: 2 Gwei

Token

OgreWorld (OgreWorld)
 

Overview

Max Total Supply

301 OgreWorld

Holders

126

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 OgreWorld
0xd3dfabdf1086ca8d31698c48f1e160be0b083f6f
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:
OgreWorld

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : OgreWorld.sol
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                          ██████╗  ██████╗ ██████╗ ███████╗██╗    ██╗ ██████╗ ██████╗ ██╗     ██████╗                              //
//                          ██╔═══██╗██╔════╝ ██╔══██╗██╔════╝██║    ██║██╔═══██╗██╔══██╗██║     ██╔══██╗                            //
//                          ██║   ██║██║  ███╗██████╔╝█████╗  ██║ █╗ ██║██║   ██║██████╔╝██║     ██║  ██║                            //
//                          ██║   ██║██║   ██║██╔══██╗██╔══╝  ██║███╗██║██║   ██║██╔══██╗██║     ██║  ██║                            //
//                          ╚██████╔╝╚██████╔╝██║  ██║███████╗╚███╔███╔╝╚██████╔╝██║  ██║███████╗██████╔╝                            //
//                          ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝ ╚══╝╚══╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝                              //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.11.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./MerkleProof.sol";

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error MaxLimitExceeded();
error MaxLimitPerTransactionExceeded();
error MintPriceIncorrect();
error MintToZeroAddress();
error MintZeroQuantity();
error NotAnAdmin();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferIsLocked();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();
error SaleNotActive();
error WhitelistSaleNotActive();
error NotAWhitelistMember();
error MerkleRootNotFound();

contract OgreWorld is ERC165, IERC721, IERC721Metadata, Ownable, ReentrancyGuard {
    using Address for address;
    using Strings for uint256;

	address private constant STREAM = 0xF87f7075A4B43428d118c8Fbd3a28BE2dbeFeDe8;

    string public name;
    string public symbol;
    string public baseUri;
    string public preRevealUri;

    uint256 private constant MAX_LIMIT = 6667;
    uint256 public constant MAX_MINT_PER_TRANSACTION = 5;
	uint256 public publicMintPrice = 0.045 ether;
    uint256 public whitelistMintPrice = 0.039 ether;
    uint256 private nextId = 1;

    mapping(uint256 => address) private owners;
    mapping(address => uint256) private balances;
    mapping(uint256 => address) private tokenApprovals;
    mapping(address => mapping(address => bool)) private operatorApprovals;

    bool public publicStatus = false;
	bool public whitelistStatus = false;
	bool public revealed = false;

    bytes32 internal merkleRoot = "";

    /**
		Construct a new instance of this ERC-721 contract.
		@param _name The name to assign to this item collection contract.
		@param _symbol The ticker symbol of this item collection.
		@param _baseUri The metadata URI to perform later token ID substitution with.
	*/
    constructor(
        string memory _name,
        string memory _symbol,
        string memory _baseUri,
        string memory _preRevealUri,
        bytes32 _merkleRoot
    ) {
        name = _name;
        symbol = _symbol;
        baseUri = _baseUri;
        preRevealUri = _preRevealUri;
        merkleRoot = _merkleRoot;
    }

    /**
		Flag this contract as supporting the ERC-721 standard, the ERC-721 metadata
		extension, and the enumerable ERC-721 extension.
		@param _interfaceId The identifier, as defined by ERC-165, of the contract
		interface to support.
		@return Whether or not the interface being tested is supported.
	*/
    function supportsInterface(bytes4 _interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            (_interfaceId == type(IERC721).interfaceId) ||
            (_interfaceId == type(IERC721Metadata).interfaceId) ||
            (super.supportsInterface(_interfaceId));
    }

    /**
		Return the total number of this token that have ever been minted.
		@return The total supply of minted tokens.
	*/
    function totalSupply() external view returns (uint256) {
        return nextId - 1;
    }

	function intMint(uint256 _amount) internal {
        if (_amount == 0) { revert MintZeroQuantity(); }
        if (msg.sender == address(0)) { revert MintToZeroAddress(); }
        if (nextId - 1 + _amount > MAX_LIMIT) { revert MaxLimitExceeded(); }

        /**
			Inspired by the Chiru Labs implementation, we use unchecked math here.
			Only enormous minting counts that are unrealistic for our purposes would
			cause an overflow.
		*/
        uint256 startTokenId = nextId;
        unchecked {
            balances[msg.sender] += _amount;
            owners[startTokenId] = msg.sender;

            uint256 updatedIndex = startTokenId;
            for (uint256 i = 0; i < _amount; i++) {
                emit Transfer(address(0), msg.sender, updatedIndex);
                updatedIndex++;
            }
            nextId = updatedIndex;
        }
	}

    /**
		This function allows minters to mint one or more tokens dictated by the `_amount` parameter.
		Any minted tokens are sent to the caller address
		@param _amount The amount of tokens to mint.
	*/
    function mint(uint256 _amount) external payable {
        if (_amount > MAX_MINT_PER_TRANSACTION) { revert MaxLimitPerTransactionExceeded(); }
		if (!publicStatus) { revert SaleNotActive(); }
		if (msg.value < publicMintPrice * _amount) { revert MintPriceIncorrect(); }
        intMint(_amount);
    }

	/**
		This function allows minters to mint one or more tokens dictated by the `_amount` parameter.
		This function can be executed only by whitelisted members
		Any minted tokens are sent to the caller address
		@param _amount The amount of tokens to mint.
	*/
    function whitelistMint(uint256 _amount, bytes32[] calldata _proof) external payable {
        if (!_verify(_leaf(msg.sender), _proof)) { revert NotAWhitelistMember(); }
        if (_amount > MAX_MINT_PER_TRANSACTION) { revert MaxLimitPerTransactionExceeded(); }
		if (!whitelistStatus) { revert WhitelistSaleNotActive(); }
		if (msg.value < whitelistMintPrice * _amount) { revert MintPriceIncorrect(); }
        intMint(_amount);
    }

    /**
		This function allows admin to mint tokens for giveaways
		Any minted tokens are sent to the caller address
		@param _amount The amount of tokens to mint.
	*/
    function raaah(uint256 _amount) external onlyOwner {
        intMint(_amount);
    }

    /**
		Retrieve the number of distinct token IDs held by `_owner`.
		@param _owner The address to retrieve a count of held tokens for.
		@return The number of tokens held by `_owner`.
	*/
    function balanceOf(address _owner)
        external
        view
        override
        returns (uint256)
    {
        return balances[_owner];
    }

    /**
		Just as Chiru Labs does, we maintain a sparse list of token owners; for
		example if Alice owns tokens with ID #1 through #3 and Bob owns tokens #4
		through #5, the ownership list would look like:
		[ 1: Alice, 2: 0x0, 3: 0x0, 4: Bob, 5: 0x0, ... ].
		This function is able to consume that sparse list for determining an actual
		owner. Chiru Labs says that the gas spent here starts off proportional to
		the maximum mint batch size and gradually moves to O(1) as tokens get
		transferred.
		@param _id The ID of the token which we are finding the owner for.
		@return owner The owner of the token with ID of `_id`.
	*/
    function _ownershipOf(uint256 _id) private view returns (address owner) {
        if (!_exists(_id)) { revert OwnerQueryForNonexistentToken(); }
        unchecked {
            for (uint256 curr = _id; ; curr--) {
                owner = owners[curr];
                if (owner != address(0)) {
                    return owner;
                }
            }
        }
    }

    /**
		Return the address that holds a particular token ID.
		@param _id The token ID to check for the holding address of.
		@return The address that holds the token with ID of `_id`.
	*/
    function ownerOf(uint256 _id) external view override returns (address) {
        return _ownershipOf(_id);
    }

    /**
		Return whether a particular token ID has been minted or not.
		@param _id The ID of a specific token to check for existence.
		@return Whether or not the token of ID `_id` exists.
	*/
    function _exists(uint256 _id) public view returns (bool) {
        return _id > 0 && _id < nextId;
    }

    /**
		Return the address approved to perform transfers on behalf of the owner of
		token `_id`. If no address is approved, this returns the zero address.
		@param _id The specific token ID to check for an approved address.
		@return The address that may operate on token `_id` on its owner's behalf.
	*/
    function getApproved(uint256 _id) public view override returns (address) {
        if (!_exists(_id)) { revert ApprovalQueryForNonexistentToken(); }
        return tokenApprovals[_id];
    }

    /**
		This function returns true if `_operator` is approved to transfer items
		owned by `_owner`.
		@param _owner The owner of items to check for transfer ability.
		@param _operator The potential transferrer of `_owner`'s items.
		@return Whether `_operator` may transfer items owned by `_owner`.
	*/
    function isApprovedForAll(address _owner, address _operator)
        public
        view
        virtual
        override
        returns (bool)
    { return operatorApprovals[_owner][_operator]; }

    /**
		Return the token URI of the token with the specified `_id`. The token URI is
		dynamically constructed from this contract's `baseUri`.
		@param _id The ID of the token to retrive a metadata URI for.
		@return The metadata URI of the token with the ID of `_id`.
	*/
    function tokenURI(uint256 _id)
        external
        view
        virtual
        override
        returns (string memory)
    {
        if (!_exists(_id)) { revert URIQueryForNonexistentToken(); }
        return revealed ? string(abi.encodePacked(baseUri, _id.toString())) : preRevealUri;
    }

    /**
		This private helper function updates the token approval address of the token
		with ID of `_id` to the address `_to` and emits an event that the address
		`_owner` triggered this approval. This function emits an {Approval} event.

		@param _owner The owner of the token with the ID of `_id`.
		@param _to The address that is being granted approval to the token `_id`.
		@param _id The ID of the token that is having its approval granted.
	*/
    function _approve(
        address _owner,
        address _to,
        uint256 _id
    ) private {
        tokenApprovals[_id] = _to;
        emit Approval(_owner, _to, _id);
    }

    /**
		Allow the owner of a particular token ID, or an approved operator of the
		owner, to set the approved address of a particular token ID.

		@param _approved The address being approved to transfer the token of ID `_id`.
		@param _id The token ID with its approved address being set to `_approved`.
	*/
    function approve(address _approved, uint256 _id) external override {
        address owner = _ownershipOf(_id);
        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); }
        _approve(owner, _approved, _id);
    }

    /**
		Enable or disable approval for a third party `_operator` address to manage
		all of the caller's tokens.

		@param _operator The address to grant management rights over all of the
		caller's tokens.
		@param _approved The status of the `_operator`'s approval for the caller.
	*/
    function setApprovalForAll(address _operator, bool _approved)
        external
        override
    {
        operatorApprovals[_msgSender()][_operator] = _approved;
        emit ApprovalForAll(_msgSender(), _operator, _approved);
    }

    /**
		This private helper function handles the portion of transferring an ERC-721
		token that is common to both the unsafe `transferFrom` and the
		`safeTransferFrom` variants.

		This function does not support burning tokens and emits a {Transfer} event.

		@param _from The address to transfer the token with ID of `_id` from.
		@param _to The address to transfer the token to.
		@param _id The ID of the token to transfer.
	*/
    function _transfer(
        address _from,
        address _to,
        uint256 _id
    ) private {
        address previousOwner = _ownershipOf(_id);
        bool isApprovedOrOwner = (_msgSender() == previousOwner) ||
            (isApprovedForAll(previousOwner, _msgSender())) ||
            (getApproved(_id) == _msgSender());

        if (!isApprovedOrOwner) { revert TransferCallerNotOwnerNorApproved(); }
        if (previousOwner != _from) { revert TransferFromIncorrectOwner(); }
        if (_to == address(0)) { revert TransferToZeroAddress(); }

        // Clear any token approval set by the previous owner.
        _approve(previousOwner, address(0), _id);

        /*
			Another Chiru Labs tip: we may safely use unchecked math here given the
			sender balance check and the limited range of our expected token ID space.
		*/
        unchecked {
            balances[_from] -= 1;
            balances[_to] += 1;
            owners[_id] = _to;

            /*
				The way the gappy token ownership list is setup, we can tell that
				`_from` owns the next token ID if it has a zero address owner. This also
				happens to be what limits an efficient burn implementation given the
				current setup of this contract. We need to update this spot in the list
				to mark `_from`'s ownership of this portion of the token range.
			*/
            uint256 nextTokenId = _id + 1;
            if (owners[nextTokenId] == address(0) && _exists(nextTokenId)) {
                owners[nextTokenId] = previousOwner;
            }
        }

        // Emit the transfer event.
        emit Transfer(_from, _to, _id);
    }

    /**
		This function performs an unsafe transfer of token ID `_id` from address
		`_from` to address `_to`. The transfer is considered unsafe because it does
		not validate that the receiver can actually take proper receipt of an
		ERC-721 token.

		@param _from The address to transfer the token from.
		@param _to The address to transfer the token to.
		@param _id The ID of the token being transferred.
	*/
    function transferFrom(
        address _from,
        address _to,
        uint256 _id
    ) external virtual override {
        _transfer(_from, _to, _id);
    }

    /**
		This is an private helper function used to, if the transfer destination is
		found to be a smart contract, check to see if that contract reports itself
		as safely handling ERC-721 tokens by returning the magical value from its
		`onERC721Received` function.

		@param _from The address of the previous owner of token `_id`.
		@param _to The destination address that will receive the token.
		@param _id The ID of the token being transferred.
		@param _data Optional data to send along with the transfer check.

		@return Whether or not the destination contract reports itself as being able
		to handle ERC-721 tokens.
	*/
    function _checkOnERC721Received(
        address _from,
        address _to,
        uint256 _id,
        bytes memory _data
    ) private returns (bool) {
        if (_to.isContract()) {
            try
                IERC721Receiver(_to).onERC721Received(
                    _msgSender(),
                    _from,
                    _id,
                    _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;
        }
    }

    /**
		This function performs transfer of token ID `_id` from address `_from` to
		address `_to`. This function validates that the receiving address reports
		itself as being able to properly handle an ERC-721 token.

		@param _from The address to transfer the token from.
		@param _to The address to transfer the token to.
		@param _id The ID of the token being transferred.
	*/
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _id
    ) external virtual override {
        safeTransferFrom(_from, _to, _id, "");
    }

    /**
		This function performs transfer of token ID `_id` from address `_from` to
		address `_to`. This function validates that the receiving address reports
		itself as being able to properly handle an ERC-721 token. This variant also
		sends `_data` along with the transfer check.

		@param _from The address to transfer the token from.
		@param _to The address to transfer the token to.
		@param _id The ID of the token being transferred.
		@param _data Optional data to send along with the transfer check.
	*/
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _id,
        bytes memory _data
    ) public override {
        _transfer(_from, _to, _id);
        if (!_checkOnERC721Received(_from, _to, _id, _data)) { revert TransferToNonERC721ReceiverImplementer(); }
    }

    /**
		Set the base uri for the metadata
		@param _uri The new URI to update to.
	*/
    function setURI(string calldata _uri) external virtual onlyOwner {
        baseUri = _uri;
    }

	/**
		To stop public sale whenever and admin needs
		@param _status true for enabled, false for disabled.
	*/
	function setPublicStatus(bool _status) external onlyOwner {
        publicStatus = _status;
    }

	/**
		To stop whitelist sale whenever admin needs
		@param _status true for enabled, false for disabled.
	*/
	function setWhitelistStatus(bool _status) external onlyOwner {
        whitelistStatus = _status;
    }

    function setPublicMintPrice(uint256 _newPrice) external onlyOwner {
        publicMintPrice = _newPrice;
    }

    function setWhitelistMintPrice(uint256 _newPrice) external onlyOwner {
        whitelistMintPrice = _newPrice;
    }

	/**
		To reveal art whenever admin wants
		@param _status true to reveal and false for default art
	*/
	function setRevealStatus(bool _status) external onlyOwner {
        revealed = _status;
    }

	function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function withdraw() external onlyOwner nonReentrant {
        uint256 balance = address(this).balance;
        payable(STREAM).transfer(balance);
    }

    // START - Merkle whitelisting
    function _leaf(address account) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(account));
    }
    // Verify that a given leaf is in the tree.
    function _verify(bytes32 _leafNode, bytes32[] memory proof) internal view returns (bool) {
        if(merkleRoot.length < 1) { revert MerkleRootNotFound(); }
        return MerkleProof.verify(proof, merkleRoot, _leafNode);
    }
    // END - Merkle whitelisting
}

File 2 of 12 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.13.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
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 Returns the rebuilt hash obtained by traversing a Merklee 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++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

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

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

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

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

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

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

File 11 of 12 : 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 12 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_preRevealUri","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"MaxLimitExceeded","type":"error"},{"inputs":[],"name":"MaxLimitPerTransactionExceeded","type":"error"},{"inputs":[],"name":"MerkleRootNotFound","type":"error"},{"inputs":[],"name":"MintPriceIncorrect","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotAWhitelistMember","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SaleNotActive","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WhitelistSaleNotActive","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":[],"name":"MAX_MINT_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"_exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_approved","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":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preRevealUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"raaah","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setPublicStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setRevealStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setWhitelistMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_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":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052669fdf42f6e48000600655668a8e4b1a3d80006007556001600855600d805462ffffff191690556000600e553480156200003d57600080fd5b506040516200206238038062002062833981016040819052620000609162000298565b6200006b33620000d5565b6001805584516200008490600290602088019062000125565b5083516200009a90600390602087019062000125565b508251620000b090600490602086019062000125565b508151620000c690600590602085019062000125565b50600e55506200039792505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000133906200035b565b90600052602060002090601f016020900481019282620001575760008555620001a2565b82601f106200017257805160ff1916838001178555620001a2565b82800160010185558215620001a2579182015b82811115620001a257825182559160200191906001019062000185565b50620001b0929150620001b4565b5090565b5b80821115620001b05760008155600101620001b5565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001f357600080fd5b81516001600160401b0380821115620002105762000210620001cb565b604051601f8301601f19908116603f011681019082821181831017156200023b576200023b620001cb565b816040528381526020925086838588010111156200025857600080fd5b600091505b838210156200027c57858201830151818301840152908201906200025d565b838211156200028e5760008385830101525b9695505050505050565b600080600080600060a08688031215620002b157600080fd5b85516001600160401b0380821115620002c957600080fd5b620002d789838a01620001e1565b96506020880151915080821115620002ee57600080fd5b620002fc89838a01620001e1565b955060408801519150808211156200031357600080fd5b6200032189838a01620001e1565b945060608801519150808211156200033857600080fd5b506200034788828901620001e1565b925050608086015190509295509295909350565b600181811c908216806200037057607f821691505b6020821081036200039157634e487b7160e01b600052602260045260246000fd5b50919050565b611cbb80620003a76000396000f3fe60806040526004361061021a5760003560e01c80637cb6475911610123578063a22cb465116100ab578063dc53fd921161006f578063dc53fd9214610600578063e985e9c514610616578063f2fde38b1461065f578063f8e76cc01461067f578063f91798b11461069f57600080fd5b8063a22cb4651461056d578063a611708e1461058d578063b88d4fde146105ad578063c87b56dd146105cd578063d2cab056146105ed57600080fd5b80638f7b9379116100f25780638f7b9379146104fc57806395d89b41146105115780639abc8320146105265780639ddf7ad31461053b578063a0712d681461055a57600080fd5b80637cb647591461047e5780637d5eaba81461049e57806384c99fb4146104be5780638da5cb5b146104de57600080fd5b806335c6aaf8116101a6578063518302271161017557806351830227146103d35780635d82cf6e146103f35780636352211e1461041357806370a0823114610433578063715018a61461046957600080fd5b806335c6aaf8146103685780633ccfd60b1461037e57806342842e0e146103935780634a999118146103b357600080fd5b8063095ea7b3116101ed578063095ea7b3146102d057806318160ddd146102f05780631c5b64e21461031357806323b872dd1461033357806324ef901e1461035357600080fd5b806301ffc9a71461021f57806302fe53051461025457806306fdde0314610276578063081812fc14610298575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611680565b6106b9565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f36600461169d565b61070b565b005b34801561028257600080fd5b5061028b61074f565b60405161024b9190611767565b3480156102a457600080fd5b506102b86102b336600461177a565b6107dd565b6040516001600160a01b03909116815260200161024b565b3480156102dc57600080fd5b506102746102eb3660046117af565b610821565b3480156102fc57600080fd5b50610305610877565b60405190815260200161024b565b34801561031f57600080fd5b5061027461032e3660046117e9565b61088d565b34801561033f57600080fd5b5061027461034e366004611804565b6108ca565b34801561035f57600080fd5b50610305600581565b34801561037457600080fd5b5061030560075481565b34801561038a57600080fd5b506102746108d5565b34801561039f57600080fd5b506102746103ae366004611804565b6109a1565b3480156103bf57600080fd5b506102746103ce3660046117e9565b6109bc565b3480156103df57600080fd5b50600d5461023f9062010000900460ff1681565b3480156103ff57600080fd5b5061027461040e36600461177a565b610a00565b34801561041f57600080fd5b506102b861042e36600461177a565b610a2f565b34801561043f57600080fd5b5061030561044e366004611840565b6001600160a01b03166000908152600a602052604090205490565b34801561047557600080fd5b50610274610a3a565b34801561048a57600080fd5b5061027461049936600461177a565b610a70565b3480156104aa57600080fd5b506102746104b936600461177a565b610a9f565b3480156104ca57600080fd5b506102746104d93660046117e9565b610ad5565b3480156104ea57600080fd5b506000546001600160a01b03166102b8565b34801561050857600080fd5b5061028b610b1b565b34801561051d57600080fd5b5061028b610b28565b34801561053257600080fd5b5061028b610b35565b34801561054757600080fd5b50600d5461023f90610100900460ff1681565b61027461056836600461177a565b610b42565b34801561057957600080fd5b5061027461058836600461185b565b610bb5565b34801561059957600080fd5b506102746105a836600461177a565b610c21565b3480156105b957600080fd5b506102746105c83660046118a4565b610c50565b3480156105d957600080fd5b5061028b6105e836600461177a565b610c8a565b6102746105fb366004611980565b610d83565b34801561060c57600080fd5b5061030560065481565b34801561062257600080fd5b5061023f6106313660046119ff565b6001600160a01b039182166000908152600c6020908152604080832093909416825291909152205460ff1690565b34801561066b57600080fd5b5061027461067a366004611840565b610e95565b34801561068b57600080fd5b5061023f61069a36600461177a565b610f2d565b3480156106ab57600080fd5b50600d5461023f9060ff1681565b60006001600160e01b031982166380ac58cd60e01b14806106ea57506001600160e01b03198216635b5e139f60e01b145b8061070557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b0316331461073e5760405162461bcd60e51b815260040161073590611a29565b60405180910390fd5b61074a600483836115d1565b505050565b6002805461075c90611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461078890611a5e565b80156107d55780601f106107aa576101008083540402835291602001916107d5565b820191906000526020600020905b8154815290600101906020018083116107b857829003601f168201915b505050505081565b60006107e882610f2d565b610805576040516333d1c03960e21b815260040160405180910390fd5b506000908152600b60205260409020546001600160a01b031690565b600061082c82610f41565b9050336001600160a01b0382161480159061084e575061084c8133610631565b155b1561086c576040516367d9dca160e11b815260040160405180910390fd5b61074a818484610f9a565b600060016008546108889190611aae565b905090565b6000546001600160a01b031633146108b75760405162461bcd60e51b815260040161073590611a29565b600d805460ff1916911515919091179055565b61074a838383610ff6565b6000546001600160a01b031633146108ff5760405162461bcd60e51b815260040161073590611a29565b6002600154036109515760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610735565b6002600155604051479073f87f7075a4b43428d118c8fbd3a28be2dbefede89082156108fc029083906000818181858888f19350505050158015610999573d6000803e3d6000fd5b505060018055565b61074a83838360405180602001604052806000815250610c50565b6000546001600160a01b031633146109e65760405162461bcd60e51b815260040161073590611a29565b600d80549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314610a2a5760405162461bcd60e51b815260040161073590611a29565b600655565b600061070582610f41565b6000546001600160a01b03163314610a645760405162461bcd60e51b815260040161073590611a29565b610a6e60006111a6565b565b6000546001600160a01b03163314610a9a5760405162461bcd60e51b815260040161073590611a29565b600e55565b6000546001600160a01b03163314610ac95760405162461bcd60e51b815260040161073590611a29565b610ad2816111f6565b50565b6000546001600160a01b03163314610aff5760405162461bcd60e51b815260040161073590611a29565b600d8054911515620100000262ff000019909216919091179055565b6005805461075c90611a5e565b6003805461075c90611a5e565b6004805461075c90611a5e565b6005811115610b6457604051634705bc0960e01b815260040160405180910390fd5b600d5460ff16610b875760405163b7b2409760e01b815260040160405180910390fd5b80600654610b959190611ac5565b341015610ac957604051630ffc028160e31b815260040160405180910390fd5b336000818152600c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314610c4b5760405162461bcd60e51b815260040161073590611a29565b600755565b610c5b848484610ff6565b610c67848484846112f5565b610c84576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610c9582610f2d565b610cb257604051630a14c4b560e41b815260040160405180910390fd5b600d5462010000900460ff16610d525760058054610ccf90611a5e565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfb90611a5e565b8015610d485780601f10610d1d57610100808354040283529160200191610d48565b820191906000526020600020905b815481529060010190602001808311610d2b57829003601f168201915b5050505050610705565b6004610d5d836113f8565b604051602001610d6e929190611b00565b60405160208183030381529060405292915050565b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120610df7908383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506114f992505050565b610e1457604051631e488fb360e31b815260040160405180910390fd5b6005831115610e3657604051634705bc0960e01b815260040160405180910390fd5b600d54610100900460ff16610e5e5760405163cf0ba71f60e01b815260040160405180910390fd5b82600754610e6c9190611ac5565b341015610e8c57604051630ffc028160e31b815260040160405180910390fd5b61074a836111f6565b6000546001600160a01b03163314610ebf5760405162461bcd60e51b815260040161073590611a29565b6001600160a01b038116610f245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610735565b610ad2816111a6565b600080821180156107055750506008541190565b6000610f4c82610f2d565b610f6957604051636f96cda160e11b815260040160405180910390fd5b815b6000818152600960205260409020546001600160a01b031691508115610f915750919050565b60001901610f6b565b6000818152600b602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061100182610f41565b90506000336001600160a01b038316148061102157506110218233610631565b8061103c575033611031846107dd565b6001600160a01b0316145b90508061105c57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b0316826001600160a01b03161461108d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166110b457604051633a954ecd60e21b815260040160405180910390fd5b6110c082600085610f9a565b6001600160a01b038086166000908152600a60209081526040808320805460001901905587841680845281842080546001908101909155888552600990935281842080546001600160a01b0319169091179055908601808352912054909116158015611130575061113081610f2d565b1561115d57600081815260096020526040902080546001600160a01b0319166001600160a01b0385161790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806000036112175760405163b562e8dd60e01b815260040160405180910390fd5b3361123457604051622e076360e81b815260040160405180910390fd5b611a0b8160016008546112479190611aae565b6112519190611ba6565b1115611270576040516340ec7a6360e01b815260040160405180910390fd5b600854336000818152600a602090815260408083208054870190558483526009909152812080546001600160a01b03191690921790915581905b838110156112ed57604051829033906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600191820191016112aa565b506008555050565b60006001600160a01b0384163b156113ec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611339903390899088908890600401611bbe565b6020604051808303816000875af1925050508015611374575060408051601f3d908101601f1916820190925261137191810190611bfb565b60015b6113d2573d8080156113a2576040519150601f19603f3d011682016040523d82523d6000602084013e6113a7565b606091505b5080516000036113ca576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113f0565b5060015b949350505050565b60608160000361141f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611449578061143381611c18565b91506114429050600a83611c47565b9150611423565b60008167ffffffffffffffff8111156114645761146461188e565b6040519080825280601f01601f19166020018201604052801561148e576020820181803683370190505b5090505b84156113f0576114a3600183611aae565b91506114b0600a86611c5b565b6114bb906030611ba6565b60f81b8183815181106114d0576114d0611c6f565b60200101906001600160f81b031916908160001a9053506114f2600a86611c47565b9450611492565b600061150882600e548561150f565b9392505050565b60008261151c8584611525565b14949350505050565b600081815b84518110156115c957600085828151811061154757611547611c6f565b602002602001015190508083116115895760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506115b6565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806115c181611c18565b91505061152a565b509392505050565b8280546115dd90611a5e565b90600052602060002090601f0160209004810192826115ff5760008555611645565b82601f106116185782800160ff19823516178555611645565b82800160010185558215611645579182015b8281111561164557823582559160200191906001019061162a565b50611651929150611655565b5090565b5b808211156116515760008155600101611656565b6001600160e01b031981168114610ad257600080fd5b60006020828403121561169257600080fd5b81356115088161166a565b600080602083850312156116b057600080fd5b823567ffffffffffffffff808211156116c857600080fd5b818501915085601f8301126116dc57600080fd5b8135818111156116eb57600080fd5b8660208285010111156116fd57600080fd5b60209290920196919550909350505050565b60005b8381101561172a578181015183820152602001611712565b83811115610c845750506000910152565b6000815180845261175381602086016020860161170f565b601f01601f19169290920160200192915050565b602081526000611508602083018461173b565b60006020828403121561178c57600080fd5b5035919050565b80356001600160a01b03811681146117aa57600080fd5b919050565b600080604083850312156117c257600080fd5b6117cb83611793565b946020939093013593505050565b803580151581146117aa57600080fd5b6000602082840312156117fb57600080fd5b611508826117d9565b60008060006060848603121561181957600080fd5b61182284611793565b925061183060208501611793565b9150604084013590509250925092565b60006020828403121561185257600080fd5b61150882611793565b6000806040838503121561186e57600080fd5b61187783611793565b9150611885602084016117d9565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156118ba57600080fd5b6118c385611793565b93506118d160208601611793565b925060408501359150606085013567ffffffffffffffff808211156118f557600080fd5b818701915087601f83011261190957600080fd5b81358181111561191b5761191b61188e565b604051601f8201601f19908116603f011681019083821181831017156119435761194361188e565b816040528281528a602084870101111561195c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561199557600080fd5b83359250602084013567ffffffffffffffff808211156119b457600080fd5b818601915086601f8301126119c857600080fd5b8135818111156119d757600080fd5b8760208260051b85010111156119ec57600080fd5b6020830194508093505050509250925092565b60008060408385031215611a1257600080fd5b611a1b83611793565b915061188560208401611793565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680611a7257607f821691505b602082108103611a9257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611ac057611ac0611a98565b500390565b6000816000190483118215151615611adf57611adf611a98565b500290565b60008151611af681856020860161170f565b9290920192915050565b600080845481600182811c915080831680611b1c57607f831692505b60208084108203611b3b57634e487b7160e01b86526022600452602486fd5b818015611b4f5760018114611b6057611b8d565b60ff19861689528489019650611b8d565b60008b81526020902060005b86811015611b855781548b820152908501908301611b6c565b505084890196505b505050505050611b9d8185611ae4565b95945050505050565b60008219821115611bb957611bb9611a98565b500190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611bf19083018461173b565b9695505050505050565b600060208284031215611c0d57600080fd5b81516115088161166a565b600060018201611c2a57611c2a611a98565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611c5657611c56611c31565b500490565b600082611c6a57611c6a611c31565b500690565b634e487b7160e01b600052603260045260246000fdfea26469706673582212207333abcc43f9a18e4913a5f7c93bd6b52dd91d8611b545589b1f1a3d9b04311e64736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001607a5b3bb606f83d94ea829bca92fbd402bc538300a251d15928e52e5c4e37638b00000000000000000000000000000000000000000000000000000000000000094f677265576f726c64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094f677265576f726c640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f687474703a2f2f626173652d7572690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6f677265776f726c642e6d7970696e6174612e636c6f75642f697066732f516d663344734c6e6763736f356a4c65794e67644c56514e4e464e6850413738696f6838663935685854696f3372000000000000000000000000

Deployed Bytecode

0x60806040526004361061021a5760003560e01c80637cb6475911610123578063a22cb465116100ab578063dc53fd921161006f578063dc53fd9214610600578063e985e9c514610616578063f2fde38b1461065f578063f8e76cc01461067f578063f91798b11461069f57600080fd5b8063a22cb4651461056d578063a611708e1461058d578063b88d4fde146105ad578063c87b56dd146105cd578063d2cab056146105ed57600080fd5b80638f7b9379116100f25780638f7b9379146104fc57806395d89b41146105115780639abc8320146105265780639ddf7ad31461053b578063a0712d681461055a57600080fd5b80637cb647591461047e5780637d5eaba81461049e57806384c99fb4146104be5780638da5cb5b146104de57600080fd5b806335c6aaf8116101a6578063518302271161017557806351830227146103d35780635d82cf6e146103f35780636352211e1461041357806370a0823114610433578063715018a61461046957600080fd5b806335c6aaf8146103685780633ccfd60b1461037e57806342842e0e146103935780634a999118146103b357600080fd5b8063095ea7b3116101ed578063095ea7b3146102d057806318160ddd146102f05780631c5b64e21461031357806323b872dd1461033357806324ef901e1461035357600080fd5b806301ffc9a71461021f57806302fe53051461025457806306fdde0314610276578063081812fc14610298575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611680565b6106b9565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f36600461169d565b61070b565b005b34801561028257600080fd5b5061028b61074f565b60405161024b9190611767565b3480156102a457600080fd5b506102b86102b336600461177a565b6107dd565b6040516001600160a01b03909116815260200161024b565b3480156102dc57600080fd5b506102746102eb3660046117af565b610821565b3480156102fc57600080fd5b50610305610877565b60405190815260200161024b565b34801561031f57600080fd5b5061027461032e3660046117e9565b61088d565b34801561033f57600080fd5b5061027461034e366004611804565b6108ca565b34801561035f57600080fd5b50610305600581565b34801561037457600080fd5b5061030560075481565b34801561038a57600080fd5b506102746108d5565b34801561039f57600080fd5b506102746103ae366004611804565b6109a1565b3480156103bf57600080fd5b506102746103ce3660046117e9565b6109bc565b3480156103df57600080fd5b50600d5461023f9062010000900460ff1681565b3480156103ff57600080fd5b5061027461040e36600461177a565b610a00565b34801561041f57600080fd5b506102b861042e36600461177a565b610a2f565b34801561043f57600080fd5b5061030561044e366004611840565b6001600160a01b03166000908152600a602052604090205490565b34801561047557600080fd5b50610274610a3a565b34801561048a57600080fd5b5061027461049936600461177a565b610a70565b3480156104aa57600080fd5b506102746104b936600461177a565b610a9f565b3480156104ca57600080fd5b506102746104d93660046117e9565b610ad5565b3480156104ea57600080fd5b506000546001600160a01b03166102b8565b34801561050857600080fd5b5061028b610b1b565b34801561051d57600080fd5b5061028b610b28565b34801561053257600080fd5b5061028b610b35565b34801561054757600080fd5b50600d5461023f90610100900460ff1681565b61027461056836600461177a565b610b42565b34801561057957600080fd5b5061027461058836600461185b565b610bb5565b34801561059957600080fd5b506102746105a836600461177a565b610c21565b3480156105b957600080fd5b506102746105c83660046118a4565b610c50565b3480156105d957600080fd5b5061028b6105e836600461177a565b610c8a565b6102746105fb366004611980565b610d83565b34801561060c57600080fd5b5061030560065481565b34801561062257600080fd5b5061023f6106313660046119ff565b6001600160a01b039182166000908152600c6020908152604080832093909416825291909152205460ff1690565b34801561066b57600080fd5b5061027461067a366004611840565b610e95565b34801561068b57600080fd5b5061023f61069a36600461177a565b610f2d565b3480156106ab57600080fd5b50600d5461023f9060ff1681565b60006001600160e01b031982166380ac58cd60e01b14806106ea57506001600160e01b03198216635b5e139f60e01b145b8061070557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b0316331461073e5760405162461bcd60e51b815260040161073590611a29565b60405180910390fd5b61074a600483836115d1565b505050565b6002805461075c90611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461078890611a5e565b80156107d55780601f106107aa576101008083540402835291602001916107d5565b820191906000526020600020905b8154815290600101906020018083116107b857829003601f168201915b505050505081565b60006107e882610f2d565b610805576040516333d1c03960e21b815260040160405180910390fd5b506000908152600b60205260409020546001600160a01b031690565b600061082c82610f41565b9050336001600160a01b0382161480159061084e575061084c8133610631565b155b1561086c576040516367d9dca160e11b815260040160405180910390fd5b61074a818484610f9a565b600060016008546108889190611aae565b905090565b6000546001600160a01b031633146108b75760405162461bcd60e51b815260040161073590611a29565b600d805460ff1916911515919091179055565b61074a838383610ff6565b6000546001600160a01b031633146108ff5760405162461bcd60e51b815260040161073590611a29565b6002600154036109515760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610735565b6002600155604051479073f87f7075a4b43428d118c8fbd3a28be2dbefede89082156108fc029083906000818181858888f19350505050158015610999573d6000803e3d6000fd5b505060018055565b61074a83838360405180602001604052806000815250610c50565b6000546001600160a01b031633146109e65760405162461bcd60e51b815260040161073590611a29565b600d80549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314610a2a5760405162461bcd60e51b815260040161073590611a29565b600655565b600061070582610f41565b6000546001600160a01b03163314610a645760405162461bcd60e51b815260040161073590611a29565b610a6e60006111a6565b565b6000546001600160a01b03163314610a9a5760405162461bcd60e51b815260040161073590611a29565b600e55565b6000546001600160a01b03163314610ac95760405162461bcd60e51b815260040161073590611a29565b610ad2816111f6565b50565b6000546001600160a01b03163314610aff5760405162461bcd60e51b815260040161073590611a29565b600d8054911515620100000262ff000019909216919091179055565b6005805461075c90611a5e565b6003805461075c90611a5e565b6004805461075c90611a5e565b6005811115610b6457604051634705bc0960e01b815260040160405180910390fd5b600d5460ff16610b875760405163b7b2409760e01b815260040160405180910390fd5b80600654610b959190611ac5565b341015610ac957604051630ffc028160e31b815260040160405180910390fd5b336000818152600c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314610c4b5760405162461bcd60e51b815260040161073590611a29565b600755565b610c5b848484610ff6565b610c67848484846112f5565b610c84576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610c9582610f2d565b610cb257604051630a14c4b560e41b815260040160405180910390fd5b600d5462010000900460ff16610d525760058054610ccf90611a5e565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfb90611a5e565b8015610d485780601f10610d1d57610100808354040283529160200191610d48565b820191906000526020600020905b815481529060010190602001808311610d2b57829003601f168201915b5050505050610705565b6004610d5d836113f8565b604051602001610d6e929190611b00565b60405160208183030381529060405292915050565b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120610df7908383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506114f992505050565b610e1457604051631e488fb360e31b815260040160405180910390fd5b6005831115610e3657604051634705bc0960e01b815260040160405180910390fd5b600d54610100900460ff16610e5e5760405163cf0ba71f60e01b815260040160405180910390fd5b82600754610e6c9190611ac5565b341015610e8c57604051630ffc028160e31b815260040160405180910390fd5b61074a836111f6565b6000546001600160a01b03163314610ebf5760405162461bcd60e51b815260040161073590611a29565b6001600160a01b038116610f245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610735565b610ad2816111a6565b600080821180156107055750506008541190565b6000610f4c82610f2d565b610f6957604051636f96cda160e11b815260040160405180910390fd5b815b6000818152600960205260409020546001600160a01b031691508115610f915750919050565b60001901610f6b565b6000818152600b602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061100182610f41565b90506000336001600160a01b038316148061102157506110218233610631565b8061103c575033611031846107dd565b6001600160a01b0316145b90508061105c57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b0316826001600160a01b03161461108d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166110b457604051633a954ecd60e21b815260040160405180910390fd5b6110c082600085610f9a565b6001600160a01b038086166000908152600a60209081526040808320805460001901905587841680845281842080546001908101909155888552600990935281842080546001600160a01b0319169091179055908601808352912054909116158015611130575061113081610f2d565b1561115d57600081815260096020526040902080546001600160a01b0319166001600160a01b0385161790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806000036112175760405163b562e8dd60e01b815260040160405180910390fd5b3361123457604051622e076360e81b815260040160405180910390fd5b611a0b8160016008546112479190611aae565b6112519190611ba6565b1115611270576040516340ec7a6360e01b815260040160405180910390fd5b600854336000818152600a602090815260408083208054870190558483526009909152812080546001600160a01b03191690921790915581905b838110156112ed57604051829033906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600191820191016112aa565b506008555050565b60006001600160a01b0384163b156113ec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611339903390899088908890600401611bbe565b6020604051808303816000875af1925050508015611374575060408051601f3d908101601f1916820190925261137191810190611bfb565b60015b6113d2573d8080156113a2576040519150601f19603f3d011682016040523d82523d6000602084013e6113a7565b606091505b5080516000036113ca576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506113f0565b5060015b949350505050565b60608160000361141f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611449578061143381611c18565b91506114429050600a83611c47565b9150611423565b60008167ffffffffffffffff8111156114645761146461188e565b6040519080825280601f01601f19166020018201604052801561148e576020820181803683370190505b5090505b84156113f0576114a3600183611aae565b91506114b0600a86611c5b565b6114bb906030611ba6565b60f81b8183815181106114d0576114d0611c6f565b60200101906001600160f81b031916908160001a9053506114f2600a86611c47565b9450611492565b600061150882600e548561150f565b9392505050565b60008261151c8584611525565b14949350505050565b600081815b84518110156115c957600085828151811061154757611547611c6f565b602002602001015190508083116115895760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506115b6565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806115c181611c18565b91505061152a565b509392505050565b8280546115dd90611a5e565b90600052602060002090601f0160209004810192826115ff5760008555611645565b82601f106116185782800160ff19823516178555611645565b82800160010185558215611645579182015b8281111561164557823582559160200191906001019061162a565b50611651929150611655565b5090565b5b808211156116515760008155600101611656565b6001600160e01b031981168114610ad257600080fd5b60006020828403121561169257600080fd5b81356115088161166a565b600080602083850312156116b057600080fd5b823567ffffffffffffffff808211156116c857600080fd5b818501915085601f8301126116dc57600080fd5b8135818111156116eb57600080fd5b8660208285010111156116fd57600080fd5b60209290920196919550909350505050565b60005b8381101561172a578181015183820152602001611712565b83811115610c845750506000910152565b6000815180845261175381602086016020860161170f565b601f01601f19169290920160200192915050565b602081526000611508602083018461173b565b60006020828403121561178c57600080fd5b5035919050565b80356001600160a01b03811681146117aa57600080fd5b919050565b600080604083850312156117c257600080fd5b6117cb83611793565b946020939093013593505050565b803580151581146117aa57600080fd5b6000602082840312156117fb57600080fd5b611508826117d9565b60008060006060848603121561181957600080fd5b61182284611793565b925061183060208501611793565b9150604084013590509250925092565b60006020828403121561185257600080fd5b61150882611793565b6000806040838503121561186e57600080fd5b61187783611793565b9150611885602084016117d9565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156118ba57600080fd5b6118c385611793565b93506118d160208601611793565b925060408501359150606085013567ffffffffffffffff808211156118f557600080fd5b818701915087601f83011261190957600080fd5b81358181111561191b5761191b61188e565b604051601f8201601f19908116603f011681019083821181831017156119435761194361188e565b816040528281528a602084870101111561195c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561199557600080fd5b83359250602084013567ffffffffffffffff808211156119b457600080fd5b818601915086601f8301126119c857600080fd5b8135818111156119d757600080fd5b8760208260051b85010111156119ec57600080fd5b6020830194508093505050509250925092565b60008060408385031215611a1257600080fd5b611a1b83611793565b915061188560208401611793565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680611a7257607f821691505b602082108103611a9257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611ac057611ac0611a98565b500390565b6000816000190483118215151615611adf57611adf611a98565b500290565b60008151611af681856020860161170f565b9290920192915050565b600080845481600182811c915080831680611b1c57607f831692505b60208084108203611b3b57634e487b7160e01b86526022600452602486fd5b818015611b4f5760018114611b6057611b8d565b60ff19861689528489019650611b8d565b60008b81526020902060005b86811015611b855781548b820152908501908301611b6c565b505084890196505b505050505050611b9d8185611ae4565b95945050505050565b60008219821115611bb957611bb9611a98565b500190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611bf19083018461173b565b9695505050505050565b600060208284031215611c0d57600080fd5b81516115088161166a565b600060018201611c2a57611c2a611a98565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611c5657611c56611c31565b500490565b600082611c6a57611c6a611c31565b500690565b634e487b7160e01b600052603260045260246000fdfea26469706673582212207333abcc43f9a18e4913a5f7c93bd6b52dd91d8611b545589b1f1a3d9b04311e64736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001607a5b3bb606f83d94ea829bca92fbd402bc538300a251d15928e52e5c4e37638b00000000000000000000000000000000000000000000000000000000000000094f677265576f726c64000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000094f677265576f726c640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f687474703a2f2f626173652d7572690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f6f677265776f726c642e6d7970696e6174612e636c6f75642f697066732f516d663344734c6e6763736f356a4c65794e67644c56514e4e464e6850413738696f6838663935685854696f3372000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): OgreWorld
Arg [1] : _symbol (string): OgreWorld
Arg [2] : _baseUri (string): http://base-uri
Arg [3] : _preRevealUri (string): https://ogreworld.mypinata.cloud/ipfs/Qmf3DsLngcso5jLeyNgdLVQNNFNhPA78ioh8f95hXTio3r
Arg [4] : _merkleRoot (bytes32): 0x7a5b3bb606f83d94ea829bca92fbd402bc538300a251d15928e52e5c4e37638b

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 7a5b3bb606f83d94ea829bca92fbd402bc538300a251d15928e52e5c4e37638b
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [6] : 4f677265576f726c640000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 4f677265576f726c640000000000000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [10] : 687474703a2f2f626173652d7572690000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [12] : 68747470733a2f2f6f677265776f726c642e6d7970696e6174612e636c6f7564
Arg [13] : 2f697066732f516d663344734c6e6763736f356a4c65794e67644c56514e4e46
Arg [14] : 4e6850413738696f6838663935685854696f3372000000000000000000000000


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.