ETH Price: $3,358.86 (+5.45%)

Token

Catens (Cat)

Overview

Max Total Supply

2,930 Cat

Holders

1,437

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Balance
2 Cat
0x45a1fe688c01ccfd4606ac31d1f7b10fe2aa875e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xc88Afdd2...384456e17
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
OmniERC721

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1 runs

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 3 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @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 {
        _setApprovalForAll(_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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 5 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 10 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Initial set of the first token ID to be minted.
     */
    function _setNextTokenId(uint256 _index) internal virtual {
        require(_currentIndex == 0);
        _currentIndex = _index;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

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

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

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

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

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

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

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

File 15 of 18 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 16 of 18 : OmniERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "../interfaces/IOmniERC721.sol";
import "./ERC721A.sol";
import {CreateParams, Allowlist} from "../structs/erc721/ERC721Structs.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

/**
 * @title OmniERC721
 * @author Omnisea
 * @custom:version 1.1
 * @notice OmniERC721 is ERC721 contract with mint function restricted for TokenFactory.
 *         The above makes it suited for handling (validation & execution) cross-chain actions.
 */
contract OmniERC721 is IOmniERC721, ERC721A, ReentrancyGuard {
    using Strings for uint256;

    event TokenMinted(address collAddr, address owner, uint256 tokenId);

    modifier isBeforeMint() {
        uint256 _minted = _totalMinted();
        require((_minted == 0 || (_minted - preMintedToPlatform - preMintedToTeam) == 0), "!isBeforeMint");
        _;
    }

    modifier onlyTokenFactory() {
        require(msg.sender == tokenFactory);
        _;
    }

    address private constant TREASURY = 0x61104fBe07ecc735D8d84422c7f045f8d29DBf15;

    string public collectionName;
    uint256 public override createdAt;
    uint256 public override maxSupply;
    address public override creator;
    uint256 public override dropFrom;
    uint256 public override points;
    uint256 public dropTo;
    string public collectionURI;
    uint256 public publicPrice;
    string public override assetName;
    address public tokenFactory;
    string public tokensURI;
    mapping(uint256 => string) public tokenURIMap;
    uint256 public mintLimit;
    uint256[] public tokenURIIndexFrom;
    string public _notRevealedURI;
    address public owner;
    Allowlist public allowlist;
    mapping(address => uint256) mintedCount;
    mapping(address => uint256) allowlistMintedCount;
    bool public isZeroIndexed;
    uint256 private preMintedToPlatform;
    uint256 private preMintedToTeam;

    /**
     * @notice Sets the TokenFactory, and creates ERC721 collection contract.
     *
     * @param _symbol A collection symbol.
     * @param params See CreateParams struct in ERC721Structs.sol.
     * @param _creator A collection creator.
     * @param _tokenFactoryAddress Address of the TokenFactory linked with CollectionRepository.
     */
    constructor(
        string memory _symbol,
        CreateParams memory params,
        address _creator,
        address _tokenFactoryAddress
    ) ERC721A(params.name, _symbol) {
        tokenFactory = _tokenFactoryAddress;
        creator = _creator;
        owner = creator;
        tokensURI = params.tokensURI;
        maxSupply = params.maxSupply;
        publicPrice = params.price;
        createdAt = block.timestamp;
        collectionName = params.name;
        collectionURI = params.uri;
        assetName = params.assetName;
        isZeroIndexed = params.isZeroIndexed;
        _setDates(params.from, params.to);
        _setNextTokenId(isZeroIndexed ? 0 : 1);

        if (params.points > 0) {
            _addPoints(params.points);
        }
    }

    /**
     * @notice Returns the baseURI for the IPFS-restricted tokenURI creation.
     */
    function _baseURI() internal pure override returns (string memory) {
        return "ipfs://";
    }

    /**
     * @notice Returns contract-level metadata URI.
     */
    function contractURI() public view returns (string memory) {
        return string(abi.encodePacked(_baseURI(), collectionURI));
    }

    /**
     * @notice Returns metadata URI of a specific token.
     *
     * @param tokenId ID of a token.
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (bytes(_notRevealedURI).length > 0) {
            return _notRevealedURI;
        }

        return string(abi.encodePacked(_baseURI(), _getTokenURI(tokenId), "/", tokenId.toString(), ".json"));
    }

    /**
     * @notice Mints ERC721 token.
     *
     * @param _owner ERC721 token owner.
     * @param _quantity tokens to mint in a batch.
     */
    function mint(address _owner, uint256 _quantity, bytes32[] memory _merkleProof) override external nonReentrant {
        _validateMint(_quantity, _owner, _merkleProof);
        _mint(_owner, _quantity);
        emit TokenMinted(address(this), _owner, _nextTokenId());
    }

    /**
     * @notice Validates ERC721 token mint.
     */
    function _validateMint(uint256 _quantity, address _owner, bytes32[] memory _merkleProof) internal onlyTokenFactory {
        uint256 _newTotalMinted = _totalMinted() + _quantity;
        if (maxSupply > 0) require(maxSupply >= _newTotalMinted, ">maxSupply");
        if (dropFrom > 0) require(block.timestamp >= dropFrom, "!started");
        if (dropTo > 0) require(block.timestamp <= dropTo, "ended");
        if (mintLimit > 0) require(mintLimit >= _newTotalMinted, ">mintLimit");

        mintedCount[_owner] += _quantity;
        if (allowlist.isEnabled) {
            if (block.timestamp >= allowlist.publicFrom) {
                uint256 publicMints = mintedCount[_owner] - allowlistMintedCount[_owner];

                require(allowlist.maxPerAddressPublic >= publicMints, ">maxPerAddressPublic");
            } else {
                require(isAllowlisted(_owner, _merkleProof), "!allowlisted");
                allowlistMintedCount[_owner] += _quantity;
                require(allowlist.maxPerAddress >= allowlistMintedCount[_owner], ">maxPerAddress");
            }
        }
    }

    /**
     * @notice Validates and sets minting dates.
     *
     * @param from Minting start date.
     * @param to Minting end date.
     */
    function _setDates(uint256 from, uint256 to) internal {
        if (from > 0) {
            require(from >= (block.timestamp - 1 days));
            dropFrom = from;
        }
        if (to > 0) {
            require(to > from && to > block.timestamp);
            dropTo = to;
        }
    }

    /**
     * @notice Sets Metadata URI as non-revealable.
     *
     * @param _uri notRevealedURI.
     */
    function setNotRevealedURI(string memory _uri) external isBeforeMint {
        require(msg.sender == owner);
        _notRevealedURI = _uri;
    }

    /**
     * @notice Removes notRevealedURI making collection's metadata revealed.
     */
    function reveal() external {
        require(msg.sender == owner || msg.sender == TREASURY);
        _notRevealedURI = "";
    }

    function totalMinted() external view override returns (uint256) {
        return _totalMinted();
    }

    function mintPrice() public view override returns (uint256) {
        if (allowlist.isEnabled && allowlist.price > 0 && block.timestamp < allowlist.publicFrom) {
            return allowlist.price;
        }

        return publicPrice;
    }

    function isAllowlisted(address _account, bytes32[] memory _merkleProof) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_account));

        return MerkleProof.verify(_merkleProof, allowlist.merkleRoot, leaf);
    }

    function setAllowlist(bytes32 merkleRoot, uint256 maxPerAddress, uint256 maxPerAddressPublic, uint256 publicFrom, uint256 price, bool isEnabled) external {
        require(msg.sender == owner);

        allowlist = Allowlist(maxPerAddress, maxPerAddressPublic, publicFrom, price, merkleRoot, isEnabled);
    }

    function toggleAllowlist(bool _isEnabled) external {
        require(msg.sender == owner);
        allowlist.isEnabled = _isEnabled;
    }

    function preMintToTeam(uint256 _quantity) external isBeforeMint {
        require(msg.sender == creator, "!creator");
        if (dropFrom > 0) {
            require(block.timestamp < dropFrom, ">= dropFrom");
        }
        preMintedToTeam += _quantity;
        _mint(creator, _quantity);
    }

    function preMintToPlatform() external {
        require(preMintedToPlatform == 0, "isPreMinted");
        uint256 _quantity = maxSupply < 10000 ? (maxSupply < 100 ? 1 : 3) : 5;
        preMintedToPlatform = _quantity;
        _mint(TREASURY, _quantity);
    }

    function addPoints(uint256 quantity) external override onlyTokenFactory {
        _addPoints(quantity);
    }

    function setNextTokenURI(uint256 _fromTokenId, string memory _nextTokenURI, uint256 _mintLimit) external {
        require(msg.sender == owner);
        require(_fromTokenId <= maxSupply, "from>maxSupply");
        require(_mintLimit <= maxSupply, "to>maxSupply");

        if (tokenURIIndexFrom.length > 0) {
            require(tokenURIIndexFrom[tokenURIIndexFrom.length - 1] < _fromTokenId, "!new");
        }

        tokenURIIndexFrom.push(_fromTokenId);
        uint256 tokenURIsCount = tokenURIIndexFrom.length;
        tokenURIMap[tokenURIsCount] = _nextTokenURI;
        mintLimit = _mintLimit;
    }

    function _getTokenURI(uint256 tokenId) internal view returns (string memory) {
        uint256 tokenURIsCount = tokenURIIndexFrom.length;

        if (tokenURIsCount == 0) {
            return tokensURI;
        }

        for (uint256 i = tokenURIsCount; i >= 1; i--) {
            if (tokenId >= tokenURIIndexFrom[i - 1]) {
                return tokenURIMap[i];
            }
        }

        return tokensURI;
    }

    function _addPoints(uint256 _quantity) internal {
        require(_quantity > 0, "!quantity");
        require(maxSupply > 0, "!pointable");
        points += _quantity;
    }

    /**
     * @dev Returns the starting token ID.
     */
    function _startTokenId() internal view override returns (uint256) {
        return isZeroIndexed ? 0 : 1;
    }
}

File 17 of 18 : IOmniERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

interface IOmniERC721 {
    function mint(address owner, uint256 quantity, bytes32[] memory _merkleProof) external;
    function maxSupply() external view returns (uint256);
    function mintPrice() external view returns (uint256);
    function totalMinted() external view returns (uint256);
    function creator() external view returns (address);
    function createdAt() external view returns (uint256);
    function dropFrom() external view returns (uint256);
    function assetName() external view returns (string memory);
    function points() external view returns (uint256);
    function addPoints(uint256 quantity) external;
}

File 18 of 18 : ERC721Structs.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
     * @notice Parameters for ERC721 collection creation.
     *
     * @param dstChainName Name of the destination chain.
     * @param name Name of the collection.
     * @param uri URI to collection's metadata.
     * @param fileURI URI of the file linked with the collection.
     * @param price Price for a single ERC721 mint.
     * @param assetName Mapping name of the ERC20 being a currency for the minting price.
     * @param from Minting start date.
     * @param to Minting end date.
     * @param tokensURI CID of the NFTs metadata directory.
     * @param maxSupply Collection's max supply. Unlimited if 0.
     * @param isZeroIndexed First token ID.
     * @param gas Cross-chain task (tx) execution gas limit
     * @param redirectFee Fee required to cover transaction fee on the redirectChain, if involved. OmnichainRouter-specific.
     *        Involved during cross-chain multi-protocol routing. For example, Optimism (LayerZero) to Moonbeam (Axelar).
     */
struct CreateParams {
    string dstChainName;
    string name;
    string uri;
    uint256 price;
    string assetName;
    uint256 from;
    uint256 to;
    string tokensURI;
    uint256 maxSupply;
    bool isZeroIndexed;
    uint256 points;
    uint gas;
    uint256 redirectFee;
}

/**
     * @notice Parameters for ERC721 mint.
     *
     * @param dstChainName Name of the destination (NFT's) chain.
     * @param coll Address of the collection.
     * @param mintPrice Price for the ERC721 mint. Used during cross-chain mint for locking purpose. Validated on the dstChain.
     * @param assetName Mapping name of the ERC20 being a currency for the minting price.
     * @param creator Address of the creator.
     * @param gas Cross-chain task (tx) execution gas limit
     * @param redirectFee Fee required to cover transaction fee on the redirectChain, if involved. OmnichainRouter-specific.
     *        Involved during cross-chain multi-protocol routing. For example, Optimism (LayerZero) to Moonbeam (Axelar).
     */
struct MintParams {
    string dstChainName;
    address coll;
    uint256 mintPrice;
    string assetName;
    uint256 quantity;
    address creator;
    bytes32[] merkleProof;
    uint256 gas;
    uint256 redirectFee;
}

/**
  * @notice Asset supported for omnichain minting.
  *
  * @param dstChainName Name of the destination (NFT's) chain.
  * @param coll Address of the collection.
*/
struct Asset {
    IERC20 token;
    uint256 decimals;
}

struct Allowlist {
    uint256 maxPerAddress;
    uint256 maxPerAddressPublic;
    uint256 publicFrom;
    uint256 price;
    bytes32 merkleRoot;
    bool isEnabled;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_symbol","type":"string"},{"components":[{"internalType":"string","name":"dstChainName","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"string","name":"assetName","type":"string"},{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"},{"internalType":"string","name":"tokensURI","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"bool","name":"isZeroIndexed","type":"bool"},{"internalType":"uint256","name":"points","type":"uint256"},{"internalType":"uint256","name":"gas","type":"uint256"},{"internalType":"uint256","name":"redirectFee","type":"uint256"}],"internalType":"struct CreateParams","name":"params","type":"tuple"},{"internalType":"address","name":"_creator","type":"address"},{"internalType":"address","name":"_tokenFactoryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"collAddr","type":"address"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_notRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"addPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlist","outputs":[{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxPerAddressPublic","type":"uint256"},{"internalType":"uint256","name":"publicFrom","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"assetName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createdAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dropFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dropTo","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":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isAllowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isZeroIndexed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","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":"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":"points","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preMintToPlatform","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"preMintToTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxPerAddressPublic","type":"uint256"},{"internalType":"uint256","name":"publicFrom","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"string","name":"_nextTokenURI","type":"string"},{"internalType":"uint256","name":"_mintLimit","type":"uint256"}],"name":"setNextTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"toggleAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURIIndexFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURIMap","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002d3038038062002d30833981016040819052620000349162000411565b826020015184816002908051906020019062000052929190620002a8565b50805162000068906003906020840190620002a8565b5050600160085550601380546001600160a01b038084166001600160a01b031992831617909255600c80549285169282168317905560198054909116909117905560e08301518051620000c491601491602090910190620002a8565b50610100830151600b55606083015160115542600a556020808401518051620000f2926009920190620002a8565b50604083015180516200010e91601091602090910190620002a8565b50608083015180516200012a91601291602090910190620002a8565b506101208301516022805460ff191691151591909117905560a083015160c0840151620001589190620001a3565b6022546200017c9060ff166200017057600162000173565b60005b60ff16620001f6565b610140830151156200019957610140830151620001999062000209565b50505050620006d0565b8115620001cc57620001b962015180426200064d565b821015620001c657600080fd5b600d8290555b8015620001f2578181118015620001e257504281115b620001ec57600080fd5b600f8190555b5050565b600054156200020457600080fd5b600055565b600081116200024b5760405162461bcd60e51b8152602060048201526009602482015268217175616e7469747960b81b60448201526064015b60405180910390fd5b6000600b54116200028c5760405162461bcd60e51b815260206004820152600a60248201526921706f696e7461626c6560b01b604482015260640162000242565b80600e6000828254620002a0919062000632565b909155505050565b828054620002b69062000667565b90600052602060002090601f016020900481019282620002da576000855562000325565b82601f10620002f557805160ff191683800117855562000325565b8280016001018555821562000325579182015b828111156200032557825182559160200191906001019062000308565b506200033392915062000337565b5090565b5b8082111562000333576000815560010162000338565b80516001600160a01b03811681146200036657600080fd5b919050565b805180151581146200036657600080fd5b600082601f8301126200038e57600080fd5b81516001600160401b03811115620003aa57620003aa620006ba565b6020620003c0601f8301601f19168201620005ff565b8281528582848701011115620003d557600080fd5b60005b83811015620003f5578581018301518282018401528201620003d8565b83811115620004075760008385840101525b5095945050505050565b600080600080608085870312156200042857600080fd5b84516001600160401b03808211156200044057600080fd5b6200044e888389016200037c565b955060208701519150808211156200046557600080fd5b908601906101a082890312156200047b57600080fd5b62000485620005d3565b8251828111156200049557600080fd5b620004a38a8286016200037c565b825250602083015182811115620004b957600080fd5b620004c78a8286016200037c565b602083015250604083015182811115620004e057600080fd5b620004ee8a8286016200037c565b604083015250606083015160608201526080830151828111156200051157600080fd5b6200051f8a8286016200037c565b60808301525060a083015160a082015260c083015160c082015260e0830151828111156200054c57600080fd5b6200055a8a8286016200037c565b60e083015250610100838101519082015261012091506200057d8284016200036b565b918101919091526101408281015190820152610160808301519082015261018091820151918101919091529250620005b8604086016200034e565b9150620005c8606086016200034e565b905092959194509250565b6040516101a081016001600160401b0381118282101715620005f957620005f9620006ba565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200062a576200062a620006ba565b604052919050565b60008219821115620006485762000648620006a4565b500190565b600082821015620006625762000662620006a4565b500390565b600181811c908216806200067c57607f821691505b602082108114156200069e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61265080620006e06000396000f3fe60806040526004361061020d5760003560e01c806301ffc9a71461021257806302d05d3f1461024757806306fdde031461027f578063081812fc146102a1578063095ea7b3146102c157806312fb1cbd146102d657806315f1e941146102f657806318160ddd1461030b5780631bb351001461032e5780631be6dd641461034457806323b872dd1461035a5780632b47da521461036d5780632dd0066e146103ca57806333006786146103df57806342842e0e146103ff57806346eb4c9a146104125780635a18ee1a146104275780636352211e14610447578063641ce14014610467578063657d1faf146104875780636817c76c146104a75780636da7870b146104bc57806370a08231146104dc5780638da5cb5b146104fc57806395d89b411461051c578063996517cf14610531578063a22cb46514610547578063a2309ff814610567578063a475b5dd1461057c578063a5097ebf14610591578063a945bf80146105a6578063b2609d77146105bc578063b88d4fde146105dc578063c0804758146105ef578063c87b56dd14610605578063c9230c5d14610625578063cf09e0d01461063a578063d5abeb0114610650578063d8bbf47814610666578063db79bf8114610686578063e5326ab1146106a6578063e77772fe146106bb578063e8a3d485146106db578063e985e9c5146106f0578063efc585ad14610739578063f2c4ce1e14610753575b600080fd5b34801561021e57600080fd5b5061023261022d3660046121e0565b610773565b60405190151581526020015b60405180910390f35b34801561025357600080fd5b50600c54610267906001600160a01b031681565b6040516001600160a01b03909116815260200161023e565b34801561028b57600080fd5b506102946107c5565b60405161023e9190612432565b3480156102ad57600080fd5b506102676102bc36600461224e565b610857565b6102d46102cf3660046120f4565b61089b565b005b3480156102e257600080fd5b506102d46102f136600461224e565b61093b565b34801561030257600080fd5b506102d461095e565b34801561031757600080fd5b506103206109f1565b60405190815260200161023e565b34801561033a57600080fd5b50610320600d5481565b34801561035057600080fd5b50610320600e5481565b6102d4610368366004611fc6565b610a08565b34801561037957600080fd5b50601a54601b54601c54601d54601e54601f5461039b95949392919060ff1686565b6040805196875260208701959095529385019290925260608401526080830152151560a082015260c00161023e565b3480156103d657600080fd5b50610294610b87565b3480156103eb57600080fd5b506102326103fa36600461207d565b610c15565b6102d461040d366004611fc6565b610c64565b34801561041e57600080fd5b50610294610c84565b34801561043357600080fd5b5061029461044236600461224e565b610c91565b34801561045357600080fd5b5061026761046236600461224e565b610caa565b34801561047357600080fd5b506102d461048236600461211e565b610cb5565b34801561049357600080fd5b506102d46104a2366004612267565b610d81565b3480156104b357600080fd5b50610320610ee0565b3480156104c857600080fd5b506102d46104d736600461224e565b610f16565b3480156104e857600080fd5b506103206104f7366004611f78565b61101f565b34801561050857600080fd5b50601954610267906001600160a01b031681565b34801561052857600080fd5b5061029461106d565b34801561053d57600080fd5b5061032060165481565b34801561055357600080fd5b506102d46105623660046120ca565b61107c565b34801561057357600080fd5b506103206110e8565b34801561058857600080fd5b506102d46110f7565b34801561059d57600080fd5b5061029461114a565b3480156105b257600080fd5b5061032060115481565b3480156105c857600080fd5b506102d46105d7366004612174565b611157565b6102d46105ea366004612002565b611181565b3480156105fb57600080fd5b50610320600f5481565b34801561061157600080fd5b5061029461062036600461224e565b6111cb565b34801561063157600080fd5b506102946112b8565b34801561064657600080fd5b50610320600a5481565b34801561065c57600080fd5b50610320600b5481565b34801561067257600080fd5b506102d461068136600461218f565b6112c5565b34801561069257600080fd5b506103206106a136600461224e565b611336565b3480156106b257600080fd5b50610294611357565b3480156106c757600080fd5b50601354610267906001600160a01b031681565b3480156106e757600080fd5b50610294611364565b3480156106fc57600080fd5b5061023261070b366004611f93565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561074557600080fd5b506022546102329060ff1681565b34801561075f57600080fd5b506102d461076e36600461221a565b611395565b60006301ffc9a760e01b6001600160e01b0319831614806107a457506380ac58cd60e01b6001600160e01b03198316145b806107bf5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546107d490612522565b80601f016020809104026020016040519081016040528092919081815260200182805461080090612522565b801561084d5780601f106108225761010080835404028352916020019161084d565b820191906000526020600020905b81548152906001019060200180831161083057829003601f168201915b5050505050905090565b60006108628261140b565b61087f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108a682610caa565b9050336001600160a01b038216146108df576108c2813361070b565b6108df576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6013546001600160a01b0316331461095257600080fd5b61095b81611446565b50565b602354156109a15760405162461bcd60e51b815260206004820152600b60248201526a1a5cd41c99535a5b9d195960aa1b60448201526064015b60405180910390fd5b6000612710600b54106109b55760056109c9565b6064600b54106109c65760036109c9565b60015b60ff166023819055905061095b7361104fbe07ecc735d8d84422c7f045f8d29dbf15826114db565b60006109fb6115bc565b6001546000540303905090565b6000610a13826115db565b9050836001600160a01b0316816001600160a01b031614610a465760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610a9357610a76863361070b565b610a9357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610aba57604051633a954ecd60e21b815260040160405180910390fd5b8015610ac557600082555b6001600160a01b03868116600090815260056020526040808220805460001901905591871681522080546001019055610b0285600160e11b611651565b600085815260046020526040902055600160e11b8316610b505760018401600081815260046020526040902054610b4e576000548114610b4e5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206125fb83398151915260405160405180910390a4505050505050565b60148054610b9490612522565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc090612522565b8015610c0d5780601f10610be257610100808354040283529160200191610c0d565b820191906000526020600020905b815481529060010190602001808311610bf057829003601f168201915b505050505081565b6040516001600160601b0319606084901b1660208201526000908190603401604051602081830303815290604052805190602001209050610c5c83601a6004015483611666565b949350505050565b610c7f83838360405180602001604052806000815250611181565b505050565b60188054610b9490612522565b60156020526000908152604090208054610b9490612522565b60006107bf826115db565b60026008541415610d085760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610998565b6002600855610d1882848361167c565b610d2283836114db565b7fdf1b2b09e9800d31c599375056be9f9e4eb37f078102643600c4e149714efaad3084610d4e60005490565b604080516001600160a01b0394851681529390921660208401529082015260600160405180910390a15050600160085550565b6019546001600160a01b03163314610d9857600080fd5b600b54831115610ddb5760405162461bcd60e51b815260206004820152600e60248201526d66726f6d3e6d6178537570706c7960901b6044820152606401610998565b600b54811115610e1c5760405162461bcd60e51b815260206004820152600c60248201526b746f3e6d6178537570706c7960a01b6044820152606401610998565b60175415610e885760178054849190610e37906001906124c8565b81548110610e4757610e476125b8565b906000526020600020015410610e885760405162461bcd60e51b815260040161099890602080825260049082015263216e657760e01b604082015260600190565b601780546001810182557fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15018490555460008181526015602090815260409091208451610ed792860190611db7565b50506016555050565b601f5460009060ff168015610ef65750601d5415155b8015610f035750601c5442105b15610f0f5750601d5490565b5060115490565b6000610f2061194d565b9050801580610f465750602454602354610f3a90836124c8565b610f4491906124c8565b155b610f625760405162461bcd60e51b815260040161099890612445565b600c546001600160a01b03163314610fa75760405162461bcd60e51b815260206004820152600860248201526710b1b932b0ba37b960c11b6044820152606401610998565b600d5415610fee57600d544210610fee5760405162461bcd60e51b815260206004820152600b60248201526a3e3d2064726f7046726f6d60a81b6044820152606401610998565b8160246000828254611000919061249c565b9091555050600c5461101b906001600160a01b0316836114db565b5050565b60006001600160a01b038216611048576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6060600380546107d490612522565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006110f261194d565b905090565b6019546001600160a01b03163314806111235750337361104fbe07ecc735d8d84422c7f045f8d29dbf15145b61112c57600080fd5b60408051602081019182905260009081905261095b91601891611db7565b60108054610b9490612522565b6019546001600160a01b0316331461116e57600080fd5b601f805460ff1916911515919091179055565b61118c848484610a08565b6001600160a01b0383163b156111c5576111a884848484611960565b6111c5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606000601880546111dc90612522565b9050111561127657601880546111f190612522565b80601f016020809104026020016040519081016040528092919081815260200182805461121d90612522565b801561126a5780601f1061123f5761010080835404028352916020019161126a565b820191906000526020600020905b81548152906001019060200180831161124d57829003601f168201915b50505050509050919050565b61127e611a57565b61128783611a78565b61129084611c0e565b6040516020016112a2939291906122e2565b6040516020818303038152906040529050919050565b60128054610b9490612522565b6019546001600160a01b031633146112dc57600080fd5b6040805160c08101825286815260208101869052908101849052606081018390526080810187905290151560a0909101819052601a94909455601b92909255601c55601d55601e91909155601f805460ff19169091179055565b6017818154811061134657600080fd5b600091825260209091200154905081565b60098054610b9490612522565b606061136e611a57565b6010604051602001611381929190612344565b604051602081830303815290604052905090565b600061139f61194d565b90508015806113c557506024546023546113b990836124c8565b6113c391906124c8565b155b6113e15760405162461bcd60e51b815260040161099890612445565b6019546001600160a01b031633146113f857600080fd5b8151610c7f906018906020850190611db7565b6000816114166115bc565b11158015611425575060005482105b80156107bf575050600090815260046020526040902054600160e01b161590565b600081116114825760405162461bcd60e51b8152602060048201526009602482015268217175616e7469747960b81b6044820152606401610998565b6000600b54116114c15760405162461bcd60e51b815260206004820152600a60248201526921706f696e7461626c6560b01b6044820152606401610998565b80600e60008282546114d3919061249c565b909155505050565b600054816114fc5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260056020526040902080546001600160401b018402019055611533836001841460e11b611651565b6000828152600460205260408120919091556001600160a01b0384169083830190839083906000805160206125fb8339815191528180a4600183015b81811461159557808360006000805160206125fb833981519152600080a460010161156f565b50816115b357604051622e076360e81b815260040160405180910390fd5b60005550505050565b60225460009060ff166115d05760016115d3565b60005b60ff16905090565b600081806115e76115bc565b116116385760005481101561163857600081815260046020526040902054600160e01b8116611636575b8061162f575060001901600081815260046020526040902054611611565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b4260a01b176001600160a01b03919091161790565b6000826116738584611d0b565b14949350505050565b6013546001600160a01b0316331461169357600080fd5b60008361169e61194d565b6116a8919061249c565b600b54909150156116f25780600b5410156116f25760405162461bcd60e51b815260206004820152600a6024820152693e6d6178537570706c7960b01b6044820152606401610998565b600d541561173757600d544210156117375760405162461bcd60e51b8152602060048201526008602482015267085cdd185c9d195960c21b6044820152606401610998565b600f541561177957600f544211156117795760405162461bcd60e51b8152602060048201526005602482015264195b99195960da1b6044820152606401610998565b601654156117c0578060165410156117c05760405162461bcd60e51b815260206004820152600a6024820152690f9b5a5b9d131a5b5a5d60b21b6044820152606401610998565b6001600160a01b0383166000908152602080526040812080548692906117e790849061249c565b9091555050601f5460ff16156111c557601c544210611880576001600160a01b03831660009081526021602090815260408083205491805282205461182c91906124c8565b905080601a60010154101561187a5760405162461bcd60e51b81526020600482015260146024820152733e6d6178506572416464726573735075626c696360601b6044820152606401610998565b506111c5565b61188a8383610c15565b6118c55760405162461bcd60e51b815260206004820152600c60248201526b08585b1b1bdddb1a5cdd195960a21b6044820152606401610998565b6001600160a01b038316600090815260216020526040812080548692906118ed90849061249c565b90915550506001600160a01b038316600090815260216020526040902054601a5410156111c55760405162461bcd60e51b815260206004820152600e60248201526d3e6d61785065724164647265737360901b6044820152606401610998565b60006119576115bc565b60005403905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906119959033908990889088906004016123f5565b602060405180830381600087803b1580156119af57600080fd5b505af19250505080156119df575060408051601f3d908101601f191682019092526119dc918101906121fd565b60015b611a3a573d808015611a0d576040519150601f19603f3d011682016040523d82523d6000602084013e611a12565b606091505b508051611a32576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080518082019091526007815266697066733a2f2f60c81b602082015290565b60175460609080611b165760148054611a9090612522565b80601f0160208091040260200160405190810160405280929190818152602001828054611abc90612522565b8015611b095780601f10611ade57610100808354040283529160200191611b09565b820191906000526020600020905b815481529060010190602001808311611aec57829003601f168201915b5050505050915050919050565b805b60018110611c00576017611b2d6001836124c8565b81548110611b3d57611b3d6125b8565b90600052602060002001548410611bee5760008181526015602052604090208054611b6790612522565b80601f0160208091040260200160405190810160405280929190818152602001828054611b9390612522565b8015611be05780601f10611bb557610100808354040283529160200191611be0565b820191906000526020600020905b815481529060010190602001808311611bc357829003601f168201915b505050505092505050919050565b80611bf88161250b565b915050611b18565b5060148054611a9090612522565b606081611c325750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c5c5780611c468161255d565b9150611c559050600a836124b4565b9150611c36565b6000816001600160401b03811115611c7657611c766125ce565b6040519080825280601f01601f191660200182016040528015611ca0576020820181803683370190505b5090505b8415610c5c57611cb56001836124c8565b9150611cc2600a86612578565b611ccd90603061249c565b60f81b818381518110611ce257611ce26125b8565b60200101906001600160f81b031916908160001a905350611d04600a866124b4565b9450611ca4565b600081815b8451811015611daf576000858281518110611d2d57611d2d6125b8565b60200260200101519050808311611d6f576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611d9c565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611da78161255d565b915050611d10565b509392505050565b828054611dc390612522565b90600052602060002090601f016020900481019282611de55760008555611e2b565b82601f10611dfe57805160ff1916838001178555611e2b565b82800160010185558215611e2b579182015b82811115611e2b578251825591602001919060010190611e10565b50611e37929150611e3b565b5090565b5b80821115611e375760008155600101611e3c565b60006001600160401b03831115611e6957611e696125ce565b611e7c601f8401601f191660200161246c565b9050828152838383011115611e9057600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611ebe57600080fd5b919050565b600082601f830112611ed457600080fd5b813560206001600160401b03821115611eef57611eef6125ce565b8160051b611efe82820161246c565b838152828101908684018388018501891015611f1957600080fd5b600093505b85841015611f3c578035835260019390930192918401918401611f1e565b50979650505050505050565b80358015158114611ebe57600080fd5b600082601f830112611f6957600080fd5b61162f83833560208501611e50565b600060208284031215611f8a57600080fd5b61162f82611ea7565b60008060408385031215611fa657600080fd5b611faf83611ea7565b9150611fbd60208401611ea7565b90509250929050565b600080600060608486031215611fdb57600080fd5b611fe484611ea7565b9250611ff260208501611ea7565b9150604084013590509250925092565b6000806000806080858703121561201857600080fd5b61202185611ea7565b935061202f60208601611ea7565b92506040850135915060608501356001600160401b0381111561205157600080fd5b8501601f8101871361206257600080fd5b61207187823560208401611e50565b91505092959194509250565b6000806040838503121561209057600080fd5b61209983611ea7565b915060208301356001600160401b038111156120b457600080fd5b6120c085828601611ec3565b9150509250929050565b600080604083850312156120dd57600080fd5b6120e683611ea7565b9150611fbd60208401611f48565b6000806040838503121561210757600080fd5b61211083611ea7565b946020939093013593505050565b60008060006060848603121561213357600080fd5b61213c84611ea7565b92506020840135915060408401356001600160401b0381111561215e57600080fd5b61216a86828701611ec3565b9150509250925092565b60006020828403121561218657600080fd5b61162f82611f48565b60008060008060008060c087890312156121a857600080fd5b86359550602087013594506040870135935060608701359250608087013591506121d460a08801611f48565b90509295509295509295565b6000602082840312156121f257600080fd5b813561162f816125e4565b60006020828403121561220f57600080fd5b815161162f816125e4565b60006020828403121561222c57600080fd5b81356001600160401b0381111561224257600080fd5b610c5c84828501611f58565b60006020828403121561226057600080fd5b5035919050565b60008060006060848603121561227c57600080fd5b8335925060208401356001600160401b0381111561229957600080fd5b6122a586828701611f58565b925050604084013590509250925092565b600081518084526122ce8160208601602086016124df565b601f01601f19169290920160200192915050565b600084516122f48184602089016124df565b8451908301906123088183602089016124df565b602f60f81b910190815283516123258160018401602088016124df565b64173539b7b760d91b6001929091019182015260060195945050505050565b60008351602061235782858389016124df565b845491840191600090600181811c908083168061237557607f831692505b85831081141561239357634e487b7160e01b85526022600452602485fd5b8080156123a757600181146123b8576123e5565b60ff198516885283880195506123e5565b60008b81526020902060005b858110156123dd5781548a8201529084019088016123c4565b505083880195505b50939a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612428908301846122b6565b9695505050505050565b60208152600061162f60208301846122b6565b6020808252600d908201526c085a5cd099599bdc99535a5b9d609a1b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715612494576124946125ce565b604052919050565b600082198211156124af576124af61258c565b500190565b6000826124c3576124c36125a2565b500490565b6000828210156124da576124da61258c565b500390565b60005b838110156124fa5781810151838201526020016124e2565b838111156111c55750506000910152565b60008161251a5761251a61258c565b506000190190565b600181811c9082168061253657607f821691505b6020821081141561255757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125715761257161258c565b5060010190565b600082612587576125876125a2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461095b57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220cfc736b80f526cdd0fe5c9cbd9ef5e46b13e323a3d413f9c174d510677dd314964736f6c63430008070033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f285e70ca2002b796a575e473285282bbf39d7900000000000000000000000001217101c5b117327a79fd258821703297bda08a00000000000000000000000000000000000000000000000000000000000000003646164000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c4b40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084f7074696d69736d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046461646100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d51465471425a6347583531346b484671337357566e7a5861545875757377347433395366523432697635764a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d564a4c62384c7967654c74384243786570653746623939706143714c586636706e344d47764d596756755372000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061020d5760003560e01c806301ffc9a71461021257806302d05d3f1461024757806306fdde031461027f578063081812fc146102a1578063095ea7b3146102c157806312fb1cbd146102d657806315f1e941146102f657806318160ddd1461030b5780631bb351001461032e5780631be6dd641461034457806323b872dd1461035a5780632b47da521461036d5780632dd0066e146103ca57806333006786146103df57806342842e0e146103ff57806346eb4c9a146104125780635a18ee1a146104275780636352211e14610447578063641ce14014610467578063657d1faf146104875780636817c76c146104a75780636da7870b146104bc57806370a08231146104dc5780638da5cb5b146104fc57806395d89b411461051c578063996517cf14610531578063a22cb46514610547578063a2309ff814610567578063a475b5dd1461057c578063a5097ebf14610591578063a945bf80146105a6578063b2609d77146105bc578063b88d4fde146105dc578063c0804758146105ef578063c87b56dd14610605578063c9230c5d14610625578063cf09e0d01461063a578063d5abeb0114610650578063d8bbf47814610666578063db79bf8114610686578063e5326ab1146106a6578063e77772fe146106bb578063e8a3d485146106db578063e985e9c5146106f0578063efc585ad14610739578063f2c4ce1e14610753575b600080fd5b34801561021e57600080fd5b5061023261022d3660046121e0565b610773565b60405190151581526020015b60405180910390f35b34801561025357600080fd5b50600c54610267906001600160a01b031681565b6040516001600160a01b03909116815260200161023e565b34801561028b57600080fd5b506102946107c5565b60405161023e9190612432565b3480156102ad57600080fd5b506102676102bc36600461224e565b610857565b6102d46102cf3660046120f4565b61089b565b005b3480156102e257600080fd5b506102d46102f136600461224e565b61093b565b34801561030257600080fd5b506102d461095e565b34801561031757600080fd5b506103206109f1565b60405190815260200161023e565b34801561033a57600080fd5b50610320600d5481565b34801561035057600080fd5b50610320600e5481565b6102d4610368366004611fc6565b610a08565b34801561037957600080fd5b50601a54601b54601c54601d54601e54601f5461039b95949392919060ff1686565b6040805196875260208701959095529385019290925260608401526080830152151560a082015260c00161023e565b3480156103d657600080fd5b50610294610b87565b3480156103eb57600080fd5b506102326103fa36600461207d565b610c15565b6102d461040d366004611fc6565b610c64565b34801561041e57600080fd5b50610294610c84565b34801561043357600080fd5b5061029461044236600461224e565b610c91565b34801561045357600080fd5b5061026761046236600461224e565b610caa565b34801561047357600080fd5b506102d461048236600461211e565b610cb5565b34801561049357600080fd5b506102d46104a2366004612267565b610d81565b3480156104b357600080fd5b50610320610ee0565b3480156104c857600080fd5b506102d46104d736600461224e565b610f16565b3480156104e857600080fd5b506103206104f7366004611f78565b61101f565b34801561050857600080fd5b50601954610267906001600160a01b031681565b34801561052857600080fd5b5061029461106d565b34801561053d57600080fd5b5061032060165481565b34801561055357600080fd5b506102d46105623660046120ca565b61107c565b34801561057357600080fd5b506103206110e8565b34801561058857600080fd5b506102d46110f7565b34801561059d57600080fd5b5061029461114a565b3480156105b257600080fd5b5061032060115481565b3480156105c857600080fd5b506102d46105d7366004612174565b611157565b6102d46105ea366004612002565b611181565b3480156105fb57600080fd5b50610320600f5481565b34801561061157600080fd5b5061029461062036600461224e565b6111cb565b34801561063157600080fd5b506102946112b8565b34801561064657600080fd5b50610320600a5481565b34801561065c57600080fd5b50610320600b5481565b34801561067257600080fd5b506102d461068136600461218f565b6112c5565b34801561069257600080fd5b506103206106a136600461224e565b611336565b3480156106b257600080fd5b50610294611357565b3480156106c757600080fd5b50601354610267906001600160a01b031681565b3480156106e757600080fd5b50610294611364565b3480156106fc57600080fd5b5061023261070b366004611f93565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561074557600080fd5b506022546102329060ff1681565b34801561075f57600080fd5b506102d461076e36600461221a565b611395565b60006301ffc9a760e01b6001600160e01b0319831614806107a457506380ac58cd60e01b6001600160e01b03198316145b806107bf5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546107d490612522565b80601f016020809104026020016040519081016040528092919081815260200182805461080090612522565b801561084d5780601f106108225761010080835404028352916020019161084d565b820191906000526020600020905b81548152906001019060200180831161083057829003601f168201915b5050505050905090565b60006108628261140b565b61087f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108a682610caa565b9050336001600160a01b038216146108df576108c2813361070b565b6108df576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6013546001600160a01b0316331461095257600080fd5b61095b81611446565b50565b602354156109a15760405162461bcd60e51b815260206004820152600b60248201526a1a5cd41c99535a5b9d195960aa1b60448201526064015b60405180910390fd5b6000612710600b54106109b55760056109c9565b6064600b54106109c65760036109c9565b60015b60ff166023819055905061095b7361104fbe07ecc735d8d84422c7f045f8d29dbf15826114db565b60006109fb6115bc565b6001546000540303905090565b6000610a13826115db565b9050836001600160a01b0316816001600160a01b031614610a465760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610a9357610a76863361070b565b610a9357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610aba57604051633a954ecd60e21b815260040160405180910390fd5b8015610ac557600082555b6001600160a01b03868116600090815260056020526040808220805460001901905591871681522080546001019055610b0285600160e11b611651565b600085815260046020526040902055600160e11b8316610b505760018401600081815260046020526040902054610b4e576000548114610b4e5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206125fb83398151915260405160405180910390a4505050505050565b60148054610b9490612522565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc090612522565b8015610c0d5780601f10610be257610100808354040283529160200191610c0d565b820191906000526020600020905b815481529060010190602001808311610bf057829003601f168201915b505050505081565b6040516001600160601b0319606084901b1660208201526000908190603401604051602081830303815290604052805190602001209050610c5c83601a6004015483611666565b949350505050565b610c7f83838360405180602001604052806000815250611181565b505050565b60188054610b9490612522565b60156020526000908152604090208054610b9490612522565b60006107bf826115db565b60026008541415610d085760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610998565b6002600855610d1882848361167c565b610d2283836114db565b7fdf1b2b09e9800d31c599375056be9f9e4eb37f078102643600c4e149714efaad3084610d4e60005490565b604080516001600160a01b0394851681529390921660208401529082015260600160405180910390a15050600160085550565b6019546001600160a01b03163314610d9857600080fd5b600b54831115610ddb5760405162461bcd60e51b815260206004820152600e60248201526d66726f6d3e6d6178537570706c7960901b6044820152606401610998565b600b54811115610e1c5760405162461bcd60e51b815260206004820152600c60248201526b746f3e6d6178537570706c7960a01b6044820152606401610998565b60175415610e885760178054849190610e37906001906124c8565b81548110610e4757610e476125b8565b906000526020600020015410610e885760405162461bcd60e51b815260040161099890602080825260049082015263216e657760e01b604082015260600190565b601780546001810182557fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15018490555460008181526015602090815260409091208451610ed792860190611db7565b50506016555050565b601f5460009060ff168015610ef65750601d5415155b8015610f035750601c5442105b15610f0f5750601d5490565b5060115490565b6000610f2061194d565b9050801580610f465750602454602354610f3a90836124c8565b610f4491906124c8565b155b610f625760405162461bcd60e51b815260040161099890612445565b600c546001600160a01b03163314610fa75760405162461bcd60e51b815260206004820152600860248201526710b1b932b0ba37b960c11b6044820152606401610998565b600d5415610fee57600d544210610fee5760405162461bcd60e51b815260206004820152600b60248201526a3e3d2064726f7046726f6d60a81b6044820152606401610998565b8160246000828254611000919061249c565b9091555050600c5461101b906001600160a01b0316836114db565b5050565b60006001600160a01b038216611048576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6060600380546107d490612522565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006110f261194d565b905090565b6019546001600160a01b03163314806111235750337361104fbe07ecc735d8d84422c7f045f8d29dbf15145b61112c57600080fd5b60408051602081019182905260009081905261095b91601891611db7565b60108054610b9490612522565b6019546001600160a01b0316331461116e57600080fd5b601f805460ff1916911515919091179055565b61118c848484610a08565b6001600160a01b0383163b156111c5576111a884848484611960565b6111c5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606000601880546111dc90612522565b9050111561127657601880546111f190612522565b80601f016020809104026020016040519081016040528092919081815260200182805461121d90612522565b801561126a5780601f1061123f5761010080835404028352916020019161126a565b820191906000526020600020905b81548152906001019060200180831161124d57829003601f168201915b50505050509050919050565b61127e611a57565b61128783611a78565b61129084611c0e565b6040516020016112a2939291906122e2565b6040516020818303038152906040529050919050565b60128054610b9490612522565b6019546001600160a01b031633146112dc57600080fd5b6040805160c08101825286815260208101869052908101849052606081018390526080810187905290151560a0909101819052601a94909455601b92909255601c55601d55601e91909155601f805460ff19169091179055565b6017818154811061134657600080fd5b600091825260209091200154905081565b60098054610b9490612522565b606061136e611a57565b6010604051602001611381929190612344565b604051602081830303815290604052905090565b600061139f61194d565b90508015806113c557506024546023546113b990836124c8565b6113c391906124c8565b155b6113e15760405162461bcd60e51b815260040161099890612445565b6019546001600160a01b031633146113f857600080fd5b8151610c7f906018906020850190611db7565b6000816114166115bc565b11158015611425575060005482105b80156107bf575050600090815260046020526040902054600160e01b161590565b600081116114825760405162461bcd60e51b8152602060048201526009602482015268217175616e7469747960b81b6044820152606401610998565b6000600b54116114c15760405162461bcd60e51b815260206004820152600a60248201526921706f696e7461626c6560b01b6044820152606401610998565b80600e60008282546114d3919061249c565b909155505050565b600054816114fc5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260056020526040902080546001600160401b018402019055611533836001841460e11b611651565b6000828152600460205260408120919091556001600160a01b0384169083830190839083906000805160206125fb8339815191528180a4600183015b81811461159557808360006000805160206125fb833981519152600080a460010161156f565b50816115b357604051622e076360e81b815260040160405180910390fd5b60005550505050565b60225460009060ff166115d05760016115d3565b60005b60ff16905090565b600081806115e76115bc565b116116385760005481101561163857600081815260046020526040902054600160e01b8116611636575b8061162f575060001901600081815260046020526040902054611611565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b4260a01b176001600160a01b03919091161790565b6000826116738584611d0b565b14949350505050565b6013546001600160a01b0316331461169357600080fd5b60008361169e61194d565b6116a8919061249c565b600b54909150156116f25780600b5410156116f25760405162461bcd60e51b815260206004820152600a6024820152693e6d6178537570706c7960b01b6044820152606401610998565b600d541561173757600d544210156117375760405162461bcd60e51b8152602060048201526008602482015267085cdd185c9d195960c21b6044820152606401610998565b600f541561177957600f544211156117795760405162461bcd60e51b8152602060048201526005602482015264195b99195960da1b6044820152606401610998565b601654156117c0578060165410156117c05760405162461bcd60e51b815260206004820152600a6024820152690f9b5a5b9d131a5b5a5d60b21b6044820152606401610998565b6001600160a01b0383166000908152602080526040812080548692906117e790849061249c565b9091555050601f5460ff16156111c557601c544210611880576001600160a01b03831660009081526021602090815260408083205491805282205461182c91906124c8565b905080601a60010154101561187a5760405162461bcd60e51b81526020600482015260146024820152733e6d6178506572416464726573735075626c696360601b6044820152606401610998565b506111c5565b61188a8383610c15565b6118c55760405162461bcd60e51b815260206004820152600c60248201526b08585b1b1bdddb1a5cdd195960a21b6044820152606401610998565b6001600160a01b038316600090815260216020526040812080548692906118ed90849061249c565b90915550506001600160a01b038316600090815260216020526040902054601a5410156111c55760405162461bcd60e51b815260206004820152600e60248201526d3e6d61785065724164647265737360901b6044820152606401610998565b60006119576115bc565b60005403905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906119959033908990889088906004016123f5565b602060405180830381600087803b1580156119af57600080fd5b505af19250505080156119df575060408051601f3d908101601f191682019092526119dc918101906121fd565b60015b611a3a573d808015611a0d576040519150601f19603f3d011682016040523d82523d6000602084013e611a12565b606091505b508051611a32576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080518082019091526007815266697066733a2f2f60c81b602082015290565b60175460609080611b165760148054611a9090612522565b80601f0160208091040260200160405190810160405280929190818152602001828054611abc90612522565b8015611b095780601f10611ade57610100808354040283529160200191611b09565b820191906000526020600020905b815481529060010190602001808311611aec57829003601f168201915b5050505050915050919050565b805b60018110611c00576017611b2d6001836124c8565b81548110611b3d57611b3d6125b8565b90600052602060002001548410611bee5760008181526015602052604090208054611b6790612522565b80601f0160208091040260200160405190810160405280929190818152602001828054611b9390612522565b8015611be05780601f10611bb557610100808354040283529160200191611be0565b820191906000526020600020905b815481529060010190602001808311611bc357829003601f168201915b505050505092505050919050565b80611bf88161250b565b915050611b18565b5060148054611a9090612522565b606081611c325750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c5c5780611c468161255d565b9150611c559050600a836124b4565b9150611c36565b6000816001600160401b03811115611c7657611c766125ce565b6040519080825280601f01601f191660200182016040528015611ca0576020820181803683370190505b5090505b8415610c5c57611cb56001836124c8565b9150611cc2600a86612578565b611ccd90603061249c565b60f81b818381518110611ce257611ce26125b8565b60200101906001600160f81b031916908160001a905350611d04600a866124b4565b9450611ca4565b600081815b8451811015611daf576000858281518110611d2d57611d2d6125b8565b60200260200101519050808311611d6f576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611d9c565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611da78161255d565b915050611d10565b509392505050565b828054611dc390612522565b90600052602060002090601f016020900481019282611de55760008555611e2b565b82601f10611dfe57805160ff1916838001178555611e2b565b82800160010185558215611e2b579182015b82811115611e2b578251825591602001919060010190611e10565b50611e37929150611e3b565b5090565b5b80821115611e375760008155600101611e3c565b60006001600160401b03831115611e6957611e696125ce565b611e7c601f8401601f191660200161246c565b9050828152838383011115611e9057600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611ebe57600080fd5b919050565b600082601f830112611ed457600080fd5b813560206001600160401b03821115611eef57611eef6125ce565b8160051b611efe82820161246c565b838152828101908684018388018501891015611f1957600080fd5b600093505b85841015611f3c578035835260019390930192918401918401611f1e565b50979650505050505050565b80358015158114611ebe57600080fd5b600082601f830112611f6957600080fd5b61162f83833560208501611e50565b600060208284031215611f8a57600080fd5b61162f82611ea7565b60008060408385031215611fa657600080fd5b611faf83611ea7565b9150611fbd60208401611ea7565b90509250929050565b600080600060608486031215611fdb57600080fd5b611fe484611ea7565b9250611ff260208501611ea7565b9150604084013590509250925092565b6000806000806080858703121561201857600080fd5b61202185611ea7565b935061202f60208601611ea7565b92506040850135915060608501356001600160401b0381111561205157600080fd5b8501601f8101871361206257600080fd5b61207187823560208401611e50565b91505092959194509250565b6000806040838503121561209057600080fd5b61209983611ea7565b915060208301356001600160401b038111156120b457600080fd5b6120c085828601611ec3565b9150509250929050565b600080604083850312156120dd57600080fd5b6120e683611ea7565b9150611fbd60208401611f48565b6000806040838503121561210757600080fd5b61211083611ea7565b946020939093013593505050565b60008060006060848603121561213357600080fd5b61213c84611ea7565b92506020840135915060408401356001600160401b0381111561215e57600080fd5b61216a86828701611ec3565b9150509250925092565b60006020828403121561218657600080fd5b61162f82611f48565b60008060008060008060c087890312156121a857600080fd5b86359550602087013594506040870135935060608701359250608087013591506121d460a08801611f48565b90509295509295509295565b6000602082840312156121f257600080fd5b813561162f816125e4565b60006020828403121561220f57600080fd5b815161162f816125e4565b60006020828403121561222c57600080fd5b81356001600160401b0381111561224257600080fd5b610c5c84828501611f58565b60006020828403121561226057600080fd5b5035919050565b60008060006060848603121561227c57600080fd5b8335925060208401356001600160401b0381111561229957600080fd5b6122a586828701611f58565b925050604084013590509250925092565b600081518084526122ce8160208601602086016124df565b601f01601f19169290920160200192915050565b600084516122f48184602089016124df565b8451908301906123088183602089016124df565b602f60f81b910190815283516123258160018401602088016124df565b64173539b7b760d91b6001929091019182015260060195945050505050565b60008351602061235782858389016124df565b845491840191600090600181811c908083168061237557607f831692505b85831081141561239357634e487b7160e01b85526022600452602485fd5b8080156123a757600181146123b8576123e5565b60ff198516885283880195506123e5565b60008b81526020902060005b858110156123dd5781548a8201529084019088016123c4565b505083880195505b50939a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612428908301846122b6565b9695505050505050565b60208152600061162f60208301846122b6565b6020808252600d908201526c085a5cd099599bdc99535a5b9d609a1b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715612494576124946125ce565b604052919050565b600082198211156124af576124af61258c565b500190565b6000826124c3576124c36125a2565b500490565b6000828210156124da576124da61258c565b500390565b60005b838110156124fa5781810151838201526020016124e2565b838111156111c55750506000910152565b60008161251a5761251a61258c565b506000190190565b600181811c9082168061253657607f821691505b6020821081141561255757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125715761257161258c565b5060010190565b600082612587576125876125a2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461095b57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220cfc736b80f526cdd0fe5c9cbd9ef5e46b13e323a3d413f9c174d510677dd314964736f6c63430008070033

[ 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.