ETH Price: $3,485.93 (+2.10%)
Gas: 2 Gwei

Token

Virtue Hearts - Still (VH.STILL)
 

Overview

Max Total Supply

55 VH.STILL

Holders

53

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 VH.STILL
0x8c0c78e6e81510b96fe34483c05ee203a1f0457b
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:
InactiveHearts

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 2 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 13 : HeartColors.sol
// SPDX-License-Identifier: Unlicense
// Creator: 0xYeety/YEETY.eth - Co-Founder/CTO, Virtue Labs

pragma solidity ^0.8.17;

enum HeartColor {
    Red,
    Blue,
    Green,
    Yellow,
    Orange,
    Purple,
    Black,
    White,
    Length
}

File 13 of 13 : InactiveHearts.sol
// SPDX-License-Identifier: MIT
/**
 * Creator: Virtue Labs
 * Authors:
 *** Code: 0xYeety, CTO - Virtue labs
 *** Concept: Church, CEO - Virtue Labs
**/

/********************
/===================\
|    ,d88b.d88b,    |
|    88888888888    |
|    `Y8888888Y'    |
|      `Y888Y'      |
|        `Y'        |
\===================/
********************/

pragma solidity ^0.8.17;

//  _________  ___  ___  _______           ________  ___       ________  _________  ________ ________  ________  _____ ______
//  |\___   ___\\  \|\  \|\  ___ \         |\   __  \|\  \     |\   __  \|\___   ___\\  _____\\   __  \|\   __  \|\   _ \  _   \
//  \|___ \  \_\ \  \\\  \ \   __/|        \ \  \|\  \ \  \    \ \  \|\  \|___ \  \_\ \  \__/\ \  \|\  \ \  \|\  \ \  \\\__\ \  \
//       \ \  \ \ \   __  \ \  \_|/__       \ \   ____\ \  \    \ \   __  \   \ \  \ \ \   __\\ \  \\\  \ \   _  _\ \  \\|__| \  \
//        \ \  \ \ \  \ \  \ \  \_|\ \       \ \  \___|\ \  \____\ \  \ \  \   \ \  \ \ \  \_| \ \  \\\  \ \  \\  \\ \  \    \ \  \
//         \ \__\ \ \__\ \__\ \_______\       \ \__\    \ \_______\ \__\ \__\   \ \__\ \ \__\   \ \_______\ \__\\ _\\ \__\    \ \__\
//          \|__|  \|__|\|__|\|_______|        \|__|     \|_______|\|__|\|__|    \|__|  \|__|    \|_______|\|__|\|__|\|__|     \|__|

import "lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";
import "lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol";
import "lib/openzeppelin-contracts/contracts/utils/Address.sol";
import "lib/openzeppelin-contracts/contracts/utils/Strings.sol";
import "lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import "lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "./HeartColors.sol";

/**
 * Every heart sings a song, incomplete, until another heart whispers back.
 * Those who wish to sing always find a song.
 * At the touch of a lover, everyone becomes a poet.
 *     ~ Plato
**/

contract InactiveHearts is Ownable, ERC165 {
    using Address for address;
    using Strings for uint256;

    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    error InviteeInviteError(
        bool noDuplicateInvites,
        bool senderInvited,
        bool withinInviteLimit
    );
    error PuzzleInviteError(
        bool puzzleSolved,
        bool arrayLengthsMatch,
        bool withinInviteLimit,
        bool ownColorNotUsed,
        bool validColorsUsed,
        bool noDuplicateInvites,
        bool noSelfInvite,
        bool noDuplicateColors
    );
    error PuzzleSolveError(
        bool notYetSolved,
        bool hasCrudeBorneEggs,
        bool puzzleIsSet,
        bool correctPuzzleSolution,
        bool validColor
    );
    error InviteMintError(
        bool mintStatusOpen,
        bool isInvited,
        bool mintNotYetUsed,
        bool fiveInvitesGiven,
        bool correctMsgValue
    );
    error PuzzleMintError(
        bool authorizedToMint,
        bool mintNotYetUsed,
        bool fiveInvitesGiven
    );

    CrudeBorneEggs public cbEggs;
    PuzzleProto public puzzle;
    address public ACTIVE_HEARTS_ADDRESS;

    struct ClaimInfo {
        address inviter;
        uint48 auxData;
        uint48 inviteDepth;
    }

    mapping(address => ClaimInfo) private _inviteeData;
    mapping(address => ClaimInfo) private _solverData;
    mapping(address => uint256) private _freeActivations;

    uint256 private _hcNonce;

    uint256 public mintPrice;

    string private _name;
    string private _symbol;

    string public collectionDescription;
    string public collectionImg;
    string public externalLink;

    string public imageBase;
    string public imagePostfix;

    address public STORAGE_LAYER_ADDRESS;
    address public BURN_REWARDS_ADDRESS;
    address public POOL_ADDRESS_1;
    address public POOL_ADDRESS_2;
    uint256 public p_addr_2_bp;


    uint256 private secondsPerMonth = 2629800;

    ImageDataGetterProto public imageDataGetter;
    mapping(uint256 => uint256) private _imageMode;

    mapping(uint256 => string) private _colorToString;

    modifier onlyStorage() {
        _isStorageContract();
        _;
    }

    function _isStorageContract() internal view virtual {
        require(msg.sender == STORAGE_LAYER_ADDRESS, "nsl");
    }

    enum MintStatus {
        OnlyOwner,
        Open,
        Paused,
        Closed
    }

    MintStatus public mintStatus = MintStatus.OnlyOwner;

    /**
     * "Multi-Sig" functionality for withdrawals
    **/
    address public stagedFundsReceiver;
    uint256 public stagedAmount;
    uint256 public numSignatures;
    address public stagedSigner;

    address public stagedTokenReceiver;
    uint256 public stagedTokenAmount;
    address public stagedTokenAddress;
    uint256 public numTokenSignatures;
    address public stagedTokenSigner;

    mapping(address => bool) public signers;

    modifier onlySigner() {
        _isSigner();
        _;
    }
    function _isSigner() internal view virtual {
        require(signers[msg.sender], "Not a signer!");
    }

    constructor(
        address cbAddy_,
        uint256 mintPrice_,
        string memory name_,
        string memory symbol_,
        string memory description_,
        string memory image_,
        string memory link_,
        address storageLayerAddress_,
        address puzzleAddress_,
        address[] memory signers_
    ) {
        cbEggs = CrudeBorneEggs(cbAddy_);
        mintPrice = mintPrice_;
        _name = name_;
        _symbol = symbol_;
        collectionDescription = description_;
        collectionImg = image_;
        externalLink = link_;
        STORAGE_LAYER_ADDRESS = storageLayerAddress_;
        puzzle = PuzzleProto(puzzleAddress_);

        _colorToString[0] = "Red";
        _colorToString[1] = "Blue";
        _colorToString[2] = "Green";
        _colorToString[3] = "Yellow";
        _colorToString[4] = "Orange";
        _colorToString[5] = "Purple";
        _colorToString[6] = "Black";
        _colorToString[7] = "White";

        for (uint256 i = 0; i < signers_.length; i++) {
            signers[signers_[i]] = true;
        }
    }

    function setMintStatus(MintStatus newMintStatus) public onlyOwner {
        require(newMintStatus != MintStatus.OnlyOwner, "ms");
        require(mintStatus != MintStatus.Closed);
        mintStatus = newMintStatus;
    }

    /**
     * @dev Produces a random heart color
    **/
    function _randHeartColor() private view returns (HeartColor, uint256) {
        uint256 rand = uint256(
            keccak256(
                abi.encode(
                    tx.gasprice,
                    block.number,
                    block.timestamp,
                    block.difficulty,
                    blockhash(block.number - (((_hcNonce>>128)%256) + 1)),
                    address(this),
                    _hcNonce%(1<<128)
                )
            )
        );

        return (HeartColor(rand%(uint8(HeartColor.Length))), rand);
    }

    /**
     * @dev Produces a random heart color
    **/
    function _randHeartColors(uint256 howMany) private view returns (HeartColor[] memory, uint256) {
        require(howMany > 0 && howMany <= 5, "hm");
        uint256 rand = uint256(
            keccak256(
                abi.encode(
                    tx.gasprice,
                    block.number,
                    block.timestamp,
                    block.difficulty,
                    blockhash(block.number - (((_hcNonce>>128)%256) + 1)),
                    address(this),
                    _hcNonce%(1<<128)
                )
            )
        );

        HeartColor[] memory toReturn = new HeartColor[](howMany);
        for (uint256 i = 0; i < howMany; i++) {
            toReturn[i] = HeartColor((rand>>(i*10))%(uint8(HeartColor.Length)));
        }

        return (toReturn, rand);
    }

    /**
     * @dev Returns whether an address has been invited to mint
    **/
    function invited(address addr) public view returns (bool) {
        return (_inviteeData[addr].auxData%2 == 1);
    }

    /**
     * @dev Returns the color that an address was invited to mint for
     *   - Bit-shifted to occupy bits 1-3
    **/
    function invitedColor(address addr) public view returns (HeartColor) {
        return HeartColor((_inviteeData[addr].auxData>>1)%8);
    }

    /**
     * @dev Returns whether an address has already used its invite in order to mint
     *   - Bit-shifted to occupy bit 4
    **/
    function inviteMintUsed(address addr) public view returns (bool) {
        return ((_inviteeData[addr].auxData>>4)%2 == 1);
    }

    /**
     * @dev Returns how many invites an address has given to other addresses
     *   - Bit-shifted to occupy bits 5-7
    **/
    function inviteeInvitesGiven(address addr) public view returns (uint256) {
        return ((_inviteeData[addr].auxData>>5)%8);
    }

    /**
     * @dev Returns the inviter of a given invited address
    **/
    function inviterOf(address addr) public view returns (address) {
        return _inviteeData[addr].inviter;
    }

    /**
     * @dev Returns "lineage depth" of an invited address
    **/
    function inviteDepthOf(address addr) public view returns (uint256) {
        return uint256(_inviteeData[addr].inviteDepth);
    }

    /**
     * @dev Returns whether an address has solved the puzzle with an egg
    **/
    function puzzleSolved(address addr) public view returns (bool) {
        return ((_solverData[addr].auxData%2) == 1);
    }

    /**
     * @dev Returns which color egg was designated by a puzzle solution
     *   - Bit-shifted to occupy bits 1-3
    **/
    function puzzleColor(address addr) public view returns (HeartColor) {
        return HeartColor((_solverData[addr].auxData>>1)%8);
    }

    /**
     * @dev Returns whether an address has already used its puzzle solution to mint
     *   - Bit-shifted to occupy bit 4
    **/
    function puzzleMintUsed(address addr) public view returns (bool) {
        return (((_solverData[addr].auxData>>4)%2) == 1);
    }

    /**
     * @dev Returns how many invites a puzzle solver has given to other addresses
     *   - Bit-shifted to occupy bits 5-7
    **/
    function puzzleInvitesGiven(address addr) public view returns (uint256) {
        return ((_solverData[addr].auxData>>5)%8);
    }

    /**
     * @dev Returns whether a puzzle solver has already invited someone else to a given color
     *   - Bit-shifted to occupy bit(s) 8 + (indexOf(color))
    **/
    function puzzleInviteColorUsed(address inviter, HeartColor color) public view returns (bool) {
        return ((_solverData[inviter].auxData>>(8 + uint8(color)))%2 == 1);
    }

    /**
     * @dev Invites a list of invitees to mint (for someone who was themselves invited)
     * @notice Invite up to 5 invitees to mint; Invites for a given heart color
     *   may not be used multiple times; Note that
    **/
    function inviteeInvite(address[] calldata invitees) public {
        bool alreadyInvited = false;
        bool senderInvited = invited(msg.sender);
        bool withinInviteLimit = ((inviteeInvitesGiven(msg.sender) + invitees.length) <= 5);

        (HeartColor[] memory colors, uint256 rand) = _randHeartColors(invitees.length);
        _hcNonce = (_hcNonce ^ rand) | 1;

        for (uint256 i = 0; i < invitees.length; i++) {
            address invitee = invitees[i];
            HeartColor color = colors[i];
            alreadyInvited = (alreadyInvited || invited(invitee));

            uint256 setForInvitee = 1;
            setForInvitee += (uint8(color)<<1);

            ClaimInfo memory inviteeClaimInfo = _inviteeData[invitee];

            inviteeClaimInfo.auxData = uint48(setForInvitee);
            inviteeClaimInfo.inviter = msg.sender;
            inviteeClaimInfo.inviteDepth = (uint48(inviteDepthOf(msg.sender)) + 1);

            _inviteeData[invitee] = inviteeClaimInfo;
        }

        if (alreadyInvited || (!senderInvited) || (!withinInviteLimit)) {
            revert InviteeInviteError(!alreadyInvited, senderInvited, withinInviteLimit);
        }

        _inviteeData[msg.sender].auxData += uint48(invitees.length<<5);
    }

    /**
     * @dev Invites a list of invitees to mint (for someone who solved the puzzle)
     * @notice Invite up to 5 invitees to mint; Invites for a given heart color
     *   may not be used multiple times; Only callable by those who have solved the puzzle
    **/
    function puzzleInvite(
        address[] calldata invitees,
        HeartColor[] calldata inviteeColors
    ) public {
        bool solved = puzzleSolved(msg.sender);
        bool lengthsMatch = (invitees.length == inviteeColors.length);
        bool withinInviteLimit = ((puzzleInvitesGiven(msg.sender) + invitees.length) <= 5);

        HeartColor ownColor = puzzleColor(msg.sender);
        uint256 addToMsgSenderSolverData = 0;

        bool notOwnColor = true;
        bool validColors = true;
        bool alreadyInvited = false;
        bool noSelfInvite = true;
        bool alreadyUsedColor = false;

        for (uint256 i = 0; i < invitees.length; i++) {
            address invitee = invitees[i];
            HeartColor color = inviteeColors[i];
            alreadyUsedColor = (alreadyUsedColor || puzzleInviteColorUsed(msg.sender, color));
            notOwnColor = (notOwnColor && (color != ownColor));
            validColors = (validColors && (color != HeartColor.Length));
            alreadyInvited = (alreadyInvited || invited(invitee));
            noSelfInvite = (noSelfInvite && (invitee != msg.sender));

            addToMsgSenderSolverData += (1<<(8 + uint8(color)));

            uint256 setForInvitee = 1;
            setForInvitee += (uint8(color)<<1);

            ClaimInfo memory inviteeClaimInfo = _inviteeData[invitee];

            inviteeClaimInfo.auxData = uint48(setForInvitee);
            inviteeClaimInfo.inviter = msg.sender;
            inviteeClaimInfo.inviteDepth = 1;

            _inviteeData[invitee] = inviteeClaimInfo;
        }

        if (!(solved && lengthsMatch && withinInviteLimit && notOwnColor &&
        validColors && (!alreadyInvited) && noSelfInvite && (!alreadyUsedColor))) {
            revert PuzzleInviteError(
                solved,
                    lengthsMatch,
                    withinInviteLimit,
                    notOwnColor,
                    validColors,
                    !alreadyInvited,
                    noSelfInvite,
                    !alreadyUsedColor
            );
        }

        _solverData[msg.sender].auxData += uint48(addToMsgSenderSolverData + (invitees.length<<5));
    }

    /**
     * @dev Solves a puzzle with a given solution string set
    **/
    function solvePuzzle(
        string[] calldata solution,
        HeartColor ownColor
    ) public {
        bool notYetSolved = (_solverData[msg.sender].auxData == 0);
        bool hasCrudeBorneEggs = (cbEggs.balanceOf(msg.sender) > 0);
        bool puzzleIsSet = (address(puzzle) != address(0));
        bool correctPuzzleSolution = puzzle.checkSolution(solution);
        bool validColor = (ownColor != HeartColor.Length);

        if (!(notYetSolved && hasCrudeBorneEggs && puzzleIsSet && correctPuzzleSolution && validColor)) {
            revert PuzzleSolveError(
                notYetSolved,
                    hasCrudeBorneEggs,
                    puzzleIsSet,
                    correctPuzzleSolution,
                    validColor
            );
        }

        _solverData[msg.sender].auxData += (uint8(ownColor)<<1) + 1;
    }

    /**
     * @dev Mints a new inactive heart corresponding to an invite
     * @notice Requires payment, whether egg holder or not - costs 0.01 $ETH
    **/
    function mintFromInvite() public payable {
        bool mintStatusOpen = (mintStatus == MintStatus.Open);
        bool isInvited = invited(msg.sender);
        bool mintAlreadyUsed = inviteMintUsed(msg.sender);
        bool fiveInvitesGiven = (inviteeInvitesGiven(msg.sender) == 5);
        bool correctMsgValue = (msg.value == mintPrice);

        if (!(mintStatusOpen && isInvited && (!mintAlreadyUsed) && fiveInvitesGiven && correctMsgValue)) {
            revert InviteMintError(
                mintStatusOpen,
                    isInvited,
                    !mintAlreadyUsed,
                    fiveInvitesGiven,
                    correctMsgValue
            );
        }

        _freeActivations[msg.sender] += 1;
        _inviteeData[msg.sender].auxData += (1<<4);

        uint256 newHeartId = StorageLayerProto(
            STORAGE_LAYER_ADDRESS
        ).mint(msg.sender, invitedColor(msg.sender), 0, inviteDepthOf(msg.sender), inviterOf(msg.sender));

        BurnRewardsProto(BURN_REWARDS_ADDRESS).storeReward{value: msg.value/10}(newHeartId);

        (bool success1, ) = payable(_inviteeData[msg.sender].inviter).call{value: msg.value/5}("");
        require(success1, "pf1");

        if (POOL_ADDRESS_1 != address(0)) {
            (bool success2, ) = payable(POOL_ADDRESS_1).call{value: msg.value/10}("");
            require(success2, "pf2");
        }

        if (POOL_ADDRESS_2 != address(0)) {
            if (p_addr_2_bp > 0) {
                (bool success3, ) = payable(
                    POOL_ADDRESS_2
                ).call{value: (msg.value*p_addr_2_bp)/10000}("");
                require(success3, "pf3");
            }
        }
    }

    /**
     * @dev Mints a new inactive heart corresponding to a puzzle solution
     * @notice Puzzle mints are free - solve the puzzle to be able to call this function!
    **/
    function mintFromPuzzle() public {
        bool authorizedToMint = (mintStatus == MintStatus.Open || (mintStatus == MintStatus.OnlyOwner && msg.sender == owner()));
        bool puzzleMintAlreadyUsed = puzzleMintUsed(msg.sender);
        bool fiveInvitesGiven = (puzzleInvitesGiven(msg.sender) == 5);

        if ((!authorizedToMint) || puzzleMintAlreadyUsed || (!fiveInvitesGiven)) {
            revert PuzzleMintError(authorizedToMint, !puzzleMintAlreadyUsed, fiveInvitesGiven);
        }

        _freeActivations[msg.sender] += 1;
        _solverData[msg.sender].auxData += (1<<4);

        StorageLayerProto(STORAGE_LAYER_ADDRESS).mint(msg.sender, puzzleColor(msg.sender), 0, 0, address(0));
    }

    /******************/

    /**
     * @notice Returns the cost to activate "numToActivate" hearts for a given address
    **/
    function activationCost(uint256 numToActivate, address addr) public view returns (uint256) {
        uint256 toPay = mintPrice*numToActivate;
        uint256 freeActivations = _freeActivations[addr];

        while ((toPay > 0) && (freeActivations > 0)) {
            toPay -= mintPrice;
            freeActivations -= 1;
        }

        return toPay;
    }

    /**
     * @notice Activates a given heart
     *   - Fails if ACTIVE_HEARTS_ADDRESS is not set
    **/
    function activate(uint256 heartId) public payable {
        uint256 toPay = mintPrice;
        if (_freeActivations[msg.sender] > 0) {
            toPay -= mintPrice;
            _freeActivations[msg.sender] -= 1;
        }

        require(msg.value == toPay, "rekt");

        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_activate(heartId);

        BurnRewardsProto(BURN_REWARDS_ADDRESS).storeReward{value: msg.value/10}(heartId);

        if (POOL_ADDRESS_1 != address(0)) {
            (bool success1, ) = payable(POOL_ADDRESS_1).call{value: msg.value/10}("");
            require(success1, "pf1");
        }

        if (POOL_ADDRESS_2 != address(0)) {
            if (p_addr_2_bp > 0) {
                (bool success2, ) = payable(
                    POOL_ADDRESS_2
                ).call{value: (msg.value*p_addr_2_bp)/10000}("");
                require(success2, "pf2");
            }
        }
    }

    /**
     * @notice Activates a batch of hearts, identified by token IDs
     *   - Fails if ACTIVE_HEARTS_ADDRESS is not set
    **/
    function batchActivate(uint256[] calldata heartIds) public payable {
        uint256 toPay = mintPrice*(heartIds.length);
        uint256 freeActivations = _freeActivations[msg.sender];
        uint256 freeUsed = 0;

        while ((toPay > 0) && (freeActivations > 0)) {
            toPay -= mintPrice;
            freeActivations -= 1;
            freeUsed += 1;
        }

        require(msg.value == toPay, "rekt");
        _freeActivations[msg.sender] -= freeUsed;

        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_batchActivate(heartIds);

        BurnRewardsProto(BURN_REWARDS_ADDRESS).batchStoreReward{value: msg.value/10}(heartIds);

        if (POOL_ADDRESS_1 != address(0)) {
            (bool success1, ) = payable(POOL_ADDRESS_1).call{value: msg.value/10}("");
            require(success1, "pf1");
        }

        if (POOL_ADDRESS_2 != address(0)) {
            if (p_addr_2_bp > 0) {
                (bool success2, ) = payable(
                    POOL_ADDRESS_2
                ).call{value: (msg.value*p_addr_2_bp)/10000}("");
                require(success2, "pf2");
            }
        }
    }

    function isExpired(uint256 heartId) public view returns (bool) {
        return ((block.timestamp - lastShifted(heartId)) > secondsPerMonth);
    }

    function getExpiryTime(uint256 heartId) public view returns (uint256) {
        return (lastShifted(heartId) + secondsPerMonth);
    }

    /**
     * @notice Burns a heart with ID "heartId"
     *   - Fails if isExpired(heartId) returns false
    **/
    function burn(uint256 heartId) public {
        require(StorageLayerProto(
            STORAGE_LAYER_ADDRESS
        ).storage_balanceOf(true, msg.sender) > 0, "need active <3's...");

        require((block.timestamp - lastShifted(heartId)) > secondsPerMonth, "exp_burn");

        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_burn(heartId);

        BurnRewardsProto(BURN_REWARDS_ADDRESS).disburseBurnReward(heartId, msg.sender);
    }

    /**
     * @notice Burns a set of hearts with IDs supplied in "heartIds"
     *   - Fails if isExpired(heartIds[i]) returns false for any "i"
    **/
    function batchBurn(uint256[] calldata heartIds) public {
        require(StorageLayerProto(
            STORAGE_LAYER_ADDRESS
        ).storage_balanceOf(true, msg.sender) > 0, "need active <3's...");

        uint256 month = secondsPerMonth;

        bool allExpired = true;
        for (uint256 i = 0; i < heartIds.length; i++) {
            allExpired = allExpired && ((block.timestamp - lastShifted(heartIds[i])) > month);
        }
        require(allExpired, "exp_batch_burn");

        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_batchBurn(heartIds);

        BurnRewardsProto(BURN_REWARDS_ADDRESS).batchDisburseBurnReward(heartIds, msg.sender);
    }

    /******************/

    function setMintPrice(uint256 newMintPrice) public onlyOwner {
        mintPrice = newMintPrice;
    }

    /******************/

    function setActiveHeartsContract(address _activeHearts) public onlyOwner {
        ACTIVE_HEARTS_ADDRESS = _activeHearts;
    }

    function setBurnRewardsAddress(address burnRewardsAddress) public onlyOwner {
        BURN_REWARDS_ADDRESS = burnRewardsAddress;
    }

    function setPuzzleAddress(address puzzleAddress) public onlyOwner {
        puzzle = PuzzleProto(puzzleAddress);
    }

    function setPoolAddress1(address poolAddress1) public onlyOwner {
        POOL_ADDRESS_1 = poolAddress1;
    }

    function setPoolAddress2(address poolAddress2) public onlyOwner {
        POOL_ADDRESS_2 = poolAddress2;
    }

    function setPA2BP(uint256 pa2bp) public onlyOwner {
        require(pa2bp <= 6000);
        p_addr_2_bp = pa2bp;
    }

    /******************/

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) {
        return
        interfaceId == type(IERC721).interfaceId ||
        interfaceId == type(IERC721Metadata).interfaceId ||
        interfaceId == type(IERC721Enumerable).interfaceId ||
        super.supportsInterface(interfaceId);
    }

    /******************/

    function emitTransfer(address from, address to, uint256 tokenId) public onlyStorage {
        emit Transfer(from, to, tokenId);
    }

    function batchEmitTransfers(
        address[] calldata from,
        address[] calldata to,
        uint256[] calldata tokenIds
    ) public onlyStorage {
        for (uint256 i = 0; i < from.length; i++) {
            emit Transfer(from[i], to[i], tokenIds[i]);
        }
    }

    function emitApproval(address owner, address approved, uint256 tokenId) public onlyStorage {
        emit Approval(owner, approved, tokenId);
    }

    function emitApprovalForAll(address owner, address operator, bool approved) public onlyStorage {
        emit ApprovalForAll(owner, operator, approved);
    }

    /******************/

    /**
     * Main portion of ERC721-compatible functionality.
     * Modified to function smoothly with the top-level
     * interface of Virtue (Inactive) Hearts.
    **/

    function balanceOf(address owner) public view returns (uint256) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_balanceOf(false, owner);
    }

    function ownerOf(uint256 tokenId) public view returns (address) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_ownerOf(false, tokenId);
    }

    function colorOf(uint256 tokenId) public view returns (HeartColor) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_colorOf(false, tokenId);
    }

    function parentOf(uint256 tokenId) public view returns (address) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_parentOf(false, tokenId);
    }

    function lineageDepthOf(uint256 tokenId) public view returns (uint256) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_lineageDepthOf(false, tokenId);
    }

    function numChildrenOf(uint256 tokenId) public view returns (uint256) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_numChildrenOf(false, tokenId);
    }

    function rawGenomeOf(uint256 tokenId) public view returns (uint256) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_rawGenomeOf(false, tokenId);
    }

    function genomeOf(uint256 tokenId) public view returns (string memory) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_genomeOf(false, tokenId);
    }

    function lastShifted(uint256 tokenId) public view returns (uint64) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_lastShifted(false, tokenId);
    }

    function exists(uint256 tokenId) public view returns (bool) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS)._exists(false, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public {
        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_transferFrom(msg.sender, from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public {
        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_safeTransferFrom(msg.sender, from, to, tokenId, data);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public {
        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_safeTransferFrom(msg.sender, from, to, tokenId);
    }

    function approve(
        address to,
        uint256 tokenId
    ) public {
        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_approve(msg.sender, to, tokenId);
    }

    function getApproved(uint256 tokenId) public view returns (address) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_getApproved(false, tokenId);
    }

    function setApprovalForAll(
        address operator,
        bool _approved
    ) public {
        StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_setApprovalForAll(msg.sender, operator, _approved);
    }

    function isApprovedForAll(address owner, address operator) public view returns (bool) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_isApprovedForAll(false, owner, operator);
    }

    /********/

    function totalSupply() public view returns (uint256) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_totalSupply(false);
    }

    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_tokenOfOwnerByIndex(false, owner, index);
    }

    function tokenByIndex(uint256 index) public view returns (uint256) {
        return StorageLayerProto(STORAGE_LAYER_ADDRESS).storage_tokenByIndex(false, index);
    }

    /******************/

    /**
     * Remaining functionality found below
    **/

    function name() public view returns (string memory) {
        return _name;
    }

    function setName(string calldata newName) public onlyOwner {
        _name = newName;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function setSymbol(string calldata newSymbol) public onlyOwner {
        _symbol = newSymbol;
    }

    function setImage(string calldata newImage) public onlyOwner {
        collectionImg = newImage;
    }

    function setCollectionDescription(string calldata newDescription) public onlyOwner {
        collectionDescription = newDescription;
    }

    function setExternalLink(string calldata newLink) public onlyOwner {
        externalLink = newLink;
    }

    /**
     * @notice Flips image between on-chain and off-chain mode for a given heart
    **/
    function flipImageMode(uint256 heartId) public {
        require(msg.sender == ownerOf(heartId), "o");
        if (imageMode(heartId) == 0) {
            _imageMode[heartId/256] += (1<<(heartId%256));
        }
        else {
            _imageMode[heartId/256] -= (1<<(heartId%256));
        }
    }

    /**
     * @notice Returns the "image mode" for a given heart, denoting whether it will
     *   be rendered on-chain or off-chain
    **/
    function imageMode(uint256 heartId) public view returns (uint256) {
        return (_imageMode[heartId/256]>>(heartId%256))%2;
    }

    function imageURI(uint256 tokenId) private view returns (string memory) {
        return string(abi.encodePacked(imageBase, "/", uint256(uint8(colorOf(tokenId))).toString(), imagePostfix));
    }

    function setImageBase(string memory newImageBase) public onlyOwner {
        imageBase = newImageBase;
    }

    function setImagePostfix(string memory newImagePostfix) public onlyOwner {
        imagePostfix = newImagePostfix;
    }

    /**
     * @dev Returns an on-chain token URI (which also points to an off-chain image URI)
     * for a given token
    **/
    function tokenURI(uint256 tokenId) public view returns (string memory) {
        HeartColor color = colorOf(tokenId);

        string memory toReturn = string(
            abi.encodePacked(
                "data:application/json;utf8,{\"name\":\"Heart #", tokenId.toString(), "\",",
                    "\"description\":\"This is a ", _colorToString[uint256(uint8(color))], " Heart. It's dangerous to go alone.\",",
                    "\"image\":\"",
                    ((imageMode(tokenId) == 0) ? string(abi.encodePacked(
                        "data:image/svg+xml;utf8,", imageDataGetter.getImageData(color)
                    )) : imageURI(tokenId))
            )
        );

        toReturn = string(
            abi.encodePacked(
                toReturn,
                "\",\"attributes\":[{\"trait_type\":\"Heart Color\",\"value\":\"", _colorToString[uint256(uint8(color))],
                "\"},{\"trait_type\":\"Genome\",\"value\":\"", genomeOf(tokenId),
                "\"},{\"trait_type\":\"Lineage Parent\",\"value\":\"", uint256(uint160(parentOf(tokenId))).toHexString(20),
                "\"},{\"trait_type\":\"Lineage Depth\",\"value\":\"", lineageDepthOf(tokenId).toString()
            )
        );

        toReturn = string(
            abi.encodePacked(
                toReturn,
                    "\"},{\"trait_type\":\"Number of Children\",\"value\":\"", numChildrenOf(tokenId).toString(),
                    "\"},{\"trait_type\":\"Expiration Date\",\"display_type\":\"date\",\"value\":\"", getExpiryTime(tokenId).toString(), "\"}",
                    (isExpired(tokenId) ? ",{\"value\":\"Expired\"}" : ""),
                    "],\"external_url\":\"https://hearts.virtue.wtf/hearts?id=", tokenId.toString(), "\"}"
            )
        );

        return toReturn;
    }

    function setImageDataGetter(address newIDGAddress) public onlyOwner {
        imageDataGetter = ImageDataGetterProto(newIDGAddress);
    }

    function contractURI() public view returns (string memory) {
        return string(
            abi.encodePacked(
                "data:application/json;utf8,{\"name\":\"", name(),"\",",
                "\"description\":\"", collectionDescription, "\",",
                "\"image\":\"", collectionImg, "\",",
                "\"external_link\":\"", externalLink, "\",",
                "\"seller_fee_basis_points\":500,\"fee_recipient\":\"",
                uint256(uint160(address(this))).toHexString(), "\"}"
            )
        );
    }

    /******************/

    function switchSignatureAddress(address newSignatureAddress) public onlySigner {
        signers[msg.sender] = false;
        signers[newSignatureAddress] = true;
    }

    function _resetWithdrawal() private {
        stagedFundsReceiver = address(0);
        stagedAmount = 0;
        numSignatures = 0;
        stagedSigner = address(0);
    }

    function withdraw(address to, uint256 amount) public onlySigner {
        if (numSignatures == 0) {
            stagedFundsReceiver = to;
            stagedAmount = amount;
            numSignatures = 1;
            stagedSigner = msg.sender;
        }
        else if (numSignatures == 1) {
            require(msg.sender != stagedSigner, "cannot sign twice");
            require(to == stagedFundsReceiver, "rcv mismatch");
            require(amount == stagedAmount, "amt mismatch");

            (bool success, ) = payable(to).call{value: amount}("");
            require(success, "Payment failed!");

            _resetWithdrawal();
        }
        else {
            revert("impossible");
        }
    }

    function rejectWithdrawal() public onlySigner {
        _resetWithdrawal();
    }

    function _resetTokenWithdrawal() private {
        stagedTokenReceiver = address(0);
        stagedTokenAmount = 0;
        stagedTokenAddress = address(0);
        numTokenSignatures = 0;
        stagedTokenSigner = address(0);
    }

    function withdrawTokens(address to, uint256 amount, address tokenAddress) public onlySigner {
        if (numTokenSignatures == 0) {
            stagedTokenReceiver = to;
            stagedTokenAmount = amount;
            stagedTokenAddress = tokenAddress;
            numTokenSignatures = 1;
            stagedTokenSigner = msg.sender;
        }
        else if (numTokenSignatures == 1) {
            require(msg.sender != stagedTokenSigner, "cannot sign twice");
            require(to == stagedTokenReceiver, "t_rcv mismatch");
            require(amount == stagedTokenAmount, "t_amt mismatch");
            require(tokenAddress == stagedTokenAddress, "t_addr mismatch");

            IERC20(tokenAddress).transfer(to, amount);

            _resetTokenWithdrawal();
        }
        else {
            revert("t_impossible");
        }
    }

    function rejectTokenWithdrawal() public onlySigner {
        _resetTokenWithdrawal();
    }

    /********/

    receive() external payable {}
}

////////////////////

abstract contract CrudeBorneEggs {
    function balanceOf(address owner) public view virtual returns (uint256);
}

//////////

abstract contract PuzzleProto {
    function checkSolution(string[] calldata solution) public view virtual returns (bool);
}

//////////

abstract contract StorageLayerProto {
    uint256 public _nextToMint;

    function storage_balanceOf(
        bool active,
        address owner
    ) public view virtual returns (uint256);

    function storage_ownerOf(
        bool active,
        uint256 tokenId
    ) public view virtual returns (address);

    function storage_colorOf(
        bool active,
        uint256 tokenId
    ) public view virtual returns (HeartColor);

    function storage_parentOf(
        bool active,
        uint256 tokenId
    ) public view virtual returns (address);

    function storage_lineageDepthOf(
        bool active,
        uint256 tokenId
    ) public view virtual returns (uint256);

    function storage_numChildrenOf(
        bool active,
        uint256 tokenId
    ) public view virtual returns (uint256);

    function storage_rawGenomeOf(
        bool active,
        uint256 tokenId
    ) public view virtual returns (uint256);

    function storage_genomeOf(
        bool active,
        uint256 tokenId
    ) public view virtual returns (string memory);

    function storage_lastShifted(
        bool active,
        uint256 tokenId
    ) public view virtual returns (uint64);

    function storage_transferFrom(
        address msgSender,
        address from,
        address to,
        uint256 tokenId
    ) public virtual;

    function storage_safeTransferFrom(
        address msgSender,
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) public virtual;

    function storage_safeTransferFrom(
        address msgSender,
        address from,
        address to,
        uint256 tokenId
    ) public virtual;

    function storage_approve(
        address msgSender,
        address to,
        uint256 tokenId
    ) public virtual;

    function storage_getApproved(
        bool active,
        uint256 tokenId
    ) public view virtual returns (address);

    function storage_setApprovalForAll(
        address msgSender,
        address operator,
        bool _approved
    ) public virtual;

    function storage_isApprovedForAll(
        bool active,
        address owner,
        address operator
    ) public view virtual returns (bool);

    /********/

    function storage_totalSupply(bool active) public view virtual returns (uint256);

    function storage_tokenOfOwnerByIndex(
        bool active,
        address owner,
        uint256 index
    ) public view virtual returns (uint256);

    function storage_tokenByIndex(
        bool active,
        uint256 index
    ) public view virtual returns (uint256);

    /********/

    function mint(
        address to,
        HeartColor color,
        uint256 lineageToken,
        uint256 lineageDepth,
        address parent
    ) public virtual returns (uint256);

    function storage_activate(uint256 tokenId) public virtual;

    function storage_batchActivate(uint256[] calldata tokenIds) public virtual;

    function storage_burn(uint256 tokenId) public virtual;

    function storage_batchBurn(uint256[] calldata tokenIds) public virtual;

    /********/

    function _exists(bool active, uint256 tokenId) public view virtual returns (bool);
}

//////////

abstract contract BurnRewardsProto {
    function storeReward(uint256 heartId) public payable virtual;

    function disburseBurnReward(uint256 heartId, address to) public virtual;

    function batchStoreReward(uint256[] calldata heartIds) public payable virtual;

    function batchDisburseBurnReward(uint256[] calldata heartIds, address to) public virtual;
}

//////////

abstract contract ImageDataGetterProto {
    function getImageData(HeartColor color) public view virtual returns (string memory);
}

////////////////////////////////////////

/********************
/===================\
|    ,d88b.d88b,    |
|    88888888888    |
|    `Y8888888Y'    |
|      `Y888Y'      |
|        `Y'        |
\===================/
********************/

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/operator-filter-registry/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/operator-filter-registry/lib/openzeppelin-contracts-upgradeable/contracts/",
    "openzeppelin-contracts/=lib/operator-filter-registry/lib/openzeppelin-contracts/contracts/",
    "operator-filter-registry/=lib/operator-filter-registry/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"cbAddy_","type":"address"},{"internalType":"uint256","name":"mintPrice_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"description_","type":"string"},{"internalType":"string","name":"image_","type":"string"},{"internalType":"string","name":"link_","type":"string"},{"internalType":"address","name":"storageLayerAddress_","type":"address"},{"internalType":"address","name":"puzzleAddress_","type":"address"},{"internalType":"address[]","name":"signers_","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bool","name":"mintStatusOpen","type":"bool"},{"internalType":"bool","name":"isInvited","type":"bool"},{"internalType":"bool","name":"mintNotYetUsed","type":"bool"},{"internalType":"bool","name":"fiveInvitesGiven","type":"bool"},{"internalType":"bool","name":"correctMsgValue","type":"bool"}],"name":"InviteMintError","type":"error"},{"inputs":[{"internalType":"bool","name":"noDuplicateInvites","type":"bool"},{"internalType":"bool","name":"senderInvited","type":"bool"},{"internalType":"bool","name":"withinInviteLimit","type":"bool"}],"name":"InviteeInviteError","type":"error"},{"inputs":[{"internalType":"bool","name":"puzzleSolved","type":"bool"},{"internalType":"bool","name":"arrayLengthsMatch","type":"bool"},{"internalType":"bool","name":"withinInviteLimit","type":"bool"},{"internalType":"bool","name":"ownColorNotUsed","type":"bool"},{"internalType":"bool","name":"validColorsUsed","type":"bool"},{"internalType":"bool","name":"noDuplicateInvites","type":"bool"},{"internalType":"bool","name":"noSelfInvite","type":"bool"},{"internalType":"bool","name":"noDuplicateColors","type":"bool"}],"name":"PuzzleInviteError","type":"error"},{"inputs":[{"internalType":"bool","name":"authorizedToMint","type":"bool"},{"internalType":"bool","name":"mintNotYetUsed","type":"bool"},{"internalType":"bool","name":"fiveInvitesGiven","type":"bool"}],"name":"PuzzleMintError","type":"error"},{"inputs":[{"internalType":"bool","name":"notYetSolved","type":"bool"},{"internalType":"bool","name":"hasCrudeBorneEggs","type":"bool"},{"internalType":"bool","name":"puzzleIsSet","type":"bool"},{"internalType":"bool","name":"correctPuzzleSolution","type":"bool"},{"internalType":"bool","name":"validColor","type":"bool"}],"name":"PuzzleSolveError","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ACTIVE_HEARTS_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURN_REWARDS_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_ADDRESS_1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_ADDRESS_2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STORAGE_LAYER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"heartId","type":"uint256"}],"name":"activate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numToActivate","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"activationCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"heartIds","type":"uint256[]"}],"name":"batchActivate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"heartIds","type":"uint256[]"}],"name":"batchBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"from","type":"address[]"},{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchEmitTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"heartId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cbEggs","outputs":[{"internalType":"contract CrudeBorneEggs","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionImg","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"colorOf","outputs":[{"internalType":"enum HeartColor","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"approved","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"emitApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emitTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"externalLink","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"heartId","type":"uint256"}],"name":"flipImageMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"genomeOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"heartId","type":"uint256"}],"name":"getExpiryTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageBase","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageDataGetter","outputs":[{"internalType":"contract ImageDataGetterProto","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"heartId","type":"uint256"}],"name":"imageMode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imagePostfix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"inviteDepthOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"inviteMintUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"invited","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"invitedColor","outputs":[{"internalType":"enum HeartColor","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"invitees","type":"address[]"}],"name":"inviteeInvite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"inviteeInvitesGiven","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"inviterOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"heartId","type":"uint256"}],"name":"isExpired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lastShifted","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lineageDepthOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintFromInvite","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintFromPuzzle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"internalType":"enum InactiveHearts.MintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"numChildrenOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numSignatures","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokenSignatures","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"p_addr_2_bp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"parentOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"puzzle","outputs":[{"internalType":"contract PuzzleProto","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"puzzleColor","outputs":[{"internalType":"enum HeartColor","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"invitees","type":"address[]"},{"internalType":"enum HeartColor[]","name":"inviteeColors","type":"uint8[]"}],"name":"puzzleInvite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inviter","type":"address"},{"internalType":"enum HeartColor","name":"color","type":"uint8"}],"name":"puzzleInviteColorUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"puzzleInvitesGiven","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"puzzleMintUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"puzzleSolved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rawGenomeOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rejectTokenWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rejectWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_activeHearts","type":"address"}],"name":"setActiveHeartsContract","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":"address","name":"burnRewardsAddress","type":"address"}],"name":"setBurnRewardsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newDescription","type":"string"}],"name":"setCollectionDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newLink","type":"string"}],"name":"setExternalLink","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newImage","type":"string"}],"name":"setImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newImageBase","type":"string"}],"name":"setImageBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newIDGAddress","type":"address"}],"name":"setImageDataGetter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newImagePostfix","type":"string"}],"name":"setImagePostfix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum InactiveHearts.MintStatus","name":"newMintStatus","type":"uint8"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pa2bp","type":"uint256"}],"name":"setPA2BP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"poolAddress1","type":"address"}],"name":"setPoolAddress1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"poolAddress2","type":"address"}],"name":"setPoolAddress2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"puzzleAddress","type":"address"}],"name":"setPuzzleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newSymbol","type":"string"}],"name":"setSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"signers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"solution","type":"string[]"},{"internalType":"enum HeartColor","name":"ownColor","type":"uint8"}],"name":"solvePuzzle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stagedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stagedFundsReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stagedSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stagedTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stagedTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stagedTokenReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stagedTokenSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newSignatureAddress","type":"address"}],"name":"switchSignatureAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052622820a86015556019805460ff191690553480156200002257600080fd5b506040516200660c3803806200660c8339810160408190526200004591620005fe565b62000050336200042a565b600180546001600160a01b0319166001600160a01b038c16179055600889905560096200007e8982620007da565b50600a6200008d8882620007da565b50600b6200009c8782620007da565b50600c620000ab8682620007da565b50600d620000ba8582620007da565b50601080546001600160a01b038086166001600160a01b031992831617909255600280549285169290911691909117905560408051808201909152600381526214995960ea1b60208083019190915260008052601890527f999d26de3473317ead3eeaf34ca78057f1439db67b6953469c3c96ce9caf6bd7906200013f9082620007da565b50604080518082019091526004815263426c756560e01b6020808301919091526001600052601890527ff3794665d3af9b6fb6f858b70185898134f96768ef31c325d52e04f0ac195a4d90620001969082620007da565b5060408051808201909152600581526423b932b2b760d91b6020808301919091526002600052601890527f2bacf7cca723d030d12aee795132f2c5f2d14ad131f16f3f27eeba3e79d18b8c90620001ee9082620007da565b5060408051808201909152600681526559656c6c6f7760d01b6020808301919091526003600052601890527f7a6340a7048c03c55288da75abed74d2ce9194201bafb03be53c0a7cca59149590620002479082620007da565b506040805180820190915260068152654f72616e676560d01b6020808301919091526004600052601890527f5b650d93b25a5c652bc6f9215f522b521daf6d36977dcec1343c2a8310b869d690620002a09082620007da565b50604080518082019091526006815265507572706c6560d01b6020808301919091526005600052601890527f2288853b49db4f36075bf4a8cfdae4e5e3b39b7b03937d0a9148b051a6f64c5c90620002f99082620007da565b50604080518082019091526005815264426c61636b60d81b6020808301919091526006600052601890527f33d69b83f8d9644c8360a50d7275bf12a50019a4cd4e17926d0b315da648c58d90620003519082620007da565b50604080518082019091526005815264576869746560d81b6020808301919091526007600052601890527f0aaa0ccf1df0cbc345d3ab7229415a03568bb157ac6e99a99e7acfb410c400f590620003a99082620007da565b5060005b81518110156200041957600160226000848481518110620003d257620003d2620008a6565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806200041081620008bc565b915050620003ad565b5050505050505050505050620008e4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200049257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620004d857620004d862000497565b604052919050565b600082601f830112620004f257600080fd5b81516001600160401b038111156200050e576200050e62000497565b602062000524601f8301601f19168201620004ad565b82815285828487010111156200053957600080fd5b60005b83811015620005595785810183015182820184015282016200053c565b506000928101909101919091529392505050565b600082601f8301126200057f57600080fd5b815160206001600160401b038211156200059d576200059d62000497565b8160051b620005ae828201620004ad565b9283528481018201928281019087851115620005c957600080fd5b83870192505b84831015620005f357620005e3836200047a565b82529183019190830190620005cf565b979650505050505050565b6000806000806000806000806000806101408b8d0312156200061f57600080fd5b6200062a8b6200047a565b60208c015160408d0151919b5099506001600160401b03808211156200064f57600080fd5b6200065d8e838f01620004e0565b995060608d01519150808211156200067457600080fd5b620006828e838f01620004e0565b985060808d01519150808211156200069957600080fd5b620006a78e838f01620004e0565b975060a08d0151915080821115620006be57600080fd5b620006cc8e838f01620004e0565b965060c08d0151915080821115620006e357600080fd5b620006f18e838f01620004e0565b95506200070160e08e016200047a565b9450620007126101008e016200047a565b93506101208d01519150808211156200072a57600080fd5b50620007398d828e016200056d565b9150509295989b9194979a5092959850565b600181811c908216806200076057607f821691505b6020821081036200078157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620007d557600081815260208120601f850160051c81016020861015620007b05750805b601f850160051c820191505b81811015620007d157828155600101620007bc565b5050505b505050565b81516001600160401b03811115620007f657620007f662000497565b6200080e816200080784546200074b565b8462000787565b602080601f8311600181146200084657600084156200082d5750858301515b600019600386901b1c1916600185901b178555620007d1565b600085815260208120601f198616915b82811015620008775788860151825594840194600190910190840162000856565b5085821015620008965787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600060018201620008dd57634e487b7160e01b600052601160045260246000fd5b5060010190565b615d1880620008f46000396000f3fe6080604052600436106105fe5760003560e01c80637d366c761161030e578063c12c8c651161019b578063e340f90f116100e7578063f2c5e640116100a0578063f430f8241161007a578063f430f8241461122f578063f4a0a5281461124f578063fae3da981461126f578063fb302f7b1461128f57600080fd5b8063f2c5e640146111cf578063f2fde38b146111ef578063f3fef3a31461120f57600080fd5b8063e340f90f14611127578063e76430c81461113a578063e8a3d4851461115a578063e985e9c51461116f578063ef178d851461118f578063f0cd5945146111af57600080fd5b8063d23c4a8b11610154578063d9548e531161012e578063d9548e53146110b2578063dc8e92ea146110d2578063de79671a146110f2578063e2c6875c1461111257600080fd5b8063d23c4a8b1461105c578063d4c8589e1461107c578063d831a7c61461109257600080fd5b8063c12c8c6514610f8d578063c47f002714610fad578063c4f95d0214610fcd578063c87b56dd14610fe3578063c8ced35514611003578063cfa3c1321461103c57600080fd5b80639723b77f1161025a578063a718dee811610213578063b260c42a116101ed578063b260c42a14610f1a578063b5c7e9eb14610f2d578063b84c824614610f4d578063b88d4fde14610f6d57600080fd5b8063a718dee814610ec4578063ac1ff6eb14610ee4578063b0e306ef14610efa57600080fd5b80639723b77f14610dfd5780639bc5c50914610e1d5780639d1172ea14610e3d5780639da3f8fd14610e5d578063a22cb46514610e84578063a469997714610ea457600080fd5b80638da5cb5b116102c75780639471302e116102a15780639471302e14610d9357806395d89b4114610db357806395db751514610dc857806396109e9114610ddd57600080fd5b80638da5cb5b14610d1d578063935c9eb714610d3b578063942c385d14610d5b57600080fd5b80637d366c7614610c735780637fe8120c14610c93578063814c8c5514610cb357806383cea47714610cd357806387a85d1d14610ce85780638acd9f8b14610cfd57600080fd5b80633febacd21161048c5780635b9db898116103d85780636c0ad59f11610391578063715018a61161036b578063715018a614610bee57806371adb5e614610c03578063736c0d5b14610c235780637bf4303514610c5357600080fd5b80636c0ad59f14610b985780636d4ebfe714610bb857806370a0823114610bce57600080fd5b80635b9db89814610aed5780636103596f14610b025780636352211e14610b2257806365bf552214610b42578063662d965614610b625780636817c76c14610b8257600080fd5b80634bc54bee1161044557806351d022d91161041f57806351d022d914610a7757806353c7bc6314610a9757806355c45fbe14610aad5780635687f2b814610acd57600080fd5b80634bc54bee14610a175780634f558e7914610a375780634f6ccce714610a5757600080fd5b80633febacd2146109805780634024bd6a1461099557806342842e0e1461099d57806342966c68146109bd578063464fa857146109dd57806348ac7ce114610a0257600080fd5b80631efbe9281161054b5780632eefe76511610504578063346e5525116104de578063346e55251461090057806336f7b6321461092057806337669b9d14610940578063399fac071461096057600080fd5b80632eefe765146108a05780632f745c59146108c05780633176de09146108e057600080fd5b80631efbe928146107d35780631f917921146107f357806322b3fa0714610813578063239947291461083357806323b872dd1461086057806323de66511461088057600080fd5b8063095ea7b3116105b857806313e5872e1161059257806313e5872e1461075057806314055fd114610770578063164ce3eb1461079057806318160ddd146107b057600080fd5b8063095ea7b3146106f05780630af79889146107105780631141ed6a1461073057600080fd5b8062f62eea1461060a57806301ffc9a71461062c57806303567f43146106615780630594da2a1461067657806306fdde03146106ae578063081812fc146106d057600080fd5b3661060557005b600080fd5b34801561061657600080fd5b5061062a6106253660046149ef565b6112af565b005b34801561063857600080fd5b5061064c610647366004614a0c565b6112d9565b60405190151581526020015b60405180910390f35b34801561066d57600080fd5b5061062a611346565b34801561068257600080fd5b50601354610696906001600160a01b031681565b6040516001600160a01b039091168152602001610658565b3480156106ba57600080fd5b506106c3611502565b6040516106589190614a86565b3480156106dc57600080fd5b506106966106eb366004614a99565b611594565b3480156106fc57600080fd5b5061062a61070b366004614ab2565b61160a565b34801561071c57600080fd5b50601654610696906001600160a01b031681565b34801561073c57600080fd5b5061062a61074b3660046149ef565b61167b565b34801561075c57600080fd5b5061064c61076b3660046149ef565b6116a5565b34801561077c57600080fd5b5061062a61078b366004614a99565b6116ef565b34801561079c57600080fd5b5061062a6107ab3660046149ef565b6117da565b3480156107bc57600080fd5b506107c5611804565b604051908152602001610658565b3480156107df57600080fd5b506107c56107ee366004614a99565b611877565b3480156107ff57600080fd5b5061062a61080e366004614ade565b6118ed565b34801561081f57600080fd5b5061062a61082e3660046149ef565b611907565b34801561083f57600080fd5b5061085361084e366004614a99565b611946565b6040516106589190614b79565b34801561086c57600080fd5b5061062a61087b366004614b87565b6119bb565b34801561088c57600080fd5b5061062a61089b366004614b87565b611a35565b3480156108ac57600080fd5b506107c56108bb3660046149ef565b611a83565b3480156108cc57600080fd5b506107c56108db366004614ab2565b611aad565b3480156108ec57600080fd5b506107c56108fb366004614a99565b611b32565b34801561090c57600080fd5b5061062a61091b366004614c20565b611b6b565b34801561092c57600080fd5b5061062a61093b366004614a99565b611d80565b34801561094c57600080fd5b5061062a61095b3660046149ef565b611d9c565b34801561096c57600080fd5b50600254610696906001600160a01b031681565b34801561098c57600080fd5b5061062a611dc6565b61062a611dd8565b3480156109a957600080fd5b5061062a6109b8366004614b87565b6121fc565b3480156109c957600080fd5b5061062a6109d8366004614a99565b612243565b3480156109e957600080fd5b506019546106969061010090046001600160a01b031681565b348015610a0e57600080fd5b506106c3612416565b348015610a2357600080fd5b50601054610696906001600160a01b031681565b348015610a4357600080fd5b5061064c610a52366004614a99565b6124a4565b348015610a6357600080fd5b506107c5610a72366004614a99565b612519565b348015610a8357600080fd5b5061062a610a92366004614c76565b612552565b348015610aa357600080fd5b506107c5601e5481565b348015610ab957600080fd5b5061062a610ac8366004614cef565b61287c565b348015610ad957600080fd5b5061062a610ae8366004614b87565b6128d8565b348015610af957600080fd5b506106c3612926565b348015610b0e57600080fd5b50601f54610696906001600160a01b031681565b348015610b2e57600080fd5b50610696610b3d366004614a99565b612933565b348015610b4e57600080fd5b5061064c610b5d3660046149ef565b61296c565b348015610b6e57600080fd5b506106c3610b7d366004614a99565b6129a3565b348015610b8e57600080fd5b506107c560085481565b348015610ba457600080fd5b5061062a610bb3366004614dda565b612a1c565b348015610bc457600080fd5b506107c560205481565b348015610bda57600080fd5b506107c5610be93660046149ef565b612a34565b348015610bfa57600080fd5b5061062a612a6f565b348015610c0f57600080fd5b5061062a610c1e366004614ade565b612a81565b348015610c2f57600080fd5b5061064c610c3e3660046149ef565b60226020526000908152604090205460ff1681565b348015610c5f57600080fd5b50600154610696906001600160a01b031681565b348015610c7f57600080fd5b5061064c610c8e3660046149ef565b612a96565b348015610c9f57600080fd5b5061062a610cae3660046149ef565b612aca565b348015610cbf57600080fd5b5061062a610cce366004614e2a565b612af4565b348015610cdf57600080fd5b506106c3612b8c565b348015610cf457600080fd5b5061062a612b99565b348015610d0957600080fd5b50610853610d183660046149ef565b612ba9565b348015610d2957600080fd5b506000546001600160a01b0316610696565b348015610d4757600080fd5b5061062a610d56366004614e4b565b612bf9565b348015610d6757600080fd5b50610d7b610d76366004614a99565b612e59565b6040516001600160401b039091168152602001610658565b348015610d9f57600080fd5b5061062a610dae366004614ade565b612ece565b348015610dbf57600080fd5b506106c3612ee3565b348015610dd457600080fd5b506106c3612ef2565b348015610de957600080fd5b50601d54610696906001600160a01b031681565b348015610e0957600080fd5b5061062a610e18366004614dda565b612eff565b348015610e2957600080fd5b5061062a610e38366004614e8c565b612f13565b348015610e4957600080fd5b5061062a610e58366004614ec3565b613155565b348015610e6957600080fd5b50601954610e779060ff1681565b6040516106589190614f5c565b348015610e9057600080fd5b5061062a610e9f366004614f76565b61321f565b348015610eb057600080fd5b50610853610ebf3660046149ef565b61325f565b348015610ed057600080fd5b506107c5610edf3660046149ef565b613296565b348015610ef057600080fd5b506107c560145481565b348015610f0657600080fd5b50602154610696906001600160a01b031681565b61062a610f28366004614a99565b6132dc565b348015610f3957600080fd5b506107c5610f48366004614a99565b613568565b348015610f5957600080fd5b5061062a610f68366004614ade565b6135a1565b348015610f7957600080fd5b5061062a610f88366004614faf565b6135b6565b348015610f9957600080fd5b506107c5610fa8366004614a99565b61361c565b348015610fb957600080fd5b5061062a610fc8366004614ade565b613657565b348015610fd957600080fd5b506107c5601b5481565b348015610fef57600080fd5b506106c3610ffe366004614a99565b61366c565b34801561100f57600080fd5b5061069661101e3660046149ef565b6001600160a01b039081166000908152600460205260409020541690565b34801561104857600080fd5b50610696611057366004614a99565b6138a3565b34801561106857600080fd5b506107c561107736600461502e565b6138dc565b34801561108857600080fd5b506107c5601a5481565b34801561109e57600080fd5b506107c56110ad366004614a99565b613948565b3480156110be57600080fd5b5061064c6110cd366004614a99565b613969565b3480156110de57600080fd5b5061062a6110ed366004614e4b565b613991565b3480156110fe57600080fd5b50601c54610696906001600160a01b031681565b34801561111e57600080fd5b506106c3613b82565b61062a611135366004614e4b565b613b8f565b34801561114657600080fd5b50601154610696906001600160a01b031681565b34801561116657600080fd5b506106c3613e5d565b34801561117b57600080fd5b5061064c61118a366004615053565b613e9e565b34801561119b57600080fd5b5061064c6111aa366004615081565b613f1d565b3480156111bb57600080fd5b5061064c6111ca3660046149ef565b613f8a565b3480156111db57600080fd5b5061062a6111ea3660046149ef565b613fbe565b3480156111fb57600080fd5b5061062a61120a3660046149ef565b613fe8565b34801561121b57600080fd5b5061062a61122a366004614ab2565b61405e565b34801561123b57600080fd5b506107c561124a3660046149ef565b61426d565b34801561125b57600080fd5b5061062a61126a366004614a99565b6142a4565b34801561127b57600080fd5b50600354610696906001600160a01b031681565b34801561129b57600080fd5b50601254610696906001600160a01b031681565b6112b76142b1565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061130a57506001600160e01b03198216635b5e139f60e01b145b8061132557506001600160e01b0319821663780e9d6360e01b145b8061134057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000600160195460ff16600381111561136157611361614b4f565b14806113985750600060195460ff16600381111561138157611381614b4f565b14801561139857506000546001600160a01b031633145b905060006113a53361296c565b905060006113b233613296565b60051490508215806113c15750815b806113ca575080155b15611400576040516307527edd60e41b815283151560048201528215602482015281151560448201526064015b60405180910390fd5b3360009081526006602052604081208054600192906114209084906150c5565b9091555050336000908152600560205260409020805460109190601490611457908490600160a01b900465ffffffffffff166150d8565b825465ffffffffffff9182166101009390930a9283029190920219909116179055506010546001600160a01b031663f1a5daf63361149481612ba9565b60008060006040518663ffffffff1660e01b81526004016114b99594939291906150fe565b6020604051808303816000875af11580156114d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fc919061513c565b50505050565b60606009805461151190615155565b80601f016020809104026020016040519081016040528092919081815260200182805461153d90615155565b801561158a5780601f1061155f5761010080835404028352916020019161158a565b820191906000526020600020905b81548152906001019060200180831161156d57829003601f168201915b5050505050905090565b60105460405163ce07506160e01b815260006004820181905260248201849052916001600160a01b03169063ce075061906044015b602060405180830381865afa1580156115e6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611340919061518f565b6010546040516316a9d09160e11b81523360048201526001600160a01b0384811660248301526044820184905290911690632d53a122906064015b600060405180830381600087803b15801561165f57600080fd5b505af1158015611673573d6000803e3d6000fd5b505050505050565b6116836142b1565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811660009081526004602081905260408220546116dd91600291600160a01b9004901c650fffffffffff166151c2565b65ffffffffffff166001149050919050565b6116f881612933565b6001600160a01b0316336001600160a01b03161461173c5760405162461bcd60e51b81526020600482015260016024820152606f60f81b60448201526064016113f7565b6117458161361c565b60000361179457611758610100826151e7565b6001901b6017600061176c610100856151fb565b8152602001908152602001600020600082825461178991906150c5565b909155506117d79050565b6117a0610100826151e7565b6001901b601760006117b4610100856151fb565b815260200190815260200160002060008282546117d1919061520f565b90915550505b50565b6117e26142b1565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6010546040516396c9e64360e01b8152600060048201819052916001600160a01b0316906396c9e64390602401602060405180830381865afa15801561184e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611872919061513c565b905090565b6010546040516376e9427560e01b815260006004820181905260248201849052916001600160a01b0316906376e94275906044015b602060405180830381865afa1580156118c9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611340919061513c565b6118f56142b1565b600d611902828483615268565b505050565b61190f61430b565b33600090815260226020526040808220805460ff199081169091556001600160a01b03939093168252902080549091166001179055565b60105460405163fd5699df60e01b815260006004820181905260248201849052916001600160a01b03169063fd5699df90604401602060405180830381865afa158015611997573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190615327565b601054604051636225746760e01b81523360048201526001600160a01b038581166024830152848116604483015260648201849052909116906362257467906084015b600060405180830381600087803b158015611a1857600080fd5b505af1158015611a2c573d6000803e3d6000fd5b50505050505050565b611a3d61435a565b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001600160a01b0316600090815260046020526040902054600160d01b900465ffffffffffff1690565b6010546040516336bdf74760e01b81526000600482018190526001600160a01b03858116602484015260448301859052909216906336bdf74790606401602060405180830381865afa158015611b07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b2b919061513c565b9392505050565b60105460405163b95ad62160e01b815260006004820181905260248201849052916001600160a01b03169063b95ad621906044016118ac565b336000818152600560205260408082205460015491516370a0823160e01b81526004810194909452600160a01b900465ffffffffffff16159282916001600160a01b0316906370a0823190602401602060405180830381865afa158015611bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfa919061513c565b600254604051630d040a9760e41b81529290911192506001600160a01b0316801515916000919063d040a97090611c37908a908a9060040161536d565b602060405180830381865afa158015611c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c789190615408565b905060006008866008811115611c9057611c90614b4f565b14159050848015611c9e5750835b8015611ca75750825b8015611cb05750815b8015611cb95750805b611cfa5760405163383c5a8b60e01b81528515156004820152841515602482015283151560448201528215156064820152811515608482015260a4016113f7565b6001866008811115611d0e57611d0e614b4f565b60ff16901b6001611d1f9190615425565b336000908152600560205260409020805460ff9290921691601490611d54908490600160a01b900465ffffffffffff166150d8565b92506101000a81548165ffffffffffff021916908365ffffffffffff1602179055505050505050505050565b611d886142b1565b611770811115611d9757600080fd5b601455565b611da46142b1565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b611dce61430b565b611dd661439a565b565b6000600160195460ff166003811115611df357611df3614b4f565b1490506000611e0133613f8a565b90506000611e0e336116a5565b90506000611e1b3361426d565b6005149050600060085434149050848015611e335750835b8015611e3d575082155b8015611e465750815b8015611e4f5750805b611e8f57604051631b7d407160e11b815285151560048201528415156024820152831560448201528215156064820152811515608482015260a4016113f7565b336000908152600660205260408120805460019290611eaf9084906150c5565b9091555050336000908152600460205260409020805460109190601490611ee6908490600160a01b900465ffffffffffff166150d8565b825465ffffffffffff9182166101009390930a9283029190920219909116179055506010546000906001600160a01b031663f1a5daf633611f268161325f565b6000611f3133611a83565b336000908152600460205260409020546001600160a01b03166040518663ffffffff1660e01b8152600401611f6a9594939291906150fe565b6020604051808303816000875af1158015611f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fad919061513c565b6011549091506001600160a01b031663a0759b1a611fcc600a346151fb565b836040518363ffffffff1660e01b8152600401611feb91815260200190565b6000604051808303818588803b15801561200457600080fd5b505af1158015612018573d6000803e3d6000fd5b5050336000908152600460205260408120549093506001600160a01b0316915061204590506005346151fb565b604051600081818185875af1925050503d8060008114612081576040519150601f19603f3d011682016040523d82523d6000602084013e612086565b606091505b50509050806120a75760405162461bcd60e51b81526004016113f79061543e565b6012546001600160a01b031615612136576012546000906001600160a01b03166120d2600a346151fb565b604051600081818185875af1925050503d806000811461210e576040519150601f19603f3d011682016040523d82523d6000602084013e612113565b606091505b50509050806121345760405162461bcd60e51b81526004016113f79061545b565b505b6013546001600160a01b031615611a2c5760145415611a2c576013546014546000916001600160a01b031690612710906121709034615478565b61217a91906151fb565b604051600081818185875af1925050503d80600081146121b6576040519150601f19603f3d011682016040523d82523d6000602084013e6121bb565b606091505b50509050806121f25760405162461bcd60e51b815260206004820152600360248201526270663360e81b60448201526064016113f7565b5050505050505050565b6010546040516312f20cb560e01b81523360048201526001600160a01b038581166024830152848116604483015260648201849052909116906312f20cb5906084016119fe565b6010546040516359a8860760e01b8152600160048201523360248201526000916001600160a01b0316906359a8860790604401602060405180830381865afa158015612293573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b7919061513c565b116122fa5760405162461bcd60e51b81526020600482015260136024820152723732b2b21030b1ba34bb32901e1993b997171760691b60448201526064016113f7565b60155461230682612e59565b612319906001600160401b03164261520f565b116123515760405162461bcd60e51b815260206004820152600860248201526732bc382fb13ab93760c11b60448201526064016113f7565b601054604051635bd222bf60e01b8152600481018390526001600160a01b0390911690635bd222bf90602401600060405180830381600087803b15801561239757600080fd5b505af11580156123ab573d6000803e3d6000fd5b5050601154604051630c28a77960e41b8152600481018590523360248201526001600160a01b03909116925063c28a77909150604401600060405180830381600087803b1580156123fb57600080fd5b505af115801561240f573d6000803e3d6000fd5b5050505050565b600c805461242390615155565b80601f016020809104026020016040519081016040528092919081815260200182805461244f90615155565b801561249c5780601f106124715761010080835404028352916020019161249c565b820191906000526020600020905b81548152906001019060200180831161247f57829003601f168201915b505050505081565b601054604051636a6c7a0160e11b815260006004820181905260248201849052916001600160a01b03169063d4d8f40290604401602060405180830381865afa1580156124f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190615408565b6010546040516375fd65a960e11b815260006004820181905260248201849052916001600160a01b03169063ebfacb52906044016118ac565b600061255d33612a96565b9050838214600060058661257033613296565b61257a91906150c5565b11159050600061258933612ba9565b90506000600180828181805b8d8110156127735760008f8f838181106125b1576125b161548f565b90506020020160208101906125c691906149ef565b905060008e8e848181106125dc576125dc61548f565b90506020020160208101906125f191906154a5565b9050838061260457506126043382613f1d565b9350878015612635575089600881111561262057612620614b4f565b81600881111561263257612632614b4f565b14155b97508680156126565750600881600881111561265357612653614b4f565b14155b96508580612668575061266882613f8a565b955084801561268057506001600160a01b0382163314155b945080600881111561269457612694614b4f565b61269f906008615425565b60ff166001901b896126b191906150c5565b98506001808260088111156126c8576126c8614b4f565b60ff16901b60ff16816126db91906150c5565b6001600160a01b0393841660008181526004602081815260408084208151606081018352815465ffffffffffff988916828601908152338352600194830194855297909652939092529151935191518516600160d01b026001600160d01b0392909516600160a01b026001600160d01b031990931693909716929092171716179092555081905061276b816154c2565b915050612595565b5089801561277e5750885b80156127875750875b80156127905750845b80156127995750835b80156127a3575082155b80156127ac5750815b80156127b6575080155b61280e576040516367266c8d60e01b81528a151560048201528915156024820152881515604482015285151560648201528415156084820152831560a482015282151560c4820152811560e4820152610104016113f7565b61281c60058e901b876150c5565b336000908152600560205260409020805460149061284a908490600160a01b900465ffffffffffff166150d8565b92506101000a81548165ffffffffffff021916908365ffffffffffff1602179055505050505050505050505050505050565b61288461435a565b816001600160a01b0316836001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128cb911515815260200190565b60405180910390a3505050565b6128e061435a565b80826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600d805461242390615155565b60105460405163485a716760e11b815260006004820181905260248201849052916001600160a01b0316906390b4e2ce906044016115c9565b6001600160a01b0381166000908152600560205260408120546116dd90600290600160a01b900460041c650fffffffffff166151c2565b601054604051635159769360e01b815260006004820152602481018390526060916001600160a01b031690635159769390604401600060405180830381865afa1580156129f4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261134091908101906154db565b612a246142b1565b600e612a308282615551565b5050565b6010546040516359a8860760e01b81526000600482018190526001600160a01b038481166024840152909216906359a88607906044016118ac565b612a776142b1565b611dd660006143c7565b612a896142b1565b600c611902828483615268565b6001600160a01b0381166000908152600560205260408120546116dd90600290600160a01b900465ffffffffffff166151c2565b612ad26142b1565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b612afc6142b1565b6000816003811115612b1057612b10614b4f565b03612b425760405162461bcd60e51b81526020600482015260026024820152616d7360f01b60448201526064016113f7565b600360195460ff166003811115612b5b57612b5b614b4f565b03612b6557600080fd5b6019805482919060ff19166001836003811115612b8457612b84614b4f565b021790555050565b600f805461242390615155565b612ba161430b565b611dd6614417565b6001600160a01b038116600090815260056020526040812054612be090600890600160a01b900460011c657fffffffffff166151c2565b65ffffffffffff16600881111561134057611340614b4f565b600080612c0533613f8a565b90506000600584612c153361426d565b612c1f91906150c5565b11159050600080612c2f86614447565b91509150806007541860011760078190555060005b86811015612db4576000888883818110612c6057612c6061548f565b9050602002016020810190612c7591906149ef565b90506000848381518110612c8b57612c8b61548f565b602002602001015190508780612ca55750612ca582613f8a565b9750600180826008811115612cbc57612cbc614b4f565b60ff16901b60ff1681612ccf91906150c5565b6001600160a01b03841660009081526004602090815260409182902082516060810184529054600160d01b900465ffffffffffff90811693820193909352918316908201523380825291925090612d2590611a83565b612d309060016150d8565b65ffffffffffff90811660408381019182526001600160a01b039687166000908152600460209081529190208451815492909501519251949097166001600160d01b031990911617600160a01b91831691909102176001600160d01b0316600160d01b92909116919091021790925550819050612dac816154c2565b915050612c44565b508480612dbf575083155b80612dc8575082155b15612df95760405163345536b360e01b815285156004820152841515602482015283151560448201526064016113f7565b3360009081526004602052604090208054600588901b9190601490612e2e908490600160a01b900465ffffffffffff166150d8565b92506101000a81548165ffffffffffff021916908365ffffffffffff16021790555050505050505050565b60105460405163b3de00e160e01b815260006004820181905260248201849052916001600160a01b03169063b3de00e190604401602060405180830381865afa158015612eaa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190615610565b612ed66142b1565b600b611902828483615268565b6060600a805461151190615155565b600e805461242390615155565b612f076142b1565b600f612a308282615551565b612f1b61430b565b602054600003612f6b57601d80546001600160a01b039485166001600160a01b031991821617909155601e92909255601f8054919093169082161790915560016020556021805490911633179055565b60205460010361311e576021546001600160a01b03163303612fc35760405162461bcd60e51b815260206004820152601160248201527063616e6e6f74207369676e20747769636560781b60448201526064016113f7565b601d546001600160a01b038481169116146130115760405162461bcd60e51b815260206004820152600e60248201526d0e8bee4c6ec40dad2e6dac2e8c6d60931b60448201526064016113f7565b601e5482146130535760405162461bcd60e51b815260206004820152600e60248201526d0e8bec2dae840dad2e6dac2e8c6d60931b60448201526064016113f7565b601f546001600160a01b038281169116146130a25760405162461bcd60e51b815260206004820152600f60248201526e0e8bec2c8c8e440dad2e6dac2e8c6d608b1b60448201526064016113f7565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905282169063a9059cbb906044016020604051808303816000875af11580156130f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131159190615408565b50611902614417565b60405162461bcd60e51b815260206004820152600c60248201526b745f696d706f737369626c6560a01b60448201526064016113f7565b61315d61435a565b60005b85811015611a2c5782828281811061317a5761317a61548f565b905060200201358585838181106131935761319361548f565b90506020020160208101906131a891906149ef565b6001600160a01b03168888848181106131c3576131c361548f565b90506020020160208101906131d891906149ef565b6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480613217816154c2565b915050613160565b60105460405163045a04cb60e21b81523360048201526001600160a01b038481166024830152831515604483015290911690631168132c90606401611645565b6001600160a01b038116600090815260046020526040812054612be090600890600160a01b900460011c657fffffffffff166151c2565b6001600160a01b03811660009081526005602081905260408220546132ce91600891600160a01b9004901c6507ffffffffff166151c2565b65ffffffffffff1692915050565b600854336000908152600660205260409020541561332c57600854613301908261520f565b336000908152600660205260408120805492935060019290919061332690849061520f565b90915550505b8034146133645760405162461bcd60e51b81526004016113f7906020808252600490820152631c995add60e21b604082015260600190565b601054604051633d7a938d60e21b8152600481018490526001600160a01b039091169063f5ea4e3490602401600060405180830381600087803b1580156133aa57600080fd5b505af11580156133be573d6000803e3d6000fd5b50506011546001600160a01b0316915063a0759b1a90506133e0600a346151fb565b846040518363ffffffff1660e01b81526004016133ff91815260200190565b6000604051808303818588803b15801561341857600080fd5b505af115801561342c573d6000803e3d6000fd5b50506012546001600160a01b03161592506134c2915050576012546000906001600160a01b031661345e600a346151fb565b604051600081818185875af1925050503d806000811461349a576040519150601f19603f3d011682016040523d82523d6000602084013e61349f565b606091505b50509050806134c05760405162461bcd60e51b81526004016113f79061543e565b505b6013546001600160a01b031615612a305760145415612a30576013546014546000916001600160a01b031690612710906134fc9034615478565b61350691906151fb565b604051600081818185875af1925050503d8060008114613542576040519150601f19603f3d011682016040523d82523d6000602084013e613547565b606091505b50509050806119025760405162461bcd60e51b81526004016113f79061545b565b60105460405163f466544960e01b815260006004820181905260248201849052916001600160a01b03169063f4665449906044016118ac565b6135a96142b1565b600a611902828483615268565b601054604051637d70630160e01b81526001600160a01b0390911690637d706301906135ee9033908890889088908890600401615639565b600060405180830381600087803b15801561360857600080fd5b505af11580156121f2573d6000803e3d6000fd5b6000600261362c610100846151e7565b6017600061363c610100876151fb565b815260200190815260200160002054901c61134091906151e7565b61365f6142b1565b6009611902828483615268565b6060600061367983611946565b9050600061368684614601565b6018600084600881111561369c5761369c614b4f565b60ff1681526020019081526020016000206136b68661361c565b156136c9576136c486614693565b61375e565b601654604051630e0e46b760e41b81526001600160a01b039091169063e0e46b70906136f9908790600401614b79565b600060405180830381865afa158015613716573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261373e91908101906154db565b60405160200161374e919061569b565b6040516020818303038152906040525b60405160200161377093929190615753565b6040516020818303038152906040529050806018600084600881111561379857613798614b4f565b60ff1681526020019081526020016000206137b2866129a3565b6137cf60146137c0896138a3565b6001600160a01b0316906146e6565b6137e06137db89611877565b614601565b6040516020016137f4959493929190615846565b6040516020818303038152906040529050806138126137db86611b32565b61381e6137db87613948565b61382787613969565b613840576040518060200160405280600081525061386e565b604051806040016040528060148152602001732c7b2276616c7565223a2245787069726564227d60601b8152505b61387788614601565b60405160200161388b959493929190615997565b60408051601f19818403018152919052949350505050565b601054604051636dec777360e01b815260006004820181905260248201849052916001600160a01b031690636dec7773906044016115c9565b600080836008546138ed9190615478565b6001600160a01b0384166000908152600660205260409020549091505b60008211801561391a5750600081115b156139405760085461392c908361520f565b915061393960018261520f565b905061390a565b509392505050565b600060155461395683612e59565b6001600160401b031661134091906150c5565b600060155461397783612e59565b61398a906001600160401b03164261520f565b1192915050565b6010546040516359a8860760e01b8152600160048201523360248201526000916001600160a01b0316906359a8860790604401602060405180830381865afa1580156139e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a05919061513c565b11613a485760405162461bcd60e51b81526020600482015260136024820152723732b2b21030b1ba34bb32901e1993b997171760691b60448201526064016113f7565b601554600160005b83811015613aab57818015613a97575082613a82868684818110613a7657613a7661548f565b90506020020135612e59565b613a95906001600160401b03164261520f565b115b915080613aa3816154c2565b915050613a50565b5080613aea5760405162461bcd60e51b815260206004820152600e60248201526d32bc382fb130ba31b42fb13ab93760911b60448201526064016113f7565b6010546040516361c6e8e960e11b81526001600160a01b039091169063c38dd1d290613b1c9087908790600401615b38565b600060405180830381600087803b158015613b3657600080fd5b505af1158015613b4a573d6000803e3d6000fd5b5050601154604051632d3cc53760e21b81526001600160a01b03909116925063b4f314dc91506135ee90879087903390600401615b4c565b600b805461242390615155565b600854600090613ba0908390615478565b336000908152600660205260408120549192505b600083118015613bc45750600082115b15613bf757600854613bd6908461520f565b9250613be360018361520f565b9150613bf06001826150c5565b9050613bb4565b823414613c2f5760405162461bcd60e51b81526004016113f7906020808252600490820152631c995add60e21b604082015260600190565b3360009081526006602052604081208054839290613c4e90849061520f565b909155505060105460405163035b581f60e51b81526001600160a01b0390911690636b6b03e090613c859088908890600401615b38565b600060405180830381600087803b158015613c9f57600080fd5b505af1158015613cb3573d6000803e3d6000fd5b50506011546001600160a01b031691506321b785349050613cd5600a346151fb565b87876040518463ffffffff1660e01b8152600401613cf4929190615b38565b6000604051808303818588803b158015613d0d57600080fd5b505af1158015613d21573d6000803e3d6000fd5b50506012546001600160a01b0316159250613db7915050576012546000906001600160a01b0316613d53600a346151fb565b604051600081818185875af1925050503d8060008114613d8f576040519150601f19603f3d011682016040523d82523d6000602084013e613d94565b606091505b5050905080613db55760405162461bcd60e51b81526004016113f79061543e565b505b6013546001600160a01b03161561240f576014541561240f576013546014546000916001600160a01b03169061271090613df19034615478565b613dfb91906151fb565b604051600081818185875af1925050503d8060008114613e37576040519150601f19603f3d011682016040523d82523d6000602084013e613e3c565b606091505b50509050806116735760405162461bcd60e51b81526004016113f79061545b565b6060613e67611502565b600b600c600d613e7630614881565b604051602001613e8a959493929190615b78565b604051602081830303815290604052905090565b6010546040516348378e4160e01b81526000600482018190526001600160a01b0385811660248401528481166044840152909216906348378e4190606401602060405180830381865afa158015613ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b2b9190615408565b60006002826008811115613f3357613f33614b4f565b613f3e906008615425565b6001600160a01b038516600090815260056020526040902054613f779291600160a01b90910465ffffffffffff1660ff9091161c6151c2565b65ffffffffffff16600114905092915050565b6001600160a01b0381166000908152600460205260408120546116dd90600290600160a01b900465ffffffffffff166151c2565b613fc66142b1565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b613ff06142b1565b6001600160a01b0381166140555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016113f7565b6117d7816143c7565b61406661430b565b601b546000036140b257601980546001600160a01b03841661010002610100600160a81b0319909116179055601a8190556001601b55601c80546001600160a01b031916331790555050565b601b5460010361423857601c546001600160a01b0316330361410a5760405162461bcd60e51b815260206004820152601160248201527063616e6e6f74207369676e20747769636560781b60448201526064016113f7565b6019546001600160a01b03838116610100909204161461415b5760405162461bcd60e51b815260206004820152600c60248201526b0e4c6ec40dad2e6dac2e8c6d60a31b60448201526064016113f7565b601a54811461419b5760405162461bcd60e51b815260206004820152600c60248201526b0c2dae840dad2e6dac2e8c6d60a31b60448201526064016113f7565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146141e8576040519150601f19603f3d011682016040523d82523d6000602084013e6141ed565b606091505b50509050806142305760405162461bcd60e51b815260206004820152600f60248201526e5061796d656e74206661696c65642160881b60448201526064016113f7565b61190261439a565b60405162461bcd60e51b815260206004820152600a602482015269696d706f737369626c6560b01b60448201526064016113f7565b6001600160a01b0381166000908152600460205260408120546132ce90600890600160a01b900460051c6507ffffffffff166151c2565b6142ac6142b1565b600855565b6000546001600160a01b03163314611dd65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016113f7565b3360009081526022602052604090205460ff16611dd65760405162461bcd60e51b815260206004820152600d60248201526c4e6f742061207369676e65722160981b60448201526064016113f7565b6010546001600160a01b03163314611dd65760405162461bcd60e51b81526020600482015260036024820152621b9cdb60ea1b60448201526064016113f7565b60198054610100600160a81b03191690556000601a819055601b55601c80546001600160a01b0319169055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b601d80546001600160a01b03199081169091556000601e819055601f805483169055602055602180549091169055565b60606000808311801561445b575060058311155b61448c5760405162461bcd60e51b8152602060048201526002602482015261686d60f01b60448201526064016113f7565b60003a4342446101006080600754901c6144a691906151e7565b6144b19060016150c5565b6144bb904361520f565b4030600160801b6007546144cf91906151e7565b6040805160208101989098528701959095526060860193909352608085019190915260a08401526001600160a01b031660c083015260e0820152610100016040516020818303038152906040528051906020012060001c90506000846001600160401b0381111561454257614542614d2f565b60405190808252806020026020018201604052801561456b578160200160208202803683370190505b50905060005b858110156145f757600861458682600a615478565b84901c61459391906151e7565b60088111156145a4576145a4614b4f565b8282815181106145b6576145b661548f565b602002602001019060088111156145cf576145cf614b4f565b908160088111156145e2576145e2614b4f565b905250806145ef816154c2565b915050614571565b5094909350915050565b6060600061460e83614898565b60010190506000816001600160401b0381111561462d5761462d614d2f565b6040519080825280601f01601f191660200182016040528015614657576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461466157509392505050565b6060600e6146bc6146a384611946565b60088111156146b4576146b4614b4f565b60ff16614601565b600f6040516020016146d093929190615c96565b6040516020818303038152906040529050919050565b606060006146f5836002615478565b6147009060026150c5565b6001600160401b0381111561471757614717614d2f565b6040519080825280601f01601f191660200182016040528015614741576020820181803683370190505b509050600360fc1b8160008151811061475c5761475c61548f565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061478b5761478b61548f565b60200101906001600160f81b031916908160001a90535060006147af846002615478565b6147ba9060016150c5565b90505b6001811115614832576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106147ee576147ee61548f565b1a60f81b8282815181106148045761480461548f565b60200101906001600160f81b031916908160001a90535060049490941c9361482b81615ccb565b90506147bd565b508315611b2b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016113f7565b60606113408261489084614970565b6001016146e6565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106148d75772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614903576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061492157662386f26fc10000830492506010015b6305f5e1008310614939576305f5e100830492506008015b612710831061494d57612710830492506004015b6064831061495f576064830492506002015b600a83106113405760010192915050565b600080608083901c156149885760809290921c916010015b604083901c1561499d5760409290921c916008015b602083901c156149b25760209290921c916004015b601083901c156149c75760109290921c916002015b600883901c156113405760010192915050565b6001600160a01b03811681146117d757600080fd5b600060208284031215614a0157600080fd5b8135611b2b816149da565b600060208284031215614a1e57600080fd5b81356001600160e01b031981168114611b2b57600080fd5b60005b83811015614a51578181015183820152602001614a39565b50506000910152565b60008151808452614a72816020860160208601614a36565b601f01601f19169290920160200192915050565b602081526000611b2b6020830184614a5a565b600060208284031215614aab57600080fd5b5035919050565b60008060408385031215614ac557600080fd5b8235614ad0816149da565b946020939093013593505050565b60008060208385031215614af157600080fd5b82356001600160401b0380821115614b0857600080fd5b818501915085601f830112614b1c57600080fd5b813581811115614b2b57600080fd5b866020828501011115614b3d57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052602160045260246000fd5b60098110614b7557614b75614b4f565b9052565b602081016113408284614b65565b600080600060608486031215614b9c57600080fd5b8335614ba7816149da565b92506020840135614bb7816149da565b929592945050506040919091013590565b60008083601f840112614bda57600080fd5b5081356001600160401b03811115614bf157600080fd5b6020830191508360208260051b8501011115614c0c57600080fd5b9250929050565b600981106117d757600080fd5b600080600060408486031215614c3557600080fd5b83356001600160401b03811115614c4b57600080fd5b614c5786828701614bc8565b9094509250506020840135614c6b81614c13565b809150509250925092565b60008060008060408587031215614c8c57600080fd5b84356001600160401b0380821115614ca357600080fd5b614caf88838901614bc8565b90965094506020870135915080821115614cc857600080fd5b50614cd587828801614bc8565b95989497509550505050565b80151581146117d757600080fd5b600080600060608486031215614d0457600080fd5b8335614d0f816149da565b92506020840135614d1f816149da565b91506040840135614c6b81614ce1565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614d6d57614d6d614d2f565b604052919050565b60006001600160401b03821115614d8e57614d8e614d2f565b50601f01601f191660200190565b6000614daf614daa84614d75565b614d45565b9050828152838383011115614dc357600080fd5b828260208301376000602084830101529392505050565b600060208284031215614dec57600080fd5b81356001600160401b03811115614e0257600080fd5b8201601f81018413614e1357600080fd5b614e2284823560208401614d9c565b949350505050565b600060208284031215614e3c57600080fd5b813560048110611b2b57600080fd5b60008060208385031215614e5e57600080fd5b82356001600160401b03811115614e7457600080fd5b614e8085828601614bc8565b90969095509350505050565b600080600060608486031215614ea157600080fd5b8335614eac816149da565b9250602084013591506040840135614c6b816149da565b60008060008060008060608789031215614edc57600080fd5b86356001600160401b0380821115614ef357600080fd5b614eff8a838b01614bc8565b90985096506020890135915080821115614f1857600080fd5b614f248a838b01614bc8565b90965094506040890135915080821115614f3d57600080fd5b50614f4a89828a01614bc8565b979a9699509497509295939492505050565b6020810160048310614f7057614f70614b4f565b91905290565b60008060408385031215614f8957600080fd5b8235614f94816149da565b91506020830135614fa481614ce1565b809150509250929050565b60008060008060808587031215614fc557600080fd5b8435614fd0816149da565b93506020850135614fe0816149da565b92506040850135915060608501356001600160401b0381111561500257600080fd5b8501601f8101871361501357600080fd5b61502287823560208401614d9c565b91505092959194509250565b6000806040838503121561504157600080fd5b823591506020830135614fa4816149da565b6000806040838503121561506657600080fd5b8235615071816149da565b91506020830135614fa4816149da565b6000806040838503121561509457600080fd5b823561509f816149da565b91506020830135614fa481614c13565b634e487b7160e01b600052601160045260246000fd5b80820180821115611340576113406150af565b65ffffffffffff8181168382160190808211156150f7576150f76150af565b5092915050565b6001600160a01b03868116825260a082019061511d6020840188614b65565b8560408401528460608401528084166080840152509695505050505050565b60006020828403121561514e57600080fd5b5051919050565b600181811c9082168061516957607f821691505b60208210810361518957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156151a157600080fd5b8151611b2b816149da565b634e487b7160e01b600052601260045260246000fd5b600065ffffffffffff808416806151db576151db6151ac565b92169190910692915050565b6000826151f6576151f66151ac565b500690565b60008261520a5761520a6151ac565b500490565b81810381811115611340576113406150af565b601f82111561190257600081815260208120601f850160051c810160208610156152495750805b601f850160051c820191505b8181101561167357828155600101615255565b6001600160401b0383111561527f5761527f614d2f565b6152938361528d8354615155565b83615222565b6000601f8411600181146152c757600085156152af5750838201355b600019600387901b1c1916600186901b17835561240f565b600083815260209020601f19861690835b828110156152f857868501358255602094850194600190920191016152d8565b50868210156153155760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60006020828403121561533957600080fd5b8151611b2b81614c13565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208082528181018390526000906040600585901b8401810190840186845b878110156153fb57868403603f190183528135368a9003601e190181126153b257600080fd5b890185810190356001600160401b038111156153cd57600080fd5b8036038213156153dc57600080fd5b6153e7868284615344565b95505050918401919084019060010161538c565b5091979650505050505050565b60006020828403121561541a57600080fd5b8151611b2b81614ce1565b60ff8181168382160190811115611340576113406150af565b60208082526003908201526270663160e81b604082015260600190565b60208082526003908201526238331960e91b604082015260600190565b8082028115828204841417611340576113406150af565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156154b757600080fd5b8135611b2b81614c13565b6000600182016154d4576154d46150af565b5060010190565b6000602082840312156154ed57600080fd5b81516001600160401b0381111561550357600080fd5b8201601f8101841361551457600080fd5b8051615522614daa82614d75565b81815285602083850101111561553757600080fd5b615548826020830160208601614a36565b95945050505050565b81516001600160401b0381111561556a5761556a614d2f565b61557e816155788454615155565b84615222565b602080601f8311600181146155b3576000841561559b5750858301515b600019600386901b1c1916600185901b178555611673565b600085815260208120601f198616915b828110156155e2578886015182559484019460019091019084016155c3565b50858210156156005787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561562257600080fd5b81516001600160401b0381168114611b2b57600080fd5b6001600160a01b0386811682528581166020830152841660408201526060810183905260a06080820181905260009061567490830184614a5a565b979650505050505050565b60008151615691818560208601614a36565b9290920192915050565b7f646174613a696d6167652f7376672b786d6c3b757466382c00000000000000008152600082516156d3816018850160208701614a36565b9190910160180192915050565b600081546156ed81615155565b60018281168015615705576001811461571a57615749565b60ff1984168752821515830287019450615749565b8560005260208060002060005b858110156157405781548a820152908401908201615727565b50505082870194505b5050505092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d81526a65223a224865617274202360a81b60208201526000845161579f81602b850160208901614a36565b61088b60f21b602b918401918201527f226465736372697074696f6e223a225468697320697320612000000000000000602d8201526157e160468201866156e0565b90507f2048656172742e20497427732064616e6765726f757320746f20676f20616c6f8152641b994b888b60da1b6020820152681134b6b0b3b2911d1160b91b6025820152835161583981602e840160208801614a36565b01602e0195945050505050565b60008651615858818460208b01614a36565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a22489083019081527432b0b93a1021b7b637b91116113b30b63ab2911d1160591b60208201526158aa60358201886156e0565b90507f227d2c7b2274726169745f74797065223a2247656e6f6d65222c2276616c7565815262111d1160e91b602082015285516158ee816023840160208a01614a36565b7f227d2c7b2274726169745f74797065223a224c696e6561676520506172656e74602392909101918201526a1116113b30b63ab2911d1160a91b6043820152845161594081604e840160208901614a36565b7f227d2c7b2274726169745f74797065223a224c696e6561676520446570746822604e92909101918201526916113b30b63ab2911d1160b11b606e82015261598b607882018561567f565b98975050505050505050565b600086516159a9818460208b01614a36565b80830190507f227d2c7b2274726169745f74797065223a224e756d626572206f66204368696c81526e323932b71116113b30b63ab2911d1160891b602082015286516159fc81602f840160208b01614a36565b7f227d2c7b2274726169745f74797065223a2245787069726174696f6e20446174602f92909101918201527f65222c22646973706c61795f74797065223a2264617465222c2276616c756522604f820152611d1160f11b606f8201528551615a6b816071840160208a01614a36565b61227d60f01b607192909101918201528451615a8e816073840160208901614a36565b615af9615aeb615ae56073848601017f5d2c2265787465726e616c5f75726c223a2268747470733a2f2f6865617274738152752e7669727475652e7774662f6865617274733f69643d60501b602082015260360190565b8761567f565b61227d60f01b815260020190565b9998505050505050505050565b81835260006001600160fb1b03831115615b1f57600080fd5b8260051b80836020870137939093016020019392505050565b602081526000614e22602083018486615b06565b604081526000615b60604083018587615b06565b905060018060a01b0383166020830152949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d81526332911d1160e11b602082015260008651615bbd816024850160208b01614a36565b61088b60f21b60249184019182018190526e113232b9b1b934b83a34b7b7111d1160891b6026830152615bf360358301896156e0565b818152681134b6b0b3b2911d1160b91b60028201529150615c17600b8301886156e0565b818152701132bc3a32b93730b62fb634b735911d1160791b60028201529150615c4360138301876156e0565b9081527f2273656c6c65725f6665655f62617369735f706f696e7473223a3530302c226660028201526e32b2afb932b1b4b834b2b73a111d1160891b6022820152905061598b615aeb603183018661567f565b6000615ca282866156e0565b602f60f81b81528451615cbc816001840160208901614a36565b615674600182840101866156e0565b600081615cda57615cda6150af565b50600019019056fea2646970667358221220db861b917532e1631a48a7265e39d68bfca05a3e889e3f03084c95b1cf298b2864736f6c634300081100330000000000000000000000006c5a06ae6b773457480c12f12c2fb22627507a3a000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002800000000000000000000000004d57cfdfb2ba11e4308ae338ae8898695364ddbe000000000000000000000000c7d7b0e5c614575beb2437a937071f667bfbf21a00000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000001556697274756520486561727473202d205374696c6c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000856482e5354494c4c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000355374696c6c204865617274732061726520696e7669746174696f6e7320746f20746865205669727475652065636f73797374656d2e0000000000000000000000000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f747769747465722e636f6d2f5669727475655f4c6162732f70686f746f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f747769747465722e636f6d2f5669727475655f4c616273000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000236e5fc476d2f944ce441c50faf158a0a55fed0400000000000000000000000018129859aa128ed114dc2ae70739015bfe28b23f

Deployed Bytecode

0x6080604052600436106105fe5760003560e01c80637d366c761161030e578063c12c8c651161019b578063e340f90f116100e7578063f2c5e640116100a0578063f430f8241161007a578063f430f8241461122f578063f4a0a5281461124f578063fae3da981461126f578063fb302f7b1461128f57600080fd5b8063f2c5e640146111cf578063f2fde38b146111ef578063f3fef3a31461120f57600080fd5b8063e340f90f14611127578063e76430c81461113a578063e8a3d4851461115a578063e985e9c51461116f578063ef178d851461118f578063f0cd5945146111af57600080fd5b8063d23c4a8b11610154578063d9548e531161012e578063d9548e53146110b2578063dc8e92ea146110d2578063de79671a146110f2578063e2c6875c1461111257600080fd5b8063d23c4a8b1461105c578063d4c8589e1461107c578063d831a7c61461109257600080fd5b8063c12c8c6514610f8d578063c47f002714610fad578063c4f95d0214610fcd578063c87b56dd14610fe3578063c8ced35514611003578063cfa3c1321461103c57600080fd5b80639723b77f1161025a578063a718dee811610213578063b260c42a116101ed578063b260c42a14610f1a578063b5c7e9eb14610f2d578063b84c824614610f4d578063b88d4fde14610f6d57600080fd5b8063a718dee814610ec4578063ac1ff6eb14610ee4578063b0e306ef14610efa57600080fd5b80639723b77f14610dfd5780639bc5c50914610e1d5780639d1172ea14610e3d5780639da3f8fd14610e5d578063a22cb46514610e84578063a469997714610ea457600080fd5b80638da5cb5b116102c75780639471302e116102a15780639471302e14610d9357806395d89b4114610db357806395db751514610dc857806396109e9114610ddd57600080fd5b80638da5cb5b14610d1d578063935c9eb714610d3b578063942c385d14610d5b57600080fd5b80637d366c7614610c735780637fe8120c14610c93578063814c8c5514610cb357806383cea47714610cd357806387a85d1d14610ce85780638acd9f8b14610cfd57600080fd5b80633febacd21161048c5780635b9db898116103d85780636c0ad59f11610391578063715018a61161036b578063715018a614610bee57806371adb5e614610c03578063736c0d5b14610c235780637bf4303514610c5357600080fd5b80636c0ad59f14610b985780636d4ebfe714610bb857806370a0823114610bce57600080fd5b80635b9db89814610aed5780636103596f14610b025780636352211e14610b2257806365bf552214610b42578063662d965614610b625780636817c76c14610b8257600080fd5b80634bc54bee1161044557806351d022d91161041f57806351d022d914610a7757806353c7bc6314610a9757806355c45fbe14610aad5780635687f2b814610acd57600080fd5b80634bc54bee14610a175780634f558e7914610a375780634f6ccce714610a5757600080fd5b80633febacd2146109805780634024bd6a1461099557806342842e0e1461099d57806342966c68146109bd578063464fa857146109dd57806348ac7ce114610a0257600080fd5b80631efbe9281161054b5780632eefe76511610504578063346e5525116104de578063346e55251461090057806336f7b6321461092057806337669b9d14610940578063399fac071461096057600080fd5b80632eefe765146108a05780632f745c59146108c05780633176de09146108e057600080fd5b80631efbe928146107d35780631f917921146107f357806322b3fa0714610813578063239947291461083357806323b872dd1461086057806323de66511461088057600080fd5b8063095ea7b3116105b857806313e5872e1161059257806313e5872e1461075057806314055fd114610770578063164ce3eb1461079057806318160ddd146107b057600080fd5b8063095ea7b3146106f05780630af79889146107105780631141ed6a1461073057600080fd5b8062f62eea1461060a57806301ffc9a71461062c57806303567f43146106615780630594da2a1461067657806306fdde03146106ae578063081812fc146106d057600080fd5b3661060557005b600080fd5b34801561061657600080fd5b5061062a6106253660046149ef565b6112af565b005b34801561063857600080fd5b5061064c610647366004614a0c565b6112d9565b60405190151581526020015b60405180910390f35b34801561066d57600080fd5b5061062a611346565b34801561068257600080fd5b50601354610696906001600160a01b031681565b6040516001600160a01b039091168152602001610658565b3480156106ba57600080fd5b506106c3611502565b6040516106589190614a86565b3480156106dc57600080fd5b506106966106eb366004614a99565b611594565b3480156106fc57600080fd5b5061062a61070b366004614ab2565b61160a565b34801561071c57600080fd5b50601654610696906001600160a01b031681565b34801561073c57600080fd5b5061062a61074b3660046149ef565b61167b565b34801561075c57600080fd5b5061064c61076b3660046149ef565b6116a5565b34801561077c57600080fd5b5061062a61078b366004614a99565b6116ef565b34801561079c57600080fd5b5061062a6107ab3660046149ef565b6117da565b3480156107bc57600080fd5b506107c5611804565b604051908152602001610658565b3480156107df57600080fd5b506107c56107ee366004614a99565b611877565b3480156107ff57600080fd5b5061062a61080e366004614ade565b6118ed565b34801561081f57600080fd5b5061062a61082e3660046149ef565b611907565b34801561083f57600080fd5b5061085361084e366004614a99565b611946565b6040516106589190614b79565b34801561086c57600080fd5b5061062a61087b366004614b87565b6119bb565b34801561088c57600080fd5b5061062a61089b366004614b87565b611a35565b3480156108ac57600080fd5b506107c56108bb3660046149ef565b611a83565b3480156108cc57600080fd5b506107c56108db366004614ab2565b611aad565b3480156108ec57600080fd5b506107c56108fb366004614a99565b611b32565b34801561090c57600080fd5b5061062a61091b366004614c20565b611b6b565b34801561092c57600080fd5b5061062a61093b366004614a99565b611d80565b34801561094c57600080fd5b5061062a61095b3660046149ef565b611d9c565b34801561096c57600080fd5b50600254610696906001600160a01b031681565b34801561098c57600080fd5b5061062a611dc6565b61062a611dd8565b3480156109a957600080fd5b5061062a6109b8366004614b87565b6121fc565b3480156109c957600080fd5b5061062a6109d8366004614a99565b612243565b3480156109e957600080fd5b506019546106969061010090046001600160a01b031681565b348015610a0e57600080fd5b506106c3612416565b348015610a2357600080fd5b50601054610696906001600160a01b031681565b348015610a4357600080fd5b5061064c610a52366004614a99565b6124a4565b348015610a6357600080fd5b506107c5610a72366004614a99565b612519565b348015610a8357600080fd5b5061062a610a92366004614c76565b612552565b348015610aa357600080fd5b506107c5601e5481565b348015610ab957600080fd5b5061062a610ac8366004614cef565b61287c565b348015610ad957600080fd5b5061062a610ae8366004614b87565b6128d8565b348015610af957600080fd5b506106c3612926565b348015610b0e57600080fd5b50601f54610696906001600160a01b031681565b348015610b2e57600080fd5b50610696610b3d366004614a99565b612933565b348015610b4e57600080fd5b5061064c610b5d3660046149ef565b61296c565b348015610b6e57600080fd5b506106c3610b7d366004614a99565b6129a3565b348015610b8e57600080fd5b506107c560085481565b348015610ba457600080fd5b5061062a610bb3366004614dda565b612a1c565b348015610bc457600080fd5b506107c560205481565b348015610bda57600080fd5b506107c5610be93660046149ef565b612a34565b348015610bfa57600080fd5b5061062a612a6f565b348015610c0f57600080fd5b5061062a610c1e366004614ade565b612a81565b348015610c2f57600080fd5b5061064c610c3e3660046149ef565b60226020526000908152604090205460ff1681565b348015610c5f57600080fd5b50600154610696906001600160a01b031681565b348015610c7f57600080fd5b5061064c610c8e3660046149ef565b612a96565b348015610c9f57600080fd5b5061062a610cae3660046149ef565b612aca565b348015610cbf57600080fd5b5061062a610cce366004614e2a565b612af4565b348015610cdf57600080fd5b506106c3612b8c565b348015610cf457600080fd5b5061062a612b99565b348015610d0957600080fd5b50610853610d183660046149ef565b612ba9565b348015610d2957600080fd5b506000546001600160a01b0316610696565b348015610d4757600080fd5b5061062a610d56366004614e4b565b612bf9565b348015610d6757600080fd5b50610d7b610d76366004614a99565b612e59565b6040516001600160401b039091168152602001610658565b348015610d9f57600080fd5b5061062a610dae366004614ade565b612ece565b348015610dbf57600080fd5b506106c3612ee3565b348015610dd457600080fd5b506106c3612ef2565b348015610de957600080fd5b50601d54610696906001600160a01b031681565b348015610e0957600080fd5b5061062a610e18366004614dda565b612eff565b348015610e2957600080fd5b5061062a610e38366004614e8c565b612f13565b348015610e4957600080fd5b5061062a610e58366004614ec3565b613155565b348015610e6957600080fd5b50601954610e779060ff1681565b6040516106589190614f5c565b348015610e9057600080fd5b5061062a610e9f366004614f76565b61321f565b348015610eb057600080fd5b50610853610ebf3660046149ef565b61325f565b348015610ed057600080fd5b506107c5610edf3660046149ef565b613296565b348015610ef057600080fd5b506107c560145481565b348015610f0657600080fd5b50602154610696906001600160a01b031681565b61062a610f28366004614a99565b6132dc565b348015610f3957600080fd5b506107c5610f48366004614a99565b613568565b348015610f5957600080fd5b5061062a610f68366004614ade565b6135a1565b348015610f7957600080fd5b5061062a610f88366004614faf565b6135b6565b348015610f9957600080fd5b506107c5610fa8366004614a99565b61361c565b348015610fb957600080fd5b5061062a610fc8366004614ade565b613657565b348015610fd957600080fd5b506107c5601b5481565b348015610fef57600080fd5b506106c3610ffe366004614a99565b61366c565b34801561100f57600080fd5b5061069661101e3660046149ef565b6001600160a01b039081166000908152600460205260409020541690565b34801561104857600080fd5b50610696611057366004614a99565b6138a3565b34801561106857600080fd5b506107c561107736600461502e565b6138dc565b34801561108857600080fd5b506107c5601a5481565b34801561109e57600080fd5b506107c56110ad366004614a99565b613948565b3480156110be57600080fd5b5061064c6110cd366004614a99565b613969565b3480156110de57600080fd5b5061062a6110ed366004614e4b565b613991565b3480156110fe57600080fd5b50601c54610696906001600160a01b031681565b34801561111e57600080fd5b506106c3613b82565b61062a611135366004614e4b565b613b8f565b34801561114657600080fd5b50601154610696906001600160a01b031681565b34801561116657600080fd5b506106c3613e5d565b34801561117b57600080fd5b5061064c61118a366004615053565b613e9e565b34801561119b57600080fd5b5061064c6111aa366004615081565b613f1d565b3480156111bb57600080fd5b5061064c6111ca3660046149ef565b613f8a565b3480156111db57600080fd5b5061062a6111ea3660046149ef565b613fbe565b3480156111fb57600080fd5b5061062a61120a3660046149ef565b613fe8565b34801561121b57600080fd5b5061062a61122a366004614ab2565b61405e565b34801561123b57600080fd5b506107c561124a3660046149ef565b61426d565b34801561125b57600080fd5b5061062a61126a366004614a99565b6142a4565b34801561127b57600080fd5b50600354610696906001600160a01b031681565b34801561129b57600080fd5b50601254610696906001600160a01b031681565b6112b76142b1565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061130a57506001600160e01b03198216635b5e139f60e01b145b8061132557506001600160e01b0319821663780e9d6360e01b145b8061134057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000600160195460ff16600381111561136157611361614b4f565b14806113985750600060195460ff16600381111561138157611381614b4f565b14801561139857506000546001600160a01b031633145b905060006113a53361296c565b905060006113b233613296565b60051490508215806113c15750815b806113ca575080155b15611400576040516307527edd60e41b815283151560048201528215602482015281151560448201526064015b60405180910390fd5b3360009081526006602052604081208054600192906114209084906150c5565b9091555050336000908152600560205260409020805460109190601490611457908490600160a01b900465ffffffffffff166150d8565b825465ffffffffffff9182166101009390930a9283029190920219909116179055506010546001600160a01b031663f1a5daf63361149481612ba9565b60008060006040518663ffffffff1660e01b81526004016114b99594939291906150fe565b6020604051808303816000875af11580156114d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fc919061513c565b50505050565b60606009805461151190615155565b80601f016020809104026020016040519081016040528092919081815260200182805461153d90615155565b801561158a5780601f1061155f5761010080835404028352916020019161158a565b820191906000526020600020905b81548152906001019060200180831161156d57829003601f168201915b5050505050905090565b60105460405163ce07506160e01b815260006004820181905260248201849052916001600160a01b03169063ce075061906044015b602060405180830381865afa1580156115e6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611340919061518f565b6010546040516316a9d09160e11b81523360048201526001600160a01b0384811660248301526044820184905290911690632d53a122906064015b600060405180830381600087803b15801561165f57600080fd5b505af1158015611673573d6000803e3d6000fd5b505050505050565b6116836142b1565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811660009081526004602081905260408220546116dd91600291600160a01b9004901c650fffffffffff166151c2565b65ffffffffffff166001149050919050565b6116f881612933565b6001600160a01b0316336001600160a01b03161461173c5760405162461bcd60e51b81526020600482015260016024820152606f60f81b60448201526064016113f7565b6117458161361c565b60000361179457611758610100826151e7565b6001901b6017600061176c610100856151fb565b8152602001908152602001600020600082825461178991906150c5565b909155506117d79050565b6117a0610100826151e7565b6001901b601760006117b4610100856151fb565b815260200190815260200160002060008282546117d1919061520f565b90915550505b50565b6117e26142b1565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6010546040516396c9e64360e01b8152600060048201819052916001600160a01b0316906396c9e64390602401602060405180830381865afa15801561184e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611872919061513c565b905090565b6010546040516376e9427560e01b815260006004820181905260248201849052916001600160a01b0316906376e94275906044015b602060405180830381865afa1580156118c9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611340919061513c565b6118f56142b1565b600d611902828483615268565b505050565b61190f61430b565b33600090815260226020526040808220805460ff199081169091556001600160a01b03939093168252902080549091166001179055565b60105460405163fd5699df60e01b815260006004820181905260248201849052916001600160a01b03169063fd5699df90604401602060405180830381865afa158015611997573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190615327565b601054604051636225746760e01b81523360048201526001600160a01b038581166024830152848116604483015260648201849052909116906362257467906084015b600060405180830381600087803b158015611a1857600080fd5b505af1158015611a2c573d6000803e3d6000fd5b50505050505050565b611a3d61435a565b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001600160a01b0316600090815260046020526040902054600160d01b900465ffffffffffff1690565b6010546040516336bdf74760e01b81526000600482018190526001600160a01b03858116602484015260448301859052909216906336bdf74790606401602060405180830381865afa158015611b07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b2b919061513c565b9392505050565b60105460405163b95ad62160e01b815260006004820181905260248201849052916001600160a01b03169063b95ad621906044016118ac565b336000818152600560205260408082205460015491516370a0823160e01b81526004810194909452600160a01b900465ffffffffffff16159282916001600160a01b0316906370a0823190602401602060405180830381865afa158015611bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfa919061513c565b600254604051630d040a9760e41b81529290911192506001600160a01b0316801515916000919063d040a97090611c37908a908a9060040161536d565b602060405180830381865afa158015611c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c789190615408565b905060006008866008811115611c9057611c90614b4f565b14159050848015611c9e5750835b8015611ca75750825b8015611cb05750815b8015611cb95750805b611cfa5760405163383c5a8b60e01b81528515156004820152841515602482015283151560448201528215156064820152811515608482015260a4016113f7565b6001866008811115611d0e57611d0e614b4f565b60ff16901b6001611d1f9190615425565b336000908152600560205260409020805460ff9290921691601490611d54908490600160a01b900465ffffffffffff166150d8565b92506101000a81548165ffffffffffff021916908365ffffffffffff1602179055505050505050505050565b611d886142b1565b611770811115611d9757600080fd5b601455565b611da46142b1565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b611dce61430b565b611dd661439a565b565b6000600160195460ff166003811115611df357611df3614b4f565b1490506000611e0133613f8a565b90506000611e0e336116a5565b90506000611e1b3361426d565b6005149050600060085434149050848015611e335750835b8015611e3d575082155b8015611e465750815b8015611e4f5750805b611e8f57604051631b7d407160e11b815285151560048201528415156024820152831560448201528215156064820152811515608482015260a4016113f7565b336000908152600660205260408120805460019290611eaf9084906150c5565b9091555050336000908152600460205260409020805460109190601490611ee6908490600160a01b900465ffffffffffff166150d8565b825465ffffffffffff9182166101009390930a9283029190920219909116179055506010546000906001600160a01b031663f1a5daf633611f268161325f565b6000611f3133611a83565b336000908152600460205260409020546001600160a01b03166040518663ffffffff1660e01b8152600401611f6a9594939291906150fe565b6020604051808303816000875af1158015611f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fad919061513c565b6011549091506001600160a01b031663a0759b1a611fcc600a346151fb565b836040518363ffffffff1660e01b8152600401611feb91815260200190565b6000604051808303818588803b15801561200457600080fd5b505af1158015612018573d6000803e3d6000fd5b5050336000908152600460205260408120549093506001600160a01b0316915061204590506005346151fb565b604051600081818185875af1925050503d8060008114612081576040519150601f19603f3d011682016040523d82523d6000602084013e612086565b606091505b50509050806120a75760405162461bcd60e51b81526004016113f79061543e565b6012546001600160a01b031615612136576012546000906001600160a01b03166120d2600a346151fb565b604051600081818185875af1925050503d806000811461210e576040519150601f19603f3d011682016040523d82523d6000602084013e612113565b606091505b50509050806121345760405162461bcd60e51b81526004016113f79061545b565b505b6013546001600160a01b031615611a2c5760145415611a2c576013546014546000916001600160a01b031690612710906121709034615478565b61217a91906151fb565b604051600081818185875af1925050503d80600081146121b6576040519150601f19603f3d011682016040523d82523d6000602084013e6121bb565b606091505b50509050806121f25760405162461bcd60e51b815260206004820152600360248201526270663360e81b60448201526064016113f7565b5050505050505050565b6010546040516312f20cb560e01b81523360048201526001600160a01b038581166024830152848116604483015260648201849052909116906312f20cb5906084016119fe565b6010546040516359a8860760e01b8152600160048201523360248201526000916001600160a01b0316906359a8860790604401602060405180830381865afa158015612293573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b7919061513c565b116122fa5760405162461bcd60e51b81526020600482015260136024820152723732b2b21030b1ba34bb32901e1993b997171760691b60448201526064016113f7565b60155461230682612e59565b612319906001600160401b03164261520f565b116123515760405162461bcd60e51b815260206004820152600860248201526732bc382fb13ab93760c11b60448201526064016113f7565b601054604051635bd222bf60e01b8152600481018390526001600160a01b0390911690635bd222bf90602401600060405180830381600087803b15801561239757600080fd5b505af11580156123ab573d6000803e3d6000fd5b5050601154604051630c28a77960e41b8152600481018590523360248201526001600160a01b03909116925063c28a77909150604401600060405180830381600087803b1580156123fb57600080fd5b505af115801561240f573d6000803e3d6000fd5b5050505050565b600c805461242390615155565b80601f016020809104026020016040519081016040528092919081815260200182805461244f90615155565b801561249c5780601f106124715761010080835404028352916020019161249c565b820191906000526020600020905b81548152906001019060200180831161247f57829003601f168201915b505050505081565b601054604051636a6c7a0160e11b815260006004820181905260248201849052916001600160a01b03169063d4d8f40290604401602060405180830381865afa1580156124f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190615408565b6010546040516375fd65a960e11b815260006004820181905260248201849052916001600160a01b03169063ebfacb52906044016118ac565b600061255d33612a96565b9050838214600060058661257033613296565b61257a91906150c5565b11159050600061258933612ba9565b90506000600180828181805b8d8110156127735760008f8f838181106125b1576125b161548f565b90506020020160208101906125c691906149ef565b905060008e8e848181106125dc576125dc61548f565b90506020020160208101906125f191906154a5565b9050838061260457506126043382613f1d565b9350878015612635575089600881111561262057612620614b4f565b81600881111561263257612632614b4f565b14155b97508680156126565750600881600881111561265357612653614b4f565b14155b96508580612668575061266882613f8a565b955084801561268057506001600160a01b0382163314155b945080600881111561269457612694614b4f565b61269f906008615425565b60ff166001901b896126b191906150c5565b98506001808260088111156126c8576126c8614b4f565b60ff16901b60ff16816126db91906150c5565b6001600160a01b0393841660008181526004602081815260408084208151606081018352815465ffffffffffff988916828601908152338352600194830194855297909652939092529151935191518516600160d01b026001600160d01b0392909516600160a01b026001600160d01b031990931693909716929092171716179092555081905061276b816154c2565b915050612595565b5089801561277e5750885b80156127875750875b80156127905750845b80156127995750835b80156127a3575082155b80156127ac5750815b80156127b6575080155b61280e576040516367266c8d60e01b81528a151560048201528915156024820152881515604482015285151560648201528415156084820152831560a482015282151560c4820152811560e4820152610104016113f7565b61281c60058e901b876150c5565b336000908152600560205260409020805460149061284a908490600160a01b900465ffffffffffff166150d8565b92506101000a81548165ffffffffffff021916908365ffffffffffff1602179055505050505050505050505050505050565b61288461435a565b816001600160a01b0316836001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128cb911515815260200190565b60405180910390a3505050565b6128e061435a565b80826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600d805461242390615155565b60105460405163485a716760e11b815260006004820181905260248201849052916001600160a01b0316906390b4e2ce906044016115c9565b6001600160a01b0381166000908152600560205260408120546116dd90600290600160a01b900460041c650fffffffffff166151c2565b601054604051635159769360e01b815260006004820152602481018390526060916001600160a01b031690635159769390604401600060405180830381865afa1580156129f4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261134091908101906154db565b612a246142b1565b600e612a308282615551565b5050565b6010546040516359a8860760e01b81526000600482018190526001600160a01b038481166024840152909216906359a88607906044016118ac565b612a776142b1565b611dd660006143c7565b612a896142b1565b600c611902828483615268565b6001600160a01b0381166000908152600560205260408120546116dd90600290600160a01b900465ffffffffffff166151c2565b612ad26142b1565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b612afc6142b1565b6000816003811115612b1057612b10614b4f565b03612b425760405162461bcd60e51b81526020600482015260026024820152616d7360f01b60448201526064016113f7565b600360195460ff166003811115612b5b57612b5b614b4f565b03612b6557600080fd5b6019805482919060ff19166001836003811115612b8457612b84614b4f565b021790555050565b600f805461242390615155565b612ba161430b565b611dd6614417565b6001600160a01b038116600090815260056020526040812054612be090600890600160a01b900460011c657fffffffffff166151c2565b65ffffffffffff16600881111561134057611340614b4f565b600080612c0533613f8a565b90506000600584612c153361426d565b612c1f91906150c5565b11159050600080612c2f86614447565b91509150806007541860011760078190555060005b86811015612db4576000888883818110612c6057612c6061548f565b9050602002016020810190612c7591906149ef565b90506000848381518110612c8b57612c8b61548f565b602002602001015190508780612ca55750612ca582613f8a565b9750600180826008811115612cbc57612cbc614b4f565b60ff16901b60ff1681612ccf91906150c5565b6001600160a01b03841660009081526004602090815260409182902082516060810184529054600160d01b900465ffffffffffff90811693820193909352918316908201523380825291925090612d2590611a83565b612d309060016150d8565b65ffffffffffff90811660408381019182526001600160a01b039687166000908152600460209081529190208451815492909501519251949097166001600160d01b031990911617600160a01b91831691909102176001600160d01b0316600160d01b92909116919091021790925550819050612dac816154c2565b915050612c44565b508480612dbf575083155b80612dc8575082155b15612df95760405163345536b360e01b815285156004820152841515602482015283151560448201526064016113f7565b3360009081526004602052604090208054600588901b9190601490612e2e908490600160a01b900465ffffffffffff166150d8565b92506101000a81548165ffffffffffff021916908365ffffffffffff16021790555050505050505050565b60105460405163b3de00e160e01b815260006004820181905260248201849052916001600160a01b03169063b3de00e190604401602060405180830381865afa158015612eaa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113409190615610565b612ed66142b1565b600b611902828483615268565b6060600a805461151190615155565b600e805461242390615155565b612f076142b1565b600f612a308282615551565b612f1b61430b565b602054600003612f6b57601d80546001600160a01b039485166001600160a01b031991821617909155601e92909255601f8054919093169082161790915560016020556021805490911633179055565b60205460010361311e576021546001600160a01b03163303612fc35760405162461bcd60e51b815260206004820152601160248201527063616e6e6f74207369676e20747769636560781b60448201526064016113f7565b601d546001600160a01b038481169116146130115760405162461bcd60e51b815260206004820152600e60248201526d0e8bee4c6ec40dad2e6dac2e8c6d60931b60448201526064016113f7565b601e5482146130535760405162461bcd60e51b815260206004820152600e60248201526d0e8bec2dae840dad2e6dac2e8c6d60931b60448201526064016113f7565b601f546001600160a01b038281169116146130a25760405162461bcd60e51b815260206004820152600f60248201526e0e8bec2c8c8e440dad2e6dac2e8c6d608b1b60448201526064016113f7565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905282169063a9059cbb906044016020604051808303816000875af11580156130f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131159190615408565b50611902614417565b60405162461bcd60e51b815260206004820152600c60248201526b745f696d706f737369626c6560a01b60448201526064016113f7565b61315d61435a565b60005b85811015611a2c5782828281811061317a5761317a61548f565b905060200201358585838181106131935761319361548f565b90506020020160208101906131a891906149ef565b6001600160a01b03168888848181106131c3576131c361548f565b90506020020160208101906131d891906149ef565b6001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480613217816154c2565b915050613160565b60105460405163045a04cb60e21b81523360048201526001600160a01b038481166024830152831515604483015290911690631168132c90606401611645565b6001600160a01b038116600090815260046020526040812054612be090600890600160a01b900460011c657fffffffffff166151c2565b6001600160a01b03811660009081526005602081905260408220546132ce91600891600160a01b9004901c6507ffffffffff166151c2565b65ffffffffffff1692915050565b600854336000908152600660205260409020541561332c57600854613301908261520f565b336000908152600660205260408120805492935060019290919061332690849061520f565b90915550505b8034146133645760405162461bcd60e51b81526004016113f7906020808252600490820152631c995add60e21b604082015260600190565b601054604051633d7a938d60e21b8152600481018490526001600160a01b039091169063f5ea4e3490602401600060405180830381600087803b1580156133aa57600080fd5b505af11580156133be573d6000803e3d6000fd5b50506011546001600160a01b0316915063a0759b1a90506133e0600a346151fb565b846040518363ffffffff1660e01b81526004016133ff91815260200190565b6000604051808303818588803b15801561341857600080fd5b505af115801561342c573d6000803e3d6000fd5b50506012546001600160a01b03161592506134c2915050576012546000906001600160a01b031661345e600a346151fb565b604051600081818185875af1925050503d806000811461349a576040519150601f19603f3d011682016040523d82523d6000602084013e61349f565b606091505b50509050806134c05760405162461bcd60e51b81526004016113f79061543e565b505b6013546001600160a01b031615612a305760145415612a30576013546014546000916001600160a01b031690612710906134fc9034615478565b61350691906151fb565b604051600081818185875af1925050503d8060008114613542576040519150601f19603f3d011682016040523d82523d6000602084013e613547565b606091505b50509050806119025760405162461bcd60e51b81526004016113f79061545b565b60105460405163f466544960e01b815260006004820181905260248201849052916001600160a01b03169063f4665449906044016118ac565b6135a96142b1565b600a611902828483615268565b601054604051637d70630160e01b81526001600160a01b0390911690637d706301906135ee9033908890889088908890600401615639565b600060405180830381600087803b15801561360857600080fd5b505af11580156121f2573d6000803e3d6000fd5b6000600261362c610100846151e7565b6017600061363c610100876151fb565b815260200190815260200160002054901c61134091906151e7565b61365f6142b1565b6009611902828483615268565b6060600061367983611946565b9050600061368684614601565b6018600084600881111561369c5761369c614b4f565b60ff1681526020019081526020016000206136b68661361c565b156136c9576136c486614693565b61375e565b601654604051630e0e46b760e41b81526001600160a01b039091169063e0e46b70906136f9908790600401614b79565b600060405180830381865afa158015613716573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261373e91908101906154db565b60405160200161374e919061569b565b6040516020818303038152906040525b60405160200161377093929190615753565b6040516020818303038152906040529050806018600084600881111561379857613798614b4f565b60ff1681526020019081526020016000206137b2866129a3565b6137cf60146137c0896138a3565b6001600160a01b0316906146e6565b6137e06137db89611877565b614601565b6040516020016137f4959493929190615846565b6040516020818303038152906040529050806138126137db86611b32565b61381e6137db87613948565b61382787613969565b613840576040518060200160405280600081525061386e565b604051806040016040528060148152602001732c7b2276616c7565223a2245787069726564227d60601b8152505b61387788614601565b60405160200161388b959493929190615997565b60408051601f19818403018152919052949350505050565b601054604051636dec777360e01b815260006004820181905260248201849052916001600160a01b031690636dec7773906044016115c9565b600080836008546138ed9190615478565b6001600160a01b0384166000908152600660205260409020549091505b60008211801561391a5750600081115b156139405760085461392c908361520f565b915061393960018261520f565b905061390a565b509392505050565b600060155461395683612e59565b6001600160401b031661134091906150c5565b600060155461397783612e59565b61398a906001600160401b03164261520f565b1192915050565b6010546040516359a8860760e01b8152600160048201523360248201526000916001600160a01b0316906359a8860790604401602060405180830381865afa1580156139e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a05919061513c565b11613a485760405162461bcd60e51b81526020600482015260136024820152723732b2b21030b1ba34bb32901e1993b997171760691b60448201526064016113f7565b601554600160005b83811015613aab57818015613a97575082613a82868684818110613a7657613a7661548f565b90506020020135612e59565b613a95906001600160401b03164261520f565b115b915080613aa3816154c2565b915050613a50565b5080613aea5760405162461bcd60e51b815260206004820152600e60248201526d32bc382fb130ba31b42fb13ab93760911b60448201526064016113f7565b6010546040516361c6e8e960e11b81526001600160a01b039091169063c38dd1d290613b1c9087908790600401615b38565b600060405180830381600087803b158015613b3657600080fd5b505af1158015613b4a573d6000803e3d6000fd5b5050601154604051632d3cc53760e21b81526001600160a01b03909116925063b4f314dc91506135ee90879087903390600401615b4c565b600b805461242390615155565b600854600090613ba0908390615478565b336000908152600660205260408120549192505b600083118015613bc45750600082115b15613bf757600854613bd6908461520f565b9250613be360018361520f565b9150613bf06001826150c5565b9050613bb4565b823414613c2f5760405162461bcd60e51b81526004016113f7906020808252600490820152631c995add60e21b604082015260600190565b3360009081526006602052604081208054839290613c4e90849061520f565b909155505060105460405163035b581f60e51b81526001600160a01b0390911690636b6b03e090613c859088908890600401615b38565b600060405180830381600087803b158015613c9f57600080fd5b505af1158015613cb3573d6000803e3d6000fd5b50506011546001600160a01b031691506321b785349050613cd5600a346151fb565b87876040518463ffffffff1660e01b8152600401613cf4929190615b38565b6000604051808303818588803b158015613d0d57600080fd5b505af1158015613d21573d6000803e3d6000fd5b50506012546001600160a01b0316159250613db7915050576012546000906001600160a01b0316613d53600a346151fb565b604051600081818185875af1925050503d8060008114613d8f576040519150601f19603f3d011682016040523d82523d6000602084013e613d94565b606091505b5050905080613db55760405162461bcd60e51b81526004016113f79061543e565b505b6013546001600160a01b03161561240f576014541561240f576013546014546000916001600160a01b03169061271090613df19034615478565b613dfb91906151fb565b604051600081818185875af1925050503d8060008114613e37576040519150601f19603f3d011682016040523d82523d6000602084013e613e3c565b606091505b50509050806116735760405162461bcd60e51b81526004016113f79061545b565b6060613e67611502565b600b600c600d613e7630614881565b604051602001613e8a959493929190615b78565b604051602081830303815290604052905090565b6010546040516348378e4160e01b81526000600482018190526001600160a01b0385811660248401528481166044840152909216906348378e4190606401602060405180830381865afa158015613ef9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b2b9190615408565b60006002826008811115613f3357613f33614b4f565b613f3e906008615425565b6001600160a01b038516600090815260056020526040902054613f779291600160a01b90910465ffffffffffff1660ff9091161c6151c2565b65ffffffffffff16600114905092915050565b6001600160a01b0381166000908152600460205260408120546116dd90600290600160a01b900465ffffffffffff166151c2565b613fc66142b1565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b613ff06142b1565b6001600160a01b0381166140555760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016113f7565b6117d7816143c7565b61406661430b565b601b546000036140b257601980546001600160a01b03841661010002610100600160a81b0319909116179055601a8190556001601b55601c80546001600160a01b031916331790555050565b601b5460010361423857601c546001600160a01b0316330361410a5760405162461bcd60e51b815260206004820152601160248201527063616e6e6f74207369676e20747769636560781b60448201526064016113f7565b6019546001600160a01b03838116610100909204161461415b5760405162461bcd60e51b815260206004820152600c60248201526b0e4c6ec40dad2e6dac2e8c6d60a31b60448201526064016113f7565b601a54811461419b5760405162461bcd60e51b815260206004820152600c60248201526b0c2dae840dad2e6dac2e8c6d60a31b60448201526064016113f7565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146141e8576040519150601f19603f3d011682016040523d82523d6000602084013e6141ed565b606091505b50509050806142305760405162461bcd60e51b815260206004820152600f60248201526e5061796d656e74206661696c65642160881b60448201526064016113f7565b61190261439a565b60405162461bcd60e51b815260206004820152600a602482015269696d706f737369626c6560b01b60448201526064016113f7565b6001600160a01b0381166000908152600460205260408120546132ce90600890600160a01b900460051c6507ffffffffff166151c2565b6142ac6142b1565b600855565b6000546001600160a01b03163314611dd65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016113f7565b3360009081526022602052604090205460ff16611dd65760405162461bcd60e51b815260206004820152600d60248201526c4e6f742061207369676e65722160981b60448201526064016113f7565b6010546001600160a01b03163314611dd65760405162461bcd60e51b81526020600482015260036024820152621b9cdb60ea1b60448201526064016113f7565b60198054610100600160a81b03191690556000601a819055601b55601c80546001600160a01b0319169055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b601d80546001600160a01b03199081169091556000601e819055601f805483169055602055602180549091169055565b60606000808311801561445b575060058311155b61448c5760405162461bcd60e51b8152602060048201526002602482015261686d60f01b60448201526064016113f7565b60003a4342446101006080600754901c6144a691906151e7565b6144b19060016150c5565b6144bb904361520f565b4030600160801b6007546144cf91906151e7565b6040805160208101989098528701959095526060860193909352608085019190915260a08401526001600160a01b031660c083015260e0820152610100016040516020818303038152906040528051906020012060001c90506000846001600160401b0381111561454257614542614d2f565b60405190808252806020026020018201604052801561456b578160200160208202803683370190505b50905060005b858110156145f757600861458682600a615478565b84901c61459391906151e7565b60088111156145a4576145a4614b4f565b8282815181106145b6576145b661548f565b602002602001019060088111156145cf576145cf614b4f565b908160088111156145e2576145e2614b4f565b905250806145ef816154c2565b915050614571565b5094909350915050565b6060600061460e83614898565b60010190506000816001600160401b0381111561462d5761462d614d2f565b6040519080825280601f01601f191660200182016040528015614657576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461466157509392505050565b6060600e6146bc6146a384611946565b60088111156146b4576146b4614b4f565b60ff16614601565b600f6040516020016146d093929190615c96565b6040516020818303038152906040529050919050565b606060006146f5836002615478565b6147009060026150c5565b6001600160401b0381111561471757614717614d2f565b6040519080825280601f01601f191660200182016040528015614741576020820181803683370190505b509050600360fc1b8160008151811061475c5761475c61548f565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061478b5761478b61548f565b60200101906001600160f81b031916908160001a90535060006147af846002615478565b6147ba9060016150c5565b90505b6001811115614832576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106147ee576147ee61548f565b1a60f81b8282815181106148045761480461548f565b60200101906001600160f81b031916908160001a90535060049490941c9361482b81615ccb565b90506147bd565b508315611b2b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016113f7565b60606113408261489084614970565b6001016146e6565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106148d75772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614903576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061492157662386f26fc10000830492506010015b6305f5e1008310614939576305f5e100830492506008015b612710831061494d57612710830492506004015b6064831061495f576064830492506002015b600a83106113405760010192915050565b600080608083901c156149885760809290921c916010015b604083901c1561499d5760409290921c916008015b602083901c156149b25760209290921c916004015b601083901c156149c75760109290921c916002015b600883901c156113405760010192915050565b6001600160a01b03811681146117d757600080fd5b600060208284031215614a0157600080fd5b8135611b2b816149da565b600060208284031215614a1e57600080fd5b81356001600160e01b031981168114611b2b57600080fd5b60005b83811015614a51578181015183820152602001614a39565b50506000910152565b60008151808452614a72816020860160208601614a36565b601f01601f19169290920160200192915050565b602081526000611b2b6020830184614a5a565b600060208284031215614aab57600080fd5b5035919050565b60008060408385031215614ac557600080fd5b8235614ad0816149da565b946020939093013593505050565b60008060208385031215614af157600080fd5b82356001600160401b0380821115614b0857600080fd5b818501915085601f830112614b1c57600080fd5b813581811115614b2b57600080fd5b866020828501011115614b3d57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052602160045260246000fd5b60098110614b7557614b75614b4f565b9052565b602081016113408284614b65565b600080600060608486031215614b9c57600080fd5b8335614ba7816149da565b92506020840135614bb7816149da565b929592945050506040919091013590565b60008083601f840112614bda57600080fd5b5081356001600160401b03811115614bf157600080fd5b6020830191508360208260051b8501011115614c0c57600080fd5b9250929050565b600981106117d757600080fd5b600080600060408486031215614c3557600080fd5b83356001600160401b03811115614c4b57600080fd5b614c5786828701614bc8565b9094509250506020840135614c6b81614c13565b809150509250925092565b60008060008060408587031215614c8c57600080fd5b84356001600160401b0380821115614ca357600080fd5b614caf88838901614bc8565b90965094506020870135915080821115614cc857600080fd5b50614cd587828801614bc8565b95989497509550505050565b80151581146117d757600080fd5b600080600060608486031215614d0457600080fd5b8335614d0f816149da565b92506020840135614d1f816149da565b91506040840135614c6b81614ce1565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614d6d57614d6d614d2f565b604052919050565b60006001600160401b03821115614d8e57614d8e614d2f565b50601f01601f191660200190565b6000614daf614daa84614d75565b614d45565b9050828152838383011115614dc357600080fd5b828260208301376000602084830101529392505050565b600060208284031215614dec57600080fd5b81356001600160401b03811115614e0257600080fd5b8201601f81018413614e1357600080fd5b614e2284823560208401614d9c565b949350505050565b600060208284031215614e3c57600080fd5b813560048110611b2b57600080fd5b60008060208385031215614e5e57600080fd5b82356001600160401b03811115614e7457600080fd5b614e8085828601614bc8565b90969095509350505050565b600080600060608486031215614ea157600080fd5b8335614eac816149da565b9250602084013591506040840135614c6b816149da565b60008060008060008060608789031215614edc57600080fd5b86356001600160401b0380821115614ef357600080fd5b614eff8a838b01614bc8565b90985096506020890135915080821115614f1857600080fd5b614f248a838b01614bc8565b90965094506040890135915080821115614f3d57600080fd5b50614f4a89828a01614bc8565b979a9699509497509295939492505050565b6020810160048310614f7057614f70614b4f565b91905290565b60008060408385031215614f8957600080fd5b8235614f94816149da565b91506020830135614fa481614ce1565b809150509250929050565b60008060008060808587031215614fc557600080fd5b8435614fd0816149da565b93506020850135614fe0816149da565b92506040850135915060608501356001600160401b0381111561500257600080fd5b8501601f8101871361501357600080fd5b61502287823560208401614d9c565b91505092959194509250565b6000806040838503121561504157600080fd5b823591506020830135614fa4816149da565b6000806040838503121561506657600080fd5b8235615071816149da565b91506020830135614fa4816149da565b6000806040838503121561509457600080fd5b823561509f816149da565b91506020830135614fa481614c13565b634e487b7160e01b600052601160045260246000fd5b80820180821115611340576113406150af565b65ffffffffffff8181168382160190808211156150f7576150f76150af565b5092915050565b6001600160a01b03868116825260a082019061511d6020840188614b65565b8560408401528460608401528084166080840152509695505050505050565b60006020828403121561514e57600080fd5b5051919050565b600181811c9082168061516957607f821691505b60208210810361518957634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156151a157600080fd5b8151611b2b816149da565b634e487b7160e01b600052601260045260246000fd5b600065ffffffffffff808416806151db576151db6151ac565b92169190910692915050565b6000826151f6576151f66151ac565b500690565b60008261520a5761520a6151ac565b500490565b81810381811115611340576113406150af565b601f82111561190257600081815260208120601f850160051c810160208610156152495750805b601f850160051c820191505b8181101561167357828155600101615255565b6001600160401b0383111561527f5761527f614d2f565b6152938361528d8354615155565b83615222565b6000601f8411600181146152c757600085156152af5750838201355b600019600387901b1c1916600186901b17835561240f565b600083815260209020601f19861690835b828110156152f857868501358255602094850194600190920191016152d8565b50868210156153155760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60006020828403121561533957600080fd5b8151611b2b81614c13565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208082528181018390526000906040600585901b8401810190840186845b878110156153fb57868403603f190183528135368a9003601e190181126153b257600080fd5b890185810190356001600160401b038111156153cd57600080fd5b8036038213156153dc57600080fd5b6153e7868284615344565b95505050918401919084019060010161538c565b5091979650505050505050565b60006020828403121561541a57600080fd5b8151611b2b81614ce1565b60ff8181168382160190811115611340576113406150af565b60208082526003908201526270663160e81b604082015260600190565b60208082526003908201526238331960e91b604082015260600190565b8082028115828204841417611340576113406150af565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156154b757600080fd5b8135611b2b81614c13565b6000600182016154d4576154d46150af565b5060010190565b6000602082840312156154ed57600080fd5b81516001600160401b0381111561550357600080fd5b8201601f8101841361551457600080fd5b8051615522614daa82614d75565b81815285602083850101111561553757600080fd5b615548826020830160208601614a36565b95945050505050565b81516001600160401b0381111561556a5761556a614d2f565b61557e816155788454615155565b84615222565b602080601f8311600181146155b3576000841561559b5750858301515b600019600386901b1c1916600185901b178555611673565b600085815260208120601f198616915b828110156155e2578886015182559484019460019091019084016155c3565b50858210156156005787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561562257600080fd5b81516001600160401b0381168114611b2b57600080fd5b6001600160a01b0386811682528581166020830152841660408201526060810183905260a06080820181905260009061567490830184614a5a565b979650505050505050565b60008151615691818560208601614a36565b9290920192915050565b7f646174613a696d6167652f7376672b786d6c3b757466382c00000000000000008152600082516156d3816018850160208701614a36565b9190910160180192915050565b600081546156ed81615155565b60018281168015615705576001811461571a57615749565b60ff1984168752821515830287019450615749565b8560005260208060002060005b858110156157405781548a820152908401908201615727565b50505082870194505b5050505092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d81526a65223a224865617274202360a81b60208201526000845161579f81602b850160208901614a36565b61088b60f21b602b918401918201527f226465736372697074696f6e223a225468697320697320612000000000000000602d8201526157e160468201866156e0565b90507f2048656172742e20497427732064616e6765726f757320746f20676f20616c6f8152641b994b888b60da1b6020820152681134b6b0b3b2911d1160b91b6025820152835161583981602e840160208801614a36565b01602e0195945050505050565b60008651615858818460208b01614a36565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a22489083019081527432b0b93a1021b7b637b91116113b30b63ab2911d1160591b60208201526158aa60358201886156e0565b90507f227d2c7b2274726169745f74797065223a2247656e6f6d65222c2276616c7565815262111d1160e91b602082015285516158ee816023840160208a01614a36565b7f227d2c7b2274726169745f74797065223a224c696e6561676520506172656e74602392909101918201526a1116113b30b63ab2911d1160a91b6043820152845161594081604e840160208901614a36565b7f227d2c7b2274726169745f74797065223a224c696e6561676520446570746822604e92909101918201526916113b30b63ab2911d1160b11b606e82015261598b607882018561567f565b98975050505050505050565b600086516159a9818460208b01614a36565b80830190507f227d2c7b2274726169745f74797065223a224e756d626572206f66204368696c81526e323932b71116113b30b63ab2911d1160891b602082015286516159fc81602f840160208b01614a36565b7f227d2c7b2274726169745f74797065223a2245787069726174696f6e20446174602f92909101918201527f65222c22646973706c61795f74797065223a2264617465222c2276616c756522604f820152611d1160f11b606f8201528551615a6b816071840160208a01614a36565b61227d60f01b607192909101918201528451615a8e816073840160208901614a36565b615af9615aeb615ae56073848601017f5d2c2265787465726e616c5f75726c223a2268747470733a2f2f6865617274738152752e7669727475652e7774662f6865617274733f69643d60501b602082015260360190565b8761567f565b61227d60f01b815260020190565b9998505050505050505050565b81835260006001600160fb1b03831115615b1f57600080fd5b8260051b80836020870137939093016020019392505050565b602081526000614e22602083018486615b06565b604081526000615b60604083018587615b06565b905060018060a01b0383166020830152949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d81526332911d1160e11b602082015260008651615bbd816024850160208b01614a36565b61088b60f21b60249184019182018190526e113232b9b1b934b83a34b7b7111d1160891b6026830152615bf360358301896156e0565b818152681134b6b0b3b2911d1160b91b60028201529150615c17600b8301886156e0565b818152701132bc3a32b93730b62fb634b735911d1160791b60028201529150615c4360138301876156e0565b9081527f2273656c6c65725f6665655f62617369735f706f696e7473223a3530302c226660028201526e32b2afb932b1b4b834b2b73a111d1160891b6022820152905061598b615aeb603183018661567f565b6000615ca282866156e0565b602f60f81b81528451615cbc816001840160208901614a36565b615674600182840101866156e0565b600081615cda57615cda6150af565b50600019019056fea2646970667358221220db861b917532e1631a48a7265e39d68bfca05a3e889e3f03084c95b1cf298b2864736f6c63430008110033

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

0000000000000000000000006c5a06ae6b773457480c12f12c2fb22627507a3a000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002800000000000000000000000004d57cfdfb2ba11e4308ae338ae8898695364ddbe000000000000000000000000c7d7b0e5c614575beb2437a937071f667bfbf21a00000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000001556697274756520486561727473202d205374696c6c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000856482e5354494c4c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000355374696c6c204865617274732061726520696e7669746174696f6e7320746f20746865205669727475652065636f73797374656d2e0000000000000000000000000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f747769747465722e636f6d2f5669727475655f4c6162732f70686f746f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f747769747465722e636f6d2f5669727475655f4c616273000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000236e5fc476d2f944ce441c50faf158a0a55fed0400000000000000000000000018129859aa128ed114dc2ae70739015bfe28b23f

-----Decoded View---------------
Arg [0] : cbAddy_ (address): 0x6C5a06AE6b773457480c12F12C2fB22627507A3A
Arg [1] : mintPrice_ (uint256): 10000000000000000
Arg [2] : name_ (string): Virtue Hearts - Still
Arg [3] : symbol_ (string): VH.STILL
Arg [4] : description_ (string): Still Hearts are invitations to the Virtue ecosystem.
Arg [5] : image_ (string): https://twitter.com/Virtue_Labs/photo
Arg [6] : link_ (string): https://twitter.com/Virtue_Labs
Arg [7] : storageLayerAddress_ (address): 0x4D57cfdfb2bA11E4308ae338AE8898695364DdbE
Arg [8] : puzzleAddress_ (address): 0xc7D7B0E5c614575Beb2437a937071F667Bfbf21A
Arg [9] : signers_ (address[]): 0x236E5fc476D2f944CE441c50fAF158a0a55fed04,0x18129859aA128eD114Dc2Ae70739015BfE28b23f

-----Encoded View---------------
25 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c5a06ae6b773457480c12f12c2fb22627507a3a
Arg [1] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [7] : 0000000000000000000000004d57cfdfb2ba11e4308ae338ae8898695364ddbe
Arg [8] : 000000000000000000000000c7d7b0e5c614575beb2437a937071f667bfbf21a
Arg [9] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [11] : 56697274756520486561727473202d205374696c6c0000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [13] : 56482e5354494c4c000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [15] : 5374696c6c204865617274732061726520696e7669746174696f6e7320746f20
Arg [16] : 746865205669727475652065636f73797374656d2e0000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [18] : 68747470733a2f2f747769747465722e636f6d2f5669727475655f4c6162732f
Arg [19] : 70686f746f000000000000000000000000000000000000000000000000000000
Arg [20] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [21] : 68747470733a2f2f747769747465722e636f6d2f5669727475655f4c61627300
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [23] : 000000000000000000000000236e5fc476d2f944ce441c50faf158a0a55fed04
Arg [24] : 00000000000000000000000018129859aa128ed114dc2ae70739015bfe28b23f


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.