ETH Price: $3,357.61 (-3.17%)

Token

InscribedFelines (FELS)
 

Overview

Max Total Supply

964 FELS

Holders

566

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 FELS
0xdd266b1eda1d43606842446fea3de88ac7fafce2
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

1,000 Felines, ready to stay on Ethereum or permanently move to Ordinals.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
InscribedFelines

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : InscribedFelines.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC721A} from "./ERC721A.sol";

error NoEOA();
error ActivityOff();
error SummonExceedsMaxSupply();
error AlreadyMinted();
error InsufficientPayment();
error NoETH();

contract InscribedFelines is ERC721A, Ownable {
    uint256 private constant MAX_SUPPLY = 1000;
    uint256 private constant PAID_SUMMON_PRICE = 0.029 ether;
    string private baseURI;

    address payable private _receiverOne;
    address payable private _receiverTwo;
    address payable private _receiverThree;
    bool private _activity = true;

    mapping(address => bool) private _isMinted;

    function receiverOne() public view returns (address) {
        return _receiverOne;
    }

    function receiverTwo() public view returns (address) {
        return _receiverTwo;
    }

    function receiverThree() public view returns (address) {
        return _receiverThree;
    }

    function activity() public view returns (bool) {
        return _activity;
    }

    function isMinted(address account) public view returns (bool) {
        return _isMinted[account];
    }

    function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) {
        string memory _tokenURI = super.tokenURI(tokenId);
        return string(abi.encodePacked(_tokenURI, ".json"));
    }

    function checkUserNfts(address user) external view returns (uint[] memory) {
        uint256[] memory tokenIds = new uint256[](balanceOf(user));
        uint mark;
        for (uint256 i; i < balanceOf(user); i++) {
            for (uint256 j = mark + 1; j < currentIndex; j++) {
                if (ownerOf(j) == user) {
                    tokenIds[i] = j;
                    mark = j;
                    break;
                }
            }
        }
        return (tokenIds);
    }

    event Burned(uint256 tokenId, string accountBTC);

    constructor(
        string memory baseURI_,
        address receiverOne_,
        address receiverTwo_,
        address receiverThree_
    ) ERC721A("InscribedFelines", "FELS", 1, 1000) {
        require(receiverOne_ != address(0), "Receiver one is zero address");
        require(receiverTwo_ != address(0), "Receiver two is zero address");
        require(receiverThree_ != address(0), "Receiver three is zero address");
        _receiverOne = payable(receiverOne_);
        _receiverTwo = payable(receiverTwo_);
        _receiverThree = payable(receiverThree_);

        baseURI = baseURI_;
    }

    function changeActivityState() external onlyOwner returns (bool) {
        _activity = !_activity;
        return true;
    }

    function mint() external payable returns (bool) {
        if (msg.sender != tx.origin) revert NoEOA();
        if (!_activity) revert ActivityOff();
        if (_totalMinted() + 1 > MAX_SUPPLY) revert SummonExceedsMaxSupply();
        if (msg.value < PAID_SUMMON_PRICE) revert InsufficientPayment();
        if (_isMinted[msg.sender]) revert AlreadyMinted();

        _safeMint(msg.sender, 1, true, "");
        _isMinted[msg.sender] = true;
        return true;
    }

    function burn(uint256 tokenId, string memory accountBTC) external returns (bool) {
        _burn(tokenId);
        emit Burned(tokenId, accountBTC);
        return true;
    }

    function setBaseURI(string memory uri) external onlyOwner returns (bool) {
        baseURI = uri;
        return true;
    }

    function withdraw() external onlyOwner returns (bool) {
        if (address(this).balance == 0) revert NoETH();

        uint256 state = (address(this).balance * 3300) / 10000;

        (bool successOne, ) = _receiverOne.call{value: state}("");
        require(successOne, "Call to receiverOne failed");

        (bool successTwo, ) = _receiverTwo.call{value: state}("");
        require(successTwo, "Call to receiverTwo failed");

        (bool successThree, ) = _receiverThree.call{value: address(this).balance}("");
        require(successThree, "Call to receiverThree failed");

        return true;
    }

    function _startTokenId() internal view virtual override(ERC721A) returns (uint256) {
        return 1;
    }

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

File 2 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 6 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 7 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 11 of 14 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 12 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 13 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 14 of 14 : ERC721A.sol
//SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.4;

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

contract ERC721A is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    mapping(uint256 => bool) burned;
    uint256 burnedCount;

    uint256 currentIndex;

    uint256 public immutable collectionSize;
    uint256 public maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    /**
     * @dev
     * maxBatchSize refers to how much a minter can mint at a time.
     * collectionSize_ refers to how many tokens are in the collection.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_,
        uint256 collectionSize_
    ) {
        require(
            collectionSize_ > 0,
            "ERC721A: collection must have a nonzero supply"
        );
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
        collectionSize = collectionSize_;
        currentIndex = _startTokenId();
    }

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

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

    function currentTokenId() public view returns (uint256) {
        return _totalMinted();
    }

    function getNextTokenId() public view returns (uint256) {
        return SafeMath.add(_totalMinted(), 1);
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        unchecked {
            return currentIndex - _startTokenId();
        }
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("ERC721A: unable to get token of owner by index");
    }

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

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

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

    function ownershipOf(uint256 tokenId)
        internal
        view
        returns (TokenOwnership memory)
    {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (true) {
                    return ownership;
                }

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory baseURI = _baseURI();
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId.toString()))
                : "";
    }

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        require(to != owner, "ERC721A: approval to current owner");

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

        _approve(to, tokenId, owner);
    }

    function batchApprove(address to, uint256[] memory tokenIds) public {
        for (uint256 i; i < tokenIds.length; i++) {
            address owner = ERC721A.ownerOf(tokenIds[i]);
            require(to != owner, "ERC721A: approval to current owner");

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

            _approve(to, tokenIds[i], owner);
        }
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

    function _burn(uint256 tokenId) internal {
        require(msg.sender == ownerOf(tokenId), "it's not owner");
        setApprovalForAll(address(this), true);
        transferFrom(ownerOf(tokenId), address(0), tokenId);
        burnedCount++;
        burned[tokenId] = true;
    }

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        //require(_tokenApprovals[tokenId] == _msgSender(), "Not approved for this address");
        safeTransferFrom(from, to, tokenId, "");
    }

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

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

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

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

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

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + (isAdminMint ? 0 : uint128(quantity))
        );

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            _ownerships[updatedIndex] = TokenOwnership(
                to,
                uint64(block.timestamp)
            );
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                "ERC721A: transfer to non ERC721Receiver implementer"
            );

            updatedIndex++;
        }

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(
                    prevOwnership.addr,
                    prevOwnership.startTimestamp
                );
            }
        }

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

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

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set owners to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        if (currentIndex == _startTokenId()) revert("No Tokens Minted Yet");

        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > collectionSize - 1) {
            endIndex = collectionSize - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(
                    ownership.addr,
                    ownership.startTimestamp
                );
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

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

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

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when from and to are both non-zero.
     * - from and to are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"address","name":"receiverOne_","type":"address"},{"internalType":"address","name":"receiverTwo_","type":"address"},{"internalType":"address","name":"receiverThree_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ActivityOff","type":"error"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"NoEOA","type":"error"},{"inputs":[],"name":"NoETH","type":"error"},{"inputs":[],"name":"SummonExceedsMaxSupply","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"accountBTC","type":"string"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"activity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchApprove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"accountBTC","type":"string"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeActivityState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"checkUserNfts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiverOne","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiverThree","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiverTwo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

604060a0815234620006935762002fa9803803806200001e81620006ce565b928339810190608081830312620006935780516001600160401b0391908281116200069357810192601f90808286011215620006935784518481116200069857602090601f19966200007683898785011601620006ce565b938285528383830101116200069357829060005b8381106200067e57505060009184010152620000a8818501620006f4565b93620000c46060620000bc8a8401620006f4565b9201620006f4565b90620000cf620006ae565b95601087526f496e7363726962656446656c696e657360801b84880152620000f6620006ae565b916004938484526346454c5360e01b868501526000600a5588518a81116200058f5785549960019a8b81811c9116801562000673575b898210146200056f5790818b8493116200061d575b5088908b8311600114620005b057600092620005a4575b5050600019600383901b1c1916908a1b1785555b83518a81116200058f5760059485548b81811c9116801562000584575b898210146200056f5790818b8493116200051b575b5088908b8311600114620004ae57600092620004a2575b5050600019600383901b1c1916908a1b1784555b60038990556103e86080526002899055600b80546001600160a01b0319808216339081179093558e519490926001600160a01b039283167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a381600f54961694851562000461575081169283156200041e5716928315620003da5781600d541617600d55600e541617600e55600160a01b9160018060a81b0319161717600f558351968711620003c557600c54918683811c93168015620003ba575b84841014620003a557508482116200035b575b505080928511600114620002f0575083945090839291600094620002e4575b50501b916000199060031b1c191617600c555b5161289f90816200070a82396080518161083d0152f35b015192503880620002ba565b929484908116600c60005284600020946000905b8883831062000340575050501062000326575b505050811b01600c55620002cd565b015160001960f88460031b161c1916905538808062000317565b85870151885590960195948501948793509081019062000304565b600c600052826000209085808901821c830193858a106200039b575b01901c019085905b8281106200038e57506200029b565b600081550185906200037f565b9350829362000377565b602290634e487b7160e01b6000525260246000fd5b92607f169262000288565b604182634e487b7160e01b6000525260246000fd5b508c5162461bcd60e51b8152808701889052601e60248201527f5265636569766572207468726565206973207a65726f206164647265737300006044820152606490fd5b8e5162461bcd60e51b81528089018a9052601c60248201527f52656365697665722074776f206973207a65726f2061646472657373000000006044820152606490fd5b62461bcd60e51b81528881018a9052601c60248201527f5265636569766572206f6e65206973207a65726f2061646472657373000000006044820152606490fd5b015190503880620001b5565b908e8d941691886000528a6000209260005b8c828210620004fb5750508411620004e1575b505050811b018455620001c9565b015160001960f88460031b161c19169055388080620004d3565b91929395968291958786015181550195019301908e9594939291620004c0565b90915086600052886000208b808501891c8201928b861062000565575b918e9186959493018a1c01915b828110620005555750506200019e565b600081558594508e910162000545565b9250819262000538565b602288634e487b7160e01b6000525260246000fd5b90607f169062000189565b604186634e487b7160e01b6000525260246000fd5b01519050388062000158565b908e8d941691896000528a6000209260005b8c828210620005fd5750508411620005e3575b505050811b0185556200016c565b015160001960f88460031b161c19169055388080620005d5565b91929395968291958786015181550195019301908e9594939291620005c2565b90915087600052886000208b80850160051c8201928b861062000669575b918e91869594930160051c01915b8281106200065957505062000141565b600081558594508e910162000649565b925081926200063b565b90607f16906200012c565b8181018301518682018401528492016200008a565b600080fd5b634e487b7160e01b600052604160045260246000fd5b60408051919082016001600160401b038111838210176200069857604052565b6040519190601f01601f191682016001600160401b038111838210176200069857604052565b51906001600160a01b0382168203620006935756fe6080604052600436101561001257600080fd5b60003560e01c80629a9b7b1461025657806301ffc9a714610251578063061ab6641461024c57806306fdde0314610247578063081812fc14610242578063095ea7b31461023d5780631249c58b1461023857806318160ddd1461023357806323b872dd1461022e5780632913daa0146102295780632f745c59146102245780633ccfd60b1461021f57806342842e0e1461021a57806345c0f533146102155780634a903a36146102105780634f6ccce71461020b57806355f804b3146102065780635d9c7a16146102015780636352211e146101fc57806365d5a9d0146101f757806370a08231146101f2578063715018a6146101ed5780637641e6f3146101e85780638da5cb5b146101e357806395d89b41146101de578063a22cb465146101d9578063ac5e7977146101d4578063b88d4fde146101cf578063c1b07b1a146101ca578063c87b56dd146101c5578063caa0f92a146101c0578063d7224ba0146101bb578063e985e9c5146101b6578063f2fde38b146101b1578063f71d6487146101ac5763f9f2a7ce146101a757600080fd5b61141b565b611334565b611230565b6111d3565b6111b5565b611186565b611042565b611019565b610fb0565b610f87565b610e9d565b610df6565b610dcd565b610cb6565b610c58565b610c35565b610ba5565b610b5e565b610b38565b610a13565b6108a6565b610860565b610825565b6107ea565b61070f565b6106e8565b6106ca565b6106b3565b61065b565b61055b565b6104db565b61047f565b61039a565b610315565b61028f565b3461027857600036600319011261027857602060001960025401604051908152f35b600080fd5b6001600160e01b031981160361027857565b346102785760203660031901126102785760206004356102ae8161027d565b63ffffffff60e01b166380ac58cd60e01b8114908115610304575b81156102f3575b81156102e2575b506040519015158152f35b6301ffc9a760e01b149050386102d7565b63780e9d6360e01b811491506102d0565b635b5e139f60e01b811491506102c9565b3461027857600036600319011261027857600e546040516001600160a01b039091168152602090f35b60005b8381106103515750506000910152565b8181015183820152602001610341565b9060209161037a8151809281855285808601910161033e565b601f01601f1916010190565b906020610397928181520190610361565b90565b346102785760008060031936011261047c5760405190806004546103bd816117c7565b8085529160019180831690811561045257506001146103f7575b6103f3856103e781870382610976565b60405191829182610386565b0390f35b9250600483527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061043a5750505081016020016103e7826103f36103d7565b8054602085870181019190915290930192810161041f565b8695506103f3969350602092506103e794915060ff191682840152151560051b82010192936103d7565b80fd5b3461027857602036600319011261027857602061049d60043561198e565b6040516001600160a01b039091168152f35b600435906001600160a01b038216820361027857565b602435906001600160a01b038216820361027857565b34610278576040366003190112610278576105366104f76104af565b6001600160a01b03906024359061051e83610511846116fd565b5116809483161415611801565b8233148015610538575b61053190611858565b61207d565b005b50600083815260096020908152604080832033845290915290205460ff16610528565b60003660031901126102785732330361064957600f546105839060a01c60ff161590565b1590565b610637576103e8610599600019600254016114e0565b116106255766670758aa7c80003410610613573360009081526010602052604090205460ff16610601576105d46105ce611a81565b33612523565b3360009081526010602052604090206105f5905b805460ff19166001179055565b60405160018152602090f35b604051631bbdf5c560e31b8152600490fd5b60405163cd1c886760e01b8152600490fd5b604051639733cbc160e01b8152600490fd5b6040516330d13b0560e01b8152600490fd5b604051635e61f89d60e11b8152600490fd5b346102785760003660031901126102785760206106766114c8565b604051908152f35b6060906003190112610278576001600160a01b0390600435828116810361027857916024359081168103610278579060443590565b34610278576105366106c43661067e565b91611eba565b34610278576000366003190112610278576020600354604051908152f35b346102785760403660031901126102785760206106766107066104af565b6024359061152b565b346102785760008060031936011261047c5761072961145a565b47156107d857806107ab8180806105f59561074e6107464761276e565b612710900490565b610786828080808561077661076a600d5460018060a01b031690565b6001600160a01b031690565b5af161078061214c565b50612785565b600e5461079b906001600160a01b031661076a565b5af16107a561214c565b506127d1565b600f548190819081906107c6906001600160a01b031661076a565b47905af16107d261214c565b5061281d565b60405163b66458d760e01b8152600490fd5b34610278576105366108206107fe3661067e565b906040519261080c8461095b565b6000845261081b838383611eba565b61223d565b611ae8565b346102785760003660031901126102785760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346102785760003660031901126102785761087961145a565b600f805460ff60a01b19811660a091821c60ff161590911b60ff60a01b1617905560405160018152602090f35b34610278576020366003190112610278576004356108c26114c8565b8110156108d457602090604051908152f35b60405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608490fd5b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761095657604052565b610925565b602081019081106001600160401b0382111761095657604052565b90601f801991011681019081106001600160401b0382111761095657604052565b604051906109a48261093b565b565b6001600160401b03811161095657601f01601f191660200190565b9291926109cd826109a6565b916109db6040519384610976565b829481845281830111610278578281602093846000960137010152565b9080601f8301121561027857816020610397933591016109c1565b3461027857602080600319360112610278576001600160401b0360043581811161027857610a459036906004016109f8565b91610a4e61145a565b825191821161095657610a6b82610a66600c546117c7565b6126fd565b80601f8311600114610aae57508192600092610aa3575b5050600019600383901b1c1916600191821b17600c55604051908152602090f35b015190503880610a82565b90601f19831693610ae1600c6000527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c790565b926000905b868210610b205750508360019510610b07575b505050811b01600c556105f5565b015160001960f88460031b161c19169055388080610af9565b80600185968294968601518155019501930190610ae6565b3461027857600036600319011261027857602060ff600f5460a01c166040519015158152f35b346102785760203660031901126102785760206001600160a01b03610b846004356116fd565b5116604051908152f35b6001600160401b0381116109565760051b60200190565b3461027857604036600319011261027857610bbe6104af565b6024356001600160401b0381116102785736602382011215610278578060040135610be881610b8e565b91610bf66040519384610976565b81835260209160248385019160051b8301019136831161027857602401905b828210610c265761053685876118f4565b81358152908301908301610c15565b34610278576020366003190112610278576020610676610c536104af565b61167b565b346102785760008060031936011261047c57610c7261145a565b600b80546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b34610278576040366003190112610278576004356024356001600160401b03811161027857610ce99036906004016109f8565b6001600160a01b03610cfa836116fd565b51163303610d97577f807d972db6803e8ebfe2ba7ce23584b5fbd0ef70584ff004d2184d2ab1d2e0ad91610d2d30611a12565b610d4f81610d4a610d3d826116fd565b516001600160a01b031690565b611c28565b610d62610d5d6001546114ee565b600155565b610d796105e8826000526000602052604060002090565b610d88604051928392836126e6565b0390a160405160018152602090f35b60405162461bcd60e51b815260206004820152600e60248201526d34ba13b9903737ba1037bbb732b960911b6044820152606490fd5b3461027857600036600319011261027857600b546040516001600160a01b039091168152602090f35b346102785760008060031936011261047c576040519080600554610e19816117c7565b808552916001918083169081156104525750600114610e42576103f3856103e781870382610976565b9250600583527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db05b828410610e855750505081016020016103e7826103f36103d7565b80546020858701810191909152909301928101610e6a565b3461027857604036600319011261027857610eb66104af565b6024359081151590818303610278576001600160a01b03811692338414610f4257610f03610f149233600052600960205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b6040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606490fd5b3461027857600036600319011261027857600f546040516001600160a01b039091168152602090f35b3461027857608036600319011261027857610fc96104af565b610fd16104c5565b90606435906044356001600160401b0383116102785736602384011215610278576105369361100d6108209436906024816004013591016109c1565b9261081b838383611eba565b3461027857600036600319011261027857600d546040516001600160a01b039091168152602090f35b3461027857602080600319360112610278576040516000600c54611065816117c7565b80845290600190818116908115611168575060011461110d575b505090611092816103f394930382610976565b8051156110fb576110c06110d46103e7926110c66110b16004356122c2565b60405194859388850190612279565b90612279565b03601f198101835282610976565b915b6110c66110ea604051948593840190612279565b64173539b7b760d91b815260050190565b506103e7611107611a81565b916110d6565b600c6000908152949392507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b8286106111555750929391925050810182016110928261107f565b805484870186015294840194810161113a565b60ff1916868601525050151560051b8201830190506110928261107f565b3461027857600036600319011261027857600254806000198101116111b057602090604051908152f35b6114b2565b34610278576000366003190112610278576020600a54604051908152f35b3461027857604036600319011261027857602060ff6112246111f36104af565b6111fb6104c5565b6001600160a01b0391821660009081526009865260408082209290931681526020919091522090565b54166040519015158152f35b34610278576020366003190112610278576112496104af565b61125161145a565b6001600160a01b039081169081156112a557600b54826bffffffffffffffffffffffff60a01b821617600b55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b6020908160408183019282815285518094520193019160005b828110611320575050505090565b835185529381019392810192600101611312565b346102785760203660031901126102785761134d6104af565b6113568161167b565b9061136082610b8e565b9161136e6040519384610976565b80835261137d601f1991610b8e565b01366020840137600254916001600160a01b03828116906000805b6113a18661167b565b81101561140d576113b1826114e0565b8781106113cd575b506113c66113a1916114ee565b9050611398565b84846113db610d3d846116fd565b16146113ef576113ea906114ee565b6113b1565b819250806113c6916114046113a194896118ca565b529291506113b9565b604051806103f387826112f9565b34610278576020366003190112610278576001600160a01b0361143c6104af565b166000526010602052602060ff604060002054166040519015158152f35b600b546001600160a01b0316330361146e57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b634e487b7160e01b600052601160045260246000fd5b60025460001980600154830301910181116111b05790565b90600182018092116111b057565b60001981146111b05760010190565b9060405161150a8161093b565b91546001600160a01b038116835260a01c6001600160401b03166020830152565b916115358361167b565b82101561162b576115446114c8565b916000938490855b8581106115b35760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608490fd5b0390fd5b6115d2610d3d6115cd836000526006602052604060002090565b6114fd565b6001600160a01b0390808216611623575b50808316908416146115fe575b6115f9906114ee565b61154c565b9583811461161a576116126115f9916114ee565b9690506115f0565b50929350505050565b9350386115e3565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608490fd5b6001600160a01b031680156116a45760005260076020526001600160801b036040600020541690565b60405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608490fd5b6040516117098161093b565b6000815260006020820152508060011115806117bc575b6117815760405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608490fd5b600052600660205260406000206001600160401b03604051916117a38361093b565b546001600160a01b038116835260a01c16602082015290565b506002548110611720565b90600182811c921680156117f7575b60208310146117e157565b634e487b7160e01b600052602260045260246000fd5b91607f16916117d6565b1561180857565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608490fd5b1561185f57565b60405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608490fd5b80518210156118de5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b60009291835b81518110156119875761195f9061195a6001600160a01b036119368161192961192386896118ca565b516116fd565b5116809288161415611801565b8033148015611964575b61194990611858565b61195383866118ca565b518661207d565b6114ee565b6118fa565b50808852600960209081526040808a20336000908152925290205460ff16611940565b5050509050565b61199781611b08565b156119b7576000908152600860205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608490fd5b6001600160a01b03811690338214610f42573360009081526009602090815260408083206001600160a01b03909416835292905220600160ff19825416179055604051600181527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b60405190611a8e8261095b565b60008252565b60809060208152603360208201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b60608201520190565b15611aef57565b60405162461bcd60e51b8152806115af60048201611a94565b80600111159081611b17575090565b90506002541190565b15611b2757565b60405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608490fd5b15611b8e57565b60405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608490fd5b6001600160801b0390811660001901919082116111b057565b9060016001600160801b03809316019182116111b057565b906001600160801b038092169182116111b057565b611c86600091611c37846116fd565b8051611c4b906001600160a01b031661076a565b33148015611ea6575b8015611e78575b611c6490611b20565b80516001600160a01b03838116949093611ce892611cb5929086168714611b87565b8351611c9b906001600160a01b031689612030565b6001600160a01b0316600090815260076020526040902090565b611cce611cc982546001600160801b031690565b611be2565b6001600160801b03166001600160801b0319825416179055565b600080526007602052611d2f7f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df5b611cce611d2a82546001600160801b031690565b611bfb565b611d9e611d3a610997565b858152426001600160401b031660208201525b611d61876000526006602052604060002090565b8151815460209093015167ffffffffffffffff60a01b60a09190911b166001600160e01b03199093166001600160a01b0390911617919091179055565b611da7856114e0565b91611dcc611dbf846000526006602052604060002090565b546001600160a01b031690565b1615611dfb575b50507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a4565b611e0482611b08565b15611dd3578051611e7192611d6191611e6190611e37906020906001600160a01b03165b9501516001600160401b031690565b611e51611e42610997565b6001600160a01b039096168652565b6001600160401b03166020850152565b6000526006602052604060002090565b3880611dd3565b5080516001600160a01b0316600090815260096020908152604080832033845290915290205460ff16611c5b565b5033611eb461076a8761198e565b14611c54565b611c8691611ec7846116fd565b8051611edb906001600160a01b031661076a565b3314801561201c575b8015611fee575b611ef490611b20565b80516001600160a01b03848116959094611f1692611cb5929087168814611b87565b6001600160a01b0382166000908152600760205260409020611f3790611d16565b611f62611f42610997565b6001600160a01b0384168152426001600160401b03166020820152611d4d565b611f6b856114e0565b9083611f84611dbf846000526006602052604060002090565b1615611fb6575b505016907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b611fbf82611b08565b15611f8b578051611fe792611d6191611e6190611e37906020906001600160a01b0316611e28565b3880611f8b565b5080516001600160a01b0316600090815260096020908152604080832033845290915290205460ff16611eeb565b503361202a61076a8761198e565b14611ee4565b600081815260086020526040812080546001600160a01b031916905590916001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b600082815260086020526040902080546001600160a01b0319166001600160a01b0383161790559091906001600160a01b0390811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b9081602091031261027857516103978161027d565b610397939260809260018060a01b031682526000602083015260408201528160608201520190610361565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261039792910190610361565b3d15612177573d9061215d826109a6565b9161216b6040519384610976565b82523d6000602084013e565b606090565b909190803b15612235576121ae602091600093604051948580948193630a85bd0160e11b998a845233600485016120f0565b03926001600160a01b03165af160009181612205575b506121f7576121d161214c565b805190816121f25760405162461bcd60e51b8152806115af60048201611a94565b602001fd5b6001600160e01b0319161490565b61222791925060203d811161222e575b61221f8183610976565b8101906120db565b90386121c4565b503d612215565b505050600190565b92909190823b15612270576121ae926020926000604051809681958294630a85bd0160e11b9a8b8552336004860161211b565b50505050600190565b9061228c6020928281519485920161033e565b0190565b9061229a826109a6565b6122a76040519182610976565b82815280926122b8601f19916109a6565b0190602036910137565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000808210156123f7575b506d04ee2d6d415b85acef8100000000808310156123e8575b50662386f26fc10000808310156123d9575b506305f5e100808310156123ca575b50612710808310156123bb575b5060648210156123ab575b600a809210156123a1575b600190816021612359828701612290565b95860101905b61236b575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561239c5791908261235f565b612364565b9160010191612348565b919060646002910491019161233d565b60049193920491019138612332565b60089193920491019138612325565b60109193920491019138612316565b60209193920491019138612304565b6040935081049150386122eb565b1561240c57565b60405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561246257565b60405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606490fd5b156124ae57565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608490fd5b9060405161250b8161093b565b91546001600160801b038116835260801c6020830152565b600254916001600160a01b038216919061253e831515612405565b61255261254d61057f86611b08565b61245b565b600354916125646001938411156124a7565b6001600160a01b0381166000908152600760205260409020612585906124fe565b9461262f61259d611d2a88516001600160801b031690565b6125e66125bd6125b86020809b01516001600160801b031690565b611c13565b6125d76125c8610997565b6001600160801b039094168452565b6001600160801b0316828a0152565b6001600160a01b0384166000908152600760205260409020815160209092015160801b6fffffffffffffffffffffffffffffffff19166001600160801b03909216919091179055565b93600080966001600160401b0342165b86891061265757505050505050506109a49150600255565b909192939495966126d36126d99161269e612670610997565b6001600160a01b038a1681526001600160401b03861681880152611d61836000526006602052604060002090565b8087877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a461195a6108208a838b61217c565b986114ee565b979695949392919061263f565b604090610397939281528160208201520190610361565b601f8111612709575050565b600090600c82527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7906020601f850160051c83019410612764575b601f0160051c01915b82811061275957505050565b81815560010161274d565b9092508290612744565b90610ce4918281029281840414901517156111b057565b1561278c57565b60405162461bcd60e51b815260206004820152601a60248201527f43616c6c20746f2072656365697665724f6e65206661696c65640000000000006044820152606490fd5b156127d857565b60405162461bcd60e51b815260206004820152601a60248201527f43616c6c20746f20726563656976657254776f206661696c65640000000000006044820152606490fd5b1561282457565b60405162461bcd60e51b815260206004820152601c60248201527f43616c6c20746f2072656365697665725468726565206661696c6564000000006044820152606490fdfea26469706673582212201ba0ddd637bcb669100ddd69078db4133feeb88b5d0b5b7a733c301ecd675f8764736f6c634300081300330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000a10ca941360db2bff9b4b945d9d4204a049a296d000000000000000000000000833f70a72a770b46170ace2521bceb646d7a2f0a000000000000000000000000f07c990e0b972af84496abf6bef8b0e2dc5b43a1000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f697066732e696f2f697066732f62616679626569657a657669616467726170757179777336376c35716378756e64777666366765747235376e6a70356a35796b647a627a637733342f000000000000000000000000000000

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c80629a9b7b1461025657806301ffc9a714610251578063061ab6641461024c57806306fdde0314610247578063081812fc14610242578063095ea7b31461023d5780631249c58b1461023857806318160ddd1461023357806323b872dd1461022e5780632913daa0146102295780632f745c59146102245780633ccfd60b1461021f57806342842e0e1461021a57806345c0f533146102155780634a903a36146102105780634f6ccce71461020b57806355f804b3146102065780635d9c7a16146102015780636352211e146101fc57806365d5a9d0146101f757806370a08231146101f2578063715018a6146101ed5780637641e6f3146101e85780638da5cb5b146101e357806395d89b41146101de578063a22cb465146101d9578063ac5e7977146101d4578063b88d4fde146101cf578063c1b07b1a146101ca578063c87b56dd146101c5578063caa0f92a146101c0578063d7224ba0146101bb578063e985e9c5146101b6578063f2fde38b146101b1578063f71d6487146101ac5763f9f2a7ce146101a757600080fd5b61141b565b611334565b611230565b6111d3565b6111b5565b611186565b611042565b611019565b610fb0565b610f87565b610e9d565b610df6565b610dcd565b610cb6565b610c58565b610c35565b610ba5565b610b5e565b610b38565b610a13565b6108a6565b610860565b610825565b6107ea565b61070f565b6106e8565b6106ca565b6106b3565b61065b565b61055b565b6104db565b61047f565b61039a565b610315565b61028f565b3461027857600036600319011261027857602060001960025401604051908152f35b600080fd5b6001600160e01b031981160361027857565b346102785760203660031901126102785760206004356102ae8161027d565b63ffffffff60e01b166380ac58cd60e01b8114908115610304575b81156102f3575b81156102e2575b506040519015158152f35b6301ffc9a760e01b149050386102d7565b63780e9d6360e01b811491506102d0565b635b5e139f60e01b811491506102c9565b3461027857600036600319011261027857600e546040516001600160a01b039091168152602090f35b60005b8381106103515750506000910152565b8181015183820152602001610341565b9060209161037a8151809281855285808601910161033e565b601f01601f1916010190565b906020610397928181520190610361565b90565b346102785760008060031936011261047c5760405190806004546103bd816117c7565b8085529160019180831690811561045257506001146103f7575b6103f3856103e781870382610976565b60405191829182610386565b0390f35b9250600483527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061043a5750505081016020016103e7826103f36103d7565b8054602085870181019190915290930192810161041f565b8695506103f3969350602092506103e794915060ff191682840152151560051b82010192936103d7565b80fd5b3461027857602036600319011261027857602061049d60043561198e565b6040516001600160a01b039091168152f35b600435906001600160a01b038216820361027857565b602435906001600160a01b038216820361027857565b34610278576040366003190112610278576105366104f76104af565b6001600160a01b03906024359061051e83610511846116fd565b5116809483161415611801565b8233148015610538575b61053190611858565b61207d565b005b50600083815260096020908152604080832033845290915290205460ff16610528565b60003660031901126102785732330361064957600f546105839060a01c60ff161590565b1590565b610637576103e8610599600019600254016114e0565b116106255766670758aa7c80003410610613573360009081526010602052604090205460ff16610601576105d46105ce611a81565b33612523565b3360009081526010602052604090206105f5905b805460ff19166001179055565b60405160018152602090f35b604051631bbdf5c560e31b8152600490fd5b60405163cd1c886760e01b8152600490fd5b604051639733cbc160e01b8152600490fd5b6040516330d13b0560e01b8152600490fd5b604051635e61f89d60e11b8152600490fd5b346102785760003660031901126102785760206106766114c8565b604051908152f35b6060906003190112610278576001600160a01b0390600435828116810361027857916024359081168103610278579060443590565b34610278576105366106c43661067e565b91611eba565b34610278576000366003190112610278576020600354604051908152f35b346102785760403660031901126102785760206106766107066104af565b6024359061152b565b346102785760008060031936011261047c5761072961145a565b47156107d857806107ab8180806105f59561074e6107464761276e565b612710900490565b610786828080808561077661076a600d5460018060a01b031690565b6001600160a01b031690565b5af161078061214c565b50612785565b600e5461079b906001600160a01b031661076a565b5af16107a561214c565b506127d1565b600f548190819081906107c6906001600160a01b031661076a565b47905af16107d261214c565b5061281d565b60405163b66458d760e01b8152600490fd5b34610278576105366108206107fe3661067e565b906040519261080c8461095b565b6000845261081b838383611eba565b61223d565b611ae8565b346102785760003660031901126102785760206040517f00000000000000000000000000000000000000000000000000000000000003e88152f35b346102785760003660031901126102785761087961145a565b600f805460ff60a01b19811660a091821c60ff161590911b60ff60a01b1617905560405160018152602090f35b34610278576020366003190112610278576004356108c26114c8565b8110156108d457602090604051908152f35b60405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608490fd5b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761095657604052565b610925565b602081019081106001600160401b0382111761095657604052565b90601f801991011681019081106001600160401b0382111761095657604052565b604051906109a48261093b565b565b6001600160401b03811161095657601f01601f191660200190565b9291926109cd826109a6565b916109db6040519384610976565b829481845281830111610278578281602093846000960137010152565b9080601f8301121561027857816020610397933591016109c1565b3461027857602080600319360112610278576001600160401b0360043581811161027857610a459036906004016109f8565b91610a4e61145a565b825191821161095657610a6b82610a66600c546117c7565b6126fd565b80601f8311600114610aae57508192600092610aa3575b5050600019600383901b1c1916600191821b17600c55604051908152602090f35b015190503880610a82565b90601f19831693610ae1600c6000527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c790565b926000905b868210610b205750508360019510610b07575b505050811b01600c556105f5565b015160001960f88460031b161c19169055388080610af9565b80600185968294968601518155019501930190610ae6565b3461027857600036600319011261027857602060ff600f5460a01c166040519015158152f35b346102785760203660031901126102785760206001600160a01b03610b846004356116fd565b5116604051908152f35b6001600160401b0381116109565760051b60200190565b3461027857604036600319011261027857610bbe6104af565b6024356001600160401b0381116102785736602382011215610278578060040135610be881610b8e565b91610bf66040519384610976565b81835260209160248385019160051b8301019136831161027857602401905b828210610c265761053685876118f4565b81358152908301908301610c15565b34610278576020366003190112610278576020610676610c536104af565b61167b565b346102785760008060031936011261047c57610c7261145a565b600b80546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b34610278576040366003190112610278576004356024356001600160401b03811161027857610ce99036906004016109f8565b6001600160a01b03610cfa836116fd565b51163303610d97577f807d972db6803e8ebfe2ba7ce23584b5fbd0ef70584ff004d2184d2ab1d2e0ad91610d2d30611a12565b610d4f81610d4a610d3d826116fd565b516001600160a01b031690565b611c28565b610d62610d5d6001546114ee565b600155565b610d796105e8826000526000602052604060002090565b610d88604051928392836126e6565b0390a160405160018152602090f35b60405162461bcd60e51b815260206004820152600e60248201526d34ba13b9903737ba1037bbb732b960911b6044820152606490fd5b3461027857600036600319011261027857600b546040516001600160a01b039091168152602090f35b346102785760008060031936011261047c576040519080600554610e19816117c7565b808552916001918083169081156104525750600114610e42576103f3856103e781870382610976565b9250600583527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db05b828410610e855750505081016020016103e7826103f36103d7565b80546020858701810191909152909301928101610e6a565b3461027857604036600319011261027857610eb66104af565b6024359081151590818303610278576001600160a01b03811692338414610f4257610f03610f149233600052600960205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b6040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606490fd5b3461027857600036600319011261027857600f546040516001600160a01b039091168152602090f35b3461027857608036600319011261027857610fc96104af565b610fd16104c5565b90606435906044356001600160401b0383116102785736602384011215610278576105369361100d6108209436906024816004013591016109c1565b9261081b838383611eba565b3461027857600036600319011261027857600d546040516001600160a01b039091168152602090f35b3461027857602080600319360112610278576040516000600c54611065816117c7565b80845290600190818116908115611168575060011461110d575b505090611092816103f394930382610976565b8051156110fb576110c06110d46103e7926110c66110b16004356122c2565b60405194859388850190612279565b90612279565b03601f198101835282610976565b915b6110c66110ea604051948593840190612279565b64173539b7b760d91b815260050190565b506103e7611107611a81565b916110d6565b600c6000908152949392507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b8286106111555750929391925050810182016110928261107f565b805484870186015294840194810161113a565b60ff1916868601525050151560051b8201830190506110928261107f565b3461027857600036600319011261027857600254806000198101116111b057602090604051908152f35b6114b2565b34610278576000366003190112610278576020600a54604051908152f35b3461027857604036600319011261027857602060ff6112246111f36104af565b6111fb6104c5565b6001600160a01b0391821660009081526009865260408082209290931681526020919091522090565b54166040519015158152f35b34610278576020366003190112610278576112496104af565b61125161145a565b6001600160a01b039081169081156112a557600b54826bffffffffffffffffffffffff60a01b821617600b55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b6020908160408183019282815285518094520193019160005b828110611320575050505090565b835185529381019392810192600101611312565b346102785760203660031901126102785761134d6104af565b6113568161167b565b9061136082610b8e565b9161136e6040519384610976565b80835261137d601f1991610b8e565b01366020840137600254916001600160a01b03828116906000805b6113a18661167b565b81101561140d576113b1826114e0565b8781106113cd575b506113c66113a1916114ee565b9050611398565b84846113db610d3d846116fd565b16146113ef576113ea906114ee565b6113b1565b819250806113c6916114046113a194896118ca565b529291506113b9565b604051806103f387826112f9565b34610278576020366003190112610278576001600160a01b0361143c6104af565b166000526010602052602060ff604060002054166040519015158152f35b600b546001600160a01b0316330361146e57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b634e487b7160e01b600052601160045260246000fd5b60025460001980600154830301910181116111b05790565b90600182018092116111b057565b60001981146111b05760010190565b9060405161150a8161093b565b91546001600160a01b038116835260a01c6001600160401b03166020830152565b916115358361167b565b82101561162b576115446114c8565b916000938490855b8581106115b35760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608490fd5b0390fd5b6115d2610d3d6115cd836000526006602052604060002090565b6114fd565b6001600160a01b0390808216611623575b50808316908416146115fe575b6115f9906114ee565b61154c565b9583811461161a576116126115f9916114ee565b9690506115f0565b50929350505050565b9350386115e3565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608490fd5b6001600160a01b031680156116a45760005260076020526001600160801b036040600020541690565b60405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608490fd5b6040516117098161093b565b6000815260006020820152508060011115806117bc575b6117815760405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608490fd5b600052600660205260406000206001600160401b03604051916117a38361093b565b546001600160a01b038116835260a01c16602082015290565b506002548110611720565b90600182811c921680156117f7575b60208310146117e157565b634e487b7160e01b600052602260045260246000fd5b91607f16916117d6565b1561180857565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608490fd5b1561185f57565b60405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608490fd5b80518210156118de5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b60009291835b81518110156119875761195f9061195a6001600160a01b036119368161192961192386896118ca565b516116fd565b5116809288161415611801565b8033148015611964575b61194990611858565b61195383866118ca565b518661207d565b6114ee565b6118fa565b50808852600960209081526040808a20336000908152925290205460ff16611940565b5050509050565b61199781611b08565b156119b7576000908152600860205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608490fd5b6001600160a01b03811690338214610f42573360009081526009602090815260408083206001600160a01b03909416835292905220600160ff19825416179055604051600181527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b60405190611a8e8261095b565b60008252565b60809060208152603360208201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b60608201520190565b15611aef57565b60405162461bcd60e51b8152806115af60048201611a94565b80600111159081611b17575090565b90506002541190565b15611b2757565b60405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608490fd5b15611b8e57565b60405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608490fd5b6001600160801b0390811660001901919082116111b057565b9060016001600160801b03809316019182116111b057565b906001600160801b038092169182116111b057565b611c86600091611c37846116fd565b8051611c4b906001600160a01b031661076a565b33148015611ea6575b8015611e78575b611c6490611b20565b80516001600160a01b03838116949093611ce892611cb5929086168714611b87565b8351611c9b906001600160a01b031689612030565b6001600160a01b0316600090815260076020526040902090565b611cce611cc982546001600160801b031690565b611be2565b6001600160801b03166001600160801b0319825416179055565b600080526007602052611d2f7f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df5b611cce611d2a82546001600160801b031690565b611bfb565b611d9e611d3a610997565b858152426001600160401b031660208201525b611d61876000526006602052604060002090565b8151815460209093015167ffffffffffffffff60a01b60a09190911b166001600160e01b03199093166001600160a01b0390911617919091179055565b611da7856114e0565b91611dcc611dbf846000526006602052604060002090565b546001600160a01b031690565b1615611dfb575b50507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a4565b611e0482611b08565b15611dd3578051611e7192611d6191611e6190611e37906020906001600160a01b03165b9501516001600160401b031690565b611e51611e42610997565b6001600160a01b039096168652565b6001600160401b03166020850152565b6000526006602052604060002090565b3880611dd3565b5080516001600160a01b0316600090815260096020908152604080832033845290915290205460ff16611c5b565b5033611eb461076a8761198e565b14611c54565b611c8691611ec7846116fd565b8051611edb906001600160a01b031661076a565b3314801561201c575b8015611fee575b611ef490611b20565b80516001600160a01b03848116959094611f1692611cb5929087168814611b87565b6001600160a01b0382166000908152600760205260409020611f3790611d16565b611f62611f42610997565b6001600160a01b0384168152426001600160401b03166020820152611d4d565b611f6b856114e0565b9083611f84611dbf846000526006602052604060002090565b1615611fb6575b505016907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b611fbf82611b08565b15611f8b578051611fe792611d6191611e6190611e37906020906001600160a01b0316611e28565b3880611f8b565b5080516001600160a01b0316600090815260096020908152604080832033845290915290205460ff16611eeb565b503361202a61076a8761198e565b14611ee4565b600081815260086020526040812080546001600160a01b031916905590916001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b600082815260086020526040902080546001600160a01b0319166001600160a01b0383161790559091906001600160a01b0390811691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b9081602091031261027857516103978161027d565b610397939260809260018060a01b031682526000602083015260408201528160608201520190610361565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261039792910190610361565b3d15612177573d9061215d826109a6565b9161216b6040519384610976565b82523d6000602084013e565b606090565b909190803b15612235576121ae602091600093604051948580948193630a85bd0160e11b998a845233600485016120f0565b03926001600160a01b03165af160009181612205575b506121f7576121d161214c565b805190816121f25760405162461bcd60e51b8152806115af60048201611a94565b602001fd5b6001600160e01b0319161490565b61222791925060203d811161222e575b61221f8183610976565b8101906120db565b90386121c4565b503d612215565b505050600190565b92909190823b15612270576121ae926020926000604051809681958294630a85bd0160e11b9a8b8552336004860161211b565b50505050600190565b9061228c6020928281519485920161033e565b0190565b9061229a826109a6565b6122a76040519182610976565b82815280926122b8601f19916109a6565b0190602036910137565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000808210156123f7575b506d04ee2d6d415b85acef8100000000808310156123e8575b50662386f26fc10000808310156123d9575b506305f5e100808310156123ca575b50612710808310156123bb575b5060648210156123ab575b600a809210156123a1575b600190816021612359828701612290565b95860101905b61236b575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561239c5791908261235f565b612364565b9160010191612348565b919060646002910491019161233d565b60049193920491019138612332565b60089193920491019138612325565b60109193920491019138612316565b60209193920491019138612304565b6040935081049150386122eb565b1561240c57565b60405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561246257565b60405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606490fd5b156124ae57565b60405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608490fd5b9060405161250b8161093b565b91546001600160801b038116835260801c6020830152565b600254916001600160a01b038216919061253e831515612405565b61255261254d61057f86611b08565b61245b565b600354916125646001938411156124a7565b6001600160a01b0381166000908152600760205260409020612585906124fe565b9461262f61259d611d2a88516001600160801b031690565b6125e66125bd6125b86020809b01516001600160801b031690565b611c13565b6125d76125c8610997565b6001600160801b039094168452565b6001600160801b0316828a0152565b6001600160a01b0384166000908152600760205260409020815160209092015160801b6fffffffffffffffffffffffffffffffff19166001600160801b03909216919091179055565b93600080966001600160401b0342165b86891061265757505050505050506109a49150600255565b909192939495966126d36126d99161269e612670610997565b6001600160a01b038a1681526001600160401b03861681880152611d61836000526006602052604060002090565b8087877fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a461195a6108208a838b61217c565b986114ee565b979695949392919061263f565b604090610397939281528160208201520190610361565b601f8111612709575050565b600090600c82527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7906020601f850160051c83019410612764575b601f0160051c01915b82811061275957505050565b81815560010161274d565b9092508290612744565b90610ce4918281029281840414901517156111b057565b1561278c57565b60405162461bcd60e51b815260206004820152601a60248201527f43616c6c20746f2072656365697665724f6e65206661696c65640000000000006044820152606490fd5b156127d857565b60405162461bcd60e51b815260206004820152601a60248201527f43616c6c20746f20726563656976657254776f206661696c65640000000000006044820152606490fd5b1561282457565b60405162461bcd60e51b815260206004820152601c60248201527f43616c6c20746f2072656365697665725468726565206661696c6564000000006044820152606490fdfea26469706673582212201ba0ddd637bcb669100ddd69078db4133feeb88b5d0b5b7a733c301ecd675f8764736f6c63430008130033

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000a10ca941360db2bff9b4b945d9d4204a049a296d000000000000000000000000833f70a72a770b46170ace2521bceb646d7a2f0a000000000000000000000000f07c990e0b972af84496abf6bef8b0e2dc5b43a1000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f697066732e696f2f697066732f62616679626569657a657669616467726170757179777336376c35716378756e64777666366765747235376e6a70356a35796b647a627a637733342f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI_ (string): https://ipfs.io/ipfs/bafybeiezeviadgrapuqyws67l5qcxundwvf6getr57njp5j5ykdzbzcw34/
Arg [1] : receiverOne_ (address): 0xA10Ca941360Db2bFf9b4b945D9D4204a049A296D
Arg [2] : receiverTwo_ (address): 0x833f70a72A770b46170AcE2521bCEB646D7A2F0A
Arg [3] : receiverThree_ (address): 0xF07c990E0b972Af84496aBf6beF8B0e2dc5b43a1

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000a10ca941360db2bff9b4b945d9d4204a049a296d
Arg [2] : 000000000000000000000000833f70a72a770b46170ace2521bceb646d7a2f0a
Arg [3] : 000000000000000000000000f07c990e0b972af84496abf6bef8b0e2dc5b43a1
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [5] : 68747470733a2f2f697066732e696f2f697066732f62616679626569657a6576
Arg [6] : 69616467726170757179777336376c35716378756e6477766636676574723537
Arg [7] : 6e6a70356a35796b647a627a637733342f000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.