Token LOOKNFT
Overview ERC-721
Total Supply:
50 LNFT
Holders:
1 addresses
Transfers:
-
Profile Summary
Contract:
[ Download CSV Export ]
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LOOKNFT
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-18 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/math/Math.sol // 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: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @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: @openzeppelin/contracts/utils/Context.sol // 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: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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: @openzeppelin/contracts/utils/Address.sol // 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: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // 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: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: contracts/neden.sol pragma solidity >=0.8.0 <0.9.0; contract LOOKNFT is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public cost = 0.024 ether; uint256 public maxSupply = 50; uint256 public maxMintAmount = 4; bool public paused = false; bool public revealed = false; string public notRevealedUri; constructor( string memory _name, string memory _symbol, string memory _initBaseURI, string memory _initNotRevealedUri ) ERC721(_name, _symbol) { setBaseURI(_initBaseURI); setNotRevealedURI(_initNotRevealedUri); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // public function mint(uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(!paused); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount); require(supply + _mintAmount <= maxSupply); if (msg.sender != owner()) { require(msg.value >= cost * _mintAmount); } for (uint256 i = 1; i <= _mintAmount; i++) { _safeMint(msg.sender, supply + i); } } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if(revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } //only owner function reveal() public onlyOwner { revealed = true; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmount = _newmaxMintAmount; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function pause(bool _state) public onlyOwner { paused = _state; } function withdraw() public onlyOwner { // Send the remaining balance to the owner. payable(owner()).transfer(address(this).balance); } }
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"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":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526005608081905264173539b7b760d91b60a09081526200002891600c9190620001de565b50665543df729c0000600d556032600e556004600f556010805461ffff191690553480156200005657600080fd5b506040516200277b3803806200277b833981016040819052620000799162000351565b83518490849062000092906000906020850190620001de565b508051620000a8906001906020840190620001de565b505050620000c5620000bf620000e560201b60201c565b620000e9565b620000d0826200013b565b620000db816200015e565b5050505062000447565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001456200017d565b80516200015a90600b906020840190620001de565b5050565b620001686200017d565b80516200015a906011906020840190620001de565b600a546001600160a01b03163314620001dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b828054620001ec906200040a565b90600052602060002090601f0160209004810192826200021057600085556200025b565b82601f106200022b57805160ff19168380011785556200025b565b828001600101855582156200025b579182015b828111156200025b5782518255916020019190600101906200023e565b50620002699291506200026d565b5090565b5b808211156200026957600081556001016200026e565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002ac57600080fd5b81516001600160401b0380821115620002c957620002c962000284565b604051601f8301601f19908116603f01168101908282118183101715620002f457620002f462000284565b816040528381526020925086838588010111156200031157600080fd5b600091505b8382101562000335578582018301518183018401529082019062000316565b83821115620003475760008385830101525b9695505050505050565b600080600080608085870312156200036857600080fd5b84516001600160401b03808211156200038057600080fd5b6200038e888389016200029a565b95506020870151915080821115620003a557600080fd5b620003b3888389016200029a565b94506040870151915080821115620003ca57600080fd5b620003d8888389016200029a565b93506060870151915080821115620003ef57600080fd5b50620003fe878288016200029a565b91505092959194509250565b600181811c908216806200041f57607f821691505b602082108114156200044157634e487b7160e01b600052602260045260246000fd5b50919050565b61232480620004576000396000f3fe60806040526004361061020f5760003560e01c80635c975abb11610118578063a475b5dd116100a0578063d5abeb011161006f578063d5abeb01146105c9578063da3ef23f146105df578063e985e9c5146105ff578063f2c4ce1e14610648578063f2fde38b1461066857600080fd5b8063a475b5dd1461055f578063b88d4fde14610574578063c668286214610594578063c87b56dd146105a957600080fd5b80637f00c7a6116100e75780637f00c7a6146104d95780638da5cb5b146104f957806395d89b4114610517578063a0712d681461052c578063a22cb4651461053f57600080fd5b80635c975abb1461046a5780636352211e1461048457806370a08231146104a4578063715018a6146104c457600080fd5b806323b872dd1161019b578063438b63001161016a578063438b6300146103be57806344a0d68a146103eb5780634f6ccce71461040b578063518302271461042b57806355f804b31461044a57600080fd5b806323b872dd146103495780632f745c59146103695780633ccfd60b1461038957806342842e0e1461039e57600080fd5b8063081c8c44116101e2578063081c8c44146102c5578063095ea7b3146102da57806313faede6146102fa57806318160ddd1461031e578063239c70ae1461033357600080fd5b806301ffc9a71461021457806302329a291461024957806306fdde031461026b578063081812fc1461028d575b600080fd5b34801561022057600080fd5b5061023461022f366004611cab565b610688565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b50610269610264366004611cdd565b6106b3565b005b34801561027757600080fd5b506102806106ce565b6040516102409190611d50565b34801561029957600080fd5b506102ad6102a8366004611d63565b610760565b6040516001600160a01b039091168152602001610240565b3480156102d157600080fd5b50610280610787565b3480156102e657600080fd5b506102696102f5366004611d93565b610815565b34801561030657600080fd5b50610310600d5481565b604051908152602001610240565b34801561032a57600080fd5b50600854610310565b34801561033f57600080fd5b50610310600f5481565b34801561035557600080fd5b50610269610364366004611dbd565b610930565b34801561037557600080fd5b50610310610384366004611d93565b610961565b34801561039557600080fd5b506102696109f7565b3480156103aa57600080fd5b506102696103b9366004611dbd565b610a3b565b3480156103ca57600080fd5b506103de6103d9366004611df9565b610a56565b6040516102409190611e14565b3480156103f757600080fd5b50610269610406366004611d63565b610af8565b34801561041757600080fd5b50610310610426366004611d63565b610b05565b34801561043757600080fd5b5060105461023490610100900460ff1681565b34801561045657600080fd5b50610269610465366004611ee4565b610b98565b34801561047657600080fd5b506010546102349060ff1681565b34801561049057600080fd5b506102ad61049f366004611d63565b610bb7565b3480156104b057600080fd5b506103106104bf366004611df9565b610c17565b3480156104d057600080fd5b50610269610c9d565b3480156104e557600080fd5b506102696104f4366004611d63565b610cb1565b34801561050557600080fd5b50600a546001600160a01b03166102ad565b34801561052357600080fd5b50610280610cbe565b61026961053a366004611d63565b610ccd565b34801561054b57600080fd5b5061026961055a366004611f2d565b610d7a565b34801561056b57600080fd5b50610269610d85565b34801561058057600080fd5b5061026961058f366004611f60565b610d9e565b3480156105a057600080fd5b50610280610dd6565b3480156105b557600080fd5b506102806105c4366004611d63565b610de3565b3480156105d557600080fd5b50610310600e5481565b3480156105eb57600080fd5b506102696105fa366004611ee4565b610f62565b34801561060b57600080fd5b5061023461061a366004611fdc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065457600080fd5b50610269610663366004611ee4565b610f7d565b34801561067457600080fd5b50610269610683366004611df9565b610f98565b60006001600160e01b0319821663780e9d6360e01b14806106ad57506106ad8261100e565b92915050565b6106bb61105e565b6010805460ff1916911515919091179055565b6060600080546106dd90612006565b80601f016020809104026020016040519081016040528092919081815260200182805461070990612006565b80156107565780601f1061072b57610100808354040283529160200191610756565b820191906000526020600020905b81548152906001019060200180831161073957829003601f168201915b5050505050905090565b600061076b826110b8565b506000908152600460205260409020546001600160a01b031690565b6011805461079490612006565b80601f01602080910402602001604051908101604052809291908181526020018280546107c090612006565b801561080d5780601f106107e25761010080835404028352916020019161080d565b820191906000526020600020905b8154815290600101906020018083116107f057829003601f168201915b505050505081565b600061082082610bb7565b9050806001600160a01b0316836001600160a01b031614156108935760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108af57506108af813361061a565b6109215760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161088a565b61092b8383611117565b505050565b61093a3382611185565b6109565760405162461bcd60e51b815260040161088a90612041565b61092b838383611204565b600061096c83610c17565b82106109ce5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161088a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109ff61105e565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610a38573d6000803e3d6000fd5b50565b61092b83838360405180602001604052806000815250610d9e565b60606000610a6383610c17565b905060008167ffffffffffffffff811115610a8057610a80611e58565b604051908082528060200260200182016040528015610aa9578160200160208202803683370190505b50905060005b82811015610af057610ac18582610961565b828281518110610ad357610ad361208e565b602090810291909101015280610ae8816120ba565b915050610aaf565b509392505050565b610b0061105e565b600d55565b6000610b1060085490565b8210610b735760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161088a565b60088281548110610b8657610b8661208e565b90600052602060002001549050919050565b610ba061105e565b8051610bb390600b906020840190611bfc565b5050565b6000818152600260205260408120546001600160a01b0316806106ad5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161088a565b60006001600160a01b038216610c815760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161088a565b506001600160a01b031660009081526003602052604090205490565b610ca561105e565b610caf6000611375565b565b610cb961105e565b600f55565b6060600180546106dd90612006565b6000610cd860085490565b60105490915060ff1615610ceb57600080fd5b60008211610cf857600080fd5b600f54821115610d0757600080fd5b600e54610d1483836120d5565b1115610d1f57600080fd5b600a546001600160a01b03163314610d4b5781600d54610d3f91906120ed565b341015610d4b57600080fd5b60015b82811161092b57610d6833610d6383856120d5565b6113c7565b80610d72816120ba565b915050610d4e565b610bb33383836113e1565b610d8d61105e565b6010805461ff001916610100179055565b610da83383611185565b610dc45760405162461bcd60e51b815260040161088a90612041565b610dd0848484846114b0565b50505050565b600c805461079490612006565b6000818152600260205260409020546060906001600160a01b0316610e625760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161088a565b601054610100900460ff16610f035760118054610e7e90612006565b80601f0160208091040260200160405190810160405280929190818152602001828054610eaa90612006565b8015610ef75780601f10610ecc57610100808354040283529160200191610ef7565b820191906000526020600020905b815481529060010190602001808311610eda57829003601f168201915b50505050509050919050565b6000610f0d6114e3565b90506000815111610f2d5760405180602001604052806000815250610f5b565b80610f37846114f2565b600c604051602001610f4b9392919061210c565b6040516020818303038152906040525b9392505050565b610f6a61105e565b8051610bb390600c906020840190611bfc565b610f8561105e565b8051610bb3906011906020840190611bfc565b610fa061105e565b6001600160a01b0381166110055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088a565b610a3881611375565b60006001600160e01b031982166380ac58cd60e01b148061103f57506001600160e01b03198216635b5e139f60e01b145b806106ad57506301ffc9a760e01b6001600160e01b03198316146106ad565b600a546001600160a01b03163314610caf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161088a565b6000818152600260205260409020546001600160a01b0316610a385760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161088a565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061114c82610bb7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061119183610bb7565b9050806001600160a01b0316846001600160a01b031614806111d857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806111fc5750836001600160a01b03166111f184610760565b6001600160a01b0316145b949350505050565b826001600160a01b031661121782610bb7565b6001600160a01b03161461123d5760405162461bcd60e51b815260040161088a906121d0565b6001600160a01b03821661129f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161088a565b6112ac8383836001611587565b826001600160a01b03166112bf82610bb7565b6001600160a01b0316146112e55760405162461bcd60e51b815260040161088a906121d0565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610bb38282604051806020016040528060008152506116bb565b816001600160a01b0316836001600160a01b031614156114435760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161088a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6114bb848484611204565b6114c7848484846116ee565b610dd05760405162461bcd60e51b815260040161088a90612215565b6060600b80546106dd90612006565b606060006114ff836117fb565b600101905060008167ffffffffffffffff81111561151f5761151f611e58565b6040519080825280601f01601f191660200182016040528015611549576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461158257610af0565b611553565b60018111156115f65760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b606482015260840161088a565b816001600160a01b0385166116525761164d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611675565b836001600160a01b0316856001600160a01b0316146116755761167585826118d3565b6001600160a01b0384166116915761168c81611970565b6116b4565b846001600160a01b0316846001600160a01b0316146116b4576116b48482611a1f565b5050505050565b6116c58383611a63565b6116d260008484846116ee565b61092b5760405162461bcd60e51b815260040161088a90612215565b60006001600160a01b0384163b156117f057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611732903390899088908890600401612267565b602060405180830381600087803b15801561174c57600080fd5b505af192505050801561177c575060408051601f3d908101601f19168201909252611779918101906122a4565b60015b6117d6573d8080156117aa576040519150601f19603f3d011682016040523d82523d6000602084013e6117af565b606091505b5080516117ce5760405162461bcd60e51b815260040161088a90612215565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506111fc565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061183a5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611866576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061188457662386f26fc10000830492506010015b6305f5e100831061189c576305f5e100830492506008015b61271083106118b057612710830492506004015b606483106118c2576064830492506002015b600a83106106ad5760010192915050565b600060016118e084610c17565b6118ea91906122c1565b60008381526007602052604090205490915080821461193d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611982906001906122c1565b600083815260096020526040812054600880549394509092849081106119aa576119aa61208e565b9060005260206000200154905080600883815481106119cb576119cb61208e565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611a0357611a036122d8565b6001900381819060005260206000200160009055905550505050565b6000611a2a83610c17565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611ab95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161088a565b6000818152600260205260409020546001600160a01b031615611b1e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161088a565b611b2c600083836001611587565b6000818152600260205260409020546001600160a01b031615611b915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161088a565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611c0890612006565b90600052602060002090601f016020900481019282611c2a5760008555611c70565b82601f10611c4357805160ff1916838001178555611c70565b82800160010185558215611c70579182015b82811115611c70578251825591602001919060010190611c55565b50611c7c929150611c80565b5090565b5b80821115611c7c5760008155600101611c81565b6001600160e01b031981168114610a3857600080fd5b600060208284031215611cbd57600080fd5b8135610f5b81611c95565b80358015158114611cd857600080fd5b919050565b600060208284031215611cef57600080fd5b610f5b82611cc8565b60005b83811015611d13578181015183820152602001611cfb565b83811115610dd05750506000910152565b60008151808452611d3c816020860160208601611cf8565b601f01601f19169290920160200192915050565b602081526000610f5b6020830184611d24565b600060208284031215611d7557600080fd5b5035919050565b80356001600160a01b0381168114611cd857600080fd5b60008060408385031215611da657600080fd5b611daf83611d7c565b946020939093013593505050565b600080600060608486031215611dd257600080fd5b611ddb84611d7c565b9250611de960208501611d7c565b9150604084013590509250925092565b600060208284031215611e0b57600080fd5b610f5b82611d7c565b6020808252825182820181905260009190848201906040850190845b81811015611e4c57835183529284019291840191600101611e30565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e8957611e89611e58565b604051601f8501601f19908116603f01168101908282118183101715611eb157611eb1611e58565b81604052809350858152868686011115611eca57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ef657600080fd5b813567ffffffffffffffff811115611f0d57600080fd5b8201601f81018413611f1e57600080fd5b6111fc84823560208401611e6e565b60008060408385031215611f4057600080fd5b611f4983611d7c565b9150611f5760208401611cc8565b90509250929050565b60008060008060808587031215611f7657600080fd5b611f7f85611d7c565b9350611f8d60208601611d7c565b925060408501359150606085013567ffffffffffffffff811115611fb057600080fd5b8501601f81018713611fc157600080fd5b611fd087823560208401611e6e565b91505092959194509250565b60008060408385031215611fef57600080fd5b611ff883611d7c565b9150611f5760208401611d7c565b600181811c9082168061201a57607f821691505b6020821081141561203b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156120ce576120ce6120a4565b5060010190565b600082198211156120e8576120e86120a4565b500190565b6000816000190483118215151615612107576121076120a4565b500290565b60008451602061211f8285838a01611cf8565b8551918401916121328184848a01611cf8565b8554920191600090600181811c908083168061214f57607f831692505b85831081141561216d57634e487b7160e01b85526022600452602485fd5b8080156121815760018114612192576121bf565b60ff198516885283880195506121bf565b60008b81526020902060005b858110156121b75781548a82015290840190880161219e565b505083880195505b50939b9a5050505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061229a90830184611d24565b9695505050505050565b6000602082840312156122b657600080fd5b8151610f5b81611c95565b6000828210156122d3576122d36120a4565b500390565b634e487b7160e01b600052603160045260246000fdfea26469706673582212205668f244c8c42dcb47824b00b5b881eeca0a27b1dfbf3beb3a6389e60453563464736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000074c4f4f4b4e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044c4e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569646a6e796e746872796a34696e6a746d6b34336e347963686f7173706661786670656a696d34743366356866696a746f6f7564652f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d697066733a2f2f6261667962656968633234636e3471363776667a6b6637636374343273667770376d646e61336e6b67376b357067346f6e3673686a6e636e7667712f38363430302e6a736f6e00000000000000000000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000074c4f4f4b4e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044c4e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569646a6e796e746872796a34696e6a746d6b34336e347963686f7173706661786670656a696d34743366356866696a746f6f7564652f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d697066733a2f2f6261667962656968633234636e3471363776667a6b6637636374343273667770376d646e61336e6b67376b357067346f6e3673686a6e636e7667712f38363430302e6a736f6e00000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): LOOKNFT
Arg [1] : _symbol (string): LNFT
Arg [2] : _initBaseURI (string): ipfs://bafybeidjnynthryj4injtmk43n4ychoqspfaxfpejim4t3f5hfijtooude/
Arg [3] : _initNotRevealedUri (string): ipfs://bafybeihc24cn4q67vfzkf7cct42sfwp7mdna3nkg7k5pg4on6shjncnvgq/86400.json
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 4c4f4f4b4e465400000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4c4e465400000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [9] : 697066733a2f2f62616679626569646a6e796e746872796a34696e6a746d6b34
Arg [10] : 336e347963686f7173706661786670656a696d34743366356866696a746f6f75
Arg [11] : 64652f0000000000000000000000000000000000000000000000000000000000
Arg [12] : 000000000000000000000000000000000000000000000000000000000000004d
Arg [13] : 697066733a2f2f6261667962656968633234636e3471363776667a6b66376363
Arg [14] : 74343273667770376d646e61336e6b67376b357067346f6e3673686a6e636e76
Arg [15] : 67712f38363430302e6a736f6e00000000000000000000000000000000000000
Deployed ByteCode Sourcemap
62892:2920:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56880:224;;;;;;;;;;-1:-1:-1;56880:224:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;56880:224:0;;;;;;;;65584:73;;;;;;;;;;-1:-1:-1;65584:73:0;;;;;:::i;:::-;;:::i;:::-;;40587:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;42099:171::-;;;;;;;;;;-1:-1:-1;42099:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2042:32:1;;;2024:51;;2012:2;1997:18;42099:171:0;1878:203:1;63209:28:0;;;;;;;;;;;;;:::i;41617:416::-;;;;;;;;;;-1:-1:-1;41617:416:0;;;;;:::i;:::-;;:::i;63036:33::-;;;;;;;;;;;;;;;;;;;2669:25:1;;;2657:2;2642:18;63036:33:0;2523:177:1;57520:113:0;;;;;;;;;;-1:-1:-1;57608:10:0;:17;57520:113;;63108:32;;;;;;;;;;;;;;;;42799:335;;;;;;;;;;-1:-1:-1;42799:335:0;;;;;:::i;:::-;;:::i;57188:256::-;;;;;;;;;;-1:-1:-1;57188:256:0;;;;;:::i;:::-;;:::i;65662:145::-;;;;;;;;;;;;;:::i;43205:185::-;;;;;;;;;;-1:-1:-1;43205:185:0;;;;;:::i;:::-;;:::i;64072:346::-;;;;;;;;;;-1:-1:-1;64072:346:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;65016:80::-;;;;;;;;;;-1:-1:-1;65016:80:0;;;;;:::i;:::-;;:::i;57710:233::-;;;;;;;;;;-1:-1:-1;57710:233:0;;;;;:::i;:::-;;:::i;63176:28::-;;;;;;;;;;-1:-1:-1;63176:28:0;;;;;;;;;;;65352:98;;;;;;;;;;-1:-1:-1;65352:98:0;;;;;:::i;:::-;;:::i;63145:26::-;;;;;;;;;;-1:-1:-1;63145:26:0;;;;;;;;40297:223;;;;;;;;;;-1:-1:-1;40297:223:0;;;;;:::i;:::-;;:::i;40028:207::-;;;;;;;;;;-1:-1:-1;40028:207:0;;;;;:::i;:::-;;:::i;18010:103::-;;;;;;;;;;;;;:::i;65102:116::-;;;;;;;;;;-1:-1:-1;65102:116:0;;;;;:::i;:::-;;:::i;17362:87::-;;;;;;;;;;-1:-1:-1;17435:6:0;;-1:-1:-1;;;;;17435:6:0;17362:87;;40756:104;;;;;;;;;;;;;:::i;63635:433::-;;;;;;:::i;:::-;;:::i;42342:155::-;;;;;;;;;;-1:-1:-1;42342:155:0;;;;;:::i;:::-;;:::i;64943:65::-;;;;;;;;;;;;;:::i;43461:322::-;;;;;;;;;;-1:-1:-1;43461:322:0;;;;;:::i;:::-;;:::i;62994:37::-;;;;;;;;;;;;;:::i;64424:497::-;;;;;;;;;;-1:-1:-1;64424:497:0;;;;;:::i;:::-;;:::i;63074:29::-;;;;;;;;;;;;;;;;65456:122;;;;;;;;;;-1:-1:-1;65456:122:0;;;;;:::i;:::-;;:::i;42568:164::-;;;;;;;;;;-1:-1:-1;42568:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;42689:25:0;;;42665:4;42689:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;42568:164;65226:120;;;;;;;;;;-1:-1:-1;65226:120:0;;;;;:::i;:::-;;:::i;18268:201::-;;;;;;;;;;-1:-1:-1;18268:201:0;;;;;:::i;:::-;;:::i;56880:224::-;56982:4;-1:-1:-1;;;;;;57006:50:0;;-1:-1:-1;;;57006:50:0;;:90;;;57060:36;57084:11;57060:23;:36::i;:::-;56999:97;56880:224;-1:-1:-1;;56880:224:0:o;65584:73::-;17248:13;:11;:13::i;:::-;65636:6:::1;:15:::0;;-1:-1:-1;;65636:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;65584:73::o;40587:100::-;40641:13;40674:5;40667:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40587:100;:::o;42099:171::-;42175:7;42195:23;42210:7;42195:14;:23::i;:::-;-1:-1:-1;42238:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;42238:24:0;;42099:171::o;63209:28::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;41617:416::-;41698:13;41714:23;41729:7;41714:14;:23::i;:::-;41698:39;;41762:5;-1:-1:-1;;;;;41756:11:0;:2;-1:-1:-1;;;;;41756:11:0;;;41748:57;;;;-1:-1:-1;;;41748:57:0;;6874:2:1;41748:57:0;;;6856:21:1;6913:2;6893:18;;;6886:30;6952:34;6932:18;;;6925:62;-1:-1:-1;;;7003:18:1;;;6996:31;7044:19;;41748:57:0;;;;;;;;;15993:10;-1:-1:-1;;;;;41840:21:0;;;;:62;;-1:-1:-1;41865:37:0;41882:5;15993:10;42568:164;:::i;41865:37::-;41818:173;;;;-1:-1:-1;;;41818:173:0;;7276:2:1;41818:173:0;;;7258:21:1;7315:2;7295:18;;;7288:30;7354:34;7334:18;;;7327:62;7425:31;7405:18;;;7398:59;7474:19;;41818:173:0;7074:425:1;41818:173:0;42004:21;42013:2;42017:7;42004:8;:21::i;:::-;41687:346;41617:416;;:::o;42799:335::-;42994:41;15993:10;43027:7;42994:18;:41::i;:::-;42986:99;;;;-1:-1:-1;;;42986:99:0;;;;;;;:::i;:::-;43098:28;43108:4;43114:2;43118:7;43098:9;:28::i;57188:256::-;57285:7;57321:23;57338:5;57321:16;:23::i;:::-;57313:5;:31;57305:87;;;;-1:-1:-1;;;57305:87:0;;8120:2:1;57305:87:0;;;8102:21:1;8159:2;8139:18;;;8132:30;8198:34;8178:18;;;8171:62;-1:-1:-1;;;8249:18:1;;;8242:41;8300:19;;57305:87:0;7918:407:1;57305:87:0;-1:-1:-1;;;;;;57410:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;57188:256::o;65662:145::-;17248:13;:11;:13::i;:::-;17435:6;;65755:48:::1;::::0;-1:-1:-1;;;;;17435:6:0;;;;65781:21:::1;65755:48:::0;::::1;;;::::0;::::1;::::0;;;65781:21;17435:6;65755:48;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;65662:145::o:0;43205:185::-;43343:39;43360:4;43366:2;43370:7;43343:39;;;;;;;;;;;;:16;:39::i;64072:346::-;64147:16;64173:23;64199:17;64209:6;64199:9;:17::i;:::-;64173:43;;64223:25;64265:15;64251:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64251:30:0;;64223:58;;64293:9;64288:105;64308:15;64304:1;:19;64288:105;;;64355:30;64375:6;64383:1;64355:19;:30::i;:::-;64341:8;64350:1;64341:11;;;;;;;;:::i;:::-;;;;;;;;;;:44;64325:3;;;;:::i;:::-;;;;64288:105;;;-1:-1:-1;64406:8:0;64072:346;-1:-1:-1;;;64072:346:0:o;65016:80::-;17248:13;:11;:13::i;:::-;65075:4:::1;:15:::0;65016:80::o;57710:233::-;57785:7;57821:30;57608:10;:17;;57520:113;57821:30;57813:5;:38;57805:95;;;;-1:-1:-1;;;57805:95:0;;8936:2:1;57805:95:0;;;8918:21:1;8975:2;8955:18;;;8948:30;9014:34;8994:18;;;8987:62;-1:-1:-1;;;9065:18:1;;;9058:42;9117:19;;57805:95:0;8734:408:1;57805:95:0;57918:10;57929:5;57918:17;;;;;;;;:::i;:::-;;;;;;;;;57911:24;;57710:233;;;:::o;65352:98::-;17248:13;:11;:13::i;:::-;65423:21;;::::1;::::0;:7:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;:::-;;65352:98:::0;:::o;40297:223::-;40369:7;45184:16;;;:7;:16;;;;;;-1:-1:-1;;;;;45184:16:0;;40433:56;;;;-1:-1:-1;;;40433:56:0;;9349:2:1;40433:56:0;;;9331:21:1;9388:2;9368:18;;;9361:30;-1:-1:-1;;;9407:18:1;;;9400:54;9471:18;;40433:56:0;9147:348:1;40028:207:0;40100:7;-1:-1:-1;;;;;40128:19:0;;40120:73;;;;-1:-1:-1;;;40120:73:0;;9702:2:1;40120:73:0;;;9684:21:1;9741:2;9721:18;;;9714:30;9780:34;9760:18;;;9753:62;-1:-1:-1;;;9831:18:1;;;9824:39;9880:19;;40120:73:0;9500:405:1;40120:73:0;-1:-1:-1;;;;;;40211:16:0;;;;;:9;:16;;;;;;;40028:207::o;18010:103::-;17248:13;:11;:13::i;:::-;18075:30:::1;18102:1;18075:18;:30::i;:::-;18010:103::o:0;65102:116::-;17248:13;:11;:13::i;:::-;65179::::1;:33:::0;65102:116::o;40756:104::-;40812:13;40845:7;40838:14;;;;;:::i;63635:433::-;63692:14;63709:13;57608:10;:17;;57520:113;63709:13;63738:6;;63692:30;;-1:-1:-1;63738:6:0;;63737:7;63729:16;;;;;;63774:1;63760:11;:15;63752:24;;;;;;63806:13;;63791:11;:28;;63783:37;;;;;;63859:9;;63835:20;63844:11;63835:6;:20;:::i;:::-;:33;;63827:42;;;;;;17435:6;;-1:-1:-1;;;;;17435:6:0;63882:10;:21;63878:84;;63942:11;63935:4;;:18;;;;:::i;:::-;63922:9;:31;;63914:40;;;;;;63987:1;63970:93;63995:11;63990:1;:16;63970:93;;64022:33;64032:10;64044;64053:1;64044:6;:10;:::i;:::-;64022:9;:33::i;:::-;64008:3;;;;:::i;:::-;;;;63970:93;;42342:155;42437:52;15993:10;42470:8;42480;42437:18;:52::i;64943:65::-;17248:13;:11;:13::i;:::-;64987:8:::1;:15:::0;;-1:-1:-1;;64987:15:0::1;;;::::0;;64943:65::o;43461:322::-;43635:41;15993:10;43668:7;43635:18;:41::i;:::-;43627:99;;;;-1:-1:-1;;;43627:99:0;;;;;;;:::i;:::-;43737:38;43751:4;43757:2;43761:7;43770:4;43737:13;:38::i;:::-;43461:322;;;;:::o;62994:37::-;;;;;;;:::i;64424:497::-;45586:4;45184:16;;;:7;:16;;;;;;64522:13;;-1:-1:-1;;;;;45184:16:0;64547:97;;;;-1:-1:-1;;;64547:97:0;;10418:2:1;64547:97:0;;;10400:21:1;10457:2;10437:18;;;10430:30;10496:34;10476:18;;;10469:62;-1:-1:-1;;;10547:18:1;;;10540:45;10602:19;;64547:97:0;10216:411:1;64547:97:0;64660:8;;;;;;;64657:62;;64697:14;64690:21;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64424:497;;;:::o;64657:62::-;64727:28;64758:10;:8;:10::i;:::-;64727:41;;64813:1;64788:14;64782:28;:32;:133;;;;;;;;;;;;;;;;;64850:14;64866:18;:7;:16;:18::i;:::-;64886:13;64833:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;64782:133;64775:140;64424:497;-1:-1:-1;;;64424:497:0:o;65456:122::-;17248:13;:11;:13::i;:::-;65539:33;;::::1;::::0;:13:::1;::::0;:33:::1;::::0;::::1;::::0;::::1;:::i;65226:120::-:0;17248:13;:11;:13::i;:::-;65308:32;;::::1;::::0;:14:::1;::::0;:32:::1;::::0;::::1;::::0;::::1;:::i;18268:201::-:0;17248:13;:11;:13::i;:::-;-1:-1:-1;;;;;18357:22:0;::::1;18349:73;;;::::0;-1:-1:-1;;;18349:73:0;;12492:2:1;18349:73:0::1;::::0;::::1;12474:21:1::0;12531:2;12511:18;;;12504:30;12570:34;12550:18;;;12543:62;-1:-1:-1;;;12621:18:1;;;12614:36;12667:19;;18349:73:0::1;12290:402:1::0;18349:73:0::1;18433:28;18452:8;18433:18;:28::i;39659:305::-:0;39761:4;-1:-1:-1;;;;;;39798:40:0;;-1:-1:-1;;;39798:40:0;;:105;;-1:-1:-1;;;;;;;39855:48:0;;-1:-1:-1;;;39855:48:0;39798:105;:158;;;-1:-1:-1;;;;;;;;;;31200:40:0;;;39920:36;31091:157;17527:132;17435:6;;-1:-1:-1;;;;;17435:6:0;15993:10;17591:23;17583:68;;;;-1:-1:-1;;;17583:68:0;;12899:2:1;17583:68:0;;;12881:21:1;;;12918:18;;;12911:30;12977:34;12957:18;;;12950:62;13029:18;;17583:68:0;12697:356:1;51918:135:0;45586:4;45184:16;;;:7;:16;;;;;;-1:-1:-1;;;;;45184:16:0;51992:53;;;;-1:-1:-1;;;51992:53:0;;9349:2:1;51992:53:0;;;9331:21:1;9388:2;9368:18;;;9361:30;-1:-1:-1;;;9407:18:1;;;9400:54;9471:18;;51992:53:0;9147:348:1;51197:174:0;51272:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;51272:29:0;-1:-1:-1;;;;;51272:29:0;;;;;;;;:24;;51326:23;51272:24;51326:14;:23::i;:::-;-1:-1:-1;;;;;51317:46:0;;;;;;;;;;;51197:174;;:::o;45816:264::-;45909:4;45926:13;45942:23;45957:7;45942:14;:23::i;:::-;45926:39;;45995:5;-1:-1:-1;;;;;45984:16:0;:7;-1:-1:-1;;;;;45984:16:0;;:52;;;-1:-1:-1;;;;;;42689:25:0;;;42665:4;42689:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;46004:32;45984:87;;;;46064:7;-1:-1:-1;;;;;46040:31:0;:20;46052:7;46040:11;:20::i;:::-;-1:-1:-1;;;;;46040:31:0;;45984:87;45976:96;45816:264;-1:-1:-1;;;;45816:264:0:o;49815:1263::-;49974:4;-1:-1:-1;;;;;49947:31:0;:23;49962:7;49947:14;:23::i;:::-;-1:-1:-1;;;;;49947:31:0;;49939:81;;;;-1:-1:-1;;;49939:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;50039:16:0;;50031:65;;;;-1:-1:-1;;;50031:65:0;;13666:2:1;50031:65:0;;;13648:21:1;13705:2;13685:18;;;13678:30;13744:34;13724:18;;;13717:62;-1:-1:-1;;;13795:18:1;;;13788:34;13839:19;;50031:65:0;13464:400:1;50031:65:0;50109:42;50130:4;50136:2;50140:7;50149:1;50109:20;:42::i;:::-;50281:4;-1:-1:-1;;;;;50254:31:0;:23;50269:7;50254:14;:23::i;:::-;-1:-1:-1;;;;;50254:31:0;;50246:81;;;;-1:-1:-1;;;50246:81:0;;;;;;;:::i;:::-;50399:24;;;;:15;:24;;;;;;;;50392:31;;-1:-1:-1;;;;;;50392:31:0;;;;;;-1:-1:-1;;;;;50875:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;50875:20:0;;;50910:13;;;;;;;;;:18;;50392:31;50910:18;;;50950:16;;;:7;:16;;;;;;:21;;;;;;;;;;50989:27;;50415:7;;50989:27;;;41687:346;41617:416;;:::o;18629:191::-;18722:6;;;-1:-1:-1;;;;;18739:17:0;;;-1:-1:-1;;;;;;18739:17:0;;;;;;;18772:40;;18722:6;;;18739:17;18722:6;;18772:40;;18703:16;;18772:40;18692:128;18629:191;:::o;46422:110::-;46498:26;46508:2;46512:7;46498:26;;;;;;;;;;;;:9;:26::i;51514:315::-;51669:8;-1:-1:-1;;;;;51660:17:0;:5;-1:-1:-1;;;;;51660:17:0;;;51652:55;;;;-1:-1:-1;;;51652:55:0;;14071:2:1;51652:55:0;;;14053:21:1;14110:2;14090:18;;;14083:30;14149:27;14129:18;;;14122:55;14194:18;;51652:55:0;13869:349:1;51652:55:0;-1:-1:-1;;;;;51718:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;51718:46:0;;;;;;;;;;51780:41;;540::1;;;51780::0;;513:18:1;51780:41:0;;;;;;;51514:315;;;:::o;44664:313::-;44820:28;44830:4;44836:2;44840:7;44820:9;:28::i;:::-;44867:47;44890:4;44896:2;44900:7;44909:4;44867:22;:47::i;:::-;44859:110;;;;-1:-1:-1;;;44859:110:0;;;;;;;:::i;63514:102::-;63574:13;63603:7;63596:14;;;;;:::i;13340:716::-;13396:13;13447:14;13464:17;13475:5;13464:10;:17::i;:::-;13484:1;13464:21;13447:38;;13500:20;13534:6;13523:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13523:18:0;-1:-1:-1;13500:41:0;-1:-1:-1;13665:28:0;;;13681:2;13665:28;13722:288;-1:-1:-1;;13754:5:0;-1:-1:-1;;;13891:2:0;13880:14;;13875:30;13754:5;13862:44;13952:2;13943:11;;;-1:-1:-1;13977:10:0;13973:21;;13989:5;;13973:21;13722:288;;58017:915;58284:1;58272:9;:13;58268:222;;;58415:63;;-1:-1:-1;;;58415:63:0;;14976:2:1;58415:63:0;;;14958:21:1;15015:2;14995:18;;;14988:30;15054:34;15034:18;;;15027:62;-1:-1:-1;;;15105:18:1;;;15098:51;15166:19;;58415:63:0;14774:417:1;58268:222:0;58520:12;-1:-1:-1;;;;;58549:18:0;;58545:187;;58584:40;58616:7;59759:10;:17;;59732:24;;;;:15;:24;;;;;:44;;;59787:24;;;;;;;;;;;;59655:164;58584:40;58545:187;;;58654:2;-1:-1:-1;;;;;58646:10:0;:4;-1:-1:-1;;;;;58646:10:0;;58642:90;;58673:47;58706:4;58712:7;58673:32;:47::i;:::-;-1:-1:-1;;;;;58746:16:0;;58742:183;;58779:45;58816:7;58779:36;:45::i;:::-;58742:183;;;58852:4;-1:-1:-1;;;;;58846:10:0;:2;-1:-1:-1;;;;;58846:10:0;;58842:83;;58873:40;58901:2;58905:7;58873:27;:40::i;:::-;58183:749;58017:915;;;;:::o;46759:319::-;46888:18;46894:2;46898:7;46888:5;:18::i;:::-;46939:53;46970:1;46974:2;46978:7;46987:4;46939:22;:53::i;:::-;46917:153;;;;-1:-1:-1;;;46917:153:0;;;;;;;:::i;52617:853::-;52771:4;-1:-1:-1;;;;;52792:13:0;;20355:19;:23;52788:675;;52828:71;;-1:-1:-1;;;52828:71:0;;-1:-1:-1;;;;;52828:36:0;;;;;:71;;15993:10;;52879:4;;52885:7;;52894:4;;52828:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52828:71:0;;;;;;;;-1:-1:-1;;52828:71:0;;;;;;;;;;;;:::i;:::-;;;52824:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53069:13:0;;53065:328;;53112:60;;-1:-1:-1;;;53112:60:0;;;;;;;:::i;53065:328::-;53343:6;53337:13;53328:6;53324:2;53320:15;53313:38;52824:584;-1:-1:-1;;;;;;52950:51:0;-1:-1:-1;;;52950:51:0;;-1:-1:-1;52943:58:0;;52788:675;-1:-1:-1;53447:4:0;52617:853;;;;;;:::o;10206:922::-;10259:7;;-1:-1:-1;;;10337:15:0;;10333:102;;-1:-1:-1;;;10373:15:0;;;-1:-1:-1;10417:2:0;10407:12;10333:102;10462:6;10453:5;:15;10449:102;;10498:6;10489:15;;;-1:-1:-1;10533:2:0;10523:12;10449:102;10578:6;10569:5;:15;10565:102;;10614:6;10605:15;;;-1:-1:-1;10649:2:0;10639:12;10565:102;10694:5;10685;:14;10681:99;;10729:5;10720:14;;;-1:-1:-1;10763:1:0;10753:11;10681:99;10807:5;10798;:14;10794:99;;10842:5;10833:14;;;-1:-1:-1;10876:1:0;10866:11;10794:99;10920:5;10911;:14;10907:99;;10955:5;10946:14;;;-1:-1:-1;10989:1:0;10979:11;10907:99;11033:5;11024;:14;11020:66;;11069:1;11059:11;11114:6;10206:922;-1:-1:-1;;10206:922:0:o;60446:988::-;60712:22;60762:1;60737:22;60754:4;60737:16;:22::i;:::-;:26;;;;:::i;:::-;60774:18;60795:26;;;:17;:26;;;;;;60712:51;;-1:-1:-1;60928:28:0;;;60924:328;;-1:-1:-1;;;;;60995:18:0;;60973:19;60995:18;;;:12;:18;;;;;;;;:34;;;;;;;;;61046:30;;;;;;:44;;;61163:30;;:17;:30;;;;;:43;;;60924:328;-1:-1:-1;61348:26:0;;;;:17;:26;;;;;;;;61341:33;;;-1:-1:-1;;;;;61392:18:0;;;;;:12;:18;;;;;:34;;;;;;;61385:41;60446:988::o;61729:1079::-;62007:10;:17;61982:22;;62007:21;;62027:1;;62007:21;:::i;:::-;62039:18;62060:24;;;:15;:24;;;;;;62433:10;:26;;61982:46;;-1:-1:-1;62060:24:0;;61982:46;;62433:26;;;;;;:::i;:::-;;;;;;;;;62411:48;;62497:11;62472:10;62483;62472:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;62577:28;;;:15;:28;;;;;;;:41;;;62749:24;;;;;62742:31;62784:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;61800:1008;;;61729:1079;:::o;59233:221::-;59318:14;59335:20;59352:2;59335:16;:20::i;:::-;-1:-1:-1;;;;;59366:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;59411:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;59233:221:0:o;47414:942::-;-1:-1:-1;;;;;47494:16:0;;47486:61;;;;-1:-1:-1;;;47486:61:0;;16408:2:1;47486:61:0;;;16390:21:1;;;16427:18;;;16420:30;16486:34;16466:18;;;16459:62;16538:18;;47486:61:0;16206:356:1;47486:61:0;45586:4;45184:16;;;:7;:16;;;;;;-1:-1:-1;;;;;45184:16:0;45610:31;47558:58;;;;-1:-1:-1;;;47558:58:0;;16769:2:1;47558:58:0;;;16751:21:1;16808:2;16788:18;;;16781:30;16847;16827:18;;;16820:58;16895:18;;47558:58:0;16567:352:1;47558:58:0;47629:48;47658:1;47662:2;47666:7;47675:1;47629:20;:48::i;:::-;45586:4;45184:16;;;:7;:16;;;;;;-1:-1:-1;;;;;45184:16:0;45610:31;47767:58;;;;-1:-1:-1;;;47767:58:0;;16769:2:1;47767:58:0;;;16751:21:1;16808:2;16788:18;;;16781:30;16847;16827:18;;;16820:58;16895:18;;47767:58:0;16567:352:1;47767:58:0;-1:-1:-1;;;;;48174:13:0;;;;;;:9;:13;;;;;;;;:18;;48191:1;48174:18;;;48216:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;48216:21:0;;;;;48255:33;48224:7;;48174:13;;48255:33;;48174:13;;48255:33;65423:21:::1;65352:98:::0;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:160::-;657:20;;713:13;;706:21;696:32;;686:60;;742:1;739;732:12;686:60;592:160;;;:::o;757:180::-;813:6;866:2;854:9;845:7;841:23;837:32;834:52;;;882:1;879;872:12;834:52;905:26;921:9;905:26;:::i;942:258::-;1014:1;1024:113;1038:6;1035:1;1032:13;1024:113;;;1114:11;;;1108:18;1095:11;;;1088:39;1060:2;1053:10;1024:113;;;1155:6;1152:1;1149:13;1146:48;;;-1:-1:-1;;1190:1:1;1172:16;;1165:27;942:258::o;1205:::-;1247:3;1285:5;1279:12;1312:6;1307:3;1300:19;1328:63;1384:6;1377:4;1372:3;1368:14;1361:4;1354:5;1350:16;1328:63;:::i;:::-;1445:2;1424:15;-1:-1:-1;;1420:29:1;1411:39;;;;1452:4;1407:50;;1205:258;-1:-1:-1;;1205:258:1:o;1468:220::-;1617:2;1606:9;1599:21;1580:4;1637:45;1678:2;1667:9;1663:18;1655:6;1637:45;:::i;1693:180::-;1752:6;1805:2;1793:9;1784:7;1780:23;1776:32;1773:52;;;1821:1;1818;1811:12;1773:52;-1:-1:-1;1844:23:1;;1693:180;-1:-1:-1;1693:180:1:o;2086:173::-;2154:20;;-1:-1:-1;;;;;2203:31:1;;2193:42;;2183:70;;2249:1;2246;2239:12;2264:254;2332:6;2340;2393:2;2381:9;2372:7;2368:23;2364:32;2361:52;;;2409:1;2406;2399:12;2361:52;2432:29;2451:9;2432:29;:::i;:::-;2422:39;2508:2;2493:18;;;;2480:32;;-1:-1:-1;;;2264:254:1:o;2705:328::-;2782:6;2790;2798;2851:2;2839:9;2830:7;2826:23;2822:32;2819:52;;;2867:1;2864;2857:12;2819:52;2890:29;2909:9;2890:29;:::i;:::-;2880:39;;2938:38;2972:2;2961:9;2957:18;2938:38;:::i;:::-;2928:48;;3023:2;3012:9;3008:18;2995:32;2985:42;;2705:328;;;;;:::o;3038:186::-;3097:6;3150:2;3138:9;3129:7;3125:23;3121:32;3118:52;;;3166:1;3163;3156:12;3118:52;3189:29;3208:9;3189:29;:::i;3229:632::-;3400:2;3452:21;;;3522:13;;3425:18;;;3544:22;;;3371:4;;3400:2;3623:15;;;;3597:2;3582:18;;;3371:4;3666:169;3680:6;3677:1;3674:13;3666:169;;;3741:13;;3729:26;;3810:15;;;;3775:12;;;;3702:1;3695:9;3666:169;;;-1:-1:-1;3852:3:1;;3229:632;-1:-1:-1;;;;;;3229:632:1:o;3866:127::-;3927:10;3922:3;3918:20;3915:1;3908:31;3958:4;3955:1;3948:15;3982:4;3979:1;3972:15;3998:632;4063:5;4093:18;4134:2;4126:6;4123:14;4120:40;;;4140:18;;:::i;:::-;4215:2;4209:9;4183:2;4269:15;;-1:-1:-1;;4265:24:1;;;4291:2;4261:33;4257:42;4245:55;;;4315:18;;;4335:22;;;4312:46;4309:72;;;4361:18;;:::i;:::-;4401:10;4397:2;4390:22;4430:6;4421:15;;4460:6;4452;4445:22;4500:3;4491:6;4486:3;4482:16;4479:25;4476:45;;;4517:1;4514;4507:12;4476:45;4567:6;4562:3;4555:4;4547:6;4543:17;4530:44;4622:1;4615:4;4606:6;4598;4594:19;4590:30;4583:41;;;;3998:632;;;;;:::o;4635:451::-;4704:6;4757:2;4745:9;4736:7;4732:23;4728:32;4725:52;;;4773:1;4770;4763:12;4725:52;4813:9;4800:23;4846:18;4838:6;4835:30;4832:50;;;4878:1;4875;4868:12;4832:50;4901:22;;4954:4;4946:13;;4942:27;-1:-1:-1;4932:55:1;;4983:1;4980;4973:12;4932:55;5006:74;5072:7;5067:2;5054:16;5049:2;5045;5041:11;5006:74;:::i;5091:254::-;5156:6;5164;5217:2;5205:9;5196:7;5192:23;5188:32;5185:52;;;5233:1;5230;5223:12;5185:52;5256:29;5275:9;5256:29;:::i;:::-;5246:39;;5304:35;5335:2;5324:9;5320:18;5304:35;:::i;:::-;5294:45;;5091:254;;;;;:::o;5350:667::-;5445:6;5453;5461;5469;5522:3;5510:9;5501:7;5497:23;5493:33;5490:53;;;5539:1;5536;5529:12;5490:53;5562:29;5581:9;5562:29;:::i;:::-;5552:39;;5610:38;5644:2;5633:9;5629:18;5610:38;:::i;:::-;5600:48;;5695:2;5684:9;5680:18;5667:32;5657:42;;5750:2;5739:9;5735:18;5722:32;5777:18;5769:6;5766:30;5763:50;;;5809:1;5806;5799:12;5763:50;5832:22;;5885:4;5877:13;;5873:27;-1:-1:-1;5863:55:1;;5914:1;5911;5904:12;5863:55;5937:74;6003:7;5998:2;5985:16;5980:2;5976;5972:11;5937:74;:::i;:::-;5927:84;;;5350:667;;;;;;;:::o;6022:260::-;6090:6;6098;6151:2;6139:9;6130:7;6126:23;6122:32;6119:52;;;6167:1;6164;6157:12;6119:52;6190:29;6209:9;6190:29;:::i;:::-;6180:39;;6238:38;6272:2;6261:9;6257:18;6238:38;:::i;6287:380::-;6366:1;6362:12;;;;6409;;;6430:61;;6484:4;6476:6;6472:17;6462:27;;6430:61;6537:2;6529:6;6526:14;6506:18;6503:38;6500:161;;;6583:10;6578:3;6574:20;6571:1;6564:31;6618:4;6615:1;6608:15;6646:4;6643:1;6636:15;6500:161;;6287:380;;;:::o;7504:409::-;7706:2;7688:21;;;7745:2;7725:18;;;7718:30;7784:34;7779:2;7764:18;;7757:62;-1:-1:-1;;;7850:2:1;7835:18;;7828:43;7903:3;7888:19;;7504:409::o;8330:127::-;8391:10;8386:3;8382:20;8379:1;8372:31;8422:4;8419:1;8412:15;8446:4;8443:1;8436:15;8462:127;8523:10;8518:3;8514:20;8511:1;8504:31;8554:4;8551:1;8544:15;8578:4;8575:1;8568:15;8594:135;8633:3;-1:-1:-1;;8654:17:1;;8651:43;;;8674:18;;:::i;:::-;-1:-1:-1;8721:1:1;8710:13;;8594:135::o;9910:128::-;9950:3;9981:1;9977:6;9974:1;9971:13;9968:39;;;9987:18;;:::i;:::-;-1:-1:-1;10023:9:1;;9910:128::o;10043:168::-;10083:7;10149:1;10145;10141:6;10137:14;10134:1;10131:21;10126:1;10119:9;10112:17;10108:45;10105:71;;;10156:18;;:::i;:::-;-1:-1:-1;10196:9:1;;10043:168::o;10758:1527::-;10982:3;11020:6;11014:13;11046:4;11059:51;11103:6;11098:3;11093:2;11085:6;11081:15;11059:51;:::i;:::-;11173:13;;11132:16;;;;11195:55;11173:13;11132:16;11217:15;;;11195:55;:::i;:::-;11339:13;;11272:20;;;11312:1;;11399;11421:18;;;;11474;;;;11501:93;;11579:4;11569:8;11565:19;11553:31;;11501:93;11642:2;11632:8;11629:16;11609:18;11606:40;11603:167;;;-1:-1:-1;;;11669:33:1;;11725:4;11722:1;11715:15;11755:4;11676:3;11743:17;11603:167;11786:18;11813:110;;;;11937:1;11932:328;;;;11779:481;;11813:110;-1:-1:-1;;11848:24:1;;11834:39;;11893:20;;;;-1:-1:-1;11813:110:1;;11932:328;10705:1;10698:14;;;10742:4;10729:18;;12027:1;12041:169;12055:8;12052:1;12049:15;12041:169;;;12137:14;;12122:13;;;12115:37;12180:16;;;;12072:10;;12041:169;;;12045:3;;12241:8;12234:5;12230:20;12223:27;;11779:481;-1:-1:-1;12276:3:1;;10758:1527;-1:-1:-1;;;;;;;;;;;10758:1527:1:o;13058:401::-;13260:2;13242:21;;;13299:2;13279:18;;;13272:30;13338:34;13333:2;13318:18;;13311:62;-1:-1:-1;;;13404:2:1;13389:18;;13382:35;13449:3;13434:19;;13058:401::o;14223:414::-;14425:2;14407:21;;;14464:2;14444:18;;;14437:30;14503:34;14498:2;14483:18;;14476:62;-1:-1:-1;;;14569:2:1;14554:18;;14547:48;14627:3;14612:19;;14223:414::o;15196:489::-;-1:-1:-1;;;;;15465:15:1;;;15447:34;;15517:15;;15512:2;15497:18;;15490:43;15564:2;15549:18;;15542:34;;;15612:3;15607:2;15592:18;;15585:31;;;15390:4;;15633:46;;15659:19;;15651:6;15633:46;:::i;:::-;15625:54;15196:489;-1:-1:-1;;;;;;15196:489:1:o;15690:249::-;15759:6;15812:2;15800:9;15791:7;15787:23;15783:32;15780:52;;;15828:1;15825;15818:12;15780:52;15860:9;15854:16;15879:30;15903:5;15879:30;:::i;15944:125::-;15984:4;16012:1;16009;16006:8;16003:34;;;16017:18;;:::i;:::-;-1:-1:-1;16054:9:1;;15944:125::o;16074:127::-;16135:10;16130:3;16126:20;16123:1;16116:31;16166:4;16163:1;16156:15;16190:4;16187:1;16180:15
Swarm Source
ipfs://5668f244c8c42dcb47824b00b5b881eeca0a27b1dfbf3beb3a6389e604535634