Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 255 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21386969 | 6 days ago | IN | 0 ETH | 0.00099469 | ||||
Set Approval For... | 21332354 | 14 days ago | IN | 0 ETH | 0.00115612 | ||||
Safe Transfer Fr... | 21203710 | 32 days ago | IN | 0 ETH | 0.00053315 | ||||
Transfer From | 20787430 | 90 days ago | IN | 0 ETH | 0.00049216 | ||||
Safe Transfer Fr... | 20628835 | 112 days ago | IN | 0 ETH | 0.00008854 | ||||
Set Approval For... | 20504030 | 129 days ago | IN | 0 ETH | 0.00005263 | ||||
Set Approval For... | 20497641 | 130 days ago | IN | 0 ETH | 0.00011372 | ||||
Set Approval For... | 20497584 | 130 days ago | IN | 0 ETH | 0.00011252 | ||||
Set Approval For... | 20496166 | 130 days ago | IN | 0 ETH | 0.00006717 | ||||
Mint To | 20397465 | 144 days ago | IN | 0 ETH | 0.00003275 | ||||
Mint To | 20392636 | 145 days ago | IN | 0 ETH | 0.00019713 | ||||
Mint To | 20392633 | 145 days ago | IN | 0 ETH | 0.00020012 | ||||
Mint To | 20392629 | 145 days ago | IN | 0 ETH | 0.00020716 | ||||
Set Merkle Root | 20392613 | 145 days ago | IN | 0 ETH | 0.00004707 | ||||
Set Merkle Root | 20392612 | 145 days ago | IN | 0 ETH | 0.00005233 | ||||
Mint To | 20392572 | 145 days ago | IN | 0 ETH | 0.00029802 | ||||
Mint To | 20392561 | 145 days ago | IN | 0 ETH | 0.00031754 | ||||
Mint To | 20392521 | 145 days ago | IN | 0 ETH | 0.00030182 | ||||
Mint To | 20392496 | 145 days ago | IN | 0 ETH | 0.00031008 | ||||
Set Merkle Root | 20392399 | 145 days ago | IN | 0 ETH | 0.00004518 | ||||
Set Merkle Root | 20392398 | 145 days ago | IN | 0 ETH | 0.00004858 | ||||
Set Approval For... | 20390676 | 145 days ago | IN | 0 ETH | 0.00010727 | ||||
Set Approval For... | 20387294 | 145 days ago | IN | 0 ETH | 0.00007464 | ||||
Mint To | 20294054 | 158 days ago | IN | 0 ETH | 0.00019028 | ||||
Safe Transfer Fr... | 20292672 | 159 days ago | IN | 0 ETH | 0.00017482 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TLP
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-07-06 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // inlined from: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) // inlined from: ./IERC721.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) // inlined from: ../../utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @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); } /** * @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); } // inlined from: ./IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) /** * @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); } // inlined from: ./extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // inlined from: ../../utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) /** * @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); } } } // inlined from: ../../utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } // inlined from: ../../utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) // inlined from: ./math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) /** * @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); } } } /** * @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); } } // inlined from: ../../utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @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; } } // inlined from: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // inlined from: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // inlined from: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } contract TLP is ERC721, Ownable { using Counters for Counters.Counter; uint256 public TOTAL_SUPPLY; uint256 public MINT_PRICE; string public BASE_TOKEN_URI; address payable public ROYALTY_ADDRESS; uint256 public ROYALTY_FEE; Counters.Counter private CURRENT_TOKEN_ID; bytes32 public merkleRoot; mapping(address => uint256) public mintedCount; bool public WHITELIST_ENABLED; uint256 public uniformMintLimit; constructor( uint256 totalSupply, uint256 mintPrice, string memory baseTokenURI, address payable royaltyAddress, uint256 royaltyFee, bytes32 _merkleRoot, bool whitelistEnabled, uint256 initialMintLimit, uint256 reserveCount, address reserveAddress ) ERC721("Our House", "TLP") { TOTAL_SUPPLY = totalSupply; MINT_PRICE = mintPrice; BASE_TOKEN_URI = baseTokenURI; ROYALTY_ADDRESS = royaltyAddress; ROYALTY_FEE = royaltyFee; uniformMintLimit = initialMintLimit; merkleRoot = _merkleRoot; WHITELIST_ENABLED = whitelistEnabled; for (uint256 i = 1; i <= reserveCount; i++) { CURRENT_TOKEN_ID.increment(); _safeMint(reserveAddress, CURRENT_TOKEN_ID.current()); } } function toggleWhitelist(bool _enabled) public onlyOwner { WHITELIST_ENABLED = _enabled; } function setUniformMintLimit(uint256 _newLimit) public onlyOwner { uniformMintLimit = _newLimit; } function mintTo( address recipient, bytes32[] calldata merkleProof ) public payable { require( CURRENT_TOKEN_ID.current() < TOTAL_SUPPLY, "Max supply reached" ); require(msg.value == MINT_PRICE, "Incorrect mint price"); // Whitelist check is now conditional based on WHITELIST_ENABLED if (WHITELIST_ENABLED) { require( isWhitelisted(recipient, merkleProof), "Address not whitelisted" ); } mintedCount[recipient]++; require( mintedCount[recipient] <= uniformMintLimit, "Mint limit reached for this address" ); CURRENT_TOKEN_ID.increment(); uint256 newItemId = CURRENT_TOKEN_ID.current(); _safeMint(recipient, newItemId); uint256 royaltyAmount = (msg.value * ROYALTY_FEE) / 10000; ROYALTY_ADDRESS.transfer(royaltyAmount); } function isWhitelisted( address addr, bytes32[] calldata proof ) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(addr)); return MerkleProof.verify(proof, merkleRoot, leaf); } function setMerkleRoot(bytes32 _newMerkleRoot) public onlyOwner { merkleRoot = _newMerkleRoot; } function setMintPrice(uint256 newPrice) public onlyOwner { MINT_PRICE = newPrice; } function _baseURI() internal view virtual override returns (string memory) { return BASE_TOKEN_URI; } function setBaseTokenURI(string memory baseTokenURI) public onlyOwner { BASE_TOKEN_URI = baseTokenURI; } function setRoyaltyDetails( address payable newRoyaltyAddress, uint256 newRoyaltyFee ) public onlyOwner { ROYALTY_ADDRESS = newRoyaltyAddress; ROYALTY_FEE = newRoyaltyFee; } function withdraw( address payable recipient, uint256 amount ) public onlyOwner { require(address(this).balance >= amount, "Insufficient balance"); recipient.transfer(amount); } function remainingMints() public view returns (uint256) { return TOTAL_SUPPLY - CURRENT_TOKEN_ID.current(); } function getBalance() public view returns (uint256) { return address(this).balance; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address payable","name":"royaltyAddress","type":"address"},{"internalType":"uint256","name":"royaltyFee","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bool","name":"whitelistEnabled","type":"bool"},{"internalType":"uint256","name":"initialMintLimit","type":"uint256"},{"internalType":"uint256","name":"reserveCount","type":"uint256"},{"internalType":"address","name":"reserveAddress","type":"address"}],"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":[],"name":"BASE_TOKEN_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_ADDRESS","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_ENABLED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newRoyaltyAddress","type":"address"},{"internalType":"uint256","name":"newRoyaltyFee","type":"uint256"}],"name":"setRoyaltyDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setUniformMintLimit","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":"bool","name":"_enabled","type":"bool"}],"name":"toggleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniformMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200504538038062005045833981810160405281019062000037919062000af9565b6040518060400160405280600981526020017f4f757220486f75736500000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f544c5000000000000000000000000000000000000000000000000000000000008152508160009081620000b4919062000e4f565b508060019081620000c6919062000e4f565b505050620000e9620000dd620001e460201b60201c565b620001ec60201b60201c565b8960078190555088600881905550876009908162000108919062000e4f565b5086600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600b819055508260108190555084600d8190555083600f60006101000a81548160ff0219169083151502179055506000600190505b828111620001d3576200019a600c620002b260201b60201c565b620001bd82620001b1600c620002c860201b60201c565b620002d660201b60201c565b8080620001ca9062000f65565b91505062000180565b5050505050505050505050620012a1565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001816000016000828254019250508190555050565b600081600001549050919050565b620002f8828260405180602001604052806000815250620002fc60201b60201c565b5050565b6200030e83836200036a60201b60201c565b620003236000848484620005b060201b60201c565b62000365576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200035c9062001039565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620003dc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003d390620010ab565b60405180910390fd5b620003ed816200075460201b60201c565b1562000430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000427906200111d565b60405180910390fd5b620004466000838360016200079d60201b60201c565b62000457816200075460201b60201c565b156200049a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000491906200111d565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4620005ac600083836001620007a360201b60201c565b5050565b6000620005d98473ffffffffffffffffffffffffffffffffffffffff16620007a960201b60201c565b1562000747578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200060b620001e460201b60201c565b8786866040518563ffffffff1660e01b81526004016200062f9493929190620011be565b6020604051808303816000875af19250505080156200066e57506040513d601f19601f820116820180604052508101906200066b91906200126f565b60015b620006f6573d8060008114620006a1576040519150601f19603f3d011682016040523d82523d6000602084013e620006a6565b606091505b506000815103620006ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006e59062001039565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506200074c565b600190505b949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff166200077e83620007cc60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b62000832816200081d565b81146200083e57600080fd5b50565b600081519050620008528162000827565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620008ad8262000862565b810181811067ffffffffffffffff82111715620008cf57620008ce62000873565b5b80604052505050565b6000620008e462000809565b9050620008f28282620008a2565b919050565b600067ffffffffffffffff82111562000915576200091462000873565b5b620009208262000862565b9050602081019050919050565b60005b838110156200094d57808201518184015260208101905062000930565b60008484015250505050565b6000620009706200096a84620008f7565b620008d8565b9050828152602081018484840111156200098f576200098e6200085d565b5b6200099c8482856200092d565b509392505050565b600082601f830112620009bc57620009bb62000858565b5b8151620009ce84826020860162000959565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000a0482620009d7565b9050919050565b62000a1681620009f7565b811462000a2257600080fd5b50565b60008151905062000a368162000a0b565b92915050565b6000819050919050565b62000a518162000a3c565b811462000a5d57600080fd5b50565b60008151905062000a718162000a46565b92915050565b60008115159050919050565b62000a8e8162000a77565b811462000a9a57600080fd5b50565b60008151905062000aae8162000a83565b92915050565b600062000ac182620009d7565b9050919050565b62000ad38162000ab4565b811462000adf57600080fd5b50565b60008151905062000af38162000ac8565b92915050565b6000806000806000806000806000806101408b8d03121562000b205762000b1f62000813565b5b600062000b308d828e0162000841565b9a5050602062000b438d828e0162000841565b99505060408b015167ffffffffffffffff81111562000b675762000b6662000818565b5b62000b758d828e01620009a4565b985050606062000b888d828e0162000a25565b975050608062000b9b8d828e0162000841565b96505060a062000bae8d828e0162000a60565b95505060c062000bc18d828e0162000a9d565b94505060e062000bd48d828e0162000841565b93505061010062000be88d828e0162000841565b92505061012062000bfc8d828e0162000ae2565b9150509295989b9194979a5092959850565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000c6157607f821691505b60208210810362000c775762000c7662000c19565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000ce17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000ca2565b62000ced868362000ca2565b95508019841693508086168417925050509392505050565b6000819050919050565b600062000d3062000d2a62000d24846200081d565b62000d05565b6200081d565b9050919050565b6000819050919050565b62000d4c8362000d0f565b62000d6462000d5b8262000d37565b84845462000caf565b825550505050565b600090565b62000d7b62000d6c565b62000d8881848462000d41565b505050565b5b8181101562000db05762000da460008262000d71565b60018101905062000d8e565b5050565b601f82111562000dff5762000dc98162000c7d565b62000dd48462000c92565b8101602085101562000de4578190505b62000dfc62000df38562000c92565b83018262000d8d565b50505b505050565b600082821c905092915050565b600062000e246000198460080262000e04565b1980831691505092915050565b600062000e3f838362000e11565b9150826002028217905092915050565b62000e5a8262000c0e565b67ffffffffffffffff81111562000e765762000e7562000873565b5b62000e82825462000c48565b62000e8f82828562000db4565b600060209050601f83116001811462000ec7576000841562000eb2578287015190505b62000ebe858262000e31565b86555062000f2e565b601f19841662000ed78662000c7d565b60005b8281101562000f015784890151825560018201915060208501945060208101905062000eda565b8683101562000f21578489015162000f1d601f89168262000e11565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000f72826200081d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000fa75762000fa662000f36565b5b600182019050919050565b600082825260208201905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006200102160328362000fb2565b91506200102e8262000fc3565b604082019050919050565b60006020820190508181036000830152620010548162001012565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006200109360208362000fb2565b9150620010a0826200105b565b602082019050919050565b60006020820190508181036000830152620010c68162001084565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600062001105601c8362000fb2565b91506200111282620010cd565b602082019050919050565b600060208201905081810360008301526200113881620010f6565b9050919050565b6200114a8162000ab4565b82525050565b6200115b816200081d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006200118a8262001161565b6200119681856200116c565b9350620011a88185602086016200092d565b620011b38162000862565b840191505092915050565b6000608082019050620011d560008301876200113f565b620011e460208301866200113f565b620011f3604083018562001150565b81810360608301526200120781846200117d565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620012498162001212565b81146200125557600080fd5b50565b60008151905062001269816200123e565b92915050565b60006020828403121562001288576200128762000813565b5b6000620012988482850162001258565b91505092915050565b613d9480620012b16000396000f3fe60806040526004361061020f5760003560e01c80637aebe5c411610118578063c002d23d116100a0578063e985e9c51161006f578063e985e9c51461077e578063f2fde38b146107bb578063f3fef3a3146107e4578063f4a0a5281461080d578063fddcb5ea146108365761020f565b8063c002d23d146106c2578063c87b56dd146106ed578063d87854cb1461072a578063e0d0f746146107555761020f565b80638da5cb5b116100e75780638da5cb5b146105ef578063902d55a51461061a57806395d89b4114610645578063a22cb46514610670578063b88d4fde146106995761020f565b80637aebe5c4146105565780637cb6475914610572578063800d06171461059b57806380e3f1ad146105c65761020f565b806330176e131161019b5780636262ac3b1161016a5780636262ac3b146104715780636352211e1461049a5780636f458133146104d757806370a0823114610502578063715018a61461053f5761020f565b806330176e13146103b7578063335477fc146103e057806342842e0e1461040b5780635a23dd99146104345761020f565b806312065fe0116101e257806312065fe0146102e2578063143759be1461030d578063152e640a1461033857806323b872dd146103635780632eb4a7ab1461038c5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190612616565b610873565b604051610248919061265e565b60405180910390f35b34801561025d57600080fd5b50610266610955565b6040516102739190612709565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190612761565b6109e7565b6040516102b091906127cf565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190612816565b610a2d565b005b3480156102ee57600080fd5b506102f7610b44565b6040516103049190612865565b60405180910390f35b34801561031957600080fd5b50610322610b4c565b60405161032f91906128a1565b60405180910390f35b34801561034457600080fd5b5061034d610b72565b60405161035a919061265e565b60405180910390f35b34801561036f57600080fd5b5061038a600480360381019061038591906128bc565b610b85565b005b34801561039857600080fd5b506103a1610be5565b6040516103ae9190612928565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d99190612a78565b610beb565b005b3480156103ec57600080fd5b506103f5610c06565b6040516104029190612865565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d91906128bc565b610c0c565b005b34801561044057600080fd5b5061045b60048036038101906104569190612b21565b610c2c565b604051610468919061265e565b60405180910390f35b34801561047d57600080fd5b5061049860048036038101906104939190612761565b610cb0565b005b3480156104a657600080fd5b506104c160048036038101906104bc9190612761565b610cc2565b6040516104ce91906127cf565b60405180910390f35b3480156104e357600080fd5b506104ec610d48565b6040516104f99190612709565b60405180910390f35b34801561050e57600080fd5b5061052960048036038101906105249190612b81565b610dd6565b6040516105369190612865565b60405180910390f35b34801561054b57600080fd5b50610554610e8d565b005b610570600480360381019061056b9190612b21565b610ea1565b005b34801561057e57600080fd5b5061059960048036038101906105949190612bda565b61111c565b005b3480156105a757600080fd5b506105b061112e565b6040516105bd9190612865565b60405180910390f35b3480156105d257600080fd5b506105ed60048036038101906105e89190612c33565b611134565b005b3480156105fb57600080fd5b50610604611159565b60405161061191906127cf565b60405180910390f35b34801561062657600080fd5b5061062f611183565b60405161063c9190612865565b60405180910390f35b34801561065157600080fd5b5061065a611189565b6040516106679190612709565b60405180910390f35b34801561067c57600080fd5b5061069760048036038101906106929190612c60565b61121b565b005b3480156106a557600080fd5b506106c060048036038101906106bb9190612d41565b611231565b005b3480156106ce57600080fd5b506106d7611293565b6040516106e49190612865565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f9190612761565b611299565b6040516107219190612709565b60405180910390f35b34801561073657600080fd5b5061073f611301565b60405161074c9190612865565b60405180910390f35b34801561076157600080fd5b5061077c60048036038101906107779190612df0565b61131f565b005b34801561078a57600080fd5b506107a560048036038101906107a09190612e30565b611373565b6040516107b2919061265e565b60405180910390f35b3480156107c757600080fd5b506107e260048036038101906107dd9190612b81565b611407565b005b3480156107f057600080fd5b5061080b60048036038101906108069190612df0565b61148a565b005b34801561081957600080fd5b50610834600480360381019061082f9190612761565b611520565b005b34801561084257600080fd5b5061085d60048036038101906108589190612b81565b611532565b60405161086a9190612865565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061094e575061094d8261154a565b5b9050919050565b60606000805461096490612e9f565b80601f016020809104026020016040519081016040528092919081815260200182805461099090612e9f565b80156109dd5780601f106109b2576101008083540402835291602001916109dd565b820191906000526020600020905b8154815290600101906020018083116109c057829003601f168201915b5050505050905090565b60006109f2826115b4565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3882610cc2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f90612f42565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ac76115ff565b73ffffffffffffffffffffffffffffffffffffffff161480610af65750610af581610af06115ff565b611373565b5b610b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2c90612fd4565b60405180910390fd5b610b3f8383611607565b505050565b600047905090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f60009054906101000a900460ff1681565b610b96610b906115ff565b826116c0565b610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcc90613066565b60405180910390fd5b610be0838383611755565b505050565b600d5481565b610bf3611a4e565b8060099081610c029190613232565b5050565b600b5481565b610c2783838360405180602001604052806000815250611231565b505050565b60008084604051602001610c40919061334c565b604051602081830303815290604052805190602001209050610ca6848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d5483611acc565b9150509392505050565b610cb8611a4e565b8060108190555050565b600080610cce83611ae3565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d36906133b3565b60405180910390fd5b80915050919050565b60098054610d5590612e9f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8190612e9f565b8015610dce5780601f10610da357610100808354040283529160200191610dce565b820191906000526020600020905b815481529060010190602001808311610db157829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3d90613445565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e95611a4e565b610e9f6000611b20565b565b600754610eae600c611be6565b10610eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee5906134b1565b60405180910390fd5b6008543414610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f299061351d565b60405180910390fd5b600f60009054906101000a900460ff1615610f9257610f52838383610c2c565b610f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8890613589565b60405180910390fd5b5b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190610fe2906135d8565b9190505550601054600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561106b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106290613692565b60405180910390fd5b611075600c611bf4565b6000611081600c611be6565b905061108d8482611c0a565b6000612710600b54346110a091906136b2565b6110aa9190613723565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611114573d6000803e3d6000fd5b505050505050565b611124611a4e565b80600d8190555050565b60105481565b61113c611a4e565b80600f60006101000a81548160ff02191690831515021790555050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075481565b60606001805461119890612e9f565b80601f01602080910402602001604051908101604052809291908181526020018280546111c490612e9f565b80156112115780601f106111e657610100808354040283529160200191611211565b820191906000526020600020905b8154815290600101906020018083116111f457829003601f168201915b5050505050905090565b61122d6112266115ff565b8383611c28565b5050565b61124261123c6115ff565b836116c0565b611281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127890613066565b60405180910390fd5b61128d84848484611d94565b50505050565b60085481565b60606112a4826115b4565b60006112ae611df0565b905060008151116112ce57604051806020016040528060008152506112f9565b806112d884611e82565b6040516020016112e9929190613790565b6040516020818303038152906040525b915050919050565b600061130d600c611be6565b60075461131a91906137b4565b905090565b611327611a4e565b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b819055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61140f611a4e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361147e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114759061385a565b60405180910390fd5b61148781611b20565b50565b611492611a4e565b804710156114d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cc906138c6565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561151b573d6000803e3d6000fd5b505050565b611528611a4e565b8060088190555050565b600e6020528060005260406000206000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6115bd81611f50565b6115fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f3906133b3565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661167a83610cc2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806116cc83610cc2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061170e575061170d8185611373565b5b8061174c57508373ffffffffffffffffffffffffffffffffffffffff16611734846109e7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661177582610cc2565b73ffffffffffffffffffffffffffffffffffffffff16146117cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c290613958565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361183a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611831906139ea565b60405180910390fd5b6118478383836001611f91565b8273ffffffffffffffffffffffffffffffffffffffff1661186782610cc2565b73ffffffffffffffffffffffffffffffffffffffff16146118bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b490613958565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a498383836001611f97565b505050565b611a566115ff565b73ffffffffffffffffffffffffffffffffffffffff16611a74611159565b73ffffffffffffffffffffffffffffffffffffffff1614611aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac190613a56565b60405180910390fd5b565b600082611ad98584611f9d565b1490509392505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b6001816000016000828254019250508190555050565b611c24828260405180602001604052806000815250611ff3565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8d90613ac2565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d87919061265e565b60405180910390a3505050565b611d9f848484611755565b611dab8484848461204e565b611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de190613b54565b60405180910390fd5b50505050565b606060098054611dff90612e9f565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2b90612e9f565b8015611e785780601f10611e4d57610100808354040283529160200191611e78565b820191906000526020600020905b815481529060010190602001808311611e5b57829003601f168201915b5050505050905090565b606060006001611e91846121d5565b01905060008167ffffffffffffffff811115611eb057611eaf61294d565b5b6040519080825280601f01601f191660200182016040528015611ee25781602001600182028036833780820191505090505b509050600082602001820190505b600115611f45578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611f3957611f386136f4565b5b04945060008503611ef0575b819350505050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16611f7283611ae3565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b50505050565b50505050565b60008082905060005b8451811015611fe857611fd382868381518110611fc657611fc5613b74565b5b6020026020010151612328565b91508080611fe0906135d8565b915050611fa6565b508091505092915050565b611ffd8383612353565b61200a600084848461204e565b612049576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204090613b54565b60405180910390fd5b505050565b600061206f8473ffffffffffffffffffffffffffffffffffffffff16612570565b156121c8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120986115ff565b8786866040518563ffffffff1660e01b81526004016120ba9493929190613bf8565b6020604051808303816000875af19250505080156120f657506040513d601f19601f820116820180604052508101906120f39190613c59565b60015b612178573d8060008114612126576040519150601f19603f3d011682016040523d82523d6000602084013e61212b565b606091505b506000815103612170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216790613b54565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506121cd565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612233577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612229576122286136f4565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612270576d04ee2d6d415b85acef81000000008381612266576122656136f4565b5b0492506020810190505b662386f26fc10000831061229f57662386f26fc100008381612295576122946136f4565b5b0492506010810190505b6305f5e10083106122c8576305f5e10083816122be576122bd6136f4565b5b0492506008810190505b61271083106122ed5761271083816122e3576122e26136f4565b5b0492506004810190505b606483106123105760648381612306576123056136f4565b5b0492506002810190505b600a831061231f576001810190505b80915050919050565b60008183106123405761233b8284612593565b61234b565b61234a8383612593565b5b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b990613cd2565b60405180910390fd5b6123cb81611f50565b1561240b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240290613d3e565b60405180910390fd5b612419600083836001611f91565b61242281611f50565b15612462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245990613d3e565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461256c600083836001611f97565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125f3816125be565b81146125fe57600080fd5b50565b600081359050612610816125ea565b92915050565b60006020828403121561262c5761262b6125b4565b5b600061263a84828501612601565b91505092915050565b60008115159050919050565b61265881612643565b82525050565b6000602082019050612673600083018461264f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156126b3578082015181840152602081019050612698565b60008484015250505050565b6000601f19601f8301169050919050565b60006126db82612679565b6126e58185612684565b93506126f5818560208601612695565b6126fe816126bf565b840191505092915050565b6000602082019050818103600083015261272381846126d0565b905092915050565b6000819050919050565b61273e8161272b565b811461274957600080fd5b50565b60008135905061275b81612735565b92915050565b600060208284031215612777576127766125b4565b5b60006127858482850161274c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127b98261278e565b9050919050565b6127c9816127ae565b82525050565b60006020820190506127e460008301846127c0565b92915050565b6127f3816127ae565b81146127fe57600080fd5b50565b600081359050612810816127ea565b92915050565b6000806040838503121561282d5761282c6125b4565b5b600061283b85828601612801565b925050602061284c8582860161274c565b9150509250929050565b61285f8161272b565b82525050565b600060208201905061287a6000830184612856565b92915050565b600061288b8261278e565b9050919050565b61289b81612880565b82525050565b60006020820190506128b66000830184612892565b92915050565b6000806000606084860312156128d5576128d46125b4565b5b60006128e386828701612801565b93505060206128f486828701612801565b92505060406129058682870161274c565b9150509250925092565b6000819050919050565b6129228161290f565b82525050565b600060208201905061293d6000830184612919565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612985826126bf565b810181811067ffffffffffffffff821117156129a4576129a361294d565b5b80604052505050565b60006129b76125aa565b90506129c3828261297c565b919050565b600067ffffffffffffffff8211156129e3576129e261294d565b5b6129ec826126bf565b9050602081019050919050565b82818337600083830152505050565b6000612a1b612a16846129c8565b6129ad565b905082815260208101848484011115612a3757612a36612948565b5b612a428482856129f9565b509392505050565b600082601f830112612a5f57612a5e612943565b5b8135612a6f848260208601612a08565b91505092915050565b600060208284031215612a8e57612a8d6125b4565b5b600082013567ffffffffffffffff811115612aac57612aab6125b9565b5b612ab884828501612a4a565b91505092915050565b600080fd5b600080fd5b60008083601f840112612ae157612ae0612943565b5b8235905067ffffffffffffffff811115612afe57612afd612ac1565b5b602083019150836020820283011115612b1a57612b19612ac6565b5b9250929050565b600080600060408486031215612b3a57612b396125b4565b5b6000612b4886828701612801565b935050602084013567ffffffffffffffff811115612b6957612b686125b9565b5b612b7586828701612acb565b92509250509250925092565b600060208284031215612b9757612b966125b4565b5b6000612ba584828501612801565b91505092915050565b612bb78161290f565b8114612bc257600080fd5b50565b600081359050612bd481612bae565b92915050565b600060208284031215612bf057612bef6125b4565b5b6000612bfe84828501612bc5565b91505092915050565b612c1081612643565b8114612c1b57600080fd5b50565b600081359050612c2d81612c07565b92915050565b600060208284031215612c4957612c486125b4565b5b6000612c5784828501612c1e565b91505092915050565b60008060408385031215612c7757612c766125b4565b5b6000612c8585828601612801565b9250506020612c9685828601612c1e565b9150509250929050565b600067ffffffffffffffff821115612cbb57612cba61294d565b5b612cc4826126bf565b9050602081019050919050565b6000612ce4612cdf84612ca0565b6129ad565b905082815260208101848484011115612d0057612cff612948565b5b612d0b8482856129f9565b509392505050565b600082601f830112612d2857612d27612943565b5b8135612d38848260208601612cd1565b91505092915050565b60008060008060808587031215612d5b57612d5a6125b4565b5b6000612d6987828801612801565b9450506020612d7a87828801612801565b9350506040612d8b8782880161274c565b925050606085013567ffffffffffffffff811115612dac57612dab6125b9565b5b612db887828801612d13565b91505092959194509250565b612dcd81612880565b8114612dd857600080fd5b50565b600081359050612dea81612dc4565b92915050565b60008060408385031215612e0757612e066125b4565b5b6000612e1585828601612ddb565b9250506020612e268582860161274c565b9150509250929050565b60008060408385031215612e4757612e466125b4565b5b6000612e5585828601612801565b9250506020612e6685828601612801565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612eb757607f821691505b602082108103612eca57612ec9612e70565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612f2c602183612684565b9150612f3782612ed0565b604082019050919050565b60006020820190508181036000830152612f5b81612f1f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000612fbe603d83612684565b9150612fc982612f62565b604082019050919050565b60006020820190508181036000830152612fed81612fb1565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000613050602d83612684565b915061305b82612ff4565b604082019050919050565b6000602082019050818103600083015261307f81613043565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026130e87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826130ab565b6130f286836130ab565b95508019841693508086168417925050509392505050565b6000819050919050565b600061312f61312a6131258461272b565b61310a565b61272b565b9050919050565b6000819050919050565b61314983613114565b61315d61315582613136565b8484546130b8565b825550505050565b600090565b613172613165565b61317d818484613140565b505050565b5b818110156131a15761319660008261316a565b600181019050613183565b5050565b601f8211156131e6576131b781613086565b6131c08461309b565b810160208510156131cf578190505b6131e36131db8561309b565b830182613182565b50505b505050565b600082821c905092915050565b6000613209600019846008026131eb565b1980831691505092915050565b600061322283836131f8565b9150826002028217905092915050565b61323b82612679565b67ffffffffffffffff8111156132545761325361294d565b5b61325e8254612e9f565b6132698282856131a5565b600060209050601f83116001811461329c576000841561328a578287015190505b6132948582613216565b8655506132fc565b601f1984166132aa86613086565b60005b828110156132d2578489015182556001820191506020850194506020810190506132ad565b868310156132ef57848901516132eb601f8916826131f8565b8355505b6001600288020188555050505b505050505050565b60008160601b9050919050565b600061331c82613304565b9050919050565b600061332e82613311565b9050919050565b613346613341826127ae565b613323565b82525050565b60006133588284613335565b60148201915081905092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061339d601883612684565b91506133a882613367565b602082019050919050565b600060208201905081810360008301526133cc81613390565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061342f602983612684565b915061343a826133d3565b604082019050919050565b6000602082019050818103600083015261345e81613422565b9050919050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b600061349b601283612684565b91506134a682613465565b602082019050919050565b600060208201905081810360008301526134ca8161348e565b9050919050565b7f496e636f7272656374206d696e74207072696365000000000000000000000000600082015250565b6000613507601483612684565b9150613512826134d1565b602082019050919050565b60006020820190508181036000830152613536816134fa565b9050919050565b7f41646472657373206e6f742077686974656c6973746564000000000000000000600082015250565b6000613573601783612684565b915061357e8261353d565b602082019050919050565b600060208201905081810360008301526135a281613566565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135e38261272b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613615576136146135a9565b5b600182019050919050565b7f4d696e74206c696d6974207265616368656420666f722074686973206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061367c602383612684565b915061368782613620565b604082019050919050565b600060208201905081810360008301526136ab8161366f565b9050919050565b60006136bd8261272b565b91506136c88361272b565b92508282026136d68161272b565b915082820484148315176136ed576136ec6135a9565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061372e8261272b565b91506137398361272b565b925082613749576137486136f4565b5b828204905092915050565b600081905092915050565b600061376a82612679565b6137748185613754565b9350613784818560208601612695565b80840191505092915050565b600061379c828561375f565b91506137a8828461375f565b91508190509392505050565b60006137bf8261272b565b91506137ca8361272b565b92508282039050818111156137e2576137e16135a9565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613844602683612684565b915061384f826137e8565b604082019050919050565b6000602082019050818103600083015261387381613837565b9050919050565b7f496e73756666696369656e742062616c616e6365000000000000000000000000600082015250565b60006138b0601483612684565b91506138bb8261387a565b602082019050919050565b600060208201905081810360008301526138df816138a3565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613942602583612684565b915061394d826138e6565b604082019050919050565b6000602082019050818103600083015261397181613935565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006139d4602483612684565b91506139df82613978565b604082019050919050565b60006020820190508181036000830152613a03816139c7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a40602083612684565b9150613a4b82613a0a565b602082019050919050565b60006020820190508181036000830152613a6f81613a33565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613aac601983612684565b9150613ab782613a76565b602082019050919050565b60006020820190508181036000830152613adb81613a9f565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613b3e603283612684565b9150613b4982613ae2565b604082019050919050565b60006020820190508181036000830152613b6d81613b31565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000613bca82613ba3565b613bd48185613bae565b9350613be4818560208601612695565b613bed816126bf565b840191505092915050565b6000608082019050613c0d60008301876127c0565b613c1a60208301866127c0565b613c276040830185612856565b8181036060830152613c398184613bbf565b905095945050505050565b600081519050613c53816125ea565b92915050565b600060208284031215613c6f57613c6e6125b4565b5b6000613c7d84828501613c44565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613cbc602083612684565b9150613cc782613c86565b602082019050919050565b60006020820190508181036000830152613ceb81613caf565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613d28601c83612684565b9150613d3382613cf2565b602082019050919050565b60006020820190508181036000830152613d5781613d1b565b905091905056fea2646970667358221220430751eead1479fd9bcb56e5ecf56958e96cab58b35acc1c9ab66b848f625e4264736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000971bbfb0b9e72c36614c4b808b55a1e057f12ce3000000000000000000000000000000000000000000000000000000000009eb10b6110e3159f3c5b9426e5e97d85b6bb98201c6770a8d2e67995478283dd90f67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000021000000000000000000000000acd6acc601956d33a10b66ffd0509eaf4d364c01000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f737579652e696e667572612d697066732e696f2f697066732f516d53564e5132726a71475433347135444a45414d6262714634314b484266785479697842366d4b464e724d6e6a2f00000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061020f5760003560e01c80637aebe5c411610118578063c002d23d116100a0578063e985e9c51161006f578063e985e9c51461077e578063f2fde38b146107bb578063f3fef3a3146107e4578063f4a0a5281461080d578063fddcb5ea146108365761020f565b8063c002d23d146106c2578063c87b56dd146106ed578063d87854cb1461072a578063e0d0f746146107555761020f565b80638da5cb5b116100e75780638da5cb5b146105ef578063902d55a51461061a57806395d89b4114610645578063a22cb46514610670578063b88d4fde146106995761020f565b80637aebe5c4146105565780637cb6475914610572578063800d06171461059b57806380e3f1ad146105c65761020f565b806330176e131161019b5780636262ac3b1161016a5780636262ac3b146104715780636352211e1461049a5780636f458133146104d757806370a0823114610502578063715018a61461053f5761020f565b806330176e13146103b7578063335477fc146103e057806342842e0e1461040b5780635a23dd99146104345761020f565b806312065fe0116101e257806312065fe0146102e2578063143759be1461030d578063152e640a1461033857806323b872dd146103635780632eb4a7ab1461038c5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190612616565b610873565b604051610248919061265e565b60405180910390f35b34801561025d57600080fd5b50610266610955565b6040516102739190612709565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190612761565b6109e7565b6040516102b091906127cf565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190612816565b610a2d565b005b3480156102ee57600080fd5b506102f7610b44565b6040516103049190612865565b60405180910390f35b34801561031957600080fd5b50610322610b4c565b60405161032f91906128a1565b60405180910390f35b34801561034457600080fd5b5061034d610b72565b60405161035a919061265e565b60405180910390f35b34801561036f57600080fd5b5061038a600480360381019061038591906128bc565b610b85565b005b34801561039857600080fd5b506103a1610be5565b6040516103ae9190612928565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d99190612a78565b610beb565b005b3480156103ec57600080fd5b506103f5610c06565b6040516104029190612865565b60405180910390f35b34801561041757600080fd5b50610432600480360381019061042d91906128bc565b610c0c565b005b34801561044057600080fd5b5061045b60048036038101906104569190612b21565b610c2c565b604051610468919061265e565b60405180910390f35b34801561047d57600080fd5b5061049860048036038101906104939190612761565b610cb0565b005b3480156104a657600080fd5b506104c160048036038101906104bc9190612761565b610cc2565b6040516104ce91906127cf565b60405180910390f35b3480156104e357600080fd5b506104ec610d48565b6040516104f99190612709565b60405180910390f35b34801561050e57600080fd5b5061052960048036038101906105249190612b81565b610dd6565b6040516105369190612865565b60405180910390f35b34801561054b57600080fd5b50610554610e8d565b005b610570600480360381019061056b9190612b21565b610ea1565b005b34801561057e57600080fd5b5061059960048036038101906105949190612bda565b61111c565b005b3480156105a757600080fd5b506105b061112e565b6040516105bd9190612865565b60405180910390f35b3480156105d257600080fd5b506105ed60048036038101906105e89190612c33565b611134565b005b3480156105fb57600080fd5b50610604611159565b60405161061191906127cf565b60405180910390f35b34801561062657600080fd5b5061062f611183565b60405161063c9190612865565b60405180910390f35b34801561065157600080fd5b5061065a611189565b6040516106679190612709565b60405180910390f35b34801561067c57600080fd5b5061069760048036038101906106929190612c60565b61121b565b005b3480156106a557600080fd5b506106c060048036038101906106bb9190612d41565b611231565b005b3480156106ce57600080fd5b506106d7611293565b6040516106e49190612865565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f9190612761565b611299565b6040516107219190612709565b60405180910390f35b34801561073657600080fd5b5061073f611301565b60405161074c9190612865565b60405180910390f35b34801561076157600080fd5b5061077c60048036038101906107779190612df0565b61131f565b005b34801561078a57600080fd5b506107a560048036038101906107a09190612e30565b611373565b6040516107b2919061265e565b60405180910390f35b3480156107c757600080fd5b506107e260048036038101906107dd9190612b81565b611407565b005b3480156107f057600080fd5b5061080b60048036038101906108069190612df0565b61148a565b005b34801561081957600080fd5b50610834600480360381019061082f9190612761565b611520565b005b34801561084257600080fd5b5061085d60048036038101906108589190612b81565b611532565b60405161086a9190612865565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061094e575061094d8261154a565b5b9050919050565b60606000805461096490612e9f565b80601f016020809104026020016040519081016040528092919081815260200182805461099090612e9f565b80156109dd5780601f106109b2576101008083540402835291602001916109dd565b820191906000526020600020905b8154815290600101906020018083116109c057829003601f168201915b5050505050905090565b60006109f2826115b4565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3882610cc2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f90612f42565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ac76115ff565b73ffffffffffffffffffffffffffffffffffffffff161480610af65750610af581610af06115ff565b611373565b5b610b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2c90612fd4565b60405180910390fd5b610b3f8383611607565b505050565b600047905090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f60009054906101000a900460ff1681565b610b96610b906115ff565b826116c0565b610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcc90613066565b60405180910390fd5b610be0838383611755565b505050565b600d5481565b610bf3611a4e565b8060099081610c029190613232565b5050565b600b5481565b610c2783838360405180602001604052806000815250611231565b505050565b60008084604051602001610c40919061334c565b604051602081830303815290604052805190602001209050610ca6848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d5483611acc565b9150509392505050565b610cb8611a4e565b8060108190555050565b600080610cce83611ae3565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d36906133b3565b60405180910390fd5b80915050919050565b60098054610d5590612e9f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8190612e9f565b8015610dce5780601f10610da357610100808354040283529160200191610dce565b820191906000526020600020905b815481529060010190602001808311610db157829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3d90613445565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e95611a4e565b610e9f6000611b20565b565b600754610eae600c611be6565b10610eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee5906134b1565b60405180910390fd5b6008543414610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f299061351d565b60405180910390fd5b600f60009054906101000a900460ff1615610f9257610f52838383610c2c565b610f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8890613589565b60405180910390fd5b5b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190610fe2906135d8565b9190505550601054600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561106b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106290613692565b60405180910390fd5b611075600c611bf4565b6000611081600c611be6565b905061108d8482611c0a565b6000612710600b54346110a091906136b2565b6110aa9190613723565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611114573d6000803e3d6000fd5b505050505050565b611124611a4e565b80600d8190555050565b60105481565b61113c611a4e565b80600f60006101000a81548160ff02191690831515021790555050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075481565b60606001805461119890612e9f565b80601f01602080910402602001604051908101604052809291908181526020018280546111c490612e9f565b80156112115780601f106111e657610100808354040283529160200191611211565b820191906000526020600020905b8154815290600101906020018083116111f457829003601f168201915b5050505050905090565b61122d6112266115ff565b8383611c28565b5050565b61124261123c6115ff565b836116c0565b611281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127890613066565b60405180910390fd5b61128d84848484611d94565b50505050565b60085481565b60606112a4826115b4565b60006112ae611df0565b905060008151116112ce57604051806020016040528060008152506112f9565b806112d884611e82565b6040516020016112e9929190613790565b6040516020818303038152906040525b915050919050565b600061130d600c611be6565b60075461131a91906137b4565b905090565b611327611a4e565b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b819055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61140f611a4e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361147e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114759061385a565b60405180910390fd5b61148781611b20565b50565b611492611a4e565b804710156114d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cc906138c6565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561151b573d6000803e3d6000fd5b505050565b611528611a4e565b8060088190555050565b600e6020528060005260406000206000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6115bd81611f50565b6115fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f3906133b3565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661167a83610cc2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806116cc83610cc2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061170e575061170d8185611373565b5b8061174c57508373ffffffffffffffffffffffffffffffffffffffff16611734846109e7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661177582610cc2565b73ffffffffffffffffffffffffffffffffffffffff16146117cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c290613958565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361183a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611831906139ea565b60405180910390fd5b6118478383836001611f91565b8273ffffffffffffffffffffffffffffffffffffffff1661186782610cc2565b73ffffffffffffffffffffffffffffffffffffffff16146118bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b490613958565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a498383836001611f97565b505050565b611a566115ff565b73ffffffffffffffffffffffffffffffffffffffff16611a74611159565b73ffffffffffffffffffffffffffffffffffffffff1614611aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac190613a56565b60405180910390fd5b565b600082611ad98584611f9d565b1490509392505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b6001816000016000828254019250508190555050565b611c24828260405180602001604052806000815250611ff3565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8d90613ac2565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d87919061265e565b60405180910390a3505050565b611d9f848484611755565b611dab8484848461204e565b611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de190613b54565b60405180910390fd5b50505050565b606060098054611dff90612e9f565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2b90612e9f565b8015611e785780601f10611e4d57610100808354040283529160200191611e78565b820191906000526020600020905b815481529060010190602001808311611e5b57829003601f168201915b5050505050905090565b606060006001611e91846121d5565b01905060008167ffffffffffffffff811115611eb057611eaf61294d565b5b6040519080825280601f01601f191660200182016040528015611ee25781602001600182028036833780820191505090505b509050600082602001820190505b600115611f45578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611f3957611f386136f4565b5b04945060008503611ef0575b819350505050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16611f7283611ae3565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b50505050565b50505050565b60008082905060005b8451811015611fe857611fd382868381518110611fc657611fc5613b74565b5b6020026020010151612328565b91508080611fe0906135d8565b915050611fa6565b508091505092915050565b611ffd8383612353565b61200a600084848461204e565b612049576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204090613b54565b60405180910390fd5b505050565b600061206f8473ffffffffffffffffffffffffffffffffffffffff16612570565b156121c8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120986115ff565b8786866040518563ffffffff1660e01b81526004016120ba9493929190613bf8565b6020604051808303816000875af19250505080156120f657506040513d601f19601f820116820180604052508101906120f39190613c59565b60015b612178573d8060008114612126576040519150601f19603f3d011682016040523d82523d6000602084013e61212b565b606091505b506000815103612170576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216790613b54565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506121cd565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612233577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612229576122286136f4565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612270576d04ee2d6d415b85acef81000000008381612266576122656136f4565b5b0492506020810190505b662386f26fc10000831061229f57662386f26fc100008381612295576122946136f4565b5b0492506010810190505b6305f5e10083106122c8576305f5e10083816122be576122bd6136f4565b5b0492506008810190505b61271083106122ed5761271083816122e3576122e26136f4565b5b0492506004810190505b606483106123105760648381612306576123056136f4565b5b0492506002810190505b600a831061231f576001810190505b80915050919050565b60008183106123405761233b8284612593565b61234b565b61234a8383612593565b5b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b990613cd2565b60405180910390fd5b6123cb81611f50565b1561240b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240290613d3e565b60405180910390fd5b612419600083836001611f91565b61242281611f50565b15612462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245990613d3e565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461256c600083836001611f97565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125f3816125be565b81146125fe57600080fd5b50565b600081359050612610816125ea565b92915050565b60006020828403121561262c5761262b6125b4565b5b600061263a84828501612601565b91505092915050565b60008115159050919050565b61265881612643565b82525050565b6000602082019050612673600083018461264f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156126b3578082015181840152602081019050612698565b60008484015250505050565b6000601f19601f8301169050919050565b60006126db82612679565b6126e58185612684565b93506126f5818560208601612695565b6126fe816126bf565b840191505092915050565b6000602082019050818103600083015261272381846126d0565b905092915050565b6000819050919050565b61273e8161272b565b811461274957600080fd5b50565b60008135905061275b81612735565b92915050565b600060208284031215612777576127766125b4565b5b60006127858482850161274c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127b98261278e565b9050919050565b6127c9816127ae565b82525050565b60006020820190506127e460008301846127c0565b92915050565b6127f3816127ae565b81146127fe57600080fd5b50565b600081359050612810816127ea565b92915050565b6000806040838503121561282d5761282c6125b4565b5b600061283b85828601612801565b925050602061284c8582860161274c565b9150509250929050565b61285f8161272b565b82525050565b600060208201905061287a6000830184612856565b92915050565b600061288b8261278e565b9050919050565b61289b81612880565b82525050565b60006020820190506128b66000830184612892565b92915050565b6000806000606084860312156128d5576128d46125b4565b5b60006128e386828701612801565b93505060206128f486828701612801565b92505060406129058682870161274c565b9150509250925092565b6000819050919050565b6129228161290f565b82525050565b600060208201905061293d6000830184612919565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612985826126bf565b810181811067ffffffffffffffff821117156129a4576129a361294d565b5b80604052505050565b60006129b76125aa565b90506129c3828261297c565b919050565b600067ffffffffffffffff8211156129e3576129e261294d565b5b6129ec826126bf565b9050602081019050919050565b82818337600083830152505050565b6000612a1b612a16846129c8565b6129ad565b905082815260208101848484011115612a3757612a36612948565b5b612a428482856129f9565b509392505050565b600082601f830112612a5f57612a5e612943565b5b8135612a6f848260208601612a08565b91505092915050565b600060208284031215612a8e57612a8d6125b4565b5b600082013567ffffffffffffffff811115612aac57612aab6125b9565b5b612ab884828501612a4a565b91505092915050565b600080fd5b600080fd5b60008083601f840112612ae157612ae0612943565b5b8235905067ffffffffffffffff811115612afe57612afd612ac1565b5b602083019150836020820283011115612b1a57612b19612ac6565b5b9250929050565b600080600060408486031215612b3a57612b396125b4565b5b6000612b4886828701612801565b935050602084013567ffffffffffffffff811115612b6957612b686125b9565b5b612b7586828701612acb565b92509250509250925092565b600060208284031215612b9757612b966125b4565b5b6000612ba584828501612801565b91505092915050565b612bb78161290f565b8114612bc257600080fd5b50565b600081359050612bd481612bae565b92915050565b600060208284031215612bf057612bef6125b4565b5b6000612bfe84828501612bc5565b91505092915050565b612c1081612643565b8114612c1b57600080fd5b50565b600081359050612c2d81612c07565b92915050565b600060208284031215612c4957612c486125b4565b5b6000612c5784828501612c1e565b91505092915050565b60008060408385031215612c7757612c766125b4565b5b6000612c8585828601612801565b9250506020612c9685828601612c1e565b9150509250929050565b600067ffffffffffffffff821115612cbb57612cba61294d565b5b612cc4826126bf565b9050602081019050919050565b6000612ce4612cdf84612ca0565b6129ad565b905082815260208101848484011115612d0057612cff612948565b5b612d0b8482856129f9565b509392505050565b600082601f830112612d2857612d27612943565b5b8135612d38848260208601612cd1565b91505092915050565b60008060008060808587031215612d5b57612d5a6125b4565b5b6000612d6987828801612801565b9450506020612d7a87828801612801565b9350506040612d8b8782880161274c565b925050606085013567ffffffffffffffff811115612dac57612dab6125b9565b5b612db887828801612d13565b91505092959194509250565b612dcd81612880565b8114612dd857600080fd5b50565b600081359050612dea81612dc4565b92915050565b60008060408385031215612e0757612e066125b4565b5b6000612e1585828601612ddb565b9250506020612e268582860161274c565b9150509250929050565b60008060408385031215612e4757612e466125b4565b5b6000612e5585828601612801565b9250506020612e6685828601612801565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612eb757607f821691505b602082108103612eca57612ec9612e70565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612f2c602183612684565b9150612f3782612ed0565b604082019050919050565b60006020820190508181036000830152612f5b81612f1f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000612fbe603d83612684565b9150612fc982612f62565b604082019050919050565b60006020820190508181036000830152612fed81612fb1565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000613050602d83612684565b915061305b82612ff4565b604082019050919050565b6000602082019050818103600083015261307f81613043565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026130e87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826130ab565b6130f286836130ab565b95508019841693508086168417925050509392505050565b6000819050919050565b600061312f61312a6131258461272b565b61310a565b61272b565b9050919050565b6000819050919050565b61314983613114565b61315d61315582613136565b8484546130b8565b825550505050565b600090565b613172613165565b61317d818484613140565b505050565b5b818110156131a15761319660008261316a565b600181019050613183565b5050565b601f8211156131e6576131b781613086565b6131c08461309b565b810160208510156131cf578190505b6131e36131db8561309b565b830182613182565b50505b505050565b600082821c905092915050565b6000613209600019846008026131eb565b1980831691505092915050565b600061322283836131f8565b9150826002028217905092915050565b61323b82612679565b67ffffffffffffffff8111156132545761325361294d565b5b61325e8254612e9f565b6132698282856131a5565b600060209050601f83116001811461329c576000841561328a578287015190505b6132948582613216565b8655506132fc565b601f1984166132aa86613086565b60005b828110156132d2578489015182556001820191506020850194506020810190506132ad565b868310156132ef57848901516132eb601f8916826131f8565b8355505b6001600288020188555050505b505050505050565b60008160601b9050919050565b600061331c82613304565b9050919050565b600061332e82613311565b9050919050565b613346613341826127ae565b613323565b82525050565b60006133588284613335565b60148201915081905092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061339d601883612684565b91506133a882613367565b602082019050919050565b600060208201905081810360008301526133cc81613390565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061342f602983612684565b915061343a826133d3565b604082019050919050565b6000602082019050818103600083015261345e81613422565b9050919050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b600061349b601283612684565b91506134a682613465565b602082019050919050565b600060208201905081810360008301526134ca8161348e565b9050919050565b7f496e636f7272656374206d696e74207072696365000000000000000000000000600082015250565b6000613507601483612684565b9150613512826134d1565b602082019050919050565b60006020820190508181036000830152613536816134fa565b9050919050565b7f41646472657373206e6f742077686974656c6973746564000000000000000000600082015250565b6000613573601783612684565b915061357e8261353d565b602082019050919050565b600060208201905081810360008301526135a281613566565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006135e38261272b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613615576136146135a9565b5b600182019050919050565b7f4d696e74206c696d6974207265616368656420666f722074686973206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061367c602383612684565b915061368782613620565b604082019050919050565b600060208201905081810360008301526136ab8161366f565b9050919050565b60006136bd8261272b565b91506136c88361272b565b92508282026136d68161272b565b915082820484148315176136ed576136ec6135a9565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061372e8261272b565b91506137398361272b565b925082613749576137486136f4565b5b828204905092915050565b600081905092915050565b600061376a82612679565b6137748185613754565b9350613784818560208601612695565b80840191505092915050565b600061379c828561375f565b91506137a8828461375f565b91508190509392505050565b60006137bf8261272b565b91506137ca8361272b565b92508282039050818111156137e2576137e16135a9565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613844602683612684565b915061384f826137e8565b604082019050919050565b6000602082019050818103600083015261387381613837565b9050919050565b7f496e73756666696369656e742062616c616e6365000000000000000000000000600082015250565b60006138b0601483612684565b91506138bb8261387a565b602082019050919050565b600060208201905081810360008301526138df816138a3565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613942602583612684565b915061394d826138e6565b604082019050919050565b6000602082019050818103600083015261397181613935565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006139d4602483612684565b91506139df82613978565b604082019050919050565b60006020820190508181036000830152613a03816139c7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a40602083612684565b9150613a4b82613a0a565b602082019050919050565b60006020820190508181036000830152613a6f81613a33565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613aac601983612684565b9150613ab782613a76565b602082019050919050565b60006020820190508181036000830152613adb81613a9f565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613b3e603283612684565b9150613b4982613ae2565b604082019050919050565b60006020820190508181036000830152613b6d81613b31565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000613bca82613ba3565b613bd48185613bae565b9350613be4818560208601612695565b613bed816126bf565b840191505092915050565b6000608082019050613c0d60008301876127c0565b613c1a60208301866127c0565b613c276040830185612856565b8181036060830152613c398184613bbf565b905095945050505050565b600081519050613c53816125ea565b92915050565b600060208284031215613c6f57613c6e6125b4565b5b6000613c7d84828501613c44565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613cbc602083612684565b9150613cc782613c86565b602082019050919050565b60006020820190508181036000830152613ceb81613caf565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613d28601c83612684565b9150613d3382613cf2565b602082019050919050565b60006020820190508181036000830152613d5781613d1b565b905091905056fea2646970667358221220430751eead1479fd9bcb56e5ecf56958e96cab58b35acc1c9ab66b848f625e4264736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000971bbfb0b9e72c36614c4b808b55a1e057f12ce3000000000000000000000000000000000000000000000000000000000009eb10b6110e3159f3c5b9426e5e97d85b6bb98201c6770a8d2e67995478283dd90f67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000021000000000000000000000000acd6acc601956d33a10b66ffd0509eaf4d364c01000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f737579652e696e667572612d697066732e696f2f697066732f516d53564e5132726a71475433347135444a45414d6262714634314b484266785479697842366d4b464e724d6e6a2f00000000000000000000000000000000
-----Decoded View---------------
Arg [0] : totalSupply (uint256): 222
Arg [1] : mintPrice (uint256): 0
Arg [2] : baseTokenURI (string): https://suye.infura-ipfs.io/ipfs/QmSVNQ2rjqGT34q5DJEAMbbqF41KHBfxTyixB6mKFNrMnj/
Arg [3] : royaltyAddress (address): 0x971bbfB0B9e72c36614C4B808B55A1e057f12ce3
Arg [4] : royaltyFee (uint256): 650000
Arg [5] : _merkleRoot (bytes32): 0xb6110e3159f3c5b9426e5e97d85b6bb98201c6770a8d2e67995478283dd90f67
Arg [6] : whitelistEnabled (bool): False
Arg [7] : initialMintLimit (uint256): 1
Arg [8] : reserveCount (uint256): 33
Arg [9] : reserveAddress (address): 0xaCD6Acc601956D33A10B66FFD0509eaf4D364c01
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000de
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 000000000000000000000000971bbfb0b9e72c36614c4b808b55a1e057f12ce3
Arg [4] : 000000000000000000000000000000000000000000000000000000000009eb10
Arg [5] : b6110e3159f3c5b9426e5e97d85b6bb98201c6770a8d2e67995478283dd90f67
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [9] : 000000000000000000000000acd6acc601956d33a10b66ffd0509eaf4d364c01
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [11] : 68747470733a2f2f737579652e696e667572612d697066732e696f2f69706673
Arg [12] : 2f516d53564e5132726a71475433347135444a45414d6262714634314b484266
Arg [13] : 785479697842366d4b464e724d6e6a2f00000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.