ETH Price: $3,462.66 (+0.32%)

Token

Kitsu Mintu (Kitsu Mintu)
 

Overview

Max Total Supply

10,000 Kitsu Mintu

Holders

5,717

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 Kitsu Mintu
0x385d4e6b1ad4922300b99e24c0b7016562279b2c
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:
KitsuMintuContract

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion
File 1 of 6 : KitsuMintuContract.sol
import "./libs/SafeMath.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "operator-filter-registry/src/OperatorFilterer.sol";

// SPDX-License-Identifier: MIT

/**
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⠙⠻⢶⣄⡀⠀⠀⠀⢀⣤⠶⠛⠛⡇⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣇⠀⠀⣙⣿⣦⣤⣴⣿⣁⠀⠀⣸⠇⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣡⣾⣿⣿⣿⣿⣿⣿⣿⣷⣌⠋⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣷⣄⡈⢻⣿⡟⢁⣠⣾⣿⣦
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣿⠘⣿⠃⣿⣿⣿⣿⡏⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠀⠈⠛⣰⠿⣆⠛⠁⠀⡀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣦⠀⠘⠛⠋⠀⣴⣿⠁⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣶⣾⣿⣿⣿⣿⡇⠀⠀⠀⢸⣿⣏⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠀⠀⠀⠾⢿⣿⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣠⣿⣿⣿⣿⣿⣿⡿⠟⠋⣁⣠⣤⣤⡶⠶⠶⣤⣄⠈⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢰⣿⣿⣮⣉⣉⣉⣤⣴⣶⣿⣿⣋⡥⠄⠀⠀⠀⠀⠉⢻⣄⠀⠀⠀⠀⠀
⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⣋⣁⣤⣀⣀⣤⣤⣤⣤⣄⣿⡄⠀⠀⠀⠀
⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠛⠋⠉⠁⠀⠀⠀⠀⠈⠛⠃⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
*/

//🦊 Made with ❤ by the devs at Kitsu Mintu 🦊

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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
pragma solidity ^0.8.0;
/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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


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

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

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


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

// File: @openzeppelin/contracts/utils/Strings.sol



pragma solidity ^0.8.0;

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Address.sol



pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol



pragma solidity ^0.8.0;


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

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

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

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

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


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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol



pragma solidity ^0.8.0;



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

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

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

    uint256 lastTransferId = 0;

    event TransferEvent(uint256);

    // 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 {
        lastTransferId = tokenId;
        emit TransferEvent(tokenId);

        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: @openzeppelin/contracts/access/Ownable.sol
pragma solidity ^0.8.0;
/**
 * @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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

pragma solidity >=0.7.0 <0.9.0;

contract KitsuMintuContract is DefaultOperatorFilterer, ERC721Enumerable, Ownable {
  using Strings for uint256;
  using SafeMath for uint256;

  struct AmbassadorInfos {
    uint256 nftsMinted;
    uint256 subNftsMinted;
    uint256 totalRevenue;
  }

  string baseURI;
  string public baseExtension = ".json";
  uint256 public maxMintAmount = 1;
  bool public paused = false;
  bool public revealed = false;
  string public notRevealedUri;
  uint256 public blockReferralRestriction = 1160000;
  address public devWallet;
  uint256 public vaultLiquidity;
  address public vaultOwner;
  uint256 public maxSupply = 10000; // max 10k kitsu mintu can be minted!
  bool public highOwnerfee = true;

  constructor(
    string memory _name,
    string memory _symbol,
    string memory _initBaseURI,
    string memory _initNotRevealedUri,
    address _devWallet
  ) ERC721(_name, _symbol) {
    setBaseURI(_initBaseURI);
    setNotRevealedURI(_initNotRevealedUri);
    devWallet = _devWallet;
  }

  mapping(address => uint256) public addressesMinted;
  mapping(string => address) private codesToOwners;
  mapping (string => uint256) private codeGenerationDate;
  mapping(address => string) private ownerToCodes;

  mapping(uint256 => address) private parentOwners;
  mapping(uint256 => address) private subParentOwners;
  mapping(address => string) private codeUsedForMint;

  mapping(string => bool) private codesBlacklist;
  mapping(address => uint256) private claimable;
  mapping(address => uint256) private claimed;

  mapping(address => AmbassadorInfos) public infos;

  event ReferralFunds(uint256 amount, uint256 token, address fromOwner, address to, uint256 ref, uint256 subRef, uint256 vault, uint256 kitsu, uint256 dev);
  event Mint(address src, address owner, address subOwner, uint256 amount);

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

    function rnd(uint256 max) private view returns(uint256) {
        uint256 seed = uint256(keccak256(abi.encodePacked(
            block.timestamp +
                block.difficulty +
                    ((uint256(keccak256(abi.encodePacked(block.coinbase)))) / (block.timestamp)) +
                        block.gaslimit + 
                            ((uint256(keccak256(abi.encodePacked(msg.sender)))) / (block.timestamp)) +
                                block.number
        )));

        return (seed - ((seed / max) * max));
    }

  function newAdminCode(address src) public onlyOwner {
    generateCode(src);
  }

  function generateCode(address src) private {
    string memory code = string(abi.encodePacked("KM-", rnd(block.number).toString()));
    codesToOwners[code] = src;
    ownerToCodes[src] = code;
    codeGenerationDate[code] = block.number;
  }

  function updateOwnerFee(bool status) public onlyOwner {
    highOwnerfee = status;
  }

  function updateCodeBlacklistState(string memory code, bool state) public onlyOwner {
    codesBlacklist[code] = state;
  }

  function isCodeValid(string memory code) public view returns(bool) {
        if ((block.number - codeGenerationDate[code]) > blockReferralRestriction)
            return codesBlacklist[code];
        return true;
  }

  function getMyCode() public view returns(string memory) {
    return ownerToCodes[msg.sender];
  }

  function getTokenParent(uint256 tokenId) public view returns (address) {
    return parentOwners[tokenId];
  }

  function getTokenSubParent(uint256 tokenId) public view returns (address) {
    return parentOwners[tokenId];
  }

  function amountClaimable(address addr) public view returns(uint256) {
    return claimable[addr];
  }

  function totalClaimed(address addr) public view returns(uint256) {
    return claimed[addr];
  }
  
  function claimFunds() public {
    address payable from = payable(msg.sender);
    require (claimable[from] != 0, "You don't have any funds to claim");

    uint256 amount = claimable[from];
    claimable[from] = 0;

    from.transfer(amount);
    claimed[from] = claimed[from].add(amount);
  }

  function claimKitsuFee(address payable dst) public onlyOwner {
    dst.transfer(claimable[address(this)]);
    claimable[address(this)] = 0;
  }

  function setVaultOwner(address owner) public onlyOwner {
    vaultOwner = owner;
  }

  function availableVaultLiquidity() public view returns(uint256) {
    return vaultLiquidity;
  }

  function sendFromVault(address payable dst, uint256 amount) public {
    require(msg.sender == vaultOwner, "Can't execute this function");
    require(vaultLiquidity >= amount, "Not enough liquidity in vault");

    vaultLiquidity = vaultLiquidity.sub(amount);
    dst.transfer(amount);
    claimed[dst] = claimed[dst].add(amount);
  }

  function getTotalFeePercent() private view returns(uint256)
  {
    // percent of fees are 9% fixed or 8% if dev fees are reduced.
    return (highOwnerfee ? 9 : 8);
  }

  receive() external payable {
        // check lastTransferId in the nft contract itself to find out referrals
        address payable referralOwner = payable(parentOwners[lastTransferId]);
        address payable subOwner = payable(subParentOwners[lastTransferId]);
        uint256 feeReceived = getTotalFeePercent();
        uint256 baseAmount = msg.value.mul(100).div(feeReceived);

        uint256 referralAmount = baseAmount.mul(1).div(200); //0.5% for referral
        uint256 subReferralAmount = baseAmount.mul(1).div(200); //0.5% for sub referral
        uint256 vaultAmount = baseAmount.mul(3).div(100); //3% for the vault
        uint256 kitsuFee = baseAmount.mul(1).div(100); //1% for kitsu future
        // 3 or 4 percent based on owner updates
        uint256 devFee = (highOwnerfee) ? baseAmount.mul(4).div(100) : baseAmount.mul(3).div(100);


        //add first level affiliation rewards fee
        if (referralOwner != address(0) && isCodeValid(ownerToCodes[referralOwner])) {
            claimable[referralOwner] = claimable[referralOwner].add(referralAmount);
            infos[referralOwner].totalRevenue = infos[referralOwner].totalRevenue.add(referralAmount);
        }
        else
            vaultAmount = vaultAmount.add(referralAmount);
        
        //add second level affiliation rewards fee
        if (subOwner != address(0) && isCodeValid(ownerToCodes[subOwner])) {
            claimable[subOwner] = claimable[subOwner].add(subReferralAmount);
            infos[subOwner].totalRevenue = infos[subOwner].totalRevenue.add(referralAmount);
        }
        else
            vaultAmount = vaultAmount.add(subReferralAmount);

        // set vault amount
        vaultLiquidity = vaultLiquidity.add(vaultAmount);

        // adding dev wallet fee
        claimable[devWallet] = claimable[devWallet].add(devFee);

        //adding kitsu fee
        claimable[address(this)] = claimable[address(this)].add(kitsuFee);

        // emit event explaining each fee
        emit ReferralFunds(msg.value, lastTransferId, ownerOf(lastTransferId), referralOwner,
        referralAmount, subReferralAmount, vaultAmount, kitsuFee, devFee);
    }

  function isMintActive() public view returns(bool) {
    return paused;
  }

  function getAmbassadorInfos(address src) public view returns(AmbassadorInfos memory) {
    return infos[src];
  }

  function mint(string memory mint_code) public {
    uint256 supply = totalSupply();
    require(supply < maxSupply, "This is too late! All the Kitsu has already been minted...");
    require(!paused, "Mint of new Kitsu has been disabled, it is too late to join us...");
    require(codesToOwners[mint_code] != address(0), "The mint code you used is invalid");
    require(addressesMinted[msg.sender] < maxMintAmount, "You already minted your Kitsus!");

    address parentOwner = codesToOwners[mint_code];
    string memory subParentCode = codeUsedForMint[parentOwner];
    address subParentOwner = codesToOwners[subParentCode];

    // for infos in terms of amount of NFTs minted per ambassador
    if (parentOwner != address(0))
        infos[parentOwner].nftsMinted = infos[parentOwner].nftsMinted.add(maxMintAmount);
    if (subParentOwner != address(0))
        infos[subParentOwner].nftsMinted = infos[subParentOwner].nftsMinted.add(maxMintAmount); 

    addressesMinted[msg.sender] = addressesMinted[msg.sender] + maxMintAmount;
    codeUsedForMint[msg.sender] = mint_code;
    for (uint256 i = 1; i <= maxMintAmount; i++) {
        parentOwners[supply + i] = parentOwner;
        subParentOwners[supply + i] = subParentOwner;

        _safeMint(msg.sender, supply + i);
        if ((supply + i) == maxSupply) break;
    }
    generateCode(msg.sender);
    emit Mint(msg.sender, parentOwner, subParentOwner, maxMintAmount);
  }

  function viewBalanceUsed() public view returns (uint256 mintBalanceUsed){
      return addressesMinted[msg.sender];
  }

  function walletOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory tokenIds = new uint256[](ownerTokenCount);
    for (uint256 i; i < ownerTokenCount; i++) {
      tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
    }
    return tokenIds;
  }


  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );
    
    if(revealed == false) {
        return notRevealedUri;
    }

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

  function reveal() public onlyOwner {
      revealed = true;
  }

  function setMaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner {
    maxMintAmount = _newmaxMintAmount;
  }
  
  function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
    notRevealedUri = _notRevealedURI;
  }

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

  function setBaseExtension(string memory _newBaseExtension) public onlyOwner {
    baseExtension = _newBaseExtension;
  }

  function pause(bool _state) public onlyOwner {
    paused = _state;
  }

    function setApprovalForAll(address operator, bool approved) public override(ERC721, IERC721) onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

        function approve(address operator, uint256 tokenId) public override(ERC721, IERC721)  onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public override(ERC721, IERC721)  onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721, IERC721)  onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override(ERC721, IERC721) 
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }

}

File 2 of 6 : SafeMath.sol
// SPDX-License-Identifier: MIT

/**
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⠙⠻⢶⣄⡀⠀⠀⠀⢀⣤⠶⠛⠛⡇⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣇⠀⠀⣙⣿⣦⣤⣴⣿⣁⠀⠀⣸⠇⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣡⣾⣿⣿⣿⣿⣿⣿⣿⣷⣌⠋⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣷⣄⡈⢻⣿⡟⢁⣠⣾⣿⣦
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⣿⣿⠘⣿⠃⣿⣿⣿⣿⡏⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠀⠈⠛⣰⠿⣆⠛⠁⠀⡀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣦⠀⠘⠛⠋⠀⣴⣿⠁⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣶⣾⣿⣿⣿⣿⡇⠀⠀⠀⢸⣿⣏⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠀⠀⠀⠾⢿⣿⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣠⣿⣿⣿⣿⣿⣿⡿⠟⠋⣁⣠⣤⣤⡶⠶⠶⣤⣄⠈⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢰⣿⣿⣮⣉⣉⣉⣤⣴⣶⣿⣿⣋⡥⠄⠀⠀⠀⠀⠉⢻⣄⠀⠀⠀⠀⠀
⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⣋⣁⣤⣀⣀⣤⣤⣤⣤⣄⣿⡄⠀⠀⠀⠀
⠀⠀⠀⠀⠙⠿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠛⠋⠉⠁⠀⠀⠀⠀⠈⠛⠃⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
*/

//🦊 Made with ❤ by the devs at Kitsu Mintu 🦊

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 6 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 4 of 6 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 5 of 6 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 6 of 6 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"},{"internalType":"address","name":"_devWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":"address","name":"src","type":"address"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"subOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"token","type":"uint256"},{"indexed":false,"internalType":"address","name":"fromOwner","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"ref","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"subRef","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vault","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"kitsu","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dev","type":"uint256"}],"name":"ReferralFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"TransferEvent","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressesMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"amountClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableVaultLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockReferralRestriction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"dst","type":"address"}],"name":"claimKitsuFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"}],"name":"getAmbassadorInfos","outputs":[{"components":[{"internalType":"uint256","name":"nftsMinted","type":"uint256"},{"internalType":"uint256","name":"subNftsMinted","type":"uint256"},{"internalType":"uint256","name":"totalRevenue","type":"uint256"}],"internalType":"struct KitsuMintuContract.AmbassadorInfos","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMyCode","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenParent","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenSubParent","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"highOwnerfee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"infos","outputs":[{"internalType":"uint256","name":"nftsMinted","type":"uint256"},{"internalType":"uint256","name":"subNftsMinted","type":"uint256"},{"internalType":"uint256","name":"totalRevenue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"code","type":"string"}],"name":"isCodeValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"mint_code","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"}],"name":"newAdminCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"notRevealedUri","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":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendFromVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"setVaultOwner","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":[{"internalType":"address","name":"addr","type":"address"}],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"code","type":"string"},{"internalType":"bool","name":"state","type":"bool"}],"name":"updateCodeBlacklistState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"updateOwnerFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"viewBalanceUsed","outputs":[{"internalType":"uint256","name":"mintBalanceUsed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

600060095560c0604052600560809081527f2e6a736f6e00000000000000000000000000000000000000000000000000000060a052600d906200004390826200056b565b506001600e819055600f805461ffff191690556211b3406011556127106015556016805460ff191690911790553480156200007d57600080fd5b506040516200440338038062004403833981016040819052620000a091620006ec565b8484733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b156200024957801562000165576040517f7d3e3dbe000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200014657600080fd5b505af11580156200015b573d6000803e3d6000fd5b5050505062000249565b600160a060020a03821615620001cf576040517fa0af2903000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200012b565b6040517f4420e4860000000000000000000000000000000000000000000000000000000081523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200022f57600080fd5b505af115801562000244573d6000803e3d6000fd5b505050505b50600090506200025a83826200056b565b5060016200026982826200056b565b5050506200029862000289620002eb640100000000026401000000009004565b640100000000620002ef810204565b620002ac8364010000000062000341810204565b620002c082640100000000620003e7810204565b60128054600160a060020a031916600160a060020a039290921691909117905550620007c992505050565b3390565b600b8054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000354640100000000620002eb810204565b600160a060020a03166200037064010000000062000485810204565b600160a060020a031614620003d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018190526024820152600080516020620043e383398151915260448201526064015b60405180910390fd5b600c620003e382826200056b565b5050565b620003fa640100000000620002eb810204565b600160a060020a03166200041664010000000062000485810204565b600160a060020a03161462000477576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018190526024820152600080516020620043e38339815191526044820152606401620003cc565b6010620003e382826200056b565b600b54600160a060020a031690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600281046001821680620004d857607f821691505b60208210810362000512577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f82111562000566576000818152602081206020601f86010481016020861015620005415750805b6020601f860104820191505b8181101562000562578281556001016200054d565b5050505b505050565b81516001604060020a0381111562000587576200058762000494565b6200059f81620005988454620004c3565b8462000518565b602080601f831160018114620005db5760008415620005be5750858301515b60028086026008870290910a600019041982161786555062000562565b600085815260208120601f198616915b828110156200060c57888601518255948401946001909101908401620005eb565b50858210156200062d57878501516008601f88160260020a60001904191681555b5050505050600202600101905550565b600082601f8301126200064f57600080fd5b81516001604060020a03808211156200066c576200066c62000494565b604051601f8301601f19908116603f0116810190828211818310171562000697576200069762000494565b81604052838152602092508683858801011115620006b457600080fd5b600091505b83821015620006d85785820183015181830184015290820190620006b9565b600093810190920192909252949350505050565b600080600080600060a086880312156200070557600080fd5b85516001604060020a03808211156200071d57600080fd5b6200072b89838a016200063d565b965060208801519150808211156200074257600080fd5b6200075089838a016200063d565b955060408801519150808211156200076757600080fd5b6200077589838a016200063d565b945060608801519150808211156200078c57600080fd5b506200079b888289016200063d565b60808801519093509050600160a060020a0381168114620007bb57600080fd5b809150509295509295909350565b613c0a80620007d96000396000f3fe6080604052600436106103a2576000357c0100000000000000000000000000000000000000000000000000000000900480636352211e116101ee578063ac3077731161011f578063d5abeb01116100bd578063ef5d9ae81161008c578063ef5d9ae814610e87578063f0c4bae614610ebc578063f2c4ce1e14610edc578063f2fde38b14610efc57600080fd5b8063d5abeb0114610de8578063d85d3d2714610dfe578063da3ef23f14610e1e578063e985e9c514610e3e57600080fd5b8063c6ddb642116100f9578063c6ddb64214610d3b578063c74a4a2c14610d92578063c802cac714610db2578063c87b56dd14610dc857600080fd5b8063ac30777314610cf1578063b88d4fde14610d06578063c668286214610d2657600080fd5b806380b3631c1161018c57806395d89b411161016657806395d89b4114610c65578063a22cb46514610c7a578063a2fffbf114610c9a578063a475b5dd14610cdc57600080fd5b806380b3631c14610c075780638da5cb5b14610c275780638ea5220f14610c4557600080fd5b8063715018a6116101c8578063715018a614610b9d57806371cd28b414610bb25780637752086c14610bc7578063794b032414610be757600080fd5b80636352211e14610b5d57806369bc133b146108c757806370a0823114610b7d57600080fd5b806323b872dd116102d3578063435a59a41161027157806355f804b31161024057806355f804b314610aeb578063567bdd3f14610b0b5780635b92ac0d14610b2b5780635c975abb14610b4357600080fd5b8063435a59a414610a52578063438b630014610a7f5780634f6ccce714610aac5780635183022714610acc57600080fd5b80632f745c59116102ad5780632f745c59146109d657806331e9750b146109f657806341f4343414610a1057806342842e0e14610a3257600080fd5b806323b872dd1461097e57806325b5cc611461099e5780632ac101f1146109b457600080fd5b8063095ea7b31161034057806318160ddd1161031a57806318160ddd146108fd5780631a4d7092146109125780631f52692b14610948578063239c70ae1461096857600080fd5b8063095ea7b3146108885780631160a020146108a857806314ff9545146108c757600080fd5b806306fdde031161037c57806306fdde03146107f9578063081812fc1461081b578063081c8c4414610853578063088a4ed01461086857600080fd5b806301ffc9a71461078257806302329a29146107b7578063038657b7146107d957600080fd5b3661077d576009546000908152601b6020908152604080832054601c909252822054600160a060020a03918216929116906103db610f1c565b905060006103f4826103ee346064610f3b565b90610f50565b9050600061040860c86103ee846001610f3b565b9050600061041c60c86103ee856001610f3b565b9050600061043060646103ee866003610f3b565b9050600061044460646103ee876001610f3b565b60165490915060009060ff166104695761046460646103ee886003610f3b565b610479565b61047960646103ee886004610f3b565b9050600160a060020a038916158015906105395750600160a060020a0389166000908152601a60205260409020805461053991906104b69061336c565b80601f01602080910402602001604051908101604052809291908181526020018280546104e29061336c565b801561052f5780601f106105045761010080835404028352916020019161052f565b820191906000526020600020905b81548152906001019060200180831161051257829003601f168201915b5050505050610f5c565b156105b457600160a060020a0389166000908152601f60205260409020546105619086610fc2565b600160a060020a038a166000908152601f60209081526040808320939093556021905220600201546105939086610fc2565b600160a060020a038a166000908152602160205260409020600201556105c1565b6105be8386610fc2565b92505b600160a060020a038816158015906105fc5750600160a060020a0388166000908152601a6020526040902080546105fc91906104b69061336c565b1561067757600160a060020a0388166000908152601f60205260409020546106249085610fc2565b600160a060020a0389166000908152601f60209081526040808320939093556021905220600201546106569086610fc2565b600160a060020a038916600090815260216020526040902060020155610684565b6106818385610fc2565b92505b6013546106919084610fc2565b601355601254600160a060020a03166000908152601f60205260409020546106b99082610fc2565b601254600160a060020a03166000908152601f60205260408082209290925530815220546106e79083610fc2565b306000908152601f60205260409020556009547f209b9af08626c5d4a597178402fa84769898ffe74674ec860cc36f01f3d0ca3090349061072781610fce565b604080519384526020840192909252600160a060020a03908116838301528c1660608301526080820188905260a0820187905260c0820186905260e08201859052610100820184905251908190036101200190a1005b600080fd5b34801561078e57600080fd5b506107a261079d3660046133bf565b611061565b60405190151581526020015b60405180910390f35b3480156107c357600080fd5b506107d76107d23660046133ea565b61109f565b005b3480156107e557600080fd5b506107d76107f436600461341c565b6110df565b34801561080557600080fd5b5061080e611164565b6040516107ae9190613489565b34801561082757600080fd5b5061083b61083636600461349c565b6111f6565b604051600160a060020a0390911681526020016107ae565b34801561085f57600080fd5b5061080e61129f565b34801561087457600080fd5b506107d761088336600461349c565b61132d565b34801561089457600080fd5b506107d76108a33660046134b5565b61135f565b3480156108b457600080fd5b506013545b6040519081526020016107ae565b3480156108d357600080fd5b5061083b6108e236600461349c565b6000908152601b6020526040902054600160a060020a031690565b34801561090957600080fd5b506008546108b9565b34801561091e57600080fd5b506108b961092d36600461341c565b600160a060020a03166000908152601f602052604090205490565b34801561095457600080fd5b5060145461083b90600160a060020a031681565b34801561097457600080fd5b506108b9600e5481565b34801561098a57600080fd5b506107d76109993660046134e1565b611378565b3480156109aa57600080fd5b506108b960115481565b3480156109c057600080fd5b50336000908152601760205260409020546108b9565b3480156109e257600080fd5b506108b96109f13660046134b5565b6113a3565b348015610a0257600080fd5b506016546107a29060ff1681565b348015610a1c57600080fd5b5061083b6daaeb6d7670e522a718067333cd4e81565b348015610a3e57600080fd5b506107d7610a4d3660046134e1565b61144e565b348015610a5e57600080fd5b506108b9610a6d36600461341c565b60176020526000908152604090205481565b348015610a8b57600080fd5b50610a9f610a9a36600461341c565b611473565b6040516107ae9190613522565b348015610ab857600080fd5b506108b9610ac736600461349c565b611515565b348015610ad857600080fd5b50600f546107a290610100900460ff1681565b348015610af757600080fd5b506107d7610b06366004613615565b6115bc565b348015610b1757600080fd5b506107d7610b263660046133ea565b6115f9565b348015610b3757600080fd5b50600f5460ff166107a2565b348015610b4f57600080fd5b50600f546107a29060ff1681565b348015610b6957600080fd5b5061083b610b7836600461349c565b610fce565b348015610b8957600080fd5b506108b9610b9836600461341c565b611639565b348015610ba957600080fd5b506107d76116d6565b348015610bbe57600080fd5b5061080e61170f565b348015610bd357600080fd5b506107d7610be23660046134b5565b61172d565b348015610bf357600080fd5b506107d7610c0236600461341c565b611867565b348015610c1357600080fd5b506107d7610c2236600461341c565b6118a0565b348015610c3357600080fd5b50600b54600160a060020a031661083b565b348015610c5157600080fd5b5060125461083b90600160a060020a031681565b348015610c7157600080fd5b5061080e6118ef565b348015610c8657600080fd5b506107d7610c9536600461364a565b6118fe565b348015610ca657600080fd5b50610cba610cb536600461341c565b611912565b60408051825181526020808401519082015291810151908201526060016107ae565b348015610ce857600080fd5b506107d7611978565b348015610cfd57600080fd5b506107d76119b6565b348015610d1257600080fd5b506107d7610d21366004613683565b611a87565b348015610d3257600080fd5b5061080e611ab4565b348015610d4757600080fd5b50610d77610d5636600461341c565b60216020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016107ae565b348015610d9e57600080fd5b506107d7610dad366004613703565b611ac1565b348015610dbe57600080fd5b506108b960135481565b348015610dd457600080fd5b5061080e610de336600461349c565b611b23565b348015610df457600080fd5b506108b960155481565b348015610e0a57600080fd5b506107d7610e19366004613615565b611cb8565b348015610e2a57600080fd5b506107d7610e39366004613615565b6121e4565b348015610e4a57600080fd5b506107a2610e5936600461374a565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610e9357600080fd5b506108b9610ea236600461341c565b600160a060020a0316600090815260208052604090205490565b348015610ec857600080fd5b506107a2610ed7366004613615565b610f5c565b348015610ee857600080fd5b506107d7610ef7366004613615565b61221d565b348015610f0857600080fd5b506107d7610f1736600461341c565b612256565b60165460009060ff16610f30576008610f33565b60095b60ff16905090565b6000610f478284613791565b90505b92915050565b6000610f4782846137c1565b6000601154601983604051610f7191906137d5565b90815260200160405180910390205443610f8b91906137f1565b1115610fba57601e82604051610fa191906137d5565b9081526040519081900360200190205460ff1692915050565b506001919050565b6000610f478284613804565b600081815260026020526040812054600160a060020a031680610f4a5760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000600160e060020a031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610f4a5750610f4a8261230b565b600b54600160a060020a031633146110cc5760405160e560020a62461bcd02815260040161105890613817565b600f805460ff1916911515919091179055565b600b54600160a060020a0316331461110c5760405160e560020a62461bcd02815260040161105890613817565b306000908152601f6020526040808220549051600160a060020a0384169282156108fc02929190818181858888f19350505050158015611150573d6000803e3d6000fd5b5050306000908152601f6020526040812055565b6060600080546111739061336c565b80601f016020809104026020016040519081016040528092919081815260200182805461119f9061336c565b80156111ec5780601f106111c1576101008083540402835291602001916111ec565b820191906000526020600020905b8154815290600101906020018083116111cf57829003601f168201915b5050505050905090565b600081815260026020526040812054600160a060020a03166112835760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401611058565b50600090815260046020526040902054600160a060020a031690565b601080546112ac9061336c565b80601f01602080910402602001604051908101604052809291908181526020018280546112d89061336c565b80156113255780601f106112fa57610100808354040283529160200191611325565b820191906000526020600020905b81548152906001019060200180831161130857829003601f168201915b505050505081565b600b54600160a060020a0316331461135a5760405160e560020a62461bcd02815260040161105890613817565b600e55565b81611369816123a6565b6113738383612491565b505050565b82600160a060020a038116331461139257611392336123a6565b61139d8484846125c3565b50505050565b60006113ae83611639565b82106114255760405160e560020a62461bcd02815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401611058565b50600160a060020a03919091166000908152600660209081526040808320938352929052205490565b82600160a060020a038116331461146857611468336123a6565b61139d8484846125f7565b6060600061148083611639565b905060008167ffffffffffffffff81111561149d5761149d613566565b6040519080825280602002602001820160405280156114c6578160200160208202803683370190505b50905060005b8281101561150d576114de85826113a3565b8282815181106114f0576114f061384c565b60209081029190910101528061150581613865565b9150506114cc565b509392505050565b600061152060085490565b82106115975760405160e560020a62461bcd02815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401611058565b600882815481106115aa576115aa61384c565b90600052602060002001549050919050565b600b54600160a060020a031633146115e95760405160e560020a62461bcd02815260040161105890613817565b600c6115f582826138cc565b5050565b600b54600160a060020a031633146116265760405160e560020a62461bcd02815260040161105890613817565b6016805460ff1916911515919091179055565b6000600160a060020a0382166116ba5760405160e560020a62461bcd02815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401611058565b50600160a060020a031660009081526003602052604090205490565b600b54600160a060020a031633146117035760405160e560020a62461bcd02815260040161105890613817565b61170d6000612612565b565b336000908152601a602052604090208054606091906111739061336c565b601454600160a060020a0316331461178a5760405160e560020a62461bcd02815260206004820152601b60248201527f43616e2774206578656375746520746869732066756e6374696f6e00000000006044820152606401611058565b8060135410156117df5760405160e560020a62461bcd02815260206004820152601d60248201527f4e6f7420656e6f756768206c697175696469747920696e207661756c740000006044820152606401611058565b6013546117ec9082612664565b601355604051600160a060020a0383169082156108fc029083906000818181858888f19350505050158015611825573d6000803e3d6000fd5b50600160a060020a03821660009081526020805260409020546118489082610fc2565b600160a060020a03909216600090815260208052604090209190915550565b600b54600160a060020a031633146118945760405160e560020a62461bcd02815260040161105890613817565b61189d81612670565b50565b600b54600160a060020a031633146118cd5760405160e560020a62461bcd02815260040161105890613817565b60148054600160a060020a031916600160a060020a0392909216919091179055565b6060600180546111739061336c565b81611908816123a6565b611373838361271e565b61193660405180606001604052806000815260200160008152602001600081525090565b50600160a060020a0316600090815260216020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b600b54600160a060020a031633146119a55760405160e560020a62461bcd02815260040161105890613817565b600f805461ff001916610100179055565b336000818152601f60205260408120549003611a3d5760405160e560020a62461bcd02815260206004820152602160248201527f596f7520646f6e2774206861766520616e792066756e647320746f20636c616960448201527f6d000000000000000000000000000000000000000000000000000000000000006064820152608401611058565b600160a060020a0381166000818152601f6020526040808220805490839055905190929183156108fc02918491818181858888f19350505050158015611825573d6000803e3d6000fd5b83600160a060020a0381163314611aa157611aa1336123a6565b611aad858585856127e5565b5050505050565b600d80546112ac9061336c565b600b54600160a060020a03163314611aee5760405160e560020a62461bcd02815260040161105890613817565b80601e83604051611aff91906137d5565b908152604051908190036020019020805491151560ff199092169190911790555050565b600081815260026020526040902054606090600160a060020a0316611bb35760405160e560020a62461bcd02815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401611058565b600f54610100900460ff161515600003611c595760108054611bd49061336c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c009061336c565b8015611c4d5780601f10611c2257610100808354040283529160200191611c4d565b820191906000526020600020905b815481529060010190602001808311611c3057829003601f168201915b50505050509050919050565b6000611c6361281a565b90506000815111611c835760405180602001604052806000815250611cb1565b80611c8d84612829565b600d604051602001611ca193929190613992565b6040516020818303038152906040525b9392505050565b6000611cc360085490565b90506015548110611d3f5760405160e560020a62461bcd02815260206004820152603a60248201527f5468697320697320746f6f206c6174652120416c6c20746865204b697473752060448201527f68617320616c7265616479206265656e206d696e7465642e2e2e0000000000006064820152608401611058565b600f5460ff1615611de15760405160e560020a62461bcd02815260206004820152604160248201527f4d696e74206f66206e6577204b6974737520686173206265656e20646973616260448201527f6c65642c20697420697320746f6f206c61746520746f206a6f696e2075732e2e60648201527f2e00000000000000000000000000000000000000000000000000000000000000608482015260a401611058565b6000600160a060020a0316601883604051611dfc91906137d5565b90815260405190819003602001902054600160a060020a031603611e8b5760405160e560020a62461bcd02815260206004820152602160248201527f546865206d696e7420636f646520796f75207573656420697320696e76616c6960448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401611058565b600e543360009081526017602052604090205410611eee5760405160e560020a62461bcd02815260206004820152601f60248201527f596f7520616c7265616479206d696e74656420796f7572204b697473757321006044820152606401611058565b6000601883604051611f0091906137d5565b908152604080516020928190038301902054600160a060020a03166000818152601d909352908220805491935090611f379061336c565b80601f0160208091040260200160405190810160405280929190818152602001828054611f639061336c565b8015611fb05780601f10611f8557610100808354040283529160200191611fb0565b820191906000526020600020905b815481529060010190602001808311611f9357829003601f168201915b505050505090506000601882604051611fc991906137d5565b90815260405190819003602001902054600160a060020a03908116915083161561202c57600e54600160a060020a03841660009081526021602052604090205461201291610fc2565b600160a060020a0384166000908152602160205260409020555b600160a060020a0381161561207a57600e54600160a060020a03821660009081526021602052604090205461206091610fc2565b600160a060020a0382166000908152602160205260409020555b600e54336000908152601760205260409020546120979190613804565b33600090815260176020908152604080832093909355601d9052206120bc86826138cc565b5060015b600e5481116121805783601b60006120d88489613804565b815260200190815260200160002060006101000a815481600160a060020a030219169083600160a060020a0316021790555081601c6000838861211b9190613804565b815260208101919091526040016000208054600160a060020a031916600160a060020a039290921691909117905561215c336121578388613804565b612985565b6015546121698287613804565b14612180578061217881613865565b9150506120c0565b5061218a33612670565b600e5460408051338152600160a060020a0386811660208301528416818301526060810192909252517f6b460f6f5497bb72eeec65f6df538e6388b2e74b8fc03e7d318653a663e737829181900360800190a15050505050565b600b54600160a060020a031633146122115760405160e560020a62461bcd02815260040161105890613817565b600d6115f582826138cc565b600b54600160a060020a0316331461224a5760405160e560020a62461bcd02815260040161105890613817565b60106115f582826138cc565b600b54600160a060020a031633146122835760405160e560020a62461bcd02815260040161105890613817565b600160a060020a0381166123025760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611058565b61189d81612612565b6000600160e060020a031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061236e5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610f4a57507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a0319831614610f4a565b6daaeb6d7670e522a718067333cd4e3b1561189d576040517fc6171134000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561242c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124509190613a32565b61189d576040517fede71dcc000000000000000000000000000000000000000000000000000000008152600160a060020a0382166004820152602401611058565b600061249c82610fce565b905080600160a060020a031683600160a060020a0316036125285760405160e560020a62461bcd02815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401611058565b33600160a060020a038216148061254457506125448133610e59565b6125b95760405160e560020a62461bcd02815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401611058565b611373838361299f565b6125cd3382612a0d565b6125ec5760405160e560020a62461bcd02815260040161105890613a4f565b611373838383612b14565b61137383838360405180602001604052806000815250611a87565b600b8054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610f4782846137f1565b600061268361267e43612cf2565b612829565b6040516020016126939190613aac565b6040516020818303038152906040529050816018826040516126b591906137d5565b90815260408051602092819003830190208054600160a060020a031916600160a060020a039485161790559184166000908152601a909152206126f882826138cc565b504360198260405161270a91906137d5565b908152604051908190036020019020555050565b33600160a060020a038316036127795760405160e560020a62461bcd02815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401611058565b336000818152600560209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6127ef3383612a0d565b61280e5760405160e560020a62461bcd02815260040161105890613a4f565b61139d84848484612df6565b6060600c80546111739061336c565b60608160000361286c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612896578061288081613865565b915061288f9050600a836137c1565b9150612870565b60008167ffffffffffffffff8111156128b1576128b1613566565b6040519080825280601f01601f1916602001820160405280156128db576020820181803683370190505b5090505b841561297d576128f06001836137f1565b91506128fd600a86613af1565b612908906030613804565b7f01000000000000000000000000000000000000000000000000000000000000000281838151811061293c5761293c61384c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612976600a866137c1565b94506128df565b949350505050565b6115f5828260405180602001604052806000815250612e2c565b60008181526004602052604090208054600160a060020a031916600160a060020a03841690811790915581906129d482610fce565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260026020526040812054600160a060020a0316612a9a5760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401611058565b6000612aa583610fce565b905080600160a060020a031684600160a060020a03161480612ae0575083600160a060020a0316612ad5846111f6565b600160a060020a0316145b8061297d5750600160a060020a0380821660009081526005602090815260408083209388168352929052205460ff1661297d565b82600160a060020a0316612b2782610fce565b600160a060020a031614612ba65760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401611058565b600160a060020a038216612c245760405160e560020a62461bcd028152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401611058565b612c2f838383612e62565b612c3a60008261299f565b600160a060020a0383166000908152600360205260408120805460019290612c639084906137f1565b9091555050600160a060020a0382166000908152600360205260408120805460019290612c91908490613804565b90915550506000818152600260205260408082208054600160a060020a031916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516c010000000000000000000000003302602082015260009081904390429060340160408051601f198184030181529190528051602090910120612d3891906137c1565b6040516c01000000000000000000000000410260208201524590429060340160408051601f198184030181529190528051602090910120612d7991906137c1565b612d834442613804565b612d8d9190613804565b612d979190613804565b612da19190613804565b612dab9190613804565b604051602001612dbd91815260200190565b60408051601f198184030181529190528051602090910120905082612de281836137c1565b612dec9190613791565b611cb190826137f1565b612e01848484612b14565b612e0d84848484612f52565b61139d5760405160e560020a62461bcd02815260040161105890613b05565b612e368383613088565b612e436000848484612f52565b6113735760405160e560020a62461bcd02815260040161105890613b05565b60098190556040518181527f1d354e514bc672adde2a82d6bb5fd1aa8be57780118d2d306addfc07a89ca0a79060200160405180910390a1600160a060020a038316612ef557612ef081600880546000838152600a60205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f18565b81600160a060020a031683600160a060020a031614612f1857612f1883826131dc565b600160a060020a038216612f2f5761137381613279565b82600160a060020a031682600160a060020a031614611373576113738282613328565b6000600160a060020a0384163b1561307d576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290612faf903390899088908890600401613b62565b6020604051808303816000875af1925050508015612fea575060408051601f3d908101601f19168201909252612fe791810190613b9e565b60015b61304a573d808015613018576040519150601f19603f3d011682016040523d82523d6000602084013e61301d565b606091505b5080516000036130425760405160e560020a62461bcd02815260040161105890613b05565b805181602001fd5b600160e060020a0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061297d565b506001949350505050565b600160a060020a0382166130e15760405160e560020a62461bcd02815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401611058565b600081815260026020526040902054600160a060020a0316156131495760405160e560020a62461bcd02815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611058565b61315560008383612e62565b600160a060020a038216600090815260036020526040812080546001929061317e908490613804565b90915550506000818152600260205260408082208054600160a060020a031916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016131e984611639565b6131f391906137f1565b60008381526007602052604090205490915080821461324657600160a060020a03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b506000918252600760209081526040808420849055600160a060020a039094168352600681528383209183525290812055565b60085460009061328b906001906137f1565b6000838152600a6020526040812054600880549394509092849081106132b3576132b361384c565b9060005260206000200154905080600883815481106132d4576132d461384c565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600880548061330c5761330c613bbb565b6001900381819060005260206000200160009055905550505050565b600061333383611639565b600160a060020a039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60028104600182168061338057607f821691505b6020821081036133a35760e060020a634e487b7102600052602260045260246000fd5b50919050565b600160e060020a03198116811461189d57600080fd5b6000602082840312156133d157600080fd5b8135611cb1816133a9565b801515811461189d57600080fd5b6000602082840312156133fc57600080fd5b8135611cb1816133dc565b600160a060020a038116811461189d57600080fd5b60006020828403121561342e57600080fd5b8135611cb181613407565b60005b8381101561345457818101518382015260200161343c565b50506000910152565b60008151808452613475816020860160208601613439565b601f01601f19169290920160200192915050565b602081526000610f47602083018461345d565b6000602082840312156134ae57600080fd5b5035919050565b600080604083850312156134c857600080fd5b82356134d381613407565b946020939093013593505050565b6000806000606084860312156134f657600080fd5b833561350181613407565b9250602084013561351181613407565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b8181101561355a5783518352928401929184019160010161353e565b50909695505050505050565b60e060020a634e487b7102600052604160045260246000fd5b600067ffffffffffffffff8084111561359a5761359a613566565b604051601f8501601f19908116603f011681019082821181831017156135c2576135c2613566565b816040528093508581528686860111156135db57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261360657600080fd5b610f478383356020850161357f565b60006020828403121561362757600080fd5b813567ffffffffffffffff81111561363e57600080fd5b61297d848285016135f5565b6000806040838503121561365d57600080fd5b823561366881613407565b91506020830135613678816133dc565b809150509250929050565b6000806000806080858703121561369957600080fd5b84356136a481613407565b935060208501356136b481613407565b925060408501359150606085013567ffffffffffffffff8111156136d757600080fd5b8501601f810187136136e857600080fd5b6136f78782356020840161357f565b91505092959194509250565b6000806040838503121561371657600080fd5b823567ffffffffffffffff81111561372d57600080fd5b613739858286016135f5565b9250506020830135613678816133dc565b6000806040838503121561375d57600080fd5b823561376881613407565b9150602083013561367881613407565b60e060020a634e487b7102600052601160045260246000fd5b8082028115828204841417610f4a57610f4a613778565b60e060020a634e487b7102600052601260045260246000fd5b6000826137d0576137d06137a8565b500490565b600082516137e7818460208701613439565b9190910192915050565b81810381811115610f4a57610f4a613778565b80820180821115610f4a57610f4a613778565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60e060020a634e487b7102600052603260045260246000fd5b60006001820161387757613877613778565b5060010190565b601f821115611373576000818152602081206020601f860104810160208610156138a55750805b6020601f860104820191505b818110156138c4578281556001016138b1565b505050505050565b815167ffffffffffffffff8111156138e6576138e6613566565b6138fa816138f4845461336c565b8461387e565b602080601f83116001811461393357600084156139175750858301515b60028086026008870290910a60001904198216178655506138c4565b600085815260208120601f198616915b8281101561396257888601518255948401946001909101908401613943565b508582101561398257878501516008601f88160260020a60001904191681555b5050505050600202600101905550565b6000845160206139a58285838a01613439565b8551918401916139b88184848a01613439565b85549201916000906139c98161336c565b600182811680156139e157600181146139f657613a22565b60ff1984168752821515830287019450613a22565b896000528560002060005b84811015613a1a57815489820152908301908701613a01565b505082870194505b50929a9950505050505050505050565b600060208284031215613a4457600080fd5b8151611cb1816133dc565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b7f4b4d2d0000000000000000000000000000000000000000000000000000000000815260008251613ae4816003850160208701613439565b9190910160030192915050565b600082613b0057613b006137a8565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000600160a060020a03808716835280861660208401525083604083015260806060830152613b94608083018461345d565b9695505050505050565b600060208284031215613bb057600080fd5b8151611cb1816133a9565b60e060020a634e487b7102600052603160045260246000fdfea26469706673582212208fa49d72d74a5029233ee47c046231b6f029db73d14cb7f3548d1196b321648464736f6c634300081100334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000180000000000000000000000000d1cfbbb140972530a3798fe1ba11312eb8c99582000000000000000000000000000000000000000000000000000000000000000b4b69747375204d696e7475000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4b69747375204d696e7475000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f63646e2e6b697473756d696e74752e696f2f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f63646e2e6b697473756d696e74752e696f2f756e72657665616c65642e6a736f6e0000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103a2576000357c0100000000000000000000000000000000000000000000000000000000900480636352211e116101ee578063ac3077731161011f578063d5abeb01116100bd578063ef5d9ae81161008c578063ef5d9ae814610e87578063f0c4bae614610ebc578063f2c4ce1e14610edc578063f2fde38b14610efc57600080fd5b8063d5abeb0114610de8578063d85d3d2714610dfe578063da3ef23f14610e1e578063e985e9c514610e3e57600080fd5b8063c6ddb642116100f9578063c6ddb64214610d3b578063c74a4a2c14610d92578063c802cac714610db2578063c87b56dd14610dc857600080fd5b8063ac30777314610cf1578063b88d4fde14610d06578063c668286214610d2657600080fd5b806380b3631c1161018c57806395d89b411161016657806395d89b4114610c65578063a22cb46514610c7a578063a2fffbf114610c9a578063a475b5dd14610cdc57600080fd5b806380b3631c14610c075780638da5cb5b14610c275780638ea5220f14610c4557600080fd5b8063715018a6116101c8578063715018a614610b9d57806371cd28b414610bb25780637752086c14610bc7578063794b032414610be757600080fd5b80636352211e14610b5d57806369bc133b146108c757806370a0823114610b7d57600080fd5b806323b872dd116102d3578063435a59a41161027157806355f804b31161024057806355f804b314610aeb578063567bdd3f14610b0b5780635b92ac0d14610b2b5780635c975abb14610b4357600080fd5b8063435a59a414610a52578063438b630014610a7f5780634f6ccce714610aac5780635183022714610acc57600080fd5b80632f745c59116102ad5780632f745c59146109d657806331e9750b146109f657806341f4343414610a1057806342842e0e14610a3257600080fd5b806323b872dd1461097e57806325b5cc611461099e5780632ac101f1146109b457600080fd5b8063095ea7b31161034057806318160ddd1161031a57806318160ddd146108fd5780631a4d7092146109125780631f52692b14610948578063239c70ae1461096857600080fd5b8063095ea7b3146108885780631160a020146108a857806314ff9545146108c757600080fd5b806306fdde031161037c57806306fdde03146107f9578063081812fc1461081b578063081c8c4414610853578063088a4ed01461086857600080fd5b806301ffc9a71461078257806302329a29146107b7578063038657b7146107d957600080fd5b3661077d576009546000908152601b6020908152604080832054601c909252822054600160a060020a03918216929116906103db610f1c565b905060006103f4826103ee346064610f3b565b90610f50565b9050600061040860c86103ee846001610f3b565b9050600061041c60c86103ee856001610f3b565b9050600061043060646103ee866003610f3b565b9050600061044460646103ee876001610f3b565b60165490915060009060ff166104695761046460646103ee886003610f3b565b610479565b61047960646103ee886004610f3b565b9050600160a060020a038916158015906105395750600160a060020a0389166000908152601a60205260409020805461053991906104b69061336c565b80601f01602080910402602001604051908101604052809291908181526020018280546104e29061336c565b801561052f5780601f106105045761010080835404028352916020019161052f565b820191906000526020600020905b81548152906001019060200180831161051257829003601f168201915b5050505050610f5c565b156105b457600160a060020a0389166000908152601f60205260409020546105619086610fc2565b600160a060020a038a166000908152601f60209081526040808320939093556021905220600201546105939086610fc2565b600160a060020a038a166000908152602160205260409020600201556105c1565b6105be8386610fc2565b92505b600160a060020a038816158015906105fc5750600160a060020a0388166000908152601a6020526040902080546105fc91906104b69061336c565b1561067757600160a060020a0388166000908152601f60205260409020546106249085610fc2565b600160a060020a0389166000908152601f60209081526040808320939093556021905220600201546106569086610fc2565b600160a060020a038916600090815260216020526040902060020155610684565b6106818385610fc2565b92505b6013546106919084610fc2565b601355601254600160a060020a03166000908152601f60205260409020546106b99082610fc2565b601254600160a060020a03166000908152601f60205260408082209290925530815220546106e79083610fc2565b306000908152601f60205260409020556009547f209b9af08626c5d4a597178402fa84769898ffe74674ec860cc36f01f3d0ca3090349061072781610fce565b604080519384526020840192909252600160a060020a03908116838301528c1660608301526080820188905260a0820187905260c0820186905260e08201859052610100820184905251908190036101200190a1005b600080fd5b34801561078e57600080fd5b506107a261079d3660046133bf565b611061565b60405190151581526020015b60405180910390f35b3480156107c357600080fd5b506107d76107d23660046133ea565b61109f565b005b3480156107e557600080fd5b506107d76107f436600461341c565b6110df565b34801561080557600080fd5b5061080e611164565b6040516107ae9190613489565b34801561082757600080fd5b5061083b61083636600461349c565b6111f6565b604051600160a060020a0390911681526020016107ae565b34801561085f57600080fd5b5061080e61129f565b34801561087457600080fd5b506107d761088336600461349c565b61132d565b34801561089457600080fd5b506107d76108a33660046134b5565b61135f565b3480156108b457600080fd5b506013545b6040519081526020016107ae565b3480156108d357600080fd5b5061083b6108e236600461349c565b6000908152601b6020526040902054600160a060020a031690565b34801561090957600080fd5b506008546108b9565b34801561091e57600080fd5b506108b961092d36600461341c565b600160a060020a03166000908152601f602052604090205490565b34801561095457600080fd5b5060145461083b90600160a060020a031681565b34801561097457600080fd5b506108b9600e5481565b34801561098a57600080fd5b506107d76109993660046134e1565b611378565b3480156109aa57600080fd5b506108b960115481565b3480156109c057600080fd5b50336000908152601760205260409020546108b9565b3480156109e257600080fd5b506108b96109f13660046134b5565b6113a3565b348015610a0257600080fd5b506016546107a29060ff1681565b348015610a1c57600080fd5b5061083b6daaeb6d7670e522a718067333cd4e81565b348015610a3e57600080fd5b506107d7610a4d3660046134e1565b61144e565b348015610a5e57600080fd5b506108b9610a6d36600461341c565b60176020526000908152604090205481565b348015610a8b57600080fd5b50610a9f610a9a36600461341c565b611473565b6040516107ae9190613522565b348015610ab857600080fd5b506108b9610ac736600461349c565b611515565b348015610ad857600080fd5b50600f546107a290610100900460ff1681565b348015610af757600080fd5b506107d7610b06366004613615565b6115bc565b348015610b1757600080fd5b506107d7610b263660046133ea565b6115f9565b348015610b3757600080fd5b50600f5460ff166107a2565b348015610b4f57600080fd5b50600f546107a29060ff1681565b348015610b6957600080fd5b5061083b610b7836600461349c565b610fce565b348015610b8957600080fd5b506108b9610b9836600461341c565b611639565b348015610ba957600080fd5b506107d76116d6565b348015610bbe57600080fd5b5061080e61170f565b348015610bd357600080fd5b506107d7610be23660046134b5565b61172d565b348015610bf357600080fd5b506107d7610c0236600461341c565b611867565b348015610c1357600080fd5b506107d7610c2236600461341c565b6118a0565b348015610c3357600080fd5b50600b54600160a060020a031661083b565b348015610c5157600080fd5b5060125461083b90600160a060020a031681565b348015610c7157600080fd5b5061080e6118ef565b348015610c8657600080fd5b506107d7610c9536600461364a565b6118fe565b348015610ca657600080fd5b50610cba610cb536600461341c565b611912565b60408051825181526020808401519082015291810151908201526060016107ae565b348015610ce857600080fd5b506107d7611978565b348015610cfd57600080fd5b506107d76119b6565b348015610d1257600080fd5b506107d7610d21366004613683565b611a87565b348015610d3257600080fd5b5061080e611ab4565b348015610d4757600080fd5b50610d77610d5636600461341c565b60216020526000908152604090208054600182015460029092015490919083565b604080519384526020840192909252908201526060016107ae565b348015610d9e57600080fd5b506107d7610dad366004613703565b611ac1565b348015610dbe57600080fd5b506108b960135481565b348015610dd457600080fd5b5061080e610de336600461349c565b611b23565b348015610df457600080fd5b506108b960155481565b348015610e0a57600080fd5b506107d7610e19366004613615565b611cb8565b348015610e2a57600080fd5b506107d7610e39366004613615565b6121e4565b348015610e4a57600080fd5b506107a2610e5936600461374a565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610e9357600080fd5b506108b9610ea236600461341c565b600160a060020a0316600090815260208052604090205490565b348015610ec857600080fd5b506107a2610ed7366004613615565b610f5c565b348015610ee857600080fd5b506107d7610ef7366004613615565b61221d565b348015610f0857600080fd5b506107d7610f1736600461341c565b612256565b60165460009060ff16610f30576008610f33565b60095b60ff16905090565b6000610f478284613791565b90505b92915050565b6000610f4782846137c1565b6000601154601983604051610f7191906137d5565b90815260200160405180910390205443610f8b91906137f1565b1115610fba57601e82604051610fa191906137d5565b9081526040519081900360200190205460ff1692915050565b506001919050565b6000610f478284613804565b600081815260026020526040812054600160a060020a031680610f4a5760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000600160e060020a031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610f4a5750610f4a8261230b565b600b54600160a060020a031633146110cc5760405160e560020a62461bcd02815260040161105890613817565b600f805460ff1916911515919091179055565b600b54600160a060020a0316331461110c5760405160e560020a62461bcd02815260040161105890613817565b306000908152601f6020526040808220549051600160a060020a0384169282156108fc02929190818181858888f19350505050158015611150573d6000803e3d6000fd5b5050306000908152601f6020526040812055565b6060600080546111739061336c565b80601f016020809104026020016040519081016040528092919081815260200182805461119f9061336c565b80156111ec5780601f106111c1576101008083540402835291602001916111ec565b820191906000526020600020905b8154815290600101906020018083116111cf57829003601f168201915b5050505050905090565b600081815260026020526040812054600160a060020a03166112835760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401611058565b50600090815260046020526040902054600160a060020a031690565b601080546112ac9061336c565b80601f01602080910402602001604051908101604052809291908181526020018280546112d89061336c565b80156113255780601f106112fa57610100808354040283529160200191611325565b820191906000526020600020905b81548152906001019060200180831161130857829003601f168201915b505050505081565b600b54600160a060020a0316331461135a5760405160e560020a62461bcd02815260040161105890613817565b600e55565b81611369816123a6565b6113738383612491565b505050565b82600160a060020a038116331461139257611392336123a6565b61139d8484846125c3565b50505050565b60006113ae83611639565b82106114255760405160e560020a62461bcd02815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401611058565b50600160a060020a03919091166000908152600660209081526040808320938352929052205490565b82600160a060020a038116331461146857611468336123a6565b61139d8484846125f7565b6060600061148083611639565b905060008167ffffffffffffffff81111561149d5761149d613566565b6040519080825280602002602001820160405280156114c6578160200160208202803683370190505b50905060005b8281101561150d576114de85826113a3565b8282815181106114f0576114f061384c565b60209081029190910101528061150581613865565b9150506114cc565b509392505050565b600061152060085490565b82106115975760405160e560020a62461bcd02815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401611058565b600882815481106115aa576115aa61384c565b90600052602060002001549050919050565b600b54600160a060020a031633146115e95760405160e560020a62461bcd02815260040161105890613817565b600c6115f582826138cc565b5050565b600b54600160a060020a031633146116265760405160e560020a62461bcd02815260040161105890613817565b6016805460ff1916911515919091179055565b6000600160a060020a0382166116ba5760405160e560020a62461bcd02815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401611058565b50600160a060020a031660009081526003602052604090205490565b600b54600160a060020a031633146117035760405160e560020a62461bcd02815260040161105890613817565b61170d6000612612565b565b336000908152601a602052604090208054606091906111739061336c565b601454600160a060020a0316331461178a5760405160e560020a62461bcd02815260206004820152601b60248201527f43616e2774206578656375746520746869732066756e6374696f6e00000000006044820152606401611058565b8060135410156117df5760405160e560020a62461bcd02815260206004820152601d60248201527f4e6f7420656e6f756768206c697175696469747920696e207661756c740000006044820152606401611058565b6013546117ec9082612664565b601355604051600160a060020a0383169082156108fc029083906000818181858888f19350505050158015611825573d6000803e3d6000fd5b50600160a060020a03821660009081526020805260409020546118489082610fc2565b600160a060020a03909216600090815260208052604090209190915550565b600b54600160a060020a031633146118945760405160e560020a62461bcd02815260040161105890613817565b61189d81612670565b50565b600b54600160a060020a031633146118cd5760405160e560020a62461bcd02815260040161105890613817565b60148054600160a060020a031916600160a060020a0392909216919091179055565b6060600180546111739061336c565b81611908816123a6565b611373838361271e565b61193660405180606001604052806000815260200160008152602001600081525090565b50600160a060020a0316600090815260216020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b600b54600160a060020a031633146119a55760405160e560020a62461bcd02815260040161105890613817565b600f805461ff001916610100179055565b336000818152601f60205260408120549003611a3d5760405160e560020a62461bcd02815260206004820152602160248201527f596f7520646f6e2774206861766520616e792066756e647320746f20636c616960448201527f6d000000000000000000000000000000000000000000000000000000000000006064820152608401611058565b600160a060020a0381166000818152601f6020526040808220805490839055905190929183156108fc02918491818181858888f19350505050158015611825573d6000803e3d6000fd5b83600160a060020a0381163314611aa157611aa1336123a6565b611aad858585856127e5565b5050505050565b600d80546112ac9061336c565b600b54600160a060020a03163314611aee5760405160e560020a62461bcd02815260040161105890613817565b80601e83604051611aff91906137d5565b908152604051908190036020019020805491151560ff199092169190911790555050565b600081815260026020526040902054606090600160a060020a0316611bb35760405160e560020a62461bcd02815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401611058565b600f54610100900460ff161515600003611c595760108054611bd49061336c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c009061336c565b8015611c4d5780601f10611c2257610100808354040283529160200191611c4d565b820191906000526020600020905b815481529060010190602001808311611c3057829003601f168201915b50505050509050919050565b6000611c6361281a565b90506000815111611c835760405180602001604052806000815250611cb1565b80611c8d84612829565b600d604051602001611ca193929190613992565b6040516020818303038152906040525b9392505050565b6000611cc360085490565b90506015548110611d3f5760405160e560020a62461bcd02815260206004820152603a60248201527f5468697320697320746f6f206c6174652120416c6c20746865204b697473752060448201527f68617320616c7265616479206265656e206d696e7465642e2e2e0000000000006064820152608401611058565b600f5460ff1615611de15760405160e560020a62461bcd02815260206004820152604160248201527f4d696e74206f66206e6577204b6974737520686173206265656e20646973616260448201527f6c65642c20697420697320746f6f206c61746520746f206a6f696e2075732e2e60648201527f2e00000000000000000000000000000000000000000000000000000000000000608482015260a401611058565b6000600160a060020a0316601883604051611dfc91906137d5565b90815260405190819003602001902054600160a060020a031603611e8b5760405160e560020a62461bcd02815260206004820152602160248201527f546865206d696e7420636f646520796f75207573656420697320696e76616c6960448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401611058565b600e543360009081526017602052604090205410611eee5760405160e560020a62461bcd02815260206004820152601f60248201527f596f7520616c7265616479206d696e74656420796f7572204b697473757321006044820152606401611058565b6000601883604051611f0091906137d5565b908152604080516020928190038301902054600160a060020a03166000818152601d909352908220805491935090611f379061336c565b80601f0160208091040260200160405190810160405280929190818152602001828054611f639061336c565b8015611fb05780601f10611f8557610100808354040283529160200191611fb0565b820191906000526020600020905b815481529060010190602001808311611f9357829003601f168201915b505050505090506000601882604051611fc991906137d5565b90815260405190819003602001902054600160a060020a03908116915083161561202c57600e54600160a060020a03841660009081526021602052604090205461201291610fc2565b600160a060020a0384166000908152602160205260409020555b600160a060020a0381161561207a57600e54600160a060020a03821660009081526021602052604090205461206091610fc2565b600160a060020a0382166000908152602160205260409020555b600e54336000908152601760205260409020546120979190613804565b33600090815260176020908152604080832093909355601d9052206120bc86826138cc565b5060015b600e5481116121805783601b60006120d88489613804565b815260200190815260200160002060006101000a815481600160a060020a030219169083600160a060020a0316021790555081601c6000838861211b9190613804565b815260208101919091526040016000208054600160a060020a031916600160a060020a039290921691909117905561215c336121578388613804565b612985565b6015546121698287613804565b14612180578061217881613865565b9150506120c0565b5061218a33612670565b600e5460408051338152600160a060020a0386811660208301528416818301526060810192909252517f6b460f6f5497bb72eeec65f6df538e6388b2e74b8fc03e7d318653a663e737829181900360800190a15050505050565b600b54600160a060020a031633146122115760405160e560020a62461bcd02815260040161105890613817565b600d6115f582826138cc565b600b54600160a060020a0316331461224a5760405160e560020a62461bcd02815260040161105890613817565b60106115f582826138cc565b600b54600160a060020a031633146122835760405160e560020a62461bcd02815260040161105890613817565b600160a060020a0381166123025760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611058565b61189d81612612565b6000600160e060020a031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061236e5750600160e060020a031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610f4a57507f01ffc9a700000000000000000000000000000000000000000000000000000000600160e060020a0319831614610f4a565b6daaeb6d7670e522a718067333cd4e3b1561189d576040517fc6171134000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561242c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124509190613a32565b61189d576040517fede71dcc000000000000000000000000000000000000000000000000000000008152600160a060020a0382166004820152602401611058565b600061249c82610fce565b905080600160a060020a031683600160a060020a0316036125285760405160e560020a62461bcd02815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401611058565b33600160a060020a038216148061254457506125448133610e59565b6125b95760405160e560020a62461bcd02815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401611058565b611373838361299f565b6125cd3382612a0d565b6125ec5760405160e560020a62461bcd02815260040161105890613a4f565b611373838383612b14565b61137383838360405180602001604052806000815250611a87565b600b8054600160a060020a03838116600160a060020a0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610f4782846137f1565b600061268361267e43612cf2565b612829565b6040516020016126939190613aac565b6040516020818303038152906040529050816018826040516126b591906137d5565b90815260408051602092819003830190208054600160a060020a031916600160a060020a039485161790559184166000908152601a909152206126f882826138cc565b504360198260405161270a91906137d5565b908152604051908190036020019020555050565b33600160a060020a038316036127795760405160e560020a62461bcd02815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401611058565b336000818152600560209081526040808320600160a060020a03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6127ef3383612a0d565b61280e5760405160e560020a62461bcd02815260040161105890613a4f565b61139d84848484612df6565b6060600c80546111739061336c565b60608160000361286c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612896578061288081613865565b915061288f9050600a836137c1565b9150612870565b60008167ffffffffffffffff8111156128b1576128b1613566565b6040519080825280601f01601f1916602001820160405280156128db576020820181803683370190505b5090505b841561297d576128f06001836137f1565b91506128fd600a86613af1565b612908906030613804565b7f01000000000000000000000000000000000000000000000000000000000000000281838151811061293c5761293c61384c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612976600a866137c1565b94506128df565b949350505050565b6115f5828260405180602001604052806000815250612e2c565b60008181526004602052604090208054600160a060020a031916600160a060020a03841690811790915581906129d482610fce565b600160a060020a03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815260026020526040812054600160a060020a0316612a9a5760405160e560020a62461bcd02815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401611058565b6000612aa583610fce565b905080600160a060020a031684600160a060020a03161480612ae0575083600160a060020a0316612ad5846111f6565b600160a060020a0316145b8061297d5750600160a060020a0380821660009081526005602090815260408083209388168352929052205460ff1661297d565b82600160a060020a0316612b2782610fce565b600160a060020a031614612ba65760405160e560020a62461bcd02815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401611058565b600160a060020a038216612c245760405160e560020a62461bcd028152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401611058565b612c2f838383612e62565b612c3a60008261299f565b600160a060020a0383166000908152600360205260408120805460019290612c639084906137f1565b9091555050600160a060020a0382166000908152600360205260408120805460019290612c91908490613804565b90915550506000818152600260205260408082208054600160a060020a031916600160a060020a0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516c010000000000000000000000003302602082015260009081904390429060340160408051601f198184030181529190528051602090910120612d3891906137c1565b6040516c01000000000000000000000000410260208201524590429060340160408051601f198184030181529190528051602090910120612d7991906137c1565b612d834442613804565b612d8d9190613804565b612d979190613804565b612da19190613804565b612dab9190613804565b604051602001612dbd91815260200190565b60408051601f198184030181529190528051602090910120905082612de281836137c1565b612dec9190613791565b611cb190826137f1565b612e01848484612b14565b612e0d84848484612f52565b61139d5760405160e560020a62461bcd02815260040161105890613b05565b612e368383613088565b612e436000848484612f52565b6113735760405160e560020a62461bcd02815260040161105890613b05565b60098190556040518181527f1d354e514bc672adde2a82d6bb5fd1aa8be57780118d2d306addfc07a89ca0a79060200160405180910390a1600160a060020a038316612ef557612ef081600880546000838152600a60205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612f18565b81600160a060020a031683600160a060020a031614612f1857612f1883826131dc565b600160a060020a038216612f2f5761137381613279565b82600160a060020a031682600160a060020a031614611373576113738282613328565b6000600160a060020a0384163b1561307d576040517f150b7a02000000000000000000000000000000000000000000000000000000008152600160a060020a0385169063150b7a0290612faf903390899088908890600401613b62565b6020604051808303816000875af1925050508015612fea575060408051601f3d908101601f19168201909252612fe791810190613b9e565b60015b61304a573d808015613018576040519150601f19603f3d011682016040523d82523d6000602084013e61301d565b606091505b5080516000036130425760405160e560020a62461bcd02815260040161105890613b05565b805181602001fd5b600160e060020a0319167f150b7a020000000000000000000000000000000000000000000000000000000014905061297d565b506001949350505050565b600160a060020a0382166130e15760405160e560020a62461bcd02815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401611058565b600081815260026020526040902054600160a060020a0316156131495760405160e560020a62461bcd02815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611058565b61315560008383612e62565b600160a060020a038216600090815260036020526040812080546001929061317e908490613804565b90915550506000818152600260205260408082208054600160a060020a031916600160a060020a03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016131e984611639565b6131f391906137f1565b60008381526007602052604090205490915080821461324657600160a060020a03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b506000918252600760209081526040808420849055600160a060020a039094168352600681528383209183525290812055565b60085460009061328b906001906137f1565b6000838152600a6020526040812054600880549394509092849081106132b3576132b361384c565b9060005260206000200154905080600883815481106132d4576132d461384c565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600880548061330c5761330c613bbb565b6001900381819060005260206000200160009055905550505050565b600061333383611639565b600160a060020a039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60028104600182168061338057607f821691505b6020821081036133a35760e060020a634e487b7102600052602260045260246000fd5b50919050565b600160e060020a03198116811461189d57600080fd5b6000602082840312156133d157600080fd5b8135611cb1816133a9565b801515811461189d57600080fd5b6000602082840312156133fc57600080fd5b8135611cb1816133dc565b600160a060020a038116811461189d57600080fd5b60006020828403121561342e57600080fd5b8135611cb181613407565b60005b8381101561345457818101518382015260200161343c565b50506000910152565b60008151808452613475816020860160208601613439565b601f01601f19169290920160200192915050565b602081526000610f47602083018461345d565b6000602082840312156134ae57600080fd5b5035919050565b600080604083850312156134c857600080fd5b82356134d381613407565b946020939093013593505050565b6000806000606084860312156134f657600080fd5b833561350181613407565b9250602084013561351181613407565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b8181101561355a5783518352928401929184019160010161353e565b50909695505050505050565b60e060020a634e487b7102600052604160045260246000fd5b600067ffffffffffffffff8084111561359a5761359a613566565b604051601f8501601f19908116603f011681019082821181831017156135c2576135c2613566565b816040528093508581528686860111156135db57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261360657600080fd5b610f478383356020850161357f565b60006020828403121561362757600080fd5b813567ffffffffffffffff81111561363e57600080fd5b61297d848285016135f5565b6000806040838503121561365d57600080fd5b823561366881613407565b91506020830135613678816133dc565b809150509250929050565b6000806000806080858703121561369957600080fd5b84356136a481613407565b935060208501356136b481613407565b925060408501359150606085013567ffffffffffffffff8111156136d757600080fd5b8501601f810187136136e857600080fd5b6136f78782356020840161357f565b91505092959194509250565b6000806040838503121561371657600080fd5b823567ffffffffffffffff81111561372d57600080fd5b613739858286016135f5565b9250506020830135613678816133dc565b6000806040838503121561375d57600080fd5b823561376881613407565b9150602083013561367881613407565b60e060020a634e487b7102600052601160045260246000fd5b8082028115828204841417610f4a57610f4a613778565b60e060020a634e487b7102600052601260045260246000fd5b6000826137d0576137d06137a8565b500490565b600082516137e7818460208701613439565b9190910192915050565b81810381811115610f4a57610f4a613778565b80820180821115610f4a57610f4a613778565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60e060020a634e487b7102600052603260045260246000fd5b60006001820161387757613877613778565b5060010190565b601f821115611373576000818152602081206020601f860104810160208610156138a55750805b6020601f860104820191505b818110156138c4578281556001016138b1565b505050505050565b815167ffffffffffffffff8111156138e6576138e6613566565b6138fa816138f4845461336c565b8461387e565b602080601f83116001811461393357600084156139175750858301515b60028086026008870290910a60001904198216178655506138c4565b600085815260208120601f198616915b8281101561396257888601518255948401946001909101908401613943565b508582101561398257878501516008601f88160260020a60001904191681555b5050505050600202600101905550565b6000845160206139a58285838a01613439565b8551918401916139b88184848a01613439565b85549201916000906139c98161336c565b600182811680156139e157600181146139f657613a22565b60ff1984168752821515830287019450613a22565b896000528560002060005b84811015613a1a57815489820152908301908701613a01565b505082870194505b50929a9950505050505050505050565b600060208284031215613a4457600080fd5b8151611cb1816133dc565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b7f4b4d2d0000000000000000000000000000000000000000000000000000000000815260008251613ae4816003850160208701613439565b9190910160030192915050565b600082613b0057613b006137a8565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6000600160a060020a03808716835280861660208401525083604083015260806060830152613b94608083018461345d565b9695505050505050565b600060208284031215613bb057600080fd5b8151611cb1816133a9565b60e060020a634e487b7102600052603160045260246000fdfea26469706673582212208fa49d72d74a5029233ee47c046231b6f029db73d14cb7f3548d1196b321648464736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000180000000000000000000000000d1cfbbb140972530a3798fe1ba11312eb8c99582000000000000000000000000000000000000000000000000000000000000000b4b69747375204d696e7475000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4b69747375204d696e7475000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f63646e2e6b697473756d696e74752e696f2f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002968747470733a2f2f63646e2e6b697473756d696e74752e696f2f756e72657665616c65642e6a736f6e0000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Kitsu Mintu
Arg [1] : _symbol (string): Kitsu Mintu
Arg [2] : _initBaseURI (string): https://cdn.kitsumintu.io/metadata/
Arg [3] : _initNotRevealedUri (string): https://cdn.kitsumintu.io/unrevealed.json
Arg [4] : _devWallet (address): 0xD1cFBbB140972530A3798fe1Ba11312eB8C99582

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 000000000000000000000000d1cfbbb140972530a3798fe1ba11312eb8c99582
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [6] : 4b69747375204d696e7475000000000000000000000000000000000000000000
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [8] : 4b69747375204d696e7475000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [10] : 68747470733a2f2f63646e2e6b697473756d696e74752e696f2f6d6574616461
Arg [11] : 74612f0000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000029
Arg [13] : 68747470733a2f2f63646e2e6b697473756d696e74752e696f2f756e72657665
Arg [14] : 616c65642e6a736f6e0000000000000000000000000000000000000000000000


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.