ETH Price: $3,223.59 (-3.93%)

Token

Before Anyone Else (BAE)
 

Overview

Max Total Supply

1,081 BAE

Holders

304

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 BAE
0xb118BB68Af7e1d12e01c4cBEd1c311857aDF4260
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:
BAE

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

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

// File @openzeppelin/contracts/utils/[email protected]
pragma solidity ^0.8.0;

library Address {

    function isContract(address account) internal view returns (bool) {

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

    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 @openzeppelin/contracts/utils/[email protected]
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 @openzeppelin/contracts/utils/[email protected]
pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File @openzeppelin/contracts/utils/introspection/[email protected]
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 @openzeppelin/contracts/token/ERC721/[email protected]
pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/[email protected]
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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]
pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/utils/[email protected]
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 @openzeppelin/contracts/utils/introspection/[email protected]
pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/[email protected]
pragma solidity ^0.8.0;

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @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 {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), 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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;

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

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

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

/**
 * @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..).
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 0;

     uint256 internal immutable maxBatchSize;

    // 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) private _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;

    /**
     * @dev
     * `maxBatchSize` refers to how much a minter can mint at a time.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_
    ) {
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return currentIndex;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        require(index < totalSupply(), "ERC721A: global index out of bounds");
        return index;
    }

    /**
     * @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) {
        require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("ERC721A: unable to get token of owner by index");
    }

    /**
     * @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) {
        require(owner != address(0), "ERC721A: balance query for the zero address");
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        require(owner != address(0), "ERC721A: number minted query for the zero address");
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }

        revert("ERC721A: unable to determine the owner of token");
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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);
        require(to != owner, "ERC721A: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721A: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        require(_exists(tokenId), "ERC721A: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        require(operator != _msgSender(), "ERC721A: approve to caller");

        _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 override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721A: transfer to non ERC721Receiver implementer"
        );
    }

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

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721A: mint to the zero address");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), "ERC721A: token already minted");
        require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                "ERC721A: transfer to non ERC721Receiver implementer"
            );
            updatedIndex++;
        }

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

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

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

        require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved");

        require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner");
        require(to != address(0), "ERC721A: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, 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)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp);
            }
        }

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

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

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > currentIndex - 1) {
            endIndex = currentIndex - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp);
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

    /**
     * @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("ERC721A: transfer to non ERC721Receiver implementer");
                } 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.
     *
     * 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`.
     */
    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.
     *
     * 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` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

pragma solidity ^0.8.0;

contract BAE is ERC721A
{
    using Strings for uint256;

    string public baseURI;
    string public unrevealedURI;
    uint256 public cost;
    uint256 public tier1_limit;
    uint256 public tier1_price;
    uint256 public tier2_price;
    uint256 public maxSupply;
    uint256 public maxMintAmount = 51;
    uint256 public maxMintPerTransaction = 51;
    uint256 public ownerReserved;
    address public owner;
   
    bool public saleOpen;
    bool public revealed;

    mapping(address => uint256) private mintCount;

    modifier onlyOwner() {
        require(owner == msg.sender, "not owner");
        _;
    }

    modifier mintIsLive() {
        require(saleOpen, "mint not live");
        _;
    }

    constructor() ERC721A("Before Anyone Else", "BAE", maxMintAmount) {
        owner = msg.sender;
        maxSupply = 5555;
        ownerReserved = 555;
        cost = 0.01 ether;
        tier1_limit = 2222;
        tier1_price = 0.01 ether;
        tier2_price = 0.02 ether;
    }

    function mintedByAddressCount(address _address) public view returns (uint256){
        return mintCount[_address];
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }

    function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner {
        maxMintAmount = _newmaxMintAmount;
    }

    function setmaxMintPerTransaction(uint256 _newmaxMintPerTransaction) public onlyOwner {
        maxMintPerTransaction = _newmaxMintPerTransaction;
    }

    function setTier1Limit(uint256 _tier1_limit) public onlyOwner {
        tier1_limit = _tier1_limit;
    }

    function setTier1Price(uint256 _tier1_price) public onlyOwner {
        tier1_price = _tier1_price;
    }

    function setTier2Price(uint256 _tier2_price) public onlyOwner {
        tier2_price = _tier2_price;
    }

    function getCost() public view returns(uint256){
         if(totalSupply() <= tier1_limit){
            return tier1_price;
        } else {
            return tier2_price;
        }
    }

    // Minting functions
    function mint(uint256 _mintAmount) external payable mintIsLive {
        address _to = msg.sender;
        uint256 minted = mintCount[_to];
        require(minted + _mintAmount <= maxMintAmount, "mint over max");
        require(_mintAmount <= maxMintPerTransaction, "amount must < max");
        require(totalSupply() + _mintAmount <= (maxSupply - ownerReserved), "mint over supply");

        uint256 price = getCost();

        require(msg.value >= price * _mintAmount, "insufficient funds");

        mintCount[_to] = minted + _mintAmount;
        _safeMint(msg.sender, _mintAmount);
    }

    // Only Owner executable functions
    function airdropByAccount(address _to, uint256 _mintAmount) external onlyOwner {
        require(totalSupply() + _mintAmount <= maxSupply, "mint over supply");
        if (_mintAmount <= maxBatchSize) {
            _safeMint(_to, _mintAmount);
            return;
        }
        
        uint256 leftToMint = _mintAmount;
        while (leftToMint > 0) {
            if (leftToMint <= maxBatchSize) {
                _safeMint(_to, leftToMint);
                return;
            }
            _safeMint(_to, maxBatchSize);
            leftToMint = leftToMint - maxBatchSize;
        }
    }

    function airdropToBulkAccounts(address[] calldata _recipients) external onlyOwner {
        require(
            totalSupply() + _recipients.length <= (maxSupply - ownerReserved),
            "Airdrop minting will exceed maximum supply"
        );
        require(_recipients.length != 0, "Address not found for minting");
        for (uint256 i = 0; i < _recipients.length; i++) {
            require(_recipients[i] != address(0), "Minting to Null address");
             _safeMint(msg.sender, 1);
        }
    }

    function toggleMintLive() external onlyOwner {
        if (saleOpen) {
            saleOpen = false;
            return;
        }
        
        saleOpen = true;
    }

    function toggleReveal() external onlyOwner {
        if (revealed) {
            revealed = false;
            return;
        }
        revealed = true;
    }

    function setBaseURI(string memory _newURI) external onlyOwner {
        baseURI = _newURI;
    }

    function setUnrevealedURI(string memory _newUnrevealedURI) external onlyOwner {
        unrevealedURI = _newUnrevealedURI;
    }

    function withdraw() external payable onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed");
    }

    function setOwnersExplicit(uint256 quantity) external onlyOwner {
        _setOwnersExplicit(quantity);
    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        require(_exists(_tokenId), "URI query for nonexistent token");
        if(revealed == false) {
            return unrevealedURI;
        }
        string memory baseTokenURI = _baseURI();
        string memory json = ".json";
        return bytes(baseTokenURI).length > 0
            ? string(abi.encodePacked(baseTokenURI, _tokenId.toString(), json))
            : '';
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function transferOwnership(address _newOwner) external onlyOwner{
        owner = _newOwner;
    }

    fallback() external payable { }

    receive() external payable { }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"airdropByAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"}],"name":"airdropToBulkAccounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"mintedByAddressCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[],"name":"saleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier1_limit","type":"uint256"}],"name":"setTier1Limit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier1_price","type":"uint256"}],"name":"setTier1Price","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier2_price","type":"uint256"}],"name":"setTier2Price","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newUnrevealedURI","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintPerTransaction","type":"uint256"}],"name":"setmaxMintPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tier1_limit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tier1_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tier2_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleMintLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_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":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040526000805560006007556033600f5560336010553480156200002457600080fd5b50604051806040016040528060128152602001714265666f726520416e796f6e6520456c736560701b8152506040518060400160405280600381526020016242414560e81b815250600f5460008111620000d45760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b8251620000e99060019060208601906200014a565b508151620000ff9060029060208501906200014a565b506080525050601280546001600160a01b031916331790556115b3600e5561022b601155662386f26fc10000600a8190556108ae600b55600c5566470de4df820000600d556200022d565b8280546200015890620001f0565b90600052602060002090601f0160209004810192826200017c5760008555620001c7565b82601f106200019757805160ff1916838001178555620001c7565b82800160010185558215620001c7579182015b82811115620001c7578251825591602001919060010190620001aa565b50620001d5929150620001d9565b5090565b5b80821115620001d55760008155600101620001da565b600181811c908216806200020557607f821691505b602082108114156200022757634e487b7160e01b600052602260045260246000fd5b50919050565b608051612c3862000273600039600081816115f20152818161162b015281816116600152818161168901528181611f3a01528181611f6401526123390152612c386000f3fe60806040526004361061027f5760003560e01c80636352211e1161014e578063ad99cc8a116100bb578063c87b56dd11610077578063c87b56dd14610765578063d5abeb0114610785578063d7224ba01461079b578063e985e9c5146107b1578063f2fde38b146107fa578063fe2c7fee1461081a57005b8063ad99cc8a146106c4578063b4269a16146106da578063b86ec2a6146106fa578063b88d4fde1461071a578063bd3e19d41461073a578063c28a346c1461074f57005b80638da5cb5b1161010a5780638da5cb5b1461062557806395d89b411461064557806399288dbb1461065a578063a0712d681461067b578063a22cb4651461068e578063a9d894cc146106ae57005b80636352211e1461057b5780636c0360eb1461059b5780637035bf18146105b057806370a08231146105c557806378835f42146105e55780637f00c7a61461060557005b806337351b0f116101ec5780634f6ccce7116101a85780634f6ccce7146104cf57806351830227146104ef57806355f804b3146105105780635b8ad4291461053057806362137aeb14610545578063632d76bd1461056557005b806337351b0f146104115780633ccfd60b146104475780634018d3461461044f57806342842e0e1461046f57806344a0d68a1461048f5780634d22ff1b146104af57005b806313faede61161023b57806313faede61461037057806318160ddd14610386578063239c70ae1461039b57806323b872dd146103b15780632d20fb60146103d15780632f745c59146103f157005b806301f569971461028857806301ffc9a7146102b157806306fdde03146102e1578063081812fc14610303578063095ea7b31461033b578063105739b81461035b57005b3661028657005b005b34801561029457600080fd5b5061029e60105481565b6040519081526020015b60405180910390f35b3480156102bd57600080fd5b506102d16102cc366004612861565b61083a565b60405190151581526020016102a8565b3480156102ed57600080fd5b506102f66108a7565b6040516102a891906129a9565b34801561030f57600080fd5b5061032361031e3660046128e4565b610939565b6040516001600160a01b0390911681526020016102a8565b34801561034757600080fd5b506102866103563660046127c2565b6109c9565b34801561036757600080fd5b50610286610ae1565b34801561037c57600080fd5b5061029e600a5481565b34801561039257600080fd5b5060005461029e565b3480156103a757600080fd5b5061029e600f5481565b3480156103bd57600080fd5b506102866103cc3660046126ce565b610b41565b3480156103dd57600080fd5b506102866103ec3660046128e4565b610b4c565b3480156103fd57600080fd5b5061029e61040c3660046127c2565b610b82565b34801561041d57600080fd5b5061029e61042c366004612679565b6001600160a01b031660009081526013602052604090205490565b610286610cf0565b34801561045b57600080fd5b5061028661046a3660046128e4565b610da4565b34801561047b57600080fd5b5061028661048a3660046126ce565b610dd3565b34801561049b57600080fd5b506102866104aa3660046128e4565b610dee565b3480156104bb57600080fd5b506102866104ca3660046127ec565b610e1d565b3480156104db57600080fd5b5061029e6104ea3660046128e4565b610fc1565b3480156104fb57600080fd5b506012546102d190600160a81b900460ff1681565b34801561051c57600080fd5b5061028661052b36600461289b565b611023565b34801561053c57600080fd5b50610286611064565b34801561055157600080fd5b506102866105603660046128e4565b6110c4565b34801561057157600080fd5b5061029e600d5481565b34801561058757600080fd5b506103236105963660046128e4565b6110f3565b3480156105a757600080fd5b506102f6611105565b3480156105bc57600080fd5b506102f6611193565b3480156105d157600080fd5b5061029e6105e0366004612679565b6111a0565b3480156105f157600080fd5b506102866106003660046128e4565b611231565b34801561061157600080fd5b506102866106203660046128e4565b611260565b34801561063157600080fd5b50601254610323906001600160a01b031681565b34801561065157600080fd5b506102f661128f565b34801561066657600080fd5b506012546102d190600160a01b900460ff1681565b6102866106893660046128e4565b61129e565b34801561069a57600080fd5b506102866106a9366004612786565b61147a565b3480156106ba57600080fd5b5061029e60115481565b3480156106d057600080fd5b5061029e600c5481565b3480156106e657600080fd5b506102866106f53660046128e4565b61153f565b34801561070657600080fd5b506102866107153660046127c2565b61156e565b34801561072657600080fd5b5061028661073536600461270a565b6116b5565b34801561074657600080fd5b5061029e6116e8565b34801561075b57600080fd5b5061029e600b5481565b34801561077157600080fd5b506102f66107803660046128e4565b611709565b34801561079157600080fd5b5061029e600e5481565b3480156107a757600080fd5b5061029e60075481565b3480156107bd57600080fd5b506102d16107cc36600461269b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561080657600080fd5b50610286610815366004612679565b61187f565b34801561082657600080fd5b5061028661083536600461289b565b6118cb565b60006001600160e01b031982166380ac58cd60e01b148061086b57506001600160e01b03198216635b5e139f60e01b145b8061088657506001600160e01b0319821663780e9d6360e01b145b806108a157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108b690612b2a565b80601f01602080910402602001604051908101604052809291908181526020018280546108e290612b2a565b801561092f5780601f106109045761010080835404028352916020019161092f565b820191906000526020600020905b81548152906001019060200180831161091257829003601f168201915b5050505050905090565b6000610946826000541190565b6109ad5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109d4826110f3565b9050806001600160a01b0316836001600160a01b03161415610a435760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016109a4565b336001600160a01b0382161480610a5f5750610a5f81336107cc565b610ad15760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016109a4565b610adc838383611908565b505050565b6012546001600160a01b03163314610b0b5760405162461bcd60e51b81526004016109a490612a0f565b601254600160a01b900460ff1615610b2c576012805460ff60a01b19169055565b6012805460ff60a01b1916600160a01b179055565b610adc838383611964565b6012546001600160a01b03163314610b765760405162461bcd60e51b81526004016109a490612a0f565b610b7f81611cec565b50565b6000610b8d836111a0565b8210610be65760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016109a4565b600080549080805b83811015610c90576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610c4157805192505b876001600160a01b0316836001600160a01b03161415610c7d5786841415610c6f575093506108a192505050565b83610c7981612b65565b9450505b5080610c8881612b65565b915050610bee565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016109a4565b6012546001600160a01b03163314610d1a5760405162461bcd60e51b81526004016109a490612a0f565b604051600090339047908381818185875af1925050503d8060008114610d5c576040519150601f19603f3d011682016040523d82523d6000602084013e610d61565b606091505b5050905080610b7f5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016109a4565b6012546001600160a01b03163314610dce5760405162461bcd60e51b81526004016109a490612a0f565b600c55565b610adc838383604051806020016040528060008152506116b5565b6012546001600160a01b03163314610e185760405162461bcd60e51b81526004016109a490612a0f565b600a55565b6012546001600160a01b03163314610e475760405162461bcd60e51b81526004016109a490612a0f565b601154600e54610e579190612ad0565b81610e6160005490565b610e6b9190612a5d565b1115610ecc5760405162461bcd60e51b815260206004820152602a60248201527f41697264726f70206d696e74696e672077696c6c20657863656564206d6178696044820152696d756d20737570706c7960b01b60648201526084016109a4565b80610f195760405162461bcd60e51b815260206004820152601d60248201527f41646472657373206e6f7420666f756e6420666f72206d696e74696e6700000060448201526064016109a4565b60005b81811015610adc576000838383818110610f3857610f38612bc0565b9050602002016020810190610f4d9190612679565b6001600160a01b03161415610fa45760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e6720746f204e756c6c206164647265737300000000000000000060448201526064016109a4565b610faf336001611e9e565b80610fb981612b65565b915050610f1c565b60008054821061101f5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016109a4565b5090565b6012546001600160a01b0316331461104d5760405162461bcd60e51b81526004016109a490612a0f565b8051611060906008906020840190612557565b5050565b6012546001600160a01b0316331461108e5760405162461bcd60e51b81526004016109a490612a0f565b601254600160a81b900460ff16156110af576012805460ff60a81b19169055565b6012805460ff60a81b1916600160a81b179055565b6012546001600160a01b031633146110ee5760405162461bcd60e51b81526004016109a490612a0f565b600b55565b60006110fe82611eb8565b5192915050565b6008805461111290612b2a565b80601f016020809104026020016040519081016040528092919081815260200182805461113e90612b2a565b801561118b5780601f106111605761010080835404028352916020019161118b565b820191906000526020600020905b81548152906001019060200180831161116e57829003601f168201915b505050505081565b6009805461111290612b2a565b60006001600160a01b03821661120c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016109a4565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6012546001600160a01b0316331461125b5760405162461bcd60e51b81526004016109a490612a0f565b601055565b6012546001600160a01b0316331461128a5760405162461bcd60e51b81526004016109a490612a0f565b600f55565b6060600280546108b690612b2a565b601254600160a01b900460ff166112e75760405162461bcd60e51b815260206004820152600d60248201526c6d696e74206e6f74206c69766560981b60448201526064016109a4565b33600081815260136020526040902054600f546113048483612a5d565b11156113425760405162461bcd60e51b815260206004820152600d60248201526c0dad2dce840deeccae440dac2f609b1b60448201526064016109a4565b6010548311156113885760405162461bcd60e51b81526020600482015260116024820152700c2dadeeadce840daeae6e8407840dac2f607b1b60448201526064016109a4565b601154600e546113989190612ad0565b836113a260005490565b6113ac9190612a5d565b11156113ed5760405162461bcd60e51b815260206004820152601060248201526f6d696e74206f76657220737570706c7960801b60448201526064016109a4565b60006113f76116e8565b90506114038482612a89565b3410156114475760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016109a4565b6114518483612a5d565b6001600160a01b0384166000908152601360205260409020556114743385611e9e565b50505050565b6001600160a01b0382163314156114d35760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016109a4565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6012546001600160a01b031633146115695760405162461bcd60e51b81526004016109a490612a0f565b600d55565b6012546001600160a01b031633146115985760405162461bcd60e51b81526004016109a490612a0f565b600e54816115a560005490565b6115af9190612a5d565b11156115f05760405162461bcd60e51b815260206004820152601060248201526f6d696e74206f76657220737570706c7960801b60448201526064016109a4565b7f00000000000000000000000000000000000000000000000000000000000000008111611621576110608282611e9e565b805b8015610adc577f0000000000000000000000000000000000000000000000000000000000000000811161165a57610adc8382611e9e565b611684837f0000000000000000000000000000000000000000000000000000000000000000611e9e565b6116ae7f000000000000000000000000000000000000000000000000000000000000000082612ad0565b9050611623565b6116c0848484611964565b6116cc84848484612062565b6114745760405162461bcd60e51b81526004016109a4906129bc565b6000600b546116f660005490565b116117025750600c5490565b50600d5490565b6060611716826000541190565b6117625760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109a4565b601254600160a81b900460ff16611805576009805461178090612b2a565b80601f01602080910402602001604051908101604052809291908181526020018280546117ac90612b2a565b80156117f95780601f106117ce576101008083540402835291602001916117f9565b820191906000526020600020905b8154815290600101906020018083116117dc57829003601f168201915b50505050509050919050565b600061180f61216f565b604080518082019091526005815264173539b7b760d91b602082015281519192509061184a5760405180602001604052806000815250611877565b816118548561217e565b8260405160200161186793929190612929565b6040516020818303038152906040525b949350505050565b6012546001600160a01b031633146118a95760405162461bcd60e51b81526004016109a490612a0f565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6012546001600160a01b031633146118f55760405162461bcd60e51b81526004016109a490612a0f565b8051611060906009906020840190612557565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061196f82611eb8565b80519091506000906001600160a01b0316336001600160a01b031614806119a657503361199b84610939565b6001600160a01b0316145b806119b8575081516119b890336107cc565b905080611a225760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109a4565b846001600160a01b031682600001516001600160a01b031614611a965760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016109a4565b6001600160a01b038416611afa5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016109a4565b611b0a6000848460000151611908565b6001600160a01b0385166000908152600460205260408120805460019290611b3c9084906001600160801b0316612aa8565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611b8891859116612a32565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611c10846001612a5d565b6000818152600360205260409020549091506001600160a01b0316611ca257611c3a816000541190565b15611ca25760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60075481611d3c5760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f000000000000000060448201526064016109a4565b60006001611d4a8484612a5d565b611d549190612ad0565b90506001600054611d659190612ad0565b811115611d7e576001600054611d7b9190612ad0565b90505b611d89816000541190565b611de45760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201526506c65616e75760d41b60648201526084016109a4565b815b818111611e8a576000818152600360205260409020546001600160a01b0316611e78576000611e1482611eb8565b60408051808201825282516001600160a01b03908116825260209384015167ffffffffffffffff9081168584019081526000888152600390965293909420915182549351909416600160a01b026001600160e01b0319909316931692909217179055505b80611e8281612b65565b915050611de6565b50611e96816001612a5d565b600755505050565b61106082826040518060200160405280600081525061227c565b6040805180820190915260008082526020820152611ed7826000541190565b611f365760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016109a4565b60007f00000000000000000000000000000000000000000000000000000000000000008310611f9757611f897f000000000000000000000000000000000000000000000000000000000000000084612ad0565b611f94906001612a5d565b90505b825b818110612001576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611fee57949350505050565b5080611ff981612b13565b915050611f99565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016109a4565b60006001600160a01b0384163b1561216457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120a690339089908890889060040161296c565b602060405180830381600087803b1580156120c057600080fd5b505af19250505080156120f0575060408051601f3d908101601f191682019092526120ed9181019061287e565b60015b61214a573d80801561211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b5080516121425760405162461bcd60e51b81526004016109a4906129bc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611877565b506001949350505050565b6060600880546108b690612b2a565b6060816121a25750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121cc57806121b681612b65565b91506121c59050600a83612a75565b91506121a6565b60008167ffffffffffffffff8111156121e7576121e7612bd6565b6040519080825280601f01601f191660200182016040528015612211576020820181803683370190505b5090505b841561187757612226600183612ad0565b9150612233600a86612b80565b61223e906030612a5d565b60f81b81838151811061225357612253612bc0565b60200101906001600160f81b031916908160001a905350612275600a86612a75565b9450612215565b6000546001600160a01b0384166122df5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109a4565b6122ea816000541190565b156123375760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016109a4565b7f00000000000000000000000000000000000000000000000000000000000000008311156123b25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b60648201526084016109a4565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061240e908790612a32565b6001600160801b0316815260200185836020015161242c9190612a32565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561254c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46125106000888488612062565b61252c5760405162461bcd60e51b81526004016109a4906129bc565b8161253681612b65565b925050808061254490612b65565b9150506124c3565b506000819055611ce4565b82805461256390612b2a565b90600052602060002090601f01602090048101928261258557600085556125cb565b82601f1061259e57805160ff19168380011785556125cb565b828001600101855582156125cb579182015b828111156125cb5782518255916020019190600101906125b0565b5061101f9291505b8082111561101f57600081556001016125d3565b600067ffffffffffffffff8084111561260257612602612bd6565b604051601f8501601f19908116603f0116810190828211818310171561262a5761262a612bd6565b8160405280935085815286868601111561264357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461267457600080fd5b919050565b60006020828403121561268b57600080fd5b6126948261265d565b9392505050565b600080604083850312156126ae57600080fd5b6126b78361265d565b91506126c56020840161265d565b90509250929050565b6000806000606084860312156126e357600080fd5b6126ec8461265d565b92506126fa6020850161265d565b9150604084013590509250925092565b6000806000806080858703121561272057600080fd5b6127298561265d565b93506127376020860161265d565b925060408501359150606085013567ffffffffffffffff81111561275a57600080fd5b8501601f8101871361276b57600080fd5b61277a878235602084016125e7565b91505092959194509250565b6000806040838503121561279957600080fd5b6127a28361265d565b9150602083013580151581146127b757600080fd5b809150509250929050565b600080604083850312156127d557600080fd5b6127de8361265d565b946020939093013593505050565b600080602083850312156127ff57600080fd5b823567ffffffffffffffff8082111561281757600080fd5b818501915085601f83011261282b57600080fd5b81358181111561283a57600080fd5b8660208260051b850101111561284f57600080fd5b60209290920196919550909350505050565b60006020828403121561287357600080fd5b813561269481612bec565b60006020828403121561289057600080fd5b815161269481612bec565b6000602082840312156128ad57600080fd5b813567ffffffffffffffff8111156128c457600080fd5b8201601f810184136128d557600080fd5b611877848235602084016125e7565b6000602082840312156128f657600080fd5b5035919050565b60008151808452612915816020860160208601612ae7565b601f01601f19169290920160200192915050565b6000845161293b818460208901612ae7565b84519083019061294f818360208901612ae7565b8451910190612962818360208801612ae7565b0195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061299f908301846128fd565b9695505050505050565b60208152600061269460208301846128fd565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252600990820152683737ba1037bbb732b960b91b604082015260600190565b60006001600160801b03808316818516808303821115612a5457612a54612b94565b01949350505050565b60008219821115612a7057612a70612b94565b500190565b600082612a8457612a84612baa565b500490565b6000816000190483118215151615612aa357612aa3612b94565b500290565b60006001600160801b0383811690831681811015612ac857612ac8612b94565b039392505050565b600082821015612ae257612ae2612b94565b500390565b60005b83811015612b02578181015183820152602001612aea565b838111156114745750506000910152565b600081612b2257612b22612b94565b506000190190565b600181811c90821680612b3e57607f821691505b60208210811415612b5f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b7957612b79612b94565b5060010190565b600082612b8f57612b8f612baa565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610b7f57600080fdfea2646970667358221220cc75e07ccd89a6390967d67c82a949b450efa51205570386d4d85b202616e00064736f6c63430008070033

Deployed Bytecode

0x60806040526004361061027f5760003560e01c80636352211e1161014e578063ad99cc8a116100bb578063c87b56dd11610077578063c87b56dd14610765578063d5abeb0114610785578063d7224ba01461079b578063e985e9c5146107b1578063f2fde38b146107fa578063fe2c7fee1461081a57005b8063ad99cc8a146106c4578063b4269a16146106da578063b86ec2a6146106fa578063b88d4fde1461071a578063bd3e19d41461073a578063c28a346c1461074f57005b80638da5cb5b1161010a5780638da5cb5b1461062557806395d89b411461064557806399288dbb1461065a578063a0712d681461067b578063a22cb4651461068e578063a9d894cc146106ae57005b80636352211e1461057b5780636c0360eb1461059b5780637035bf18146105b057806370a08231146105c557806378835f42146105e55780637f00c7a61461060557005b806337351b0f116101ec5780634f6ccce7116101a85780634f6ccce7146104cf57806351830227146104ef57806355f804b3146105105780635b8ad4291461053057806362137aeb14610545578063632d76bd1461056557005b806337351b0f146104115780633ccfd60b146104475780634018d3461461044f57806342842e0e1461046f57806344a0d68a1461048f5780634d22ff1b146104af57005b806313faede61161023b57806313faede61461037057806318160ddd14610386578063239c70ae1461039b57806323b872dd146103b15780632d20fb60146103d15780632f745c59146103f157005b806301f569971461028857806301ffc9a7146102b157806306fdde03146102e1578063081812fc14610303578063095ea7b31461033b578063105739b81461035b57005b3661028657005b005b34801561029457600080fd5b5061029e60105481565b6040519081526020015b60405180910390f35b3480156102bd57600080fd5b506102d16102cc366004612861565b61083a565b60405190151581526020016102a8565b3480156102ed57600080fd5b506102f66108a7565b6040516102a891906129a9565b34801561030f57600080fd5b5061032361031e3660046128e4565b610939565b6040516001600160a01b0390911681526020016102a8565b34801561034757600080fd5b506102866103563660046127c2565b6109c9565b34801561036757600080fd5b50610286610ae1565b34801561037c57600080fd5b5061029e600a5481565b34801561039257600080fd5b5060005461029e565b3480156103a757600080fd5b5061029e600f5481565b3480156103bd57600080fd5b506102866103cc3660046126ce565b610b41565b3480156103dd57600080fd5b506102866103ec3660046128e4565b610b4c565b3480156103fd57600080fd5b5061029e61040c3660046127c2565b610b82565b34801561041d57600080fd5b5061029e61042c366004612679565b6001600160a01b031660009081526013602052604090205490565b610286610cf0565b34801561045b57600080fd5b5061028661046a3660046128e4565b610da4565b34801561047b57600080fd5b5061028661048a3660046126ce565b610dd3565b34801561049b57600080fd5b506102866104aa3660046128e4565b610dee565b3480156104bb57600080fd5b506102866104ca3660046127ec565b610e1d565b3480156104db57600080fd5b5061029e6104ea3660046128e4565b610fc1565b3480156104fb57600080fd5b506012546102d190600160a81b900460ff1681565b34801561051c57600080fd5b5061028661052b36600461289b565b611023565b34801561053c57600080fd5b50610286611064565b34801561055157600080fd5b506102866105603660046128e4565b6110c4565b34801561057157600080fd5b5061029e600d5481565b34801561058757600080fd5b506103236105963660046128e4565b6110f3565b3480156105a757600080fd5b506102f6611105565b3480156105bc57600080fd5b506102f6611193565b3480156105d157600080fd5b5061029e6105e0366004612679565b6111a0565b3480156105f157600080fd5b506102866106003660046128e4565b611231565b34801561061157600080fd5b506102866106203660046128e4565b611260565b34801561063157600080fd5b50601254610323906001600160a01b031681565b34801561065157600080fd5b506102f661128f565b34801561066657600080fd5b506012546102d190600160a01b900460ff1681565b6102866106893660046128e4565b61129e565b34801561069a57600080fd5b506102866106a9366004612786565b61147a565b3480156106ba57600080fd5b5061029e60115481565b3480156106d057600080fd5b5061029e600c5481565b3480156106e657600080fd5b506102866106f53660046128e4565b61153f565b34801561070657600080fd5b506102866107153660046127c2565b61156e565b34801561072657600080fd5b5061028661073536600461270a565b6116b5565b34801561074657600080fd5b5061029e6116e8565b34801561075b57600080fd5b5061029e600b5481565b34801561077157600080fd5b506102f66107803660046128e4565b611709565b34801561079157600080fd5b5061029e600e5481565b3480156107a757600080fd5b5061029e60075481565b3480156107bd57600080fd5b506102d16107cc36600461269b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561080657600080fd5b50610286610815366004612679565b61187f565b34801561082657600080fd5b5061028661083536600461289b565b6118cb565b60006001600160e01b031982166380ac58cd60e01b148061086b57506001600160e01b03198216635b5e139f60e01b145b8061088657506001600160e01b0319821663780e9d6360e01b145b806108a157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108b690612b2a565b80601f01602080910402602001604051908101604052809291908181526020018280546108e290612b2a565b801561092f5780601f106109045761010080835404028352916020019161092f565b820191906000526020600020905b81548152906001019060200180831161091257829003601f168201915b5050505050905090565b6000610946826000541190565b6109ad5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109d4826110f3565b9050806001600160a01b0316836001600160a01b03161415610a435760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016109a4565b336001600160a01b0382161480610a5f5750610a5f81336107cc565b610ad15760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016109a4565b610adc838383611908565b505050565b6012546001600160a01b03163314610b0b5760405162461bcd60e51b81526004016109a490612a0f565b601254600160a01b900460ff1615610b2c576012805460ff60a01b19169055565b6012805460ff60a01b1916600160a01b179055565b610adc838383611964565b6012546001600160a01b03163314610b765760405162461bcd60e51b81526004016109a490612a0f565b610b7f81611cec565b50565b6000610b8d836111a0565b8210610be65760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016109a4565b600080549080805b83811015610c90576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610c4157805192505b876001600160a01b0316836001600160a01b03161415610c7d5786841415610c6f575093506108a192505050565b83610c7981612b65565b9450505b5080610c8881612b65565b915050610bee565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016109a4565b6012546001600160a01b03163314610d1a5760405162461bcd60e51b81526004016109a490612a0f565b604051600090339047908381818185875af1925050503d8060008114610d5c576040519150601f19603f3d011682016040523d82523d6000602084013e610d61565b606091505b5050905080610b7f5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064016109a4565b6012546001600160a01b03163314610dce5760405162461bcd60e51b81526004016109a490612a0f565b600c55565b610adc838383604051806020016040528060008152506116b5565b6012546001600160a01b03163314610e185760405162461bcd60e51b81526004016109a490612a0f565b600a55565b6012546001600160a01b03163314610e475760405162461bcd60e51b81526004016109a490612a0f565b601154600e54610e579190612ad0565b81610e6160005490565b610e6b9190612a5d565b1115610ecc5760405162461bcd60e51b815260206004820152602a60248201527f41697264726f70206d696e74696e672077696c6c20657863656564206d6178696044820152696d756d20737570706c7960b01b60648201526084016109a4565b80610f195760405162461bcd60e51b815260206004820152601d60248201527f41646472657373206e6f7420666f756e6420666f72206d696e74696e6700000060448201526064016109a4565b60005b81811015610adc576000838383818110610f3857610f38612bc0565b9050602002016020810190610f4d9190612679565b6001600160a01b03161415610fa45760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e6720746f204e756c6c206164647265737300000000000000000060448201526064016109a4565b610faf336001611e9e565b80610fb981612b65565b915050610f1c565b60008054821061101f5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016109a4565b5090565b6012546001600160a01b0316331461104d5760405162461bcd60e51b81526004016109a490612a0f565b8051611060906008906020840190612557565b5050565b6012546001600160a01b0316331461108e5760405162461bcd60e51b81526004016109a490612a0f565b601254600160a81b900460ff16156110af576012805460ff60a81b19169055565b6012805460ff60a81b1916600160a81b179055565b6012546001600160a01b031633146110ee5760405162461bcd60e51b81526004016109a490612a0f565b600b55565b60006110fe82611eb8565b5192915050565b6008805461111290612b2a565b80601f016020809104026020016040519081016040528092919081815260200182805461113e90612b2a565b801561118b5780601f106111605761010080835404028352916020019161118b565b820191906000526020600020905b81548152906001019060200180831161116e57829003601f168201915b505050505081565b6009805461111290612b2a565b60006001600160a01b03821661120c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016109a4565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6012546001600160a01b0316331461125b5760405162461bcd60e51b81526004016109a490612a0f565b601055565b6012546001600160a01b0316331461128a5760405162461bcd60e51b81526004016109a490612a0f565b600f55565b6060600280546108b690612b2a565b601254600160a01b900460ff166112e75760405162461bcd60e51b815260206004820152600d60248201526c6d696e74206e6f74206c69766560981b60448201526064016109a4565b33600081815260136020526040902054600f546113048483612a5d565b11156113425760405162461bcd60e51b815260206004820152600d60248201526c0dad2dce840deeccae440dac2f609b1b60448201526064016109a4565b6010548311156113885760405162461bcd60e51b81526020600482015260116024820152700c2dadeeadce840daeae6e8407840dac2f607b1b60448201526064016109a4565b601154600e546113989190612ad0565b836113a260005490565b6113ac9190612a5d565b11156113ed5760405162461bcd60e51b815260206004820152601060248201526f6d696e74206f76657220737570706c7960801b60448201526064016109a4565b60006113f76116e8565b90506114038482612a89565b3410156114475760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016109a4565b6114518483612a5d565b6001600160a01b0384166000908152601360205260409020556114743385611e9e565b50505050565b6001600160a01b0382163314156114d35760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016109a4565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6012546001600160a01b031633146115695760405162461bcd60e51b81526004016109a490612a0f565b600d55565b6012546001600160a01b031633146115985760405162461bcd60e51b81526004016109a490612a0f565b600e54816115a560005490565b6115af9190612a5d565b11156115f05760405162461bcd60e51b815260206004820152601060248201526f6d696e74206f76657220737570706c7960801b60448201526064016109a4565b7f00000000000000000000000000000000000000000000000000000000000000338111611621576110608282611e9e565b805b8015610adc577f0000000000000000000000000000000000000000000000000000000000000033811161165a57610adc8382611e9e565b611684837f0000000000000000000000000000000000000000000000000000000000000033611e9e565b6116ae7f000000000000000000000000000000000000000000000000000000000000003382612ad0565b9050611623565b6116c0848484611964565b6116cc84848484612062565b6114745760405162461bcd60e51b81526004016109a4906129bc565b6000600b546116f660005490565b116117025750600c5490565b50600d5490565b6060611716826000541190565b6117625760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109a4565b601254600160a81b900460ff16611805576009805461178090612b2a565b80601f01602080910402602001604051908101604052809291908181526020018280546117ac90612b2a565b80156117f95780601f106117ce576101008083540402835291602001916117f9565b820191906000526020600020905b8154815290600101906020018083116117dc57829003601f168201915b50505050509050919050565b600061180f61216f565b604080518082019091526005815264173539b7b760d91b602082015281519192509061184a5760405180602001604052806000815250611877565b816118548561217e565b8260405160200161186793929190612929565b6040516020818303038152906040525b949350505050565b6012546001600160a01b031633146118a95760405162461bcd60e51b81526004016109a490612a0f565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6012546001600160a01b031633146118f55760405162461bcd60e51b81526004016109a490612a0f565b8051611060906009906020840190612557565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061196f82611eb8565b80519091506000906001600160a01b0316336001600160a01b031614806119a657503361199b84610939565b6001600160a01b0316145b806119b8575081516119b890336107cc565b905080611a225760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109a4565b846001600160a01b031682600001516001600160a01b031614611a965760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016109a4565b6001600160a01b038416611afa5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016109a4565b611b0a6000848460000151611908565b6001600160a01b0385166000908152600460205260408120805460019290611b3c9084906001600160801b0316612aa8565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611b8891859116612a32565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611c10846001612a5d565b6000818152600360205260409020549091506001600160a01b0316611ca257611c3a816000541190565b15611ca25760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60075481611d3c5760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f000000000000000060448201526064016109a4565b60006001611d4a8484612a5d565b611d549190612ad0565b90506001600054611d659190612ad0565b811115611d7e576001600054611d7b9190612ad0565b90505b611d89816000541190565b611de45760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201526506c65616e75760d41b60648201526084016109a4565b815b818111611e8a576000818152600360205260409020546001600160a01b0316611e78576000611e1482611eb8565b60408051808201825282516001600160a01b03908116825260209384015167ffffffffffffffff9081168584019081526000888152600390965293909420915182549351909416600160a01b026001600160e01b0319909316931692909217179055505b80611e8281612b65565b915050611de6565b50611e96816001612a5d565b600755505050565b61106082826040518060200160405280600081525061227c565b6040805180820190915260008082526020820152611ed7826000541190565b611f365760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016109a4565b60007f00000000000000000000000000000000000000000000000000000000000000338310611f9757611f897f000000000000000000000000000000000000000000000000000000000000003384612ad0565b611f94906001612a5d565b90505b825b818110612001576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611fee57949350505050565b5080611ff981612b13565b915050611f99565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016109a4565b60006001600160a01b0384163b1561216457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120a690339089908890889060040161296c565b602060405180830381600087803b1580156120c057600080fd5b505af19250505080156120f0575060408051601f3d908101601f191682019092526120ed9181019061287e565b60015b61214a573d80801561211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b5080516121425760405162461bcd60e51b81526004016109a4906129bc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611877565b506001949350505050565b6060600880546108b690612b2a565b6060816121a25750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121cc57806121b681612b65565b91506121c59050600a83612a75565b91506121a6565b60008167ffffffffffffffff8111156121e7576121e7612bd6565b6040519080825280601f01601f191660200182016040528015612211576020820181803683370190505b5090505b841561187757612226600183612ad0565b9150612233600a86612b80565b61223e906030612a5d565b60f81b81838151811061225357612253612bc0565b60200101906001600160f81b031916908160001a905350612275600a86612a75565b9450612215565b6000546001600160a01b0384166122df5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109a4565b6122ea816000541190565b156123375760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016109a4565b7f00000000000000000000000000000000000000000000000000000000000000338311156123b25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b60648201526084016109a4565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061240e908790612a32565b6001600160801b0316815260200185836020015161242c9190612a32565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561254c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46125106000888488612062565b61252c5760405162461bcd60e51b81526004016109a4906129bc565b8161253681612b65565b925050808061254490612b65565b9150506124c3565b506000819055611ce4565b82805461256390612b2a565b90600052602060002090601f01602090048101928261258557600085556125cb565b82601f1061259e57805160ff19168380011785556125cb565b828001600101855582156125cb579182015b828111156125cb5782518255916020019190600101906125b0565b5061101f9291505b8082111561101f57600081556001016125d3565b600067ffffffffffffffff8084111561260257612602612bd6565b604051601f8501601f19908116603f0116810190828211818310171561262a5761262a612bd6565b8160405280935085815286868601111561264357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461267457600080fd5b919050565b60006020828403121561268b57600080fd5b6126948261265d565b9392505050565b600080604083850312156126ae57600080fd5b6126b78361265d565b91506126c56020840161265d565b90509250929050565b6000806000606084860312156126e357600080fd5b6126ec8461265d565b92506126fa6020850161265d565b9150604084013590509250925092565b6000806000806080858703121561272057600080fd5b6127298561265d565b93506127376020860161265d565b925060408501359150606085013567ffffffffffffffff81111561275a57600080fd5b8501601f8101871361276b57600080fd5b61277a878235602084016125e7565b91505092959194509250565b6000806040838503121561279957600080fd5b6127a28361265d565b9150602083013580151581146127b757600080fd5b809150509250929050565b600080604083850312156127d557600080fd5b6127de8361265d565b946020939093013593505050565b600080602083850312156127ff57600080fd5b823567ffffffffffffffff8082111561281757600080fd5b818501915085601f83011261282b57600080fd5b81358181111561283a57600080fd5b8660208260051b850101111561284f57600080fd5b60209290920196919550909350505050565b60006020828403121561287357600080fd5b813561269481612bec565b60006020828403121561289057600080fd5b815161269481612bec565b6000602082840312156128ad57600080fd5b813567ffffffffffffffff8111156128c457600080fd5b8201601f810184136128d557600080fd5b611877848235602084016125e7565b6000602082840312156128f657600080fd5b5035919050565b60008151808452612915816020860160208601612ae7565b601f01601f19169290920160200192915050565b6000845161293b818460208901612ae7565b84519083019061294f818360208901612ae7565b8451910190612962818360208801612ae7565b0195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061299f908301846128fd565b9695505050505050565b60208152600061269460208301846128fd565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252600990820152683737ba1037bbb732b960b91b604082015260600190565b60006001600160801b03808316818516808303821115612a5457612a54612b94565b01949350505050565b60008219821115612a7057612a70612b94565b500190565b600082612a8457612a84612baa565b500490565b6000816000190483118215151615612aa357612aa3612b94565b500290565b60006001600160801b0383811690831681811015612ac857612ac8612b94565b039392505050565b600082821015612ae257612ae2612b94565b500390565b60005b83811015612b02578181015183820152602001612aea565b838111156114745750506000910152565b600081612b2257612b22612b94565b506000190190565b600181811c90821680612b3e57607f821691505b60208210811415612b5f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b7957612b79612b94565b5060010190565b600082612b8f57612b8f612baa565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610b7f57600080fdfea2646970667358221220cc75e07ccd89a6390967d67c82a949b450efa51205570386d4d85b202616e00064736f6c63430008070033

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.