ETH Price: $3,466.87 (-1.13%)
Gas: 3 Gwei

Token

Beat Bots (BEATBOTS)
 

Overview

Max Total Supply

237 BEATBOTS

Holders

188

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 BEATBOTS
0x2e1d09928e855ea76dd1cbf129738d530f95ccfa
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:
BeatBots

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 2 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 6 of 14 : 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 7 of 14 : 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 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 9 of 14 : 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 10 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 12 of 14 : 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 13 of 14 : BeatBots.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "./ERC721A.sol";

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
 _______    _______       __  ___________  _______     ______  ___________  ________  
|   _  "\  /"     "|     /""\("     _   ")|   _  "\   /    " \("     _   ")/"       ) 
(. |_)  :)(: ______)    /    \)__/  \\__/ (. |_)  :) // ____  \)__/  \\__/(:   \___/  
|:     \/  \/    |     /' /\  \  \\_ /    |:     \/ /  /    ) :)  \\_ /    \___  \    
(|  _  \\  // ___)_   //  __'  \ |.  |    (|  _  \\(: (____/ //   |.  |     __/  \\   
|: |_)  :)(:      "| /   /  \\  \\:  |    |: |_)  :)\        /    \:  |    /" \   :)  
(_______/  \_______)(___/    \___)\__|    (_______/  \"_____/      \__|   (_______/   
                                                                     
 */

/// @title BeatBots Mint Contract
/// @author GEN3 Studios
contract BeatBots is ERC721A, Ownable, Pausable {
    using Strings for uint256;
    using ECDSA for bytes32;

    string private baseURI;
    bool private _revealed;
    string private _unrevealedBaseURI;
    address private treasury;

    // General Mint Settings
    uint256 public MAX_SUPPLY = 3333;
    uint256 public  NFT_PRICE = 0.15 ether;
    uint256 public  MAX_NFT_PER_WALLET = 2;

    // Whitelist Sale Settings
    uint256 public privateSaleMaxSingle = 1; // Only allowed to mint one if in either Basic OR Mech
    uint256 public privateSaleMaxDouble = 2; // Only allowed to mint two if in both Basic AND Mech

    // Sale timings 
    uint256 public presaleWindow = 8 hours;
    uint256 public presaleStartTime = 1652277600; // 11th May 2022 10pm SGT
    uint256 public publicSaleStartTime = 1652306400; // 12th May 2022 6am SGT

    // Off-chain whitelist Variables
    address private signerAddressSingle;
    address private signerAddressDouble;

    mapping(address => uint256) public nftMintCount;

    // Events
    event PrivateMint(address indexed to, uint256 amount);
    event PublicMint(address indexed to, uint256 amount);
    event DevMint(uint256 amount);
    event WithdrawETH(uint256 amountWithdrawn);
    event Revealed(uint256 timestamp);

   
    // -------------------- MODIFIERS --------------------------

    /**
     * @dev Prevent Smart Contracts from calling the functions with this modifier
     */
    modifier onlyEOA() {
        require(msg.sender == tx.origin, "BeatBots: must use EOA");
        _;
    }

    constructor(
        string memory name_,
        string memory symbol_,
        string memory _initBaseURI,
        address _newOwner,
        address _signerAddressSingle,
        address _signerAddressDouble,
        address _treasury
    ) ERC721A(name_, symbol_) {
        _currentIndex = 1; // required for ERC721A since it starts from 0
        setNotRevealedURI(_initBaseURI);
        transferOwnership(_newOwner);
        signerAddressSingle = _signerAddressSingle;
        signerAddressDouble = _signerAddressDouble;
        treasury = _treasury;
    }

    // -------------------- MINT FUNCTIONS --------------------------

    /// @notice Allows owner of smart contract to mint for free
    /// @param _mintAmount a parameter just like in doxygen (must be followed by parameter name)
    function devMint(uint256 _mintAmount) public onlyEOA onlyOwner {
        require(
            totalSupply() + _mintAmount <= MAX_SUPPLY,
            "Beatbots: total mint amount exceeded supply"
        );

        _safeMint(msg.sender, _mintAmount);
        emit DevMint(_mintAmount);
        
    }
    /**
     * @notice Private Mint for users who are only in either Basic OR Mech allowlist
     * @param signature Signature retrieved from backend for Single Allowlist
     * @param nonce Random nonce retrieved from backend for Single Allowlist
     */
    function privateMintSingle(
        bytes memory nonce,
        bytes memory signature
    ) external payable onlyEOA whenNotPaused {
        // Check if user is whitelisted
        require(
            whitelistSignedSingle(msg.sender, nonce, signature),
            "BeatBots: Invalid Signature!"
        );

        // Check if public sale is open
        require(isPrivateSaleOpen(), "BeatBots: Private Sale Closed!");

        // Check if enough ETH is sent
        require(
            msg.value >= NFT_PRICE,
            "BeatBots: Insufficient ETH!"
        );

        // Check if mints exceed MAX_SUPPLY
        require(
            totalSupply() + 1 <= MAX_SUPPLY,
            "BeatBots: Max Supply exceeded!"
        );

        // Check that mints does not exceed max wallet allowance for Basic allowlist
        require(
            nftMintCount[msg.sender] + 1 <=
                privateSaleMaxSingle,
            "BeatBots: Wallet has already minted Max Amount for private sale!"
        );

        nftMintCount[msg.sender] += 1;

        _safeMint(msg.sender, 1);
        emit PrivateMint(msg.sender, 1);
    }

    /**
     * @notice Private Mint for users who are in both Basic and Mech roles
     * @param _mintAmount Amount to mint, users can select 1 or 2
     * @param signature Signature retrieved from backend for Double Allowlist
     * @param nonce Random nonce retrieved from backend for Double Allowlist
     */
    function privateMintDouble(
        uint256 _mintAmount,
        bytes memory nonce,
        bytes memory signature
    ) external payable onlyEOA whenNotPaused {
        // Check if user is whitelisted
        require(
            whitelistSignedDouble(msg.sender, nonce, signature),
            "BeatBots: Invalid Signature!"
        );
        
        // Check if public sale is open
        require(isPrivateSaleOpen(), "BeatBots: Private Sale Closed!");

        // Check if enough ETH is sent
        require(
            msg.value >= _mintAmount * NFT_PRICE,
            "BeatBots: Insufficient ETH!"
        );

        // Check if mints does not exceed MAX_SUPPLY
        require(
            totalSupply() + _mintAmount <= MAX_SUPPLY,
            "BeatBots: Max Supply for Private Sale Reached!"
        );

        // Check that mints does not exceed max wallet allowance for Mech allowlist
        require(
            nftMintCount[msg.sender] + _mintAmount <=
                privateSaleMaxDouble,
            "BeatBots: Wallet has already minted Max Amount for Private Sale!"
        );

        nftMintCount[msg.sender] += _mintAmount;

        _safeMint(msg.sender, _mintAmount);
        emit PrivateMint(msg.sender, _mintAmount);
    }

    /**
     * @notice Public Mint
     * @param _mintAmount Amount that is minted
     */
    function publicMint(uint256 _mintAmount) external payable onlyEOA whenNotPaused{
        // Check if public sale is open
        require(isPublicSaleOpen(), "BeatBots: Public Sale Closed!");

        // Check if enough ETH is sent
        require(
            msg.value >= _mintAmount * NFT_PRICE,
            "BeatBots: Insufficient ETH!"
        );

        // Check if mints does not exceed MAX_SUPPLY
        require(
            totalSupply() + _mintAmount <= MAX_SUPPLY,
            "BeatBots: Max Supply for Public Mint Reached!"
        );

        // Check that mints does not exceed max wallet allowance for public sale
        require(
            nftMintCount[msg.sender] + _mintAmount <= MAX_NFT_PER_WALLET,
            "BeatBots: Wallet has already minted Max Amount for Public Sale"
        );

        nftMintCount[msg.sender] += _mintAmount;

        _safeMint(msg.sender, _mintAmount);
        emit PublicMint(msg.sender, _mintAmount);
    }

    // -------------------- WHITELIST FUNCTION ----------------------

    /**
     * @dev Checks if the the signature is signed by a valid signer for single allowlist
     * @param sender Address of minter
     * @param nonce Random bytes32 nonce
     * @param signature Signature generated off-chain
     */
    function whitelistSignedSingle(
        address sender,
        bytes memory nonce,
        bytes memory signature
    ) private view returns (bool) {
        bytes32 hash = keccak256(abi.encodePacked(sender, nonce));
        return signerAddressSingle == hash.recover(signature);
    }

    /**
     * @dev Checks if the the signature is signed by a valid signer for double allowlist
     * @param sender Address of minter
     * @param nonce Random bytes32 nonce
     * @param signature Signature generated off-chain
     */
    function whitelistSignedDouble(
        address sender,
        bytes memory nonce,
        bytes memory signature
    ) private view returns (bool) {
        bytes32 hash = keccak256(abi.encodePacked(sender, nonce));
        return signerAddressDouble == hash.recover(signature);
    }

    // ---------------------- VIEW FUNCTIONS ------------------------
    /**
     * @dev See {IERC721Metadata-tokenURI}.
     * @dev gets baseURI from contract state variable
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        if (!_revealed) {
            return _unrevealedBaseURI;
        }

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

    /**
     * @notice Check if Private Sale 1 is Open
     */
    function isPrivateSaleOpen() public view returns (bool) {
        return
            block.timestamp >= presaleStartTime &&
            block.timestamp < (presaleStartTime + presaleWindow);
    }

    /**
     * @notice Check if Public Sale is Open
     */
    function isPublicSaleOpen() public view returns (bool) {
        return block.timestamp >= publicSaleStartTime;
    }

    


    // ------------------------- OWNER FUNCTIONS ----------------------------
    /**
     * @notice Set presale start time
     * @param _presaleStartTime New presale start timing 
    */
    function setPresaleTiming(uint256 _presaleStartTime) external onlyOwner {
        presaleStartTime = _presaleStartTime;
    }

    /**
     * @notice Set public sale start time
     * @param _publicSaleStartTime New public sale start timing 
    */
    function setPublicSaleTiming(uint256 _publicSaleStartTime) external onlyOwner {
        publicSaleStartTime = _publicSaleStartTime;
    }

    /**
     * @notice Set presale duration
     * @param _presaleWindow New presale duration 
    */
    function setPresaleWindow(uint256 _presaleWindow) external onlyOwner {
        presaleWindow = _presaleWindow;
    }

    /**
     * @notice Set max supply of collection
     * @param _maxSupply New max supply of the collection 
    */
    function setMaxSupply(uint256 _maxSupply) external onlyOwner {
        require(_maxSupply <= 3333, "Beatbots: Only allowed to reduce max supply");
        MAX_SUPPLY = _maxSupply;
    }

    /**
     * @notice Pauses all minting except devMint
    */
    function pause() public onlyOwner {
        _pause();
    }

    /**
     * @notice Unpauses all minting except devMint
    */
    function unpause() public onlyOwner {
        _unpause();
    }

    /**
     * @dev Set Private Sale maximum amount of mints
     */
    function setSignerAddressSingle(address signer) external onlyOwner {
        signerAddressSingle = signer;
    }

    /**
     * @dev Set Private Sale maximum amount of mints
     */
    function setSignerAddressDouble(address signer) external onlyOwner {
        signerAddressDouble = signer;
    }

    /**
     * @dev Set the unrevealed URI
     * @param newUnrevealedURI unrevealed URI for metadata
     */
    function setNotRevealedURI(string memory newUnrevealedURI)
        public
        onlyOwner
    {
        _unrevealedBaseURI = newUnrevealedURI;
    }

    /**
     * @dev Set Revealed Metadata URI
     */
    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

    /**
     * @notice Set Revealed state of NFT metadata
     */
    function reveal(bool revealed) external onlyOwner {
        _revealed = revealed;
        emit Revealed(block.timestamp);
    }

    /**
    * @notice Set treasury address for withdrawal
    */
    function setTreasury(address _treasury) external onlyOwner {
        treasury = _treasury;
    }

    /**
     * @notice Withdraws ETH from smart contract to treasury
     */
    function withdrawToTreasury() external onlyOwner {
        (bool success, ) = treasury.call{ value: address(this).balance }(""); // returns boolean and data
        require(success, "Beatbots: Withdrawal failed");
        emit WithdrawETH(address(this).balance);
  }
}

File 14 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128).
 */
contract ERC721A is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using Address for address;
    using Strings for uint256;

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

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
    }

    // Compiler will pack the following
    // _currentIndex and _burnCounter into a single 256bit word.

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index)
        public
        view
        override
        returns (uint256)
    {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;

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

            _currentIndex = uint128(updatedIndex);
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

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

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

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

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

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

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

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

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

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try
                IERC721Receiver(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "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":"_initBaseURI","type":"string"},{"internalType":"address","name":"_newOwner","type":"address"},{"internalType":"address","name":"_signerAddressSingle","type":"address"},{"internalType":"address","name":"_signerAddressDouble","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","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"},{"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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DevMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PrivateMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PublicMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountWithdrawn","type":"uint256"}],"name":"WithdrawETH","type":"event"},{"inputs":[],"name":"MAX_NFT_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPrivateSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nftMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"nonce","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"privateMintDouble","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"nonce","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"privateMintSingle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateSaleMaxDouble","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleMaxSingle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"revealed","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleStartTime","type":"uint256"}],"name":"setPresaleTiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleWindow","type":"uint256"}],"name":"setPresaleWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleStartTime","type":"uint256"}],"name":"setPublicSaleTiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSignerAddressDouble","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSignerAddressSingle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","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":"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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawToTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052610d05600c55670214e8348c4f0000600d556002600e556001600f55600260105561708060115563627bc16060125563627c31e06013553480156200004857600080fd5b506040516200369c3803806200369c8339810160408190526200006b9162000443565b86518790879062000084906001906020850190620002b3565b5080516200009a906002906020840190620002b3565b505050620000b7620000b16200013560201b60201c565b62000139565b6007805460ff60a01b19169055600080546001600160801b0319166001179055620000e2856200018b565b620000ed84620001f3565b601480546001600160a01b039485166001600160a01b0319918216179091556015805493851693821693909317909255600b8054919093169116179055506200055c92505050565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b03163314620001da5760405162461bcd60e51b815260206004820181905260248201526000805160206200367c83398151915260448201526064015b60405180910390fd5b8051620001ef90600a906020840190620002b3565b5050565b6007546001600160a01b031633146200023e5760405162461bcd60e51b815260206004820181905260248201526000805160206200367c8339815191526044820152606401620001d1565b6001600160a01b038116620002a55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620001d1565b620002b08162000139565b50565b828054620002c1906200051f565b90600052602060002090601f016020900481019282620002e5576000855562000330565b82601f106200030057805160ff191683800117855562000330565b8280016001018555821562000330579182015b828111156200033057825182559160200191906001019062000313565b506200033e92915062000342565b5090565b5b808211156200033e576000815560010162000343565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200038157600080fd5b81516001600160401b03808211156200039e576200039e62000359565b604051601f8301601f19908116603f01168101908282118183101715620003c957620003c962000359565b81604052838152602092508683858801011115620003e657600080fd5b600091505b838210156200040a5785820183015181830184015290820190620003eb565b838211156200041c5760008385830101525b9695505050505050565b80516001600160a01b03811681146200043e57600080fd5b919050565b600080600080600080600060e0888a0312156200045f57600080fd5b87516001600160401b03808211156200047757600080fd5b620004858b838c016200036f565b985060208a01519150808211156200049c57600080fd5b620004aa8b838c016200036f565b975060408a0151915080821115620004c157600080fd5b50620004d08a828b016200036f565b955050620004e16060890162000426565b9350620004f16080890162000426565b92506200050160a0890162000426565b91506200051160c0890162000426565b905092959891949750929550565b600181811c908216806200053457607f821691505b602082108114156200055657634e487b7160e01b600052602260045260246000fd5b50919050565b613110806200056c6000396000f3fe6080604052600436106102925760003560e01c8063676dd5631161015a578063a82524b2116100c1578063e0d0e3731161007a578063e0d0e3731461076b578063e985e9c514610781578063f0f44260146107ca578063f2c4ce1e146107ea578063f2fde38b1461080a578063fa3f75751461082a57600080fd5b8063a82524b2146106c9578063b88d4fde146106df578063c87b56dd146106ff578063ce8b680c1461071f578063d129c30d14610735578063d7b1b2161461075557600080fd5b80638456cb59116101135780638456cb59146106215780638da5cb5b14610636578063940cd05b1461065457806395d89b41146106745780639ad408cb14610689578063a22cb465146106a957600080fd5b8063676dd5631461058b5780636bb7b1d9146105a15780636f8b44b0146105b757806370a08231146105d7578063715018a6146105f75780637e80c1861461060c57600080fd5b806333ce4721116101fe5780634cd3767c116101b75780634cd3767c146104cc5780634f6ccce7146104ec57806355f804b31461050c5780635c975abb1461052c57806361eb6ff71461054b5780636352211e1461056b57600080fd5b806333ce47211461041757806336e487f81461042a578063375a069a1461044a5780633965ca511461046a5780633f4ba83a1461049757806342842e0e146104ac57600080fd5b80631a6949e3116102505780631a6949e314610380578063231d8e3c1461039857806323b872dd146103ae5780632db11544146103ce5780632f745c59146103e157806332cb6b0c1461040157600080fd5b8062f3be3c1461029757806301ffc9a7146102c157806306fdde03146102e1578063081812fc14610303578063095ea7b31461033b57806318160ddd1461035d575b600080fd5b3480156102a357600080fd5b506102ac61083d565b60405190151581526020015b60405180910390f35b3480156102cd57600080fd5b506102ac6102dc366004612991565b610864565b3480156102ed57600080fd5b506102f66108d1565b6040516102b89190612a0d565b34801561030f57600080fd5b5061032361031e366004612a20565b610963565b6040516001600160a01b0390911681526020016102b8565b34801561034757600080fd5b5061035b610356366004612a55565b6109a7565b005b34801561036957600080fd5b50610372610a35565b6040519081526020016102b8565b34801561038c57600080fd5b506013544210156102ac565b3480156103a457600080fd5b5061037260105481565b3480156103ba57600080fd5b5061035b6103c9366004612a7f565b610a58565b61035b6103dc366004612a20565b610a63565b3480156103ed57600080fd5b506103726103fc366004612a55565b610ca6565b34801561040d57600080fd5b50610372600c5481565b61035b610425366004612b66565b610da2565b34801561043657600080fd5b5061035b610445366004612a20565b61101b565b34801561045657600080fd5b5061035b610465366004612a20565b61104a565b34801561047657600080fd5b50610372610485366004612bc9565b60166020526000908152604090205481565b3480156104a357600080fd5b5061035b61114c565b3480156104b857600080fd5b5061035b6104c7366004612a7f565b611180565b3480156104d857600080fd5b5061035b6104e7366004612a20565b61119b565b3480156104f857600080fd5b50610372610507366004612a20565b6111ca565b34801561051857600080fd5b5061035b610527366004612be4565b611274565b34801561053857600080fd5b50600754600160a01b900460ff166102ac565b34801561055757600080fd5b5061035b610566366004612bc9565b6112b5565b34801561057757600080fd5b50610323610586366004612a20565b611301565b34801561059757600080fd5b50610372600d5481565b3480156105ad57600080fd5b5061037260135481565b3480156105c357600080fd5b5061035b6105d2366004612a20565b611313565b3480156105e357600080fd5b506103726105f2366004612bc9565b6113a8565b34801561060357600080fd5b5061035b6113f6565b34801561061857600080fd5b5061035b61142a565b34801561062d57600080fd5b5061035b611527565b34801561064257600080fd5b506007546001600160a01b0316610323565b34801561066057600080fd5b5061035b61066f366004612c3c565b611559565b34801561068057600080fd5b506102f66115c1565b34801561069557600080fd5b5061035b6106a4366004612bc9565b6115d0565b3480156106b557600080fd5b5061035b6106c4366004612c57565b61161c565b3480156106d557600080fd5b5061037260125481565b3480156106eb57600080fd5b5061035b6106fa366004612c8a565b6116b2565b34801561070b57600080fd5b506102f661071a366004612a20565b6116ec565b34801561072b57600080fd5b5061037260115481565b34801561074157600080fd5b5061035b610750366004612a20565b61180b565b34801561076157600080fd5b50610372600e5481565b34801561077757600080fd5b50610372600f5481565b34801561078d57600080fd5b506102ac61079c366004612cf1565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107d657600080fd5b5061035b6107e5366004612bc9565b61183a565b3480156107f657600080fd5b5061035b610805366004612be4565b611886565b34801561081657600080fd5b5061035b610825366004612bc9565b6118c3565b61035b610838366004612d1b565b61195e565b6000601254421015801561085f575060115460125461085c9190612d9d565b42105b905090565b60006001600160e01b031982166380ac58cd60e01b148061089557506001600160e01b03198216635b5e139f60e01b145b806108b057506001600160e01b0319821663780e9d6360e01b145b806108cb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108e090612db5565b80601f016020809104026020016040519081016040528092919081815260200182805461090c90612db5565b80156109595780601f1061092e57610100808354040283529160200191610959565b820191906000526020600020905b81548152906001019060200180831161093c57829003601f168201915b5050505050905090565b600061096e82611bf6565b61098b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109b282611301565b9050806001600160a01b0316836001600160a01b031614156109e75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610a075750610a05813361079c565b155b15610a25576040516367d9dca160e11b815260040160405180910390fd5b610a30838383611c2a565b505050565b6000546001600160801b03600160801b8204811691811691909103600019011690565b610a30838383611c86565b333214610a8b5760405162461bcd60e51b8152600401610a8290612df0565b60405180910390fd5b600754600160a01b900460ff1615610ab55760405162461bcd60e51b8152600401610a8290612e20565b601354421015610b075760405162461bcd60e51b815260206004820152601d60248201527f42656174426f74733a205075626c69632053616c6520436c6f736564210000006044820152606401610a82565b600d54610b149082612e4a565b341015610b335760405162461bcd60e51b8152600401610a8290612e69565b600c5481610b3f610a35565b610b499190612d9d565b1115610bad5760405162461bcd60e51b815260206004820152602d60248201527f42656174426f74733a204d617820537570706c7920666f72205075626c69632060448201526c4d696e7420526561636865642160981b6064820152608401610a82565b600e5433600090815260166020526040902054610bcb908390612d9d565b1115610c3f5760405162461bcd60e51b815260206004820152603e60248201527f42656174426f74733a2057616c6c65742068617320616c7265616479206d696e60448201527f746564204d617820416d6f756e7420666f72205075626c69632053616c6500006064820152608401610a82565b3360009081526016602052604081208054839290610c5e908490612d9d565b90915550610c6e90503382611ea3565b60405181815233907f748a2986091c2034d6e93b6f44f771a79f0e1d6acd8a60c68c17d4e1e2feaed29060200160405180910390a250565b6000610cb1836113a8565b8210610cd0576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610d9c57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610d485750610d94565b80516001600160a01b031615610d5d57805192505b876001600160a01b0316836001600160a01b03161415610d925786841415610d8b575093506108cb92505050565b6001909301925b505b600101610ce1565b50600080fd5b333214610dc15760405162461bcd60e51b8152600401610a8290612df0565b600754600160a01b900460ff1615610deb5760405162461bcd60e51b8152600401610a8290612e20565b610df6338383611ebd565b610e425760405162461bcd60e51b815260206004820152601c60248201527f42656174426f74733a20496e76616c6964205369676e617475726521000000006044820152606401610a82565b610e4a61083d565b610e965760405162461bcd60e51b815260206004820152601e60248201527f42656174426f74733a20507269766174652053616c6520436c6f7365642100006044820152606401610a82565b600d54341015610eb85760405162461bcd60e51b8152600401610a8290612e69565b600c54610ec3610a35565b610ece906001612d9d565b1115610f1c5760405162461bcd60e51b815260206004820152601e60248201527f42656174426f74733a204d617820537570706c792065786365656465642100006044820152606401610a82565b600f5433600090815260166020526040902054610f3a906001612d9d565b1115610fb0576040805162461bcd60e51b81526020600482015260248101919091527f42656174426f74733a2057616c6c65742068617320616c7265616479206d696e60448201527f746564204d617820416d6f756e7420666f7220707269766174652073616c65216064820152608401610a82565b336000908152601660205260408120805460019290610fd0908490612d9d565b90915550610fe19050336001611ea3565b6040516001815233907f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f95379060200160405180910390a25050565b6007546001600160a01b031633146110455760405162461bcd60e51b8152600401610a8290612ea0565b601355565b3332146110695760405162461bcd60e51b8152600401610a8290612df0565b6007546001600160a01b031633146110935760405162461bcd60e51b8152600401610a8290612ea0565b600c548161109f610a35565b6110a99190612d9d565b111561110b5760405162461bcd60e51b815260206004820152602b60248201527f42656174626f74733a20746f74616c206d696e7420616d6f756e74206578636560448201526a6564656420737570706c7960a81b6064820152608401610a82565b6111153382611ea3565b6040518181527f6dc41da7efc7f0e4ff3cc76df99542e60d74c16e8ec252c7bffb4e83a5dbafce906020015b60405180910390a150565b6007546001600160a01b031633146111765760405162461bcd60e51b8152600401610a8290612ea0565b61117e611f11565b565b610a30838383604051806020016040528060008152506116b2565b6007546001600160a01b031633146111c55760405162461bcd60e51b8152600401610a8290612ea0565b601155565b600080546001600160801b031681805b8281101561125a57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611251578583141561124a5750949350505050565b6001909201915b506001016111da565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b0316331461129e5760405162461bcd60e51b8152600401610a8290612ea0565b80516112b19060089060208401906128e2565b5050565b6007546001600160a01b031633146112df5760405162461bcd60e51b8152600401610a8290612ea0565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b600061130c82611fae565b5192915050565b6007546001600160a01b0316331461133d5760405162461bcd60e51b8152600401610a8290612ea0565b610d058111156113a35760405162461bcd60e51b815260206004820152602b60248201527f42656174626f74733a204f6e6c7920616c6c6f77656420746f2072656475636560448201526a206d617820737570706c7960a81b6064820152608401610a82565b600c55565b60006001600160a01b0382166113d1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b031633146114205760405162461bcd60e51b8152600401610a8290612ea0565b61117e60006120d0565b6007546001600160a01b031633146114545760405162461bcd60e51b8152600401610a8290612ea0565b600b546040516000916001600160a01b03169047908381818185875af1925050503d80600081146114a1576040519150601f19603f3d011682016040523d82523d6000602084013e6114a6565b606091505b50509050806114f75760405162461bcd60e51b815260206004820152601b60248201527f42656174626f74733a205769746864726177616c206661696c656400000000006044820152606401610a82565b6040514781527f94effa14ea3a1ef396fa2fd829336d1597f1d76b548c26bfa2332869706638af90602001611141565b6007546001600160a01b031633146115515760405162461bcd60e51b8152600401610a8290612ea0565b61117e612122565b6007546001600160a01b031633146115835760405162461bcd60e51b8152600401610a8290612ea0565b6009805460ff19168215151790556040514281527f15120e52505e619cbf6c2af910d5cf7f9ee1befa55801b078c33e93880b2d60990602001611141565b6060600280546108e090612db5565b6007546001600160a01b031633146115fa5760405162461bcd60e51b8152600401610a8290612ea0565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0382163314156116465760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116bd848484611c86565b6116c984848484612187565b6116e6576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606116f782611bf6565b61171457604051630a14c4b560e41b815260040160405180910390fd5b60095460ff166117b057600a805461172b90612db5565b80601f016020809104026020016040519081016040528092919081815260200182805461175790612db5565b80156117a45780601f10611779576101008083540402835291602001916117a4565b820191906000526020600020905b81548152906001019060200180831161178757829003601f168201915b50505050509050919050565b600880546117bd90612db5565b151590506117da57604051806020016040528060008152506108cb565b60086117e583612287565b6040516020016117f6929190612ef1565b60405160208183030381529060405292915050565b6007546001600160a01b031633146118355760405162461bcd60e51b8152600401610a8290612ea0565b601255565b6007546001600160a01b031633146118645760405162461bcd60e51b8152600401610a8290612ea0565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146118b05760405162461bcd60e51b8152600401610a8290612ea0565b80516112b190600a9060208401906128e2565b6007546001600160a01b031633146118ed5760405162461bcd60e51b8152600401610a8290612ea0565b6001600160a01b0381166119525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a82565b61195b816120d0565b50565b33321461197d5760405162461bcd60e51b8152600401610a8290612df0565b600754600160a01b900460ff16156119a75760405162461bcd60e51b8152600401610a8290612e20565b6119b2338383612384565b6119fe5760405162461bcd60e51b815260206004820152601c60248201527f42656174426f74733a20496e76616c6964205369676e617475726521000000006044820152606401610a82565b611a0661083d565b611a525760405162461bcd60e51b815260206004820152601e60248201527f42656174426f74733a20507269766174652053616c6520436c6f7365642100006044820152606401610a82565b600d54611a5f9084612e4a565b341015611a7e5760405162461bcd60e51b8152600401610a8290612e69565b600c5483611a8a610a35565b611a949190612d9d565b1115611af95760405162461bcd60e51b815260206004820152602e60248201527f42656174426f74733a204d617820537570706c7920666f72205072697661746560448201526d2053616c6520526561636865642160901b6064820152608401610a82565b60105433600090815260166020526040902054611b17908590612d9d565b1115611b8d576040805162461bcd60e51b81526020600482015260248101919091527f42656174426f74733a2057616c6c65742068617320616c7265616479206d696e60448201527f746564204d617820416d6f756e7420666f7220507269766174652053616c65216064820152608401610a82565b3360009081526016602052604081208054859290611bac908490612d9d565b90915550611bbc90503384611ea3565b60405183815233907f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f95379060200160405180910390a2505050565b600080546001600160801b0316821080156108cb575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611c9182611fae565b80519091506000906001600160a01b0316336001600160a01b03161480611cbf57508151611cbf903361079c565b80611cda575033611ccf84610963565b6001600160a01b0316145b905080611cfa57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611d2f5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611d5657604051633a954ecd60e21b815260040160405180910390fd5b611d666000848460000151611c2a565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611e59576000546001600160801b0316811015611e5957825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6112b18282604051806020016040528060008152506123d8565b6000808484604051602001611ed3929190612fac565b60408051601f1981840301815291905280516020909101209050611ef781846123e5565b6014546001600160a01b0391821691161495945050505050565b600754600160a01b900460ff16611f615760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a82565b6007805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156120b757600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906120b55780516001600160a01b03161561204c579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156120b0579392505050565b61204c565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600754600160a01b900460ff161561214c5760405162461bcd60e51b8152600401610a8290612e20565b6007805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f913390565b60006001600160a01b0384163b1561227b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121cb903390899088908890600401612fe4565b6020604051808303816000875af1925050508015612206575060408051601f3d908101601f1916820190925261220391810190613021565b60015b612261573d808015612234576040519150601f19603f3d011682016040523d82523d6000602084013e612239565b606091505b508051612259576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061227f565b5060015b949350505050565b6060816122ab5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d557806122bf8161303e565b91506122ce9050600a8361306f565b91506122af565b6000816001600160401b038111156122ef576122ef612abb565b6040519080825280601f01601f191660200182016040528015612319576020820181803683370190505b5090505b841561227f5761232e600183613083565b915061233b600a8661309a565b612346906030612d9d565b60f81b81838151811061235b5761235b6130ae565b60200101906001600160f81b031916908160001a90535061237d600a8661306f565b945061231d565b600080848460405160200161239a929190612fac565b60408051601f19818403018152919052805160209091012090506123be81846123e5565b6015546001600160a01b0391821691161495945050505050565b610a308383836001612409565b60008060006123f48585612591565b9150915061240181612601565b509392505050565b6000546001600160801b03166001600160a01b03851661243b57604051622e076360e81b815260040160405180910390fd5b836124595760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561256b5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612541575061253f6000888488612187565b155b1561255f576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016124ea565b50600080546001600160801b0319166001600160801b0392909216919091179055611e9c565b6000808251604114156125c85760208301516040840151606085015160001a6125bc878285856127bc565b945094505050506125fa565b8251604014156125f257602083015160408401516125e78683836128a9565b9350935050506125fa565b506000905060025b9250929050565b6000816004811115612615576126156130c4565b141561261e5750565b6001816004811115612632576126326130c4565b14156126805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a82565b6002816004811115612694576126946130c4565b14156126e25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a82565b60038160048111156126f6576126f66130c4565b141561274f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a82565b6004816004811115612763576127636130c4565b141561195b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a82565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156127f357506000905060036128a0565b8460ff16601b1415801561280b57508460ff16601c14155b1561281c57506000905060046128a0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612870573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612899576000600192509250506128a0565b9150600090505b94509492505050565b6000806001600160ff1b038316816128c660ff86901c601b612d9d565b90506128d4878288856127bc565b935093505050935093915050565b8280546128ee90612db5565b90600052602060002090601f0160209004810192826129105760008555612956565b82601f1061292957805160ff1916838001178555612956565b82800160010185558215612956579182015b8281111561295657825182559160200191906001019061293b565b50612962929150612966565b5090565b5b808211156129625760008155600101612967565b6001600160e01b03198116811461195b57600080fd5b6000602082840312156129a357600080fd5b81356129ae8161297b565b9392505050565b60005b838110156129d05781810151838201526020016129b8565b838111156116e65750506000910152565b600081518084526129f98160208601602086016129b5565b601f01601f19169290920160200192915050565b6020815260006129ae60208301846129e1565b600060208284031215612a3257600080fd5b5035919050565b80356001600160a01b0381168114612a5057600080fd5b919050565b60008060408385031215612a6857600080fd5b612a7183612a39565b946020939093013593505050565b600080600060608486031215612a9457600080fd5b612a9d84612a39565b9250612aab60208501612a39565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612aeb57612aeb612abb565b604051601f8501601f19908116603f01168101908282118183101715612b1357612b13612abb565b81604052809350858152868686011115612b2c57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612b5757600080fd5b6129ae83833560208501612ad1565b60008060408385031215612b7957600080fd5b82356001600160401b0380821115612b9057600080fd5b612b9c86838701612b46565b93506020850135915080821115612bb257600080fd5b50612bbf85828601612b46565b9150509250929050565b600060208284031215612bdb57600080fd5b6129ae82612a39565b600060208284031215612bf657600080fd5b81356001600160401b03811115612c0c57600080fd5b8201601f81018413612c1d57600080fd5b61227f84823560208401612ad1565b80358015158114612a5057600080fd5b600060208284031215612c4e57600080fd5b6129ae82612c2c565b60008060408385031215612c6a57600080fd5b612c7383612a39565b9150612c8160208401612c2c565b90509250929050565b60008060008060808587031215612ca057600080fd5b612ca985612a39565b9350612cb760208601612a39565b92506040850135915060608501356001600160401b03811115612cd957600080fd5b612ce587828801612b46565b91505092959194509250565b60008060408385031215612d0457600080fd5b612d0d83612a39565b9150612c8160208401612a39565b600080600060608486031215612d3057600080fd5b8335925060208401356001600160401b0380821115612d4e57600080fd5b612d5a87838801612b46565b93506040860135915080821115612d7057600080fd5b50612d7d86828701612b46565b9150509250925092565b634e487b7160e01b600052601160045260246000fd5b60008219821115612db057612db0612d87565b500190565b600181811c90821680612dc957607f821691505b60208210811415612dea57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526016908201527542656174426f74733a206d7573742075736520454f4160501b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000816000190483118215151615612e6457612e64612d87565b500290565b6020808252601b908201527f42656174426f74733a20496e73756666696369656e7420455448210000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008151612ee78185602086016129b5565b9290920192915050565b600080845481600182811c915080831680612f0d57607f831692505b6020808410821415612f2d57634e487b7160e01b86526022600452602486fd5b818015612f415760018114612f5257612f7f565b60ff19861689528489019650612f7f565b60008b81526020902060005b86811015612f775781548b820152908501908301612f5e565b505084890196505b505050505050612fa3612f928286612ed5565b64173539b7b760d91b815260050190565b95945050505050565b6bffffffffffffffffffffffff198360601b16815260008251612fd68160148501602087016129b5565b919091016014019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613017908301846129e1565b9695505050505050565b60006020828403121561303357600080fd5b81516129ae8161297b565b600060001982141561305257613052612d87565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261307e5761307e613059565b500490565b60008282101561309557613095612d87565b500390565b6000826130a9576130a9613059565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220480106229e8470a5ef1ac96f97cfa336859855a6293639322ed97404de22730564736f6c634300080b00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000320485a9a46b79ddd2a6858105cc9c0734c234c10000000000000000000000004957d81053224f078015bc487f54b476a905e543000000000000000000000000b2890e0ddc59d6a279808b43eb7c7a229570775a000000000000000000000000fff0ba20b4eb728662812c4794d53d27aa18787800000000000000000000000000000000000000000000000000000000000000094265617420426f74730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000842454154424f5453000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d62317872636f72464854793852325658516368645a51703367375255634e33554a48554a5736753534344b5000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102925760003560e01c8063676dd5631161015a578063a82524b2116100c1578063e0d0e3731161007a578063e0d0e3731461076b578063e985e9c514610781578063f0f44260146107ca578063f2c4ce1e146107ea578063f2fde38b1461080a578063fa3f75751461082a57600080fd5b8063a82524b2146106c9578063b88d4fde146106df578063c87b56dd146106ff578063ce8b680c1461071f578063d129c30d14610735578063d7b1b2161461075557600080fd5b80638456cb59116101135780638456cb59146106215780638da5cb5b14610636578063940cd05b1461065457806395d89b41146106745780639ad408cb14610689578063a22cb465146106a957600080fd5b8063676dd5631461058b5780636bb7b1d9146105a15780636f8b44b0146105b757806370a08231146105d7578063715018a6146105f75780637e80c1861461060c57600080fd5b806333ce4721116101fe5780634cd3767c116101b75780634cd3767c146104cc5780634f6ccce7146104ec57806355f804b31461050c5780635c975abb1461052c57806361eb6ff71461054b5780636352211e1461056b57600080fd5b806333ce47211461041757806336e487f81461042a578063375a069a1461044a5780633965ca511461046a5780633f4ba83a1461049757806342842e0e146104ac57600080fd5b80631a6949e3116102505780631a6949e314610380578063231d8e3c1461039857806323b872dd146103ae5780632db11544146103ce5780632f745c59146103e157806332cb6b0c1461040157600080fd5b8062f3be3c1461029757806301ffc9a7146102c157806306fdde03146102e1578063081812fc14610303578063095ea7b31461033b57806318160ddd1461035d575b600080fd5b3480156102a357600080fd5b506102ac61083d565b60405190151581526020015b60405180910390f35b3480156102cd57600080fd5b506102ac6102dc366004612991565b610864565b3480156102ed57600080fd5b506102f66108d1565b6040516102b89190612a0d565b34801561030f57600080fd5b5061032361031e366004612a20565b610963565b6040516001600160a01b0390911681526020016102b8565b34801561034757600080fd5b5061035b610356366004612a55565b6109a7565b005b34801561036957600080fd5b50610372610a35565b6040519081526020016102b8565b34801561038c57600080fd5b506013544210156102ac565b3480156103a457600080fd5b5061037260105481565b3480156103ba57600080fd5b5061035b6103c9366004612a7f565b610a58565b61035b6103dc366004612a20565b610a63565b3480156103ed57600080fd5b506103726103fc366004612a55565b610ca6565b34801561040d57600080fd5b50610372600c5481565b61035b610425366004612b66565b610da2565b34801561043657600080fd5b5061035b610445366004612a20565b61101b565b34801561045657600080fd5b5061035b610465366004612a20565b61104a565b34801561047657600080fd5b50610372610485366004612bc9565b60166020526000908152604090205481565b3480156104a357600080fd5b5061035b61114c565b3480156104b857600080fd5b5061035b6104c7366004612a7f565b611180565b3480156104d857600080fd5b5061035b6104e7366004612a20565b61119b565b3480156104f857600080fd5b50610372610507366004612a20565b6111ca565b34801561051857600080fd5b5061035b610527366004612be4565b611274565b34801561053857600080fd5b50600754600160a01b900460ff166102ac565b34801561055757600080fd5b5061035b610566366004612bc9565b6112b5565b34801561057757600080fd5b50610323610586366004612a20565b611301565b34801561059757600080fd5b50610372600d5481565b3480156105ad57600080fd5b5061037260135481565b3480156105c357600080fd5b5061035b6105d2366004612a20565b611313565b3480156105e357600080fd5b506103726105f2366004612bc9565b6113a8565b34801561060357600080fd5b5061035b6113f6565b34801561061857600080fd5b5061035b61142a565b34801561062d57600080fd5b5061035b611527565b34801561064257600080fd5b506007546001600160a01b0316610323565b34801561066057600080fd5b5061035b61066f366004612c3c565b611559565b34801561068057600080fd5b506102f66115c1565b34801561069557600080fd5b5061035b6106a4366004612bc9565b6115d0565b3480156106b557600080fd5b5061035b6106c4366004612c57565b61161c565b3480156106d557600080fd5b5061037260125481565b3480156106eb57600080fd5b5061035b6106fa366004612c8a565b6116b2565b34801561070b57600080fd5b506102f661071a366004612a20565b6116ec565b34801561072b57600080fd5b5061037260115481565b34801561074157600080fd5b5061035b610750366004612a20565b61180b565b34801561076157600080fd5b50610372600e5481565b34801561077757600080fd5b50610372600f5481565b34801561078d57600080fd5b506102ac61079c366004612cf1565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107d657600080fd5b5061035b6107e5366004612bc9565b61183a565b3480156107f657600080fd5b5061035b610805366004612be4565b611886565b34801561081657600080fd5b5061035b610825366004612bc9565b6118c3565b61035b610838366004612d1b565b61195e565b6000601254421015801561085f575060115460125461085c9190612d9d565b42105b905090565b60006001600160e01b031982166380ac58cd60e01b148061089557506001600160e01b03198216635b5e139f60e01b145b806108b057506001600160e01b0319821663780e9d6360e01b145b806108cb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108e090612db5565b80601f016020809104026020016040519081016040528092919081815260200182805461090c90612db5565b80156109595780601f1061092e57610100808354040283529160200191610959565b820191906000526020600020905b81548152906001019060200180831161093c57829003601f168201915b5050505050905090565b600061096e82611bf6565b61098b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109b282611301565b9050806001600160a01b0316836001600160a01b031614156109e75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610a075750610a05813361079c565b155b15610a25576040516367d9dca160e11b815260040160405180910390fd5b610a30838383611c2a565b505050565b6000546001600160801b03600160801b8204811691811691909103600019011690565b610a30838383611c86565b333214610a8b5760405162461bcd60e51b8152600401610a8290612df0565b60405180910390fd5b600754600160a01b900460ff1615610ab55760405162461bcd60e51b8152600401610a8290612e20565b601354421015610b075760405162461bcd60e51b815260206004820152601d60248201527f42656174426f74733a205075626c69632053616c6520436c6f736564210000006044820152606401610a82565b600d54610b149082612e4a565b341015610b335760405162461bcd60e51b8152600401610a8290612e69565b600c5481610b3f610a35565b610b499190612d9d565b1115610bad5760405162461bcd60e51b815260206004820152602d60248201527f42656174426f74733a204d617820537570706c7920666f72205075626c69632060448201526c4d696e7420526561636865642160981b6064820152608401610a82565b600e5433600090815260166020526040902054610bcb908390612d9d565b1115610c3f5760405162461bcd60e51b815260206004820152603e60248201527f42656174426f74733a2057616c6c65742068617320616c7265616479206d696e60448201527f746564204d617820416d6f756e7420666f72205075626c69632053616c6500006064820152608401610a82565b3360009081526016602052604081208054839290610c5e908490612d9d565b90915550610c6e90503382611ea3565b60405181815233907f748a2986091c2034d6e93b6f44f771a79f0e1d6acd8a60c68c17d4e1e2feaed29060200160405180910390a250565b6000610cb1836113a8565b8210610cd0576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610d9c57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610d485750610d94565b80516001600160a01b031615610d5d57805192505b876001600160a01b0316836001600160a01b03161415610d925786841415610d8b575093506108cb92505050565b6001909301925b505b600101610ce1565b50600080fd5b333214610dc15760405162461bcd60e51b8152600401610a8290612df0565b600754600160a01b900460ff1615610deb5760405162461bcd60e51b8152600401610a8290612e20565b610df6338383611ebd565b610e425760405162461bcd60e51b815260206004820152601c60248201527f42656174426f74733a20496e76616c6964205369676e617475726521000000006044820152606401610a82565b610e4a61083d565b610e965760405162461bcd60e51b815260206004820152601e60248201527f42656174426f74733a20507269766174652053616c6520436c6f7365642100006044820152606401610a82565b600d54341015610eb85760405162461bcd60e51b8152600401610a8290612e69565b600c54610ec3610a35565b610ece906001612d9d565b1115610f1c5760405162461bcd60e51b815260206004820152601e60248201527f42656174426f74733a204d617820537570706c792065786365656465642100006044820152606401610a82565b600f5433600090815260166020526040902054610f3a906001612d9d565b1115610fb0576040805162461bcd60e51b81526020600482015260248101919091527f42656174426f74733a2057616c6c65742068617320616c7265616479206d696e60448201527f746564204d617820416d6f756e7420666f7220707269766174652073616c65216064820152608401610a82565b336000908152601660205260408120805460019290610fd0908490612d9d565b90915550610fe19050336001611ea3565b6040516001815233907f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f95379060200160405180910390a25050565b6007546001600160a01b031633146110455760405162461bcd60e51b8152600401610a8290612ea0565b601355565b3332146110695760405162461bcd60e51b8152600401610a8290612df0565b6007546001600160a01b031633146110935760405162461bcd60e51b8152600401610a8290612ea0565b600c548161109f610a35565b6110a99190612d9d565b111561110b5760405162461bcd60e51b815260206004820152602b60248201527f42656174626f74733a20746f74616c206d696e7420616d6f756e74206578636560448201526a6564656420737570706c7960a81b6064820152608401610a82565b6111153382611ea3565b6040518181527f6dc41da7efc7f0e4ff3cc76df99542e60d74c16e8ec252c7bffb4e83a5dbafce906020015b60405180910390a150565b6007546001600160a01b031633146111765760405162461bcd60e51b8152600401610a8290612ea0565b61117e611f11565b565b610a30838383604051806020016040528060008152506116b2565b6007546001600160a01b031633146111c55760405162461bcd60e51b8152600401610a8290612ea0565b601155565b600080546001600160801b031681805b8281101561125a57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611251578583141561124a5750949350505050565b6001909201915b506001016111da565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b0316331461129e5760405162461bcd60e51b8152600401610a8290612ea0565b80516112b19060089060208401906128e2565b5050565b6007546001600160a01b031633146112df5760405162461bcd60e51b8152600401610a8290612ea0565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b600061130c82611fae565b5192915050565b6007546001600160a01b0316331461133d5760405162461bcd60e51b8152600401610a8290612ea0565b610d058111156113a35760405162461bcd60e51b815260206004820152602b60248201527f42656174626f74733a204f6e6c7920616c6c6f77656420746f2072656475636560448201526a206d617820737570706c7960a81b6064820152608401610a82565b600c55565b60006001600160a01b0382166113d1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b031633146114205760405162461bcd60e51b8152600401610a8290612ea0565b61117e60006120d0565b6007546001600160a01b031633146114545760405162461bcd60e51b8152600401610a8290612ea0565b600b546040516000916001600160a01b03169047908381818185875af1925050503d80600081146114a1576040519150601f19603f3d011682016040523d82523d6000602084013e6114a6565b606091505b50509050806114f75760405162461bcd60e51b815260206004820152601b60248201527f42656174626f74733a205769746864726177616c206661696c656400000000006044820152606401610a82565b6040514781527f94effa14ea3a1ef396fa2fd829336d1597f1d76b548c26bfa2332869706638af90602001611141565b6007546001600160a01b031633146115515760405162461bcd60e51b8152600401610a8290612ea0565b61117e612122565b6007546001600160a01b031633146115835760405162461bcd60e51b8152600401610a8290612ea0565b6009805460ff19168215151790556040514281527f15120e52505e619cbf6c2af910d5cf7f9ee1befa55801b078c33e93880b2d60990602001611141565b6060600280546108e090612db5565b6007546001600160a01b031633146115fa5760405162461bcd60e51b8152600401610a8290612ea0565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0382163314156116465760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116bd848484611c86565b6116c984848484612187565b6116e6576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606116f782611bf6565b61171457604051630a14c4b560e41b815260040160405180910390fd5b60095460ff166117b057600a805461172b90612db5565b80601f016020809104026020016040519081016040528092919081815260200182805461175790612db5565b80156117a45780601f10611779576101008083540402835291602001916117a4565b820191906000526020600020905b81548152906001019060200180831161178757829003601f168201915b50505050509050919050565b600880546117bd90612db5565b151590506117da57604051806020016040528060008152506108cb565b60086117e583612287565b6040516020016117f6929190612ef1565b60405160208183030381529060405292915050565b6007546001600160a01b031633146118355760405162461bcd60e51b8152600401610a8290612ea0565b601255565b6007546001600160a01b031633146118645760405162461bcd60e51b8152600401610a8290612ea0565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146118b05760405162461bcd60e51b8152600401610a8290612ea0565b80516112b190600a9060208401906128e2565b6007546001600160a01b031633146118ed5760405162461bcd60e51b8152600401610a8290612ea0565b6001600160a01b0381166119525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a82565b61195b816120d0565b50565b33321461197d5760405162461bcd60e51b8152600401610a8290612df0565b600754600160a01b900460ff16156119a75760405162461bcd60e51b8152600401610a8290612e20565b6119b2338383612384565b6119fe5760405162461bcd60e51b815260206004820152601c60248201527f42656174426f74733a20496e76616c6964205369676e617475726521000000006044820152606401610a82565b611a0661083d565b611a525760405162461bcd60e51b815260206004820152601e60248201527f42656174426f74733a20507269766174652053616c6520436c6f7365642100006044820152606401610a82565b600d54611a5f9084612e4a565b341015611a7e5760405162461bcd60e51b8152600401610a8290612e69565b600c5483611a8a610a35565b611a949190612d9d565b1115611af95760405162461bcd60e51b815260206004820152602e60248201527f42656174426f74733a204d617820537570706c7920666f72205072697661746560448201526d2053616c6520526561636865642160901b6064820152608401610a82565b60105433600090815260166020526040902054611b17908590612d9d565b1115611b8d576040805162461bcd60e51b81526020600482015260248101919091527f42656174426f74733a2057616c6c65742068617320616c7265616479206d696e60448201527f746564204d617820416d6f756e7420666f7220507269766174652053616c65216064820152608401610a82565b3360009081526016602052604081208054859290611bac908490612d9d565b90915550611bbc90503384611ea3565b60405183815233907f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f95379060200160405180910390a2505050565b600080546001600160801b0316821080156108cb575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611c9182611fae565b80519091506000906001600160a01b0316336001600160a01b03161480611cbf57508151611cbf903361079c565b80611cda575033611ccf84610963565b6001600160a01b0316145b905080611cfa57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611d2f5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611d5657604051633a954ecd60e21b815260040160405180910390fd5b611d666000848460000151611c2a565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611e59576000546001600160801b0316811015611e5957825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6112b18282604051806020016040528060008152506123d8565b6000808484604051602001611ed3929190612fac565b60408051601f1981840301815291905280516020909101209050611ef781846123e5565b6014546001600160a01b0391821691161495945050505050565b600754600160a01b900460ff16611f615760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a82565b6007805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60408051606081018252600080825260208201819052918101829052905482906001600160801b03168110156120b757600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906120b55780516001600160a01b03161561204c579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156120b0579392505050565b61204c565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600754600160a01b900460ff161561214c5760405162461bcd60e51b8152600401610a8290612e20565b6007805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f913390565b60006001600160a01b0384163b1561227b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121cb903390899088908890600401612fe4565b6020604051808303816000875af1925050508015612206575060408051601f3d908101601f1916820190925261220391810190613021565b60015b612261573d808015612234576040519150601f19603f3d011682016040523d82523d6000602084013e612239565b606091505b508051612259576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061227f565b5060015b949350505050565b6060816122ab5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d557806122bf8161303e565b91506122ce9050600a8361306f565b91506122af565b6000816001600160401b038111156122ef576122ef612abb565b6040519080825280601f01601f191660200182016040528015612319576020820181803683370190505b5090505b841561227f5761232e600183613083565b915061233b600a8661309a565b612346906030612d9d565b60f81b81838151811061235b5761235b6130ae565b60200101906001600160f81b031916908160001a90535061237d600a8661306f565b945061231d565b600080848460405160200161239a929190612fac565b60408051601f19818403018152919052805160209091012090506123be81846123e5565b6015546001600160a01b0391821691161495945050505050565b610a308383836001612409565b60008060006123f48585612591565b9150915061240181612601565b509392505050565b6000546001600160801b03166001600160a01b03851661243b57604051622e076360e81b815260040160405180910390fd5b836124595760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561256b5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612541575061253f6000888488612187565b155b1561255f576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016124ea565b50600080546001600160801b0319166001600160801b0392909216919091179055611e9c565b6000808251604114156125c85760208301516040840151606085015160001a6125bc878285856127bc565b945094505050506125fa565b8251604014156125f257602083015160408401516125e78683836128a9565b9350935050506125fa565b506000905060025b9250929050565b6000816004811115612615576126156130c4565b141561261e5750565b6001816004811115612632576126326130c4565b14156126805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a82565b6002816004811115612694576126946130c4565b14156126e25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a82565b60038160048111156126f6576126f66130c4565b141561274f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a82565b6004816004811115612763576127636130c4565b141561195b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a82565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156127f357506000905060036128a0565b8460ff16601b1415801561280b57508460ff16601c14155b1561281c57506000905060046128a0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612870573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612899576000600192509250506128a0565b9150600090505b94509492505050565b6000806001600160ff1b038316816128c660ff86901c601b612d9d565b90506128d4878288856127bc565b935093505050935093915050565b8280546128ee90612db5565b90600052602060002090601f0160209004810192826129105760008555612956565b82601f1061292957805160ff1916838001178555612956565b82800160010185558215612956579182015b8281111561295657825182559160200191906001019061293b565b50612962929150612966565b5090565b5b808211156129625760008155600101612967565b6001600160e01b03198116811461195b57600080fd5b6000602082840312156129a357600080fd5b81356129ae8161297b565b9392505050565b60005b838110156129d05781810151838201526020016129b8565b838111156116e65750506000910152565b600081518084526129f98160208601602086016129b5565b601f01601f19169290920160200192915050565b6020815260006129ae60208301846129e1565b600060208284031215612a3257600080fd5b5035919050565b80356001600160a01b0381168114612a5057600080fd5b919050565b60008060408385031215612a6857600080fd5b612a7183612a39565b946020939093013593505050565b600080600060608486031215612a9457600080fd5b612a9d84612a39565b9250612aab60208501612a39565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612aeb57612aeb612abb565b604051601f8501601f19908116603f01168101908282118183101715612b1357612b13612abb565b81604052809350858152868686011115612b2c57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612b5757600080fd5b6129ae83833560208501612ad1565b60008060408385031215612b7957600080fd5b82356001600160401b0380821115612b9057600080fd5b612b9c86838701612b46565b93506020850135915080821115612bb257600080fd5b50612bbf85828601612b46565b9150509250929050565b600060208284031215612bdb57600080fd5b6129ae82612a39565b600060208284031215612bf657600080fd5b81356001600160401b03811115612c0c57600080fd5b8201601f81018413612c1d57600080fd5b61227f84823560208401612ad1565b80358015158114612a5057600080fd5b600060208284031215612c4e57600080fd5b6129ae82612c2c565b60008060408385031215612c6a57600080fd5b612c7383612a39565b9150612c8160208401612c2c565b90509250929050565b60008060008060808587031215612ca057600080fd5b612ca985612a39565b9350612cb760208601612a39565b92506040850135915060608501356001600160401b03811115612cd957600080fd5b612ce587828801612b46565b91505092959194509250565b60008060408385031215612d0457600080fd5b612d0d83612a39565b9150612c8160208401612a39565b600080600060608486031215612d3057600080fd5b8335925060208401356001600160401b0380821115612d4e57600080fd5b612d5a87838801612b46565b93506040860135915080821115612d7057600080fd5b50612d7d86828701612b46565b9150509250925092565b634e487b7160e01b600052601160045260246000fd5b60008219821115612db057612db0612d87565b500190565b600181811c90821680612dc957607f821691505b60208210811415612dea57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526016908201527542656174426f74733a206d7573742075736520454f4160501b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6000816000190483118215151615612e6457612e64612d87565b500290565b6020808252601b908201527f42656174426f74733a20496e73756666696369656e7420455448210000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008151612ee78185602086016129b5565b9290920192915050565b600080845481600182811c915080831680612f0d57607f831692505b6020808410821415612f2d57634e487b7160e01b86526022600452602486fd5b818015612f415760018114612f5257612f7f565b60ff19861689528489019650612f7f565b60008b81526020902060005b86811015612f775781548b820152908501908301612f5e565b505084890196505b505050505050612fa3612f928286612ed5565b64173539b7b760d91b815260050190565b95945050505050565b6bffffffffffffffffffffffff198360601b16815260008251612fd68160148501602087016129b5565b919091016014019392505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613017908301846129e1565b9695505050505050565b60006020828403121561303357600080fd5b81516129ae8161297b565b600060001982141561305257613052612d87565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261307e5761307e613059565b500490565b60008282101561309557613095612d87565b500390565b6000826130a9576130a9613059565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220480106229e8470a5ef1ac96f97cfa336859855a6293639322ed97404de22730564736f6c634300080b0033

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

00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000320485a9a46b79ddd2a6858105cc9c0734c234c10000000000000000000000004957d81053224f078015bc487f54b476a905e543000000000000000000000000b2890e0ddc59d6a279808b43eb7c7a229570775a000000000000000000000000fff0ba20b4eb728662812c4794d53d27aa18787800000000000000000000000000000000000000000000000000000000000000094265617420426f74730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000842454154424f5453000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d62317872636f72464854793852325658516368645a51703367375255634e33554a48554a5736753534344b5000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Beat Bots
Arg [1] : symbol_ (string): BEATBOTS
Arg [2] : _initBaseURI (string): https://gateway.pinata.cloud/ipfs/Qmb1xrcorFHTy8R2VXQchdZQp3g7RUcN3UJHUJW6u544KP
Arg [3] : _newOwner (address): 0x320485A9a46b79dDd2A6858105cC9c0734c234c1
Arg [4] : _signerAddressSingle (address): 0x4957D81053224f078015Bc487f54B476A905E543
Arg [5] : _signerAddressDouble (address): 0xB2890E0Ddc59D6a279808b43Eb7c7A229570775A
Arg [6] : _treasury (address): 0xffF0bA20b4EB728662812c4794D53d27AA187878

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 000000000000000000000000320485a9a46b79ddd2a6858105cc9c0734c234c1
Arg [4] : 0000000000000000000000004957d81053224f078015bc487f54b476a905e543
Arg [5] : 000000000000000000000000b2890e0ddc59d6a279808b43eb7c7a229570775a
Arg [6] : 000000000000000000000000fff0ba20b4eb728662812c4794d53d27aa187878
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 4265617420426f74730000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [10] : 42454154424f5453000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [12] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [13] : 732f516d62317872636f72464854793852325658516368645a51703367375255
Arg [14] : 634e33554a48554a5736753534344b5000000000000000000000000000000000


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.