ETH Price: $3,504.50 (-0.14%)
Gas: 2 Gwei

Token

3D FRIENDS (3DFRIENDS)
 

Overview

Max Total Supply

2,588 3DFRIENDS

Holders

175

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
0xtylera.eth
Balance
4 3DFRIENDS
0xaf5760607ead7e0a152f8b9987e95174fc32af70
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FRIENDS

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 1 of 14: 3DFriends.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC721A.sol";
import "./Ownable.sol";

contract FRIENDS is ERC721A, Ownable {

    constructor(string memory baseURI) ERC721A("3D FRIENDS", "3DFRIENDS") {
        setBaseURI(baseURI);
    }

    uint256 public constant MAX_SUPPLY = 3333;

    uint256 private mintCount = 0;

    uint256 public price = 33300000000000000;

    string private baseTokenURI;
      
    bool public saleOpen = false;

    event Minted(uint256 totalMinted);
      
    function totalSupply() public view override returns (uint256) {
        return mintCount;
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }

    function changePrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }

    function flipSale() external onlyOwner {
        saleOpen = !saleOpen;
    }

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

    function mint(address _to, uint256 _count) external payable {
        uint256 supply = totalSupply();

        require(supply + _count <= MAX_SUPPLY, "Exceeds maximum supply");
        require(_count > 0, "Minimum 1 NFT has to be minted per transaction");

        if (msg.sender != owner()) {
            require(saleOpen, "Sale is not open yet");
            require(
                _count <= 15,
                "Maximum 15 NFTs can be minted per transaction"
            );
            require(
                msg.value >= price * _count,
                "Ether sent with this transaction is not correct"
            );
        }
        mintCount += _count;      
        _safeMint(_to, _count);
        emit Minted(_count);       
    }

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

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

pragma solidity ^0.8.0;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 14: Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 4 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 5 of 14: ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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


pragma solidity ^0.8.0;

import './IERC721.sol';
import './IERC721Receiver.sol';
import './IERC721Metadata.sol';
import './IERC721Enumerable.sol';
import './Address.sol';
import './Context.sol';
import './Strings.sol';
import './ERC165.sol';

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 14: ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "./IERC721Enumerable.sol";

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

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

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

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

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 14: IERC165.sol
// SPDX-License-Identifier: MIT

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 9 of 14: IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 14: IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 tokenId);

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

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

pragma solidity ^0.8.0;

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

File 13 of 14: Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalMinted","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"saleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600060095566764e2c6f054000600a55600c805460ff191690553480156200002b57600080fd5b506040516200201c3803806200201c8339810160408190526200004e916200024e565b604080518082018252600a815269334420465249454e445360b01b6020808301918252835180850190945260098452683344465249454e445360b81b908401528151919291620000a191600291620001a8565b508051620000b7906003906020840190620001a8565b5050506000620000cc6200012c60201b60201c565b600880546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001258162000130565b506200037d565b3390565b6008546001600160a01b031633146200018f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001a490600b906020840190620001a8565b5050565b828054620001b6906200032a565b90600052602060002090601f016020900481019282620001da576000855562000225565b82601f10620001f557805160ff191683800117855562000225565b8280016001018555821562000225579182015b828111156200022557825182559160200191906001019062000208565b506200023392915062000237565b5090565b5b8082111562000233576000815560010162000238565b600060208083850312156200026257600080fd5b82516001600160401b03808211156200027a57600080fd5b818501915085601f8301126200028f57600080fd5b815181811115620002a457620002a462000367565b604051601f8201601f19908116603f01168101908382118183101715620002cf57620002cf62000367565b816040528281528886848701011115620002e857600080fd5b600093505b828410156200030c5784840186015181850187015292850192620002ed565b828411156200031e5760008684830101525b98975050505050505050565b600181811c908216806200033f57607f821691505b602082108114156200036157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b611c8f806200038d6000396000f3fe60806040526004361061019c5760003560e01c80636352211e116100ec578063a035b1fe1161008a578063b88d4fde11610064578063b88d4fde1461045c578063c87b56dd1461047c578063e985e9c51461049c578063f2fde38b146104e557600080fd5b8063a035b1fe14610406578063a22cb4651461041c578063a2b40d191461043c57600080fd5b80637ba5e621116100c65780637ba5e621146103a45780638da5cb5b146103b957806395d89b41146103d757806399288dbb146103ec57600080fd5b80636352211e1461034f57806370a082311461036f578063715018a61461038f57600080fd5b80632f745c591161015957806340c10f191161013357806340c10f19146102dc57806342842e0e146102ef5780634f6ccce71461030f57806355f804b31461032f57600080fd5b80632f745c591461029157806332cb6b0c146102b15780633ccfd60b146102c757600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b31461023057806318160ddd1461025257806323b872dd14610271575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004611977565b610505565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610572565b6040516101cd9190611aab565b34801561020457600080fd5b506102186102133660046119fa565b610604565b6040516001600160a01b0390911681526020016101cd565b34801561023c57600080fd5b5061025061024b36600461194d565b610648565b005b34801561025e57600080fd5b506009545b6040519081526020016101cd565b34801561027d57600080fd5b5061025061028c366004611859565b6106d6565b34801561029d57600080fd5b506102636102ac36600461194d565b6106e1565b3480156102bd57600080fd5b50610263610d0581565b3480156102d357600080fd5b506102506107d5565b6102506102ea36600461194d565b610896565b3480156102fb57600080fd5b5061025061030a366004611859565b610aef565b34801561031b57600080fd5b5061026361032a3660046119fa565b610b0a565b34801561033b57600080fd5b5061025061034a3660046119b1565b610bac565b34801561035b57600080fd5b5061021861036a3660046119fa565b610bed565b34801561037b57600080fd5b5061026361038a36600461180b565b610bff565b34801561039b57600080fd5b50610250610c4e565b3480156103b057600080fd5b50610250610cc2565b3480156103c557600080fd5b506008546001600160a01b0316610218565b3480156103e357600080fd5b506101eb610d00565b3480156103f857600080fd5b50600c546101c19060ff1681565b34801561041257600080fd5b50610263600a5481565b34801561042857600080fd5b50610250610437366004611911565b610d0f565b34801561044857600080fd5b506102506104573660046119fa565b610da5565b34801561046857600080fd5b50610250610477366004611895565b610dd4565b34801561048857600080fd5b506101eb6104973660046119fa565b610e0e565b3480156104a857600080fd5b506101c16104b7366004611826565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156104f157600080fd5b5061025061050036600461180b565b610e93565b60006001600160e01b031982166380ac58cd60e01b148061053657506001600160e01b03198216635b5e139f60e01b145b8061055157506001600160e01b0319821663780e9d6360e01b145b8061056c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461058190611b81565b80601f01602080910402602001604051908101604052809291908181526020018280546105ad90611b81565b80156105fa5780601f106105cf576101008083540402835291602001916105fa565b820191906000526020600020905b8154815290600101906020018083116105dd57829003601f168201915b5050505050905090565b600061060f82610f7e565b61062c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061065382610bed565b9050806001600160a01b0316836001600160a01b031614156106885760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106a857506106a681336104b7565b155b156106c6576040516367d9dca160e11b815260040160405180910390fd5b6106d1838383610fa9565b505050565b6106d1838383611005565b60006106ec83610bff565b821061070b576040516306ed618760e11b815260040160405180910390fd5b600080549080805b838110156107cf57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061077b57506107c7565b80516001600160a01b03161561079057805192505b876001600160a01b0316836001600160a01b031614156107c557868414156107be5750935061056c92505050565b6001909301925b505b600101610713565b50600080fd5b6008546001600160a01b031633146108085760405162461bcd60e51b81526004016107ff90611abe565b60405180910390fd5b604051600090339047908381818185875af1925050503d806000811461084a576040519150601f19603f3d011682016040523d82523d6000602084013e61084f565b606091505b50509050806108935760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016107ff565b50565b60006108a160095490565b9050610d056108b08383611af3565b11156108f75760405162461bcd60e51b815260206004820152601660248201527545786365656473206d6178696d756d20737570706c7960501b60448201526064016107ff565b6000821161095e5760405162461bcd60e51b815260206004820152602e60248201527f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060448201526d32b9103a3930b739b0b1ba34b7b760911b60648201526084016107ff565b6008546001600160a01b03163314610a9557600c5460ff166109b95760405162461bcd60e51b815260206004820152601460248201527314d85b19481a5cc81b9bdd081bdc195b881e595d60621b60448201526064016107ff565b600f821115610a205760405162461bcd60e51b815260206004820152602d60248201527f4d6178696d756d203135204e4654732063616e206265206d696e74656420706560448201526c39103a3930b739b0b1ba34b7b760991b60648201526084016107ff565b81600a54610a2e9190611b1f565b341015610a955760405162461bcd60e51b815260206004820152602f60248201527f45746865722073656e7420776974682074686973207472616e73616374696f6e60448201526e081a5cc81b9bdd0818dbdc9c9958dd608a1b60648201526084016107ff565b8160096000828254610aa79190611af3565b90915550610ab79050838361121b565b6040518281527f176b02bb2d12439ff7a20b59f402cca16c76f50508b13ef3166a600eb719354a9060200160405180910390a1505050565b6106d183838360405180602001604052806000815250610dd4565b6000805481805b82811015610b9257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290610b895785831415610b825750949350505050565b6001909201915b50600101610b11565b506040516329c8c00760e21b815260040160405180910390fd5b6008546001600160a01b03163314610bd65760405162461bcd60e51b81526004016107ff90611abe565b8051610be990600b9060208401906116e0565b5050565b6000610bf882611235565b5192915050565b60006001600160a01b038216610c28576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610c785760405162461bcd60e51b81526004016107ff90611abe565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6008546001600160a01b03163314610cec5760405162461bcd60e51b81526004016107ff90611abe565b600c805460ff19811660ff90911615179055565b60606003805461058190611b81565b6001600160a01b038216331415610d395760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314610dcf5760405162461bcd60e51b81526004016107ff90611abe565b600a55565b610ddf848484611005565b610deb84848484611350565b610e08576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610e1982610f7e565b610e3657604051630a14c4b560e41b815260040160405180910390fd5b6000610e4061145f565b9050805160001415610e615760405180602001604052806000815250610e8c565b80610e6b8461146e565b604051602001610e7c929190611a3f565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314610ebd5760405162461bcd60e51b81526004016107ff90611abe565b6001600160a01b038116610f225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ff565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b600080548210801561056c575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061101082611235565b80519091506000906001600160a01b0316336001600160a01b0316148061103e5750815161103e90336104b7565b8061105957503361104e84610604565b6001600160a01b0316145b90508061107957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146110ae5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166110d557604051633a954ecd60e21b815260040160405180910390fd5b6110e56000848460000151610fa9565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166111d1576000548110156111d1578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610be982826040518060200160405280600081525061156c565b604080516060810182526000808252602082018190529181018290529054829081101561133757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906113355780516001600160a01b0316156112cb579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611330579392505050565b6112cb565b505b604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b0384163b1561145357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611394903390899088908890600401611a6e565b602060405180830381600087803b1580156113ae57600080fd5b505af19250505080156113de575060408051601f3d908101601f191682019092526113db91810190611994565b60015b611439573d80801561140c576040519150601f19603f3d011682016040523d82523d6000602084013e611411565b606091505b508051611431576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611457565b5060015b949350505050565b6060600b805461058190611b81565b6060816114925750506040805180820190915260018152600360fc1b602082015290565b8160005b81156114bc57806114a681611bbc565b91506114b59050600a83611b0b565b9150611496565b60008167ffffffffffffffff8111156114d7576114d7611c2d565b6040519080825280601f01601f191660200182016040528015611501576020820181803683370190505b5090505b841561145757611516600183611b3e565b9150611523600a86611bd7565b61152e906030611af3565b60f81b81838151811061154357611543611c17565b60200101906001600160f81b031916908160001a905350611565600a86611b0b565b9450611505565b6106d183838360016000546001600160a01b03851661159d57604051622e076360e81b815260040160405180910390fd5b836115bb5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156116d75760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156116ad57506116ab6000888488611350565b155b156116cb576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101611656565b50600055611214565b8280546116ec90611b81565b90600052602060002090601f01602090048101928261170e5760008555611754565b82601f1061172757805160ff1916838001178555611754565b82800160010185558215611754579182015b82811115611754578251825591602001919060010190611739565b50611760929150611764565b5090565b5b808211156117605760008155600101611765565b600067ffffffffffffffff8084111561179457611794611c2d565b604051601f8501601f19908116603f011681019082821181831017156117bc576117bc611c2d565b816040528093508581528686860111156117d557600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461180657600080fd5b919050565b60006020828403121561181d57600080fd5b610e8c826117ef565b6000806040838503121561183957600080fd5b611842836117ef565b9150611850602084016117ef565b90509250929050565b60008060006060848603121561186e57600080fd5b611877846117ef565b9250611885602085016117ef565b9150604084013590509250925092565b600080600080608085870312156118ab57600080fd5b6118b4856117ef565b93506118c2602086016117ef565b925060408501359150606085013567ffffffffffffffff8111156118e557600080fd5b8501601f810187136118f657600080fd5b61190587823560208401611779565b91505092959194509250565b6000806040838503121561192457600080fd5b61192d836117ef565b91506020830135801515811461194257600080fd5b809150509250929050565b6000806040838503121561196057600080fd5b611969836117ef565b946020939093013593505050565b60006020828403121561198957600080fd5b8135610e8c81611c43565b6000602082840312156119a657600080fd5b8151610e8c81611c43565b6000602082840312156119c357600080fd5b813567ffffffffffffffff8111156119da57600080fd5b8201601f810184136119eb57600080fd5b61145784823560208401611779565b600060208284031215611a0c57600080fd5b5035919050565b60008151808452611a2b816020860160208601611b55565b601f01601f19169290920160200192915050565b60008351611a51818460208801611b55565b835190830190611a65818360208801611b55565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611aa190830184611a13565b9695505050505050565b602081526000610e8c6020830184611a13565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611b0657611b06611beb565b500190565b600082611b1a57611b1a611c01565b500490565b6000816000190483118215151615611b3957611b39611beb565b500290565b600082821015611b5057611b50611beb565b500390565b60005b83811015611b70578181015183820152602001611b58565b83811115610e085750506000910152565b600181811c90821680611b9557607f821691505b60208210811415611bb657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611bd057611bd0611beb565b5060010190565b600082611be657611be6611c01565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461089357600080fdfea264697066735822122049563a420d959b3c9e92c6586c67d3f3c606b7d69dcec58245a6c179ac4d67ff64736f6c634300080700330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d594b61723576617939755758526d3646626d47553335396b4762736e565567676b525a5236507a4c554e476e2f000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061019c5760003560e01c80636352211e116100ec578063a035b1fe1161008a578063b88d4fde11610064578063b88d4fde1461045c578063c87b56dd1461047c578063e985e9c51461049c578063f2fde38b146104e557600080fd5b8063a035b1fe14610406578063a22cb4651461041c578063a2b40d191461043c57600080fd5b80637ba5e621116100c65780637ba5e621146103a45780638da5cb5b146103b957806395d89b41146103d757806399288dbb146103ec57600080fd5b80636352211e1461034f57806370a082311461036f578063715018a61461038f57600080fd5b80632f745c591161015957806340c10f191161013357806340c10f19146102dc57806342842e0e146102ef5780634f6ccce71461030f57806355f804b31461032f57600080fd5b80632f745c591461029157806332cb6b0c146102b15780633ccfd60b146102c757600080fd5b806301ffc9a7146101a157806306fdde03146101d6578063081812fc146101f8578063095ea7b31461023057806318160ddd1461025257806323b872dd14610271575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004611977565b610505565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610572565b6040516101cd9190611aab565b34801561020457600080fd5b506102186102133660046119fa565b610604565b6040516001600160a01b0390911681526020016101cd565b34801561023c57600080fd5b5061025061024b36600461194d565b610648565b005b34801561025e57600080fd5b506009545b6040519081526020016101cd565b34801561027d57600080fd5b5061025061028c366004611859565b6106d6565b34801561029d57600080fd5b506102636102ac36600461194d565b6106e1565b3480156102bd57600080fd5b50610263610d0581565b3480156102d357600080fd5b506102506107d5565b6102506102ea36600461194d565b610896565b3480156102fb57600080fd5b5061025061030a366004611859565b610aef565b34801561031b57600080fd5b5061026361032a3660046119fa565b610b0a565b34801561033b57600080fd5b5061025061034a3660046119b1565b610bac565b34801561035b57600080fd5b5061021861036a3660046119fa565b610bed565b34801561037b57600080fd5b5061026361038a36600461180b565b610bff565b34801561039b57600080fd5b50610250610c4e565b3480156103b057600080fd5b50610250610cc2565b3480156103c557600080fd5b506008546001600160a01b0316610218565b3480156103e357600080fd5b506101eb610d00565b3480156103f857600080fd5b50600c546101c19060ff1681565b34801561041257600080fd5b50610263600a5481565b34801561042857600080fd5b50610250610437366004611911565b610d0f565b34801561044857600080fd5b506102506104573660046119fa565b610da5565b34801561046857600080fd5b50610250610477366004611895565b610dd4565b34801561048857600080fd5b506101eb6104973660046119fa565b610e0e565b3480156104a857600080fd5b506101c16104b7366004611826565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156104f157600080fd5b5061025061050036600461180b565b610e93565b60006001600160e01b031982166380ac58cd60e01b148061053657506001600160e01b03198216635b5e139f60e01b145b8061055157506001600160e01b0319821663780e9d6360e01b145b8061056c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461058190611b81565b80601f01602080910402602001604051908101604052809291908181526020018280546105ad90611b81565b80156105fa5780601f106105cf576101008083540402835291602001916105fa565b820191906000526020600020905b8154815290600101906020018083116105dd57829003601f168201915b5050505050905090565b600061060f82610f7e565b61062c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061065382610bed565b9050806001600160a01b0316836001600160a01b031614156106885760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906106a857506106a681336104b7565b155b156106c6576040516367d9dca160e11b815260040160405180910390fd5b6106d1838383610fa9565b505050565b6106d1838383611005565b60006106ec83610bff565b821061070b576040516306ed618760e11b815260040160405180910390fd5b600080549080805b838110156107cf57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16158015928201929092529061077b57506107c7565b80516001600160a01b03161561079057805192505b876001600160a01b0316836001600160a01b031614156107c557868414156107be5750935061056c92505050565b6001909301925b505b600101610713565b50600080fd5b6008546001600160a01b031633146108085760405162461bcd60e51b81526004016107ff90611abe565b60405180910390fd5b604051600090339047908381818185875af1925050503d806000811461084a576040519150601f19603f3d011682016040523d82523d6000602084013e61084f565b606091505b50509050806108935760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016107ff565b50565b60006108a160095490565b9050610d056108b08383611af3565b11156108f75760405162461bcd60e51b815260206004820152601660248201527545786365656473206d6178696d756d20737570706c7960501b60448201526064016107ff565b6000821161095e5760405162461bcd60e51b815260206004820152602e60248201527f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060448201526d32b9103a3930b739b0b1ba34b7b760911b60648201526084016107ff565b6008546001600160a01b03163314610a9557600c5460ff166109b95760405162461bcd60e51b815260206004820152601460248201527314d85b19481a5cc81b9bdd081bdc195b881e595d60621b60448201526064016107ff565b600f821115610a205760405162461bcd60e51b815260206004820152602d60248201527f4d6178696d756d203135204e4654732063616e206265206d696e74656420706560448201526c39103a3930b739b0b1ba34b7b760991b60648201526084016107ff565b81600a54610a2e9190611b1f565b341015610a955760405162461bcd60e51b815260206004820152602f60248201527f45746865722073656e7420776974682074686973207472616e73616374696f6e60448201526e081a5cc81b9bdd0818dbdc9c9958dd608a1b60648201526084016107ff565b8160096000828254610aa79190611af3565b90915550610ab79050838361121b565b6040518281527f176b02bb2d12439ff7a20b59f402cca16c76f50508b13ef3166a600eb719354a9060200160405180910390a1505050565b6106d183838360405180602001604052806000815250610dd4565b6000805481805b82811015610b9257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290610b895785831415610b825750949350505050565b6001909201915b50600101610b11565b506040516329c8c00760e21b815260040160405180910390fd5b6008546001600160a01b03163314610bd65760405162461bcd60e51b81526004016107ff90611abe565b8051610be990600b9060208401906116e0565b5050565b6000610bf882611235565b5192915050565b60006001600160a01b038216610c28576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610c785760405162461bcd60e51b81526004016107ff90611abe565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b6008546001600160a01b03163314610cec5760405162461bcd60e51b81526004016107ff90611abe565b600c805460ff19811660ff90911615179055565b60606003805461058190611b81565b6001600160a01b038216331415610d395760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314610dcf5760405162461bcd60e51b81526004016107ff90611abe565b600a55565b610ddf848484611005565b610deb84848484611350565b610e08576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610e1982610f7e565b610e3657604051630a14c4b560e41b815260040160405180910390fd5b6000610e4061145f565b9050805160001415610e615760405180602001604052806000815250610e8c565b80610e6b8461146e565b604051602001610e7c929190611a3f565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314610ebd5760405162461bcd60e51b81526004016107ff90611abe565b6001600160a01b038116610f225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ff565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b600080548210801561056c575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061101082611235565b80519091506000906001600160a01b0316336001600160a01b0316148061103e5750815161103e90336104b7565b8061105957503361104e84610604565b6001600160a01b0316145b90508061107957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146110ae5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166110d557604051633a954ecd60e21b815260040160405180910390fd5b6110e56000848460000151610fa9565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166111d1576000548110156111d1578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610be982826040518060200160405280600081525061156c565b604080516060810182526000808252602082018190529181018290529054829081101561133757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906113355780516001600160a01b0316156112cb579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611330579392505050565b6112cb565b505b604051636f96cda160e11b815260040160405180910390fd5b60006001600160a01b0384163b1561145357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611394903390899088908890600401611a6e565b602060405180830381600087803b1580156113ae57600080fd5b505af19250505080156113de575060408051601f3d908101601f191682019092526113db91810190611994565b60015b611439573d80801561140c576040519150601f19603f3d011682016040523d82523d6000602084013e611411565b606091505b508051611431576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611457565b5060015b949350505050565b6060600b805461058190611b81565b6060816114925750506040805180820190915260018152600360fc1b602082015290565b8160005b81156114bc57806114a681611bbc565b91506114b59050600a83611b0b565b9150611496565b60008167ffffffffffffffff8111156114d7576114d7611c2d565b6040519080825280601f01601f191660200182016040528015611501576020820181803683370190505b5090505b841561145757611516600183611b3e565b9150611523600a86611bd7565b61152e906030611af3565b60f81b81838151811061154357611543611c17565b60200101906001600160f81b031916908160001a905350611565600a86611b0b565b9450611505565b6106d183838360016000546001600160a01b03851661159d57604051622e076360e81b815260040160405180910390fd5b836115bb5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156116d75760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156116ad57506116ab6000888488611350565b155b156116cb576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101611656565b50600055611214565b8280546116ec90611b81565b90600052602060002090601f01602090048101928261170e5760008555611754565b82601f1061172757805160ff1916838001178555611754565b82800160010185558215611754579182015b82811115611754578251825591602001919060010190611739565b50611760929150611764565b5090565b5b808211156117605760008155600101611765565b600067ffffffffffffffff8084111561179457611794611c2d565b604051601f8501601f19908116603f011681019082821181831017156117bc576117bc611c2d565b816040528093508581528686860111156117d557600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461180657600080fd5b919050565b60006020828403121561181d57600080fd5b610e8c826117ef565b6000806040838503121561183957600080fd5b611842836117ef565b9150611850602084016117ef565b90509250929050565b60008060006060848603121561186e57600080fd5b611877846117ef565b9250611885602085016117ef565b9150604084013590509250925092565b600080600080608085870312156118ab57600080fd5b6118b4856117ef565b93506118c2602086016117ef565b925060408501359150606085013567ffffffffffffffff8111156118e557600080fd5b8501601f810187136118f657600080fd5b61190587823560208401611779565b91505092959194509250565b6000806040838503121561192457600080fd5b61192d836117ef565b91506020830135801515811461194257600080fd5b809150509250929050565b6000806040838503121561196057600080fd5b611969836117ef565b946020939093013593505050565b60006020828403121561198957600080fd5b8135610e8c81611c43565b6000602082840312156119a657600080fd5b8151610e8c81611c43565b6000602082840312156119c357600080fd5b813567ffffffffffffffff8111156119da57600080fd5b8201601f810184136119eb57600080fd5b61145784823560208401611779565b600060208284031215611a0c57600080fd5b5035919050565b60008151808452611a2b816020860160208601611b55565b601f01601f19169290920160200192915050565b60008351611a51818460208801611b55565b835190830190611a65818360208801611b55565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611aa190830184611a13565b9695505050505050565b602081526000610e8c6020830184611a13565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611b0657611b06611beb565b500190565b600082611b1a57611b1a611c01565b500490565b6000816000190483118215151615611b3957611b39611beb565b500290565b600082821015611b5057611b50611beb565b500390565b60005b83811015611b70578181015183820152602001611b58565b83811115610e085750506000910152565b600181811c90821680611b9557607f821691505b60208210811415611bb657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611bd057611bd0611beb565b5060010190565b600082611be657611be6611c01565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461089357600080fdfea264697066735822122049563a420d959b3c9e92c6586c67d3f3c606b7d69dcec58245a6c179ac4d67ff64736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d594b61723576617939755758526d3646626d47553335396b4762736e565567676b525a5236507a4c554e476e2f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://gateway.pinata.cloud/ipfs/QmYKar5vay9uWXRm6FbmGU359kGbsnVUggkRZR6PzLUNGn/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [2] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [3] : 732f516d594b61723576617939755758526d3646626d47553335396b4762736e
Arg [4] : 565567676b525a5236507a4c554e476e2f000000000000000000000000000000


Deployed Bytecode Sourcemap

112:1907:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6099:372:5;;;;;;;;;;-1:-1:-1;6099:372:5;;;;;:::i;:::-;;:::i;:::-;;;5856:14:14;;5849:22;5831:41;;5819:2;5804:18;6099:372:5;;;;;;;;8709:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;10212:204::-;;;;;;;;;;-1:-1:-1;10212:204:5;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;5154:32:14;;;5136:51;;5124:2;5109:18;10212:204:5;4990:203:14;9775:371:5;;;;;;;;;;-1:-1:-1;9775:371:5;;;;;:::i;:::-;;:::i;:::-;;538:97:0;;;;;;;;;;-1:-1:-1;618:9:0;;538:97;;;9311:25:14;;;9299:2;9284:18;538:97:0;9165:177:14;11069:170:5;;;;;;;;;;-1:-1:-1;11069:170:5;;;;;:::i;:::-;;:::i;4922:1105::-;;;;;;;;;;-1:-1:-1;4922:1105:5;;;;;:::i;:::-;;:::i;274:41:0:-;;;;;;;;;;;;311:4;274:41;;941:182;;;;;;;;;;;;;:::i;1131:764::-;;;;;;:::i;:::-;;:::i;11310:185:5:-;;;;;;;;;;-1:-1:-1;11310:185:5;;;;;:::i;:::-;;:::i;3909:713::-;;;;;;;;;;-1:-1:-1;3909:713:5;;;;;:::i;:::-;;:::i;643:101:0:-;;;;;;;;;;-1:-1:-1;643:101:0;;;;;:::i;:::-;;:::i;8518:124:5:-;;;;;;;;;;-1:-1:-1;8518:124:5;;;;;:::i;:::-;;:::i;6535:206::-;;;;;;;;;;-1:-1:-1;6535:206:5;;;;;:::i;:::-;;:::i;1746:148:12:-;;;;;;;;;;;;;:::i;855:78:0:-;;;;;;;;;;;;;:::i;1095:87:12:-;;;;;;;;;;-1:-1:-1;1168:6:12;;-1:-1:-1;;;;;1168:6:12;1095:87;;8878:104:5;;;;;;;;;;;;;:::i;453:28:0:-;;;;;;;;;;-1:-1:-1;453:28:0;;;;;;;;362:40;;;;;;;;;;;;;;;;10488:279:5;;;;;;;;;;-1:-1:-1;10488:279:5;;;;;:::i;:::-;;:::i;752:95:0:-;;;;;;;;;;-1:-1:-1;752:95:0;;;;;:::i;:::-;;:::i;11566:342:5:-;;;;;;;;;;-1:-1:-1;11566:342:5;;;;;:::i;:::-;;:::i;9053:318::-;;;;;;;;;;-1:-1:-1;9053:318:5;;;;;:::i;:::-;;:::i;10838:164::-;;;;;;;;;;-1:-1:-1;10838:164:5;;;;;:::i;:::-;-1:-1:-1;;;;;10959:25:5;;;10935:4;10959:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;10838:164;2049:244:12;;;;;;;;;;-1:-1:-1;2049:244:12;;;;;:::i;:::-;;:::i;6099:372:5:-;6201:4;-1:-1:-1;;;;;;6238:40:5;;-1:-1:-1;;;6238:40:5;;:105;;-1:-1:-1;;;;;;;6295:48:5;;-1:-1:-1;;;6295:48:5;6238:105;:172;;;-1:-1:-1;;;;;;;6360:50:5;;-1:-1:-1;;;6360:50:5;6238:172;:225;;;-1:-1:-1;;;;;;;;;;963:40:3;;;6427:36:5;6218:245;6099:372;-1:-1:-1;;6099:372:5:o;8709:100::-;8763:13;8796:5;8789:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8709:100;:::o;10212:204::-;10280:7;10305:16;10313:7;10305;:16::i;:::-;10300:64;;10330:34;;-1:-1:-1;;;10330:34:5;;;;;;;;;;;10300:64;-1:-1:-1;10384:24:5;;;;:15;:24;;;;;;-1:-1:-1;;;;;10384:24:5;;10212:204::o;9775:371::-;9848:13;9864:24;9880:7;9864:15;:24::i;:::-;9848:40;;9909:5;-1:-1:-1;;;;;9903:11:5;:2;-1:-1:-1;;;;;9903:11:5;;9899:48;;;9923:24;;-1:-1:-1;;;9923:24:5;;;;;;;;;;;9899:48;681:10:2;-1:-1:-1;;;;;9964:21:5;;;;;;:63;;-1:-1:-1;9990:37:5;10007:5;681:10:2;10838:164:5;:::i;9990:37::-;9989:38;9964:63;9960:138;;;10051:35;;-1:-1:-1;;;10051:35:5;;;;;;;;;;;9960:138;10110:28;10119:2;10123:7;10132:5;10110:8;:28::i;:::-;9837:309;9775:371;;:::o;11069:170::-;11203:28;11213:4;11219:2;11223:7;11203:9;:28::i;4922:1105::-;5011:7;5044:16;5054:5;5044:9;:16::i;:::-;5035:5;:25;5031:61;;5069:23;;-1:-1:-1;;;5069:23:5;;;;;;;;;;;5031:61;5103:22;5128:13;;;5103:22;;5378:557;5398:14;5394:1;:18;5378:557;;;5438:31;5472:14;;;:11;:14;;;;;;;;;5438:48;;;;;;;;;-1:-1:-1;;;;;5438:48:5;;;;-1:-1:-1;;;5438:48:5;;;;;;;;;;;-1:-1:-1;;;5438:48:5;;;;;;;;;;;;;;;;5505:73;;5550:8;;;5505:73;5600:14;;-1:-1:-1;;;;;5600:28:5;;5596:111;;5673:14;;;-1:-1:-1;5596:111:5;5750:5;-1:-1:-1;;;;;5729:26:5;:17;-1:-1:-1;;;;;5729:26:5;;5725:195;;;5799:5;5784:11;:20;5780:85;;;-1:-1:-1;5840:1:5;-1:-1:-1;5833:8:5;;-1:-1:-1;;;5833:8:5;5780:85;5887:13;;;;;5725:195;5419:516;5378:557;5414:3;;5378:557;;;;6011:8;;;941:182:0;1168:6:12;;-1:-1:-1;;;;;1168:6:12;681:10:2;1315:23:12;1307:68;;;;-1:-1:-1;;;1307:68:12;;;;;;;:::i;:::-;;;;;;;;;1010:58:0::1;::::0;992:12:::1;::::0;1018:10:::1;::::0;1042:21:::1;::::0;992:12;1010:58;992:12;1010:58;1042:21;1018:10;1010:58:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;991:77;;;1087:7;1079:36;;;::::0;-1:-1:-1;;;1079:36:0;;8608:2:14;1079:36:0::1;::::0;::::1;8590:21:14::0;8647:2;8627:18;;;8620:30;-1:-1:-1;;;8666:18:14;;;8659:46;8722:18;;1079:36:0::1;8406:340:14::0;1079:36:0::1;980:143;941:182::o:0;1131:764::-;1202:14;1219:13;618:9;;;538:97;1219:13;1202:30;-1:-1:-1;311:4:0;1253:15;1262:6;1202:30;1253:15;:::i;:::-;:29;;1245:64;;;;-1:-1:-1;;;1245:64:0;;8257:2:14;1245:64:0;;;8239:21:14;8296:2;8276:18;;;8269:30;-1:-1:-1;;;8315:18:14;;;8308:52;8377:18;;1245:64:0;8055:346:14;1245:64:0;1337:1;1328:6;:10;1320:69;;;;-1:-1:-1;;;1320:69:0;;6309:2:14;1320:69:0;;;6291:21:14;6348:2;6328:18;;;6321:30;6387:34;6367:18;;;6360:62;-1:-1:-1;;;6438:18:14;;;6431:44;6492:19;;1320:69:0;6107:410:14;1320:69:0;1168:6:12;;-1:-1:-1;;;;;1168:6:12;1406:10:0;:21;1402:380;;1452:8;;;;1444:41;;;;-1:-1:-1;;;1444:41:0;;7131:2:14;1444:41:0;;;7113:21:14;7170:2;7150:18;;;7143:30;-1:-1:-1;;;7189:18:14;;;7182:50;7249:18;;1444:41:0;6929:344:14;1444:41:0;1536:2;1526:6;:12;;1500:119;;;;-1:-1:-1;;;1500:119:0;;8953:2:14;1500:119:0;;;8935:21:14;8992:2;8972:18;;;8965:30;9031:34;9011:18;;;9004:62;-1:-1:-1;;;9082:18:14;;;9075:43;9135:19;;1500:119:0;8751:409:14;1500:119:0;1681:6;1673:5;;:14;;;;:::i;:::-;1660:9;:27;;1634:136;;;;-1:-1:-1;;;1634:136:0;;7480:2:14;1634:136:0;;;7462:21:14;7519:2;7499:18;;;7492:30;7558:34;7538:18;;;7531:62;-1:-1:-1;;;7609:18:14;;;7602:45;7664:19;;1634:136:0;7278:411:14;1634:136:0;1805:6;1792:9;;:19;;;;;;;:::i;:::-;;;;-1:-1:-1;1828:22:0;;-1:-1:-1;1838:3:0;1843:6;1828:9;:22::i;:::-;1866:14;;9311:25:14;;;1866:14:0;;9299:2:14;9284:18;1866:14:0;;;;;;;1191:704;1131:764;;:::o;11310:185:5:-;11448:39;11465:4;11471:2;11475:7;11448:39;;;;;;;;;;;;:16;:39::i;3909:713::-;3976:7;4021:13;;3976:7;;4235:328;4255:14;4251:1;:18;4235:328;;;4295:31;4329:14;;;:11;:14;;;;;;;;;4295:48;;;;;;;;;-1:-1:-1;;;;;4295:48:5;;;;-1:-1:-1;;;4295:48:5;;;;;;;;;;;-1:-1:-1;;;4295:48:5;;;;;;;;;;;;;;4362:186;;4427:5;4412:11;:20;4408:85;;;-1:-1:-1;4468:1:5;3909:713;-1:-1:-1;;;;3909:713:5:o;4408:85::-;4515:13;;;;;4362:186;-1:-1:-1;4271:3:5;;4235:328;;;;4591:23;;-1:-1:-1;;;4591:23:5;;;;;;;;;;;643:101:0;1168:6:12;;-1:-1:-1;;;;;1168:6:12;681:10:2;1315:23:12;1307:68;;;;-1:-1:-1;;;1307:68:12;;;;;;;:::i;:::-;714:22:0;;::::1;::::0;:12:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;:::-;;643:101:::0;:::o;8518:124:5:-;8582:7;8609:20;8621:7;8609:11;:20::i;:::-;:25;;8518:124;-1:-1:-1;;8518:124:5:o;6535:206::-;6599:7;-1:-1:-1;;;;;6623:19:5;;6619:60;;6651:28;;-1:-1:-1;;;6651:28:5;;;;;;;;;;;6619:60;-1:-1:-1;;;;;;6705:19:5;;;;;:12;:19;;;;;:27;;;;6535:206::o;1746:148:12:-;1168:6;;-1:-1:-1;;;;;1168:6:12;681:10:2;1315:23:12;1307:68;;;;-1:-1:-1;;;1307:68:12;;;;;;;:::i;:::-;1837:6:::1;::::0;1816:40:::1;::::0;1853:1:::1;::::0;-1:-1:-1;;;;;1837:6:12::1;::::0;1816:40:::1;::::0;1853:1;;1816:40:::1;1867:6;:19:::0;;-1:-1:-1;;;;;;1867:19:12::1;::::0;;1746:148::o;855:78:0:-;1168:6:12;;-1:-1:-1;;;;;1168:6:12;681:10:2;1315:23:12;1307:68;;;;-1:-1:-1;;;1307:68:12;;;;;;;:::i;:::-;917:8:0::1;::::0;;-1:-1:-1;;905:20:0;::::1;917:8;::::0;;::::1;916:9;905:20;::::0;;855:78::o;8878:104:5:-;8934:13;8967:7;8960:14;;;;;:::i;10488:279::-;-1:-1:-1;;;;;10579:24:5;;681:10:2;10579:24:5;10575:54;;;10612:17;;-1:-1:-1;;;10612:17:5;;;;;;;;;;;10575:54;681:10:2;10642:32:5;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;10642:42:5;;;;;;;;;;;;:53;;-1:-1:-1;;10642:53:5;;;;;;;;;;10711:48;;5831:41:14;;;10642:42:5;;681:10:2;10711:48:5;;5804:18:14;10711:48:5;;;;;;;10488:279;;:::o;752:95:0:-;1168:6:12;;-1:-1:-1;;;;;1168:6:12;681:10:2;1315:23:12;1307:68;;;;-1:-1:-1;;;1307:68:12;;;;;;;:::i;:::-;822:5:0::1;:17:::0;752:95::o;11566:342:5:-;11733:28;11743:4;11749:2;11753:7;11733:9;:28::i;:::-;11777:48;11800:4;11806:2;11810:7;11819:5;11777:22;:48::i;:::-;11772:129;;11849:40;;-1:-1:-1;;;11849:40:5;;;;;;;;;;;11772:129;11566:342;;;;:::o;9053:318::-;9126:13;9157:16;9165:7;9157;:16::i;:::-;9152:59;;9182:29;;-1:-1:-1;;;9182:29:5;;;;;;;;;;;9152:59;9224:21;9248:10;:8;:10::i;:::-;9224:34;;9282:7;9276:21;9301:1;9276:26;;:87;;;;;;;;;;;;;;;;;9329:7;9338:18;:7;:16;:18::i;:::-;9312:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;9276:87;9269:94;9053:318;-1:-1:-1;;;9053:318:5:o;2049:244:12:-;1168:6;;-1:-1:-1;;;;;1168:6:12;681:10:2;1315:23:12;1307:68;;;;-1:-1:-1;;;1307:68:12;;;;;;;:::i;:::-;-1:-1:-1;;;;;2138:22:12;::::1;2130:73;;;::::0;-1:-1:-1;;;2130:73:12;;6724:2:14;2130:73:12::1;::::0;::::1;6706:21:14::0;6763:2;6743:18;;;6736:30;6802:34;6782:18;;;6775:62;-1:-1:-1;;;6853:18:14;;;6846:36;6899:19;;2130:73:12::1;6522:402:14::0;2130:73:12::1;2240:6;::::0;2219:38:::1;::::0;-1:-1:-1;;;;;2219:38:12;;::::1;::::0;2240:6:::1;::::0;2219:38:::1;::::0;2240:6:::1;::::0;2219:38:::1;2268:6;:17:::0;;-1:-1:-1;;;;;;2268:17:12::1;-1:-1:-1::0;;;;;2268:17:12;;;::::1;::::0;;;::::1;::::0;;2049:244::o;12163:144:5:-;12220:4;12254:13;;12244:7;:23;:55;;;;-1:-1:-1;;12272:20:5;;;;:11;:20;;;;;:27;-1:-1:-1;;;12272:27:5;;;;12271:28;;12163:144::o;19369:196::-;19484:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;19484:29:5;-1:-1:-1;;;;;19484:29:5;;;;;;;;;19529:28;;19484:24;;19529:28;;;;;;;19369:196;;;:::o;14870:2112::-;14985:35;15023:20;15035:7;15023:11;:20::i;:::-;15098:18;;14985:58;;-1:-1:-1;15056:22:5;;-1:-1:-1;;;;;15082:34:5;681:10:2;-1:-1:-1;;;;;15082:34:5;;:101;;;-1:-1:-1;15150:18:5;;15133:50;;681:10:2;10838:164:5;:::i;15133:50::-;15082:154;;;-1:-1:-1;681:10:2;15200:20:5;15212:7;15200:11;:20::i;:::-;-1:-1:-1;;;;;15200:36:5;;15082:154;15056:181;;15255:17;15250:66;;15281:35;;-1:-1:-1;;;15281:35:5;;;;;;;;;;;15250:66;15353:4;-1:-1:-1;;;;;15331:26:5;:13;:18;;;-1:-1:-1;;;;;15331:26:5;;15327:67;;15366:28;;-1:-1:-1;;;15366:28:5;;;;;;;;;;;15327:67;-1:-1:-1;;;;;15409:16:5;;15405:52;;15434:23;;-1:-1:-1;;;15434:23:5;;;;;;;;;;;15405:52;15578:49;15595:1;15599:7;15608:13;:18;;;15578:8;:49::i;:::-;-1:-1:-1;;;;;15923:18:5;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;15923:31:5;;;;;;;-1:-1:-1;;15923:31:5;;;;;;;15969:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;15969:29:5;;;;;;;;;;;16015:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;16060:61:5;;;;-1:-1:-1;;;16105:15:5;16060:61;;;;;;;;;;;16395:11;;;16425:24;;;;;:29;16395:11;;16425:29;16421:445;;16650:13;;16636:11;:27;16632:219;;;16720:18;;;16688:24;;;:11;:24;;;;;;;;:50;;16803:28;;;;16761:70;;-1:-1:-1;;;16761:70:5;-1:-1:-1;;;;;;16761:70:5;;;-1:-1:-1;;;;;16688:50:5;;;16761:70;;;;;;;16632:219;15898:979;16913:7;16909:2;-1:-1:-1;;;;;16894:27:5;16903:4;-1:-1:-1;;;;;16894:27:5;;;;;;;;;;;16932:42;14974:2008;;14870:2112;;;:::o;12315:104::-;12384:27;12394:2;12398:8;12384:27;;;;;;;;;;;;:9;:27::i;7373:1083::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;7539:13:5;;7483:7;;7532:20;;7528:861;;;7573:31;7607:17;;;:11;:17;;;;;;;;;7573:51;;;;;;;;;-1:-1:-1;;;;;7573:51:5;;;;-1:-1:-1;;;7573:51:5;;;;;;;;;;;-1:-1:-1;;;7573:51:5;;;;;;;;;;;;;;7643:731;;7693:14;;-1:-1:-1;;;;;7693:28:5;;7689:101;;7757:9;7373:1083;-1:-1:-1;;;7373:1083:5:o;7689:101::-;-1:-1:-1;;;8134:6:5;8179:17;;;;:11;:17;;;;;;;;;8167:29;;;;;;;;;-1:-1:-1;;;;;8167:29:5;;;;;-1:-1:-1;;;8167:29:5;;;;;;;;;;;-1:-1:-1;;;8167:29:5;;;;;;;;;;;;;8227:28;8223:109;;8295:9;7373:1083;-1:-1:-1;;;7373:1083:5:o;8223:109::-;8094:261;;;7554:835;7528:861;8417:31;;-1:-1:-1;;;8417:31:5;;;;;;;;;;;20130:790;20285:4;-1:-1:-1;;;;;20306:13:5;;1490:19:1;:23;20302:611:5;;20342:72;;-1:-1:-1;;;20342:72:5;;-1:-1:-1;;;;;20342:36:5;;;;;:72;;681:10:2;;20393:4:5;;20399:7;;20408:5;;20342:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20342:72:5;;;;;;;;-1:-1:-1;;20342:72:5;;;;;;;;;;;;:::i;:::-;;;20338:520;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20588:13:5;;20584:259;;20638:40;;-1:-1:-1;;;20638:40:5;;;;;;;;;;;20584:259;20793:6;20787:13;20778:6;20774:2;20770:15;20763:38;20338:520;-1:-1:-1;;;;;;20465:55:5;-1:-1:-1;;;20465:55:5;;-1:-1:-1;20458:62:5;;20302:611;-1:-1:-1;20897:4:5;20302:611;20130:790;;;;;;:::o;1903:113:0:-;1963:13;1996:12;1989:19;;;;;:::i;342:723:13:-;398:13;619:10;615:53;;-1:-1:-1;;646:10:13;;;;;;;;;;;;-1:-1:-1;;;646:10:13;;;;;342:723::o;615:53::-;693:5;678:12;734:78;741:9;;734:78;;767:8;;;;:::i;:::-;;-1:-1:-1;790:10:13;;-1:-1:-1;798:2:13;790:10;;:::i;:::-;;;734:78;;;822:19;854:6;844:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;844:17:13;;822:39;;872:154;879:10;;872:154;;906:11;916:1;906:11;;:::i;:::-;;-1:-1:-1;975:10:13;983:2;975:5;:10;:::i;:::-;962:24;;:2;:24;:::i;:::-;949:39;;932:6;939;932:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;932:56:13;;;;;;;;-1:-1:-1;1003:11:13;1012:2;1003:11;;:::i;:::-;;;872:154;;12782:163:5;12905:32;12911:2;12915:8;12925:5;12932:4;13343:20;13366:13;-1:-1:-1;;;;;13394:16:5;;13390:48;;13419:19;;-1:-1:-1;;;13419:19:5;;;;;;;;;;;13390:48;13453:13;13449:44;;13475:18;;-1:-1:-1;;;13475:18:5;;;;;;;;;;;13449:44;-1:-1:-1;;;;;13844:16:5;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;13903:49:5;;13844:44;;;;;;;;13903:49;;;;-1:-1:-1;;13844:44:5;;;;;;13903:49;;;;;;;;;;;;;;;;13969:25;;;:11;:25;;;;;:35;;-1:-1:-1;;;;;;14019:66:5;;;;-1:-1:-1;;;14069:15:5;14019:66;;;;;;;;;;;13969:25;;14154:328;14174:8;14170:1;:12;14154:328;;;14213:38;;14238:12;;-1:-1:-1;;;;;14213:38:5;;;14230:1;;14213:38;;14230:1;;14213:38;14274:4;:68;;;;;14283:59;14314:1;14318:2;14322:12;14336:5;14283:22;:59::i;:::-;14282:60;14274:68;14270:164;;;14374:40;;-1:-1:-1;;;14374:40:5;;;;;;;;;;;14270:164;14452:14;;;;;14184:3;14154:328;;;-1:-1:-1;14498:13:5;:28;14548:60;11566:342;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:14;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:14;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:14;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:186::-;887:6;940:2;928:9;919:7;915:23;911:32;908:52;;;956:1;953;946:12;908:52;979:29;998:9;979:29;:::i;1019:260::-;1087:6;1095;1148:2;1136:9;1127:7;1123:23;1119:32;1116:52;;;1164:1;1161;1154:12;1116:52;1187:29;1206:9;1187:29;:::i;:::-;1177:39;;1235:38;1269:2;1258:9;1254:18;1235:38;:::i;:::-;1225:48;;1019:260;;;;;:::o;1284:328::-;1361:6;1369;1377;1430:2;1418:9;1409:7;1405:23;1401:32;1398:52;;;1446:1;1443;1436:12;1398:52;1469:29;1488:9;1469:29;:::i;:::-;1459:39;;1517:38;1551:2;1540:9;1536:18;1517:38;:::i;:::-;1507:48;;1602:2;1591:9;1587:18;1574:32;1564:42;;1284:328;;;;;:::o;1617:666::-;1712:6;1720;1728;1736;1789:3;1777:9;1768:7;1764:23;1760:33;1757:53;;;1806:1;1803;1796:12;1757:53;1829:29;1848:9;1829:29;:::i;:::-;1819:39;;1877:38;1911:2;1900:9;1896:18;1877:38;:::i;:::-;1867:48;;1962:2;1951:9;1947:18;1934:32;1924:42;;2017:2;2006:9;2002:18;1989:32;2044:18;2036:6;2033:30;2030:50;;;2076:1;2073;2066:12;2030:50;2099:22;;2152:4;2144:13;;2140:27;-1:-1:-1;2130:55:14;;2181:1;2178;2171:12;2130:55;2204:73;2269:7;2264:2;2251:16;2246:2;2242;2238:11;2204:73;:::i;:::-;2194:83;;;1617:666;;;;;;;:::o;2288:347::-;2353:6;2361;2414:2;2402:9;2393:7;2389:23;2385:32;2382:52;;;2430:1;2427;2420:12;2382:52;2453:29;2472:9;2453:29;:::i;:::-;2443:39;;2532:2;2521:9;2517:18;2504:32;2579:5;2572:13;2565:21;2558:5;2555:32;2545:60;;2601:1;2598;2591:12;2545:60;2624:5;2614:15;;;2288:347;;;;;:::o;2640:254::-;2708:6;2716;2769:2;2757:9;2748:7;2744:23;2740:32;2737:52;;;2785:1;2782;2775:12;2737:52;2808:29;2827:9;2808:29;:::i;:::-;2798:39;2884:2;2869:18;;;;2856:32;;-1:-1:-1;;;2640:254:14:o;2899:245::-;2957:6;3010:2;2998:9;2989:7;2985:23;2981:32;2978:52;;;3026:1;3023;3016:12;2978:52;3065:9;3052:23;3084:30;3108:5;3084:30;:::i;3149:249::-;3218:6;3271:2;3259:9;3250:7;3246:23;3242:32;3239:52;;;3287:1;3284;3277:12;3239:52;3319:9;3313:16;3338:30;3362:5;3338:30;:::i;3403:450::-;3472:6;3525:2;3513:9;3504:7;3500:23;3496:32;3493:52;;;3541:1;3538;3531:12;3493:52;3581:9;3568:23;3614:18;3606:6;3603:30;3600:50;;;3646:1;3643;3636:12;3600:50;3669:22;;3722:4;3714:13;;3710:27;-1:-1:-1;3700:55:14;;3751:1;3748;3741:12;3700:55;3774:73;3839:7;3834:2;3821:16;3816:2;3812;3808:11;3774:73;:::i;3858:180::-;3917:6;3970:2;3958:9;3949:7;3945:23;3941:32;3938:52;;;3986:1;3983;3976:12;3938:52;-1:-1:-1;4009:23:14;;3858:180;-1:-1:-1;3858:180:14:o;4043:257::-;4084:3;4122:5;4116:12;4149:6;4144:3;4137:19;4165:63;4221:6;4214:4;4209:3;4205:14;4198:4;4191:5;4187:16;4165:63;:::i;:::-;4282:2;4261:15;-1:-1:-1;;4257:29:14;4248:39;;;;4289:4;4244:50;;4043:257;-1:-1:-1;;4043:257:14:o;4305:470::-;4484:3;4522:6;4516:13;4538:53;4584:6;4579:3;4572:4;4564:6;4560:17;4538:53;:::i;:::-;4654:13;;4613:16;;;;4676:57;4654:13;4613:16;4710:4;4698:17;;4676:57;:::i;:::-;4749:20;;4305:470;-1:-1:-1;;;;4305:470:14:o;5198:488::-;-1:-1:-1;;;;;5467:15:14;;;5449:34;;5519:15;;5514:2;5499:18;;5492:43;5566:2;5551:18;;5544:34;;;5614:3;5609:2;5594:18;;5587:31;;;5392:4;;5635:45;;5660:19;;5652:6;5635:45;:::i;:::-;5627:53;5198:488;-1:-1:-1;;;;;;5198:488:14:o;5883:219::-;6032:2;6021:9;6014:21;5995:4;6052:44;6092:2;6081:9;6077:18;6069:6;6052:44;:::i;7694:356::-;7896:2;7878:21;;;7915:18;;;7908:30;7974:34;7969:2;7954:18;;7947:62;8041:2;8026:18;;7694:356::o;9347:128::-;9387:3;9418:1;9414:6;9411:1;9408:13;9405:39;;;9424:18;;:::i;:::-;-1:-1:-1;9460:9:14;;9347:128::o;9480:120::-;9520:1;9546;9536:35;;9551:18;;:::i;:::-;-1:-1:-1;9585:9:14;;9480:120::o;9605:168::-;9645:7;9711:1;9707;9703:6;9699:14;9696:1;9693:21;9688:1;9681:9;9674:17;9670:45;9667:71;;;9718:18;;:::i;:::-;-1:-1:-1;9758:9:14;;9605:168::o;9778:125::-;9818:4;9846:1;9843;9840:8;9837:34;;;9851:18;;:::i;:::-;-1:-1:-1;9888:9:14;;9778:125::o;9908:258::-;9980:1;9990:113;10004:6;10001:1;9998:13;9990:113;;;10080:11;;;10074:18;10061:11;;;10054:39;10026:2;10019:10;9990:113;;;10121:6;10118:1;10115:13;10112:48;;;-1:-1:-1;;10156:1:14;10138:16;;10131:27;9908:258::o;10171:380::-;10250:1;10246:12;;;;10293;;;10314:61;;10368:4;10360:6;10356:17;10346:27;;10314:61;10421:2;10413:6;10410:14;10390:18;10387:38;10384:161;;;10467:10;10462:3;10458:20;10455:1;10448:31;10502:4;10499:1;10492:15;10530:4;10527:1;10520:15;10384:161;;10171:380;;;:::o;10556:135::-;10595:3;-1:-1:-1;;10616:17:14;;10613:43;;;10636:18;;:::i;:::-;-1:-1:-1;10683:1:14;10672:13;;10556:135::o;10696:112::-;10728:1;10754;10744:35;;10759:18;;:::i;:::-;-1:-1:-1;10793:9:14;;10696:112::o;10813:127::-;10874:10;10869:3;10865:20;10862:1;10855:31;10905:4;10902:1;10895:15;10929:4;10926:1;10919:15;10945:127;11006:10;11001:3;10997:20;10994:1;10987:31;11037:4;11034:1;11027:15;11061:4;11058:1;11051:15;11077:127;11138:10;11133:3;11129:20;11126:1;11119:31;11169:4;11166:1;11159:15;11193:4;11190:1;11183:15;11209:127;11270:10;11265:3;11261:20;11258:1;11251:31;11301:4;11298:1;11291:15;11325:4;11322:1;11315:15;11341:131;-1:-1:-1;;;;;;11415:32:14;;11405:43;;11395:71;;11462:1;11459;11452:12

Swarm Source

ipfs://49563a420d959b3c9e92c6586c67d3f3c606b7d69dcec58245a6c179ac4d67ff
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.