Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
701
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HeyReap3r
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721A.sol"; import "./interface/IReap3rMint.sol"; contract HeyReap3r is ERC721A, IReap3rMint { string private _baseTokenURI; address public _proxySaleAddress; uint256 public immutable MAX_TOTAL_SUPPLY = 7000; constructor(string memory baseTokenURI, address proxySaleAddress) ERC721A("Hey! Reap3r", "REAP3R", 100) { _baseTokenURI = baseTokenURI; _proxySaleAddress = proxySaleAddress; } function _baseURI() internal view override(ERC721A) returns (string memory) { return _baseTokenURI; } function setURI(string memory baseTokenURI) public virtual onlyOwner { _baseTokenURI = baseTokenURI; } function mint(address to, uint256 num) external override(IReap3rMint) { require(_proxySaleAddress == msg.sender, "Sale: Not the designated resale address"); require(MAX_TOTAL_SUPPLY - totalSupply() >= num, "Max supply reached"); _safeMint(to, num); } function totalSupply() public view virtual override(ERC721A, IReap3rMint) returns (uint256) { return super.totalSupply(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // Creators: locationtba.eth, 2pmflow.eth pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./lib/RevokableOperatorFilterer.sol"; import "./lib/RevokableDefaultOperatorFilterer.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable, RevokableDefaultOperatorFilterer, Ownable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override onlyAllowedOperatorApproval(to) { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override onlyAllowedOperator(from) { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} function owner() public view virtual override (Ownable, RevokableOperatorFilterer) returns (address) { return Ownable.owner(); } }
pragma solidity ^0.8.0; import "../ERC721A.sol"; interface IReap3rMint { /** * @dev Generate NFT by `num` with given `to`. */ function mint(address to, uint256 num) external; /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./RevokableOperatorFilterer.sol"; import "./OperatorFilterer.sol"; /** * @title RevokableDefaultOperatorFilterer * @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./OperatorFilterer.sol"; /** * @title RevokableOperatorFilterer * @notice This contract is meant to allow contracts to permanently opt out of the OperatorFilterRegistry. The Registry * itself has an "unregister" function, but if the contract is ownable, the owner can re-register at any point. * As implemented, this abstract contract allows the contract owner to toggle the * isOperatorFilterRegistryRevoked flag in order to permanently bypass the OperatorFilterRegistry checks. */ abstract contract RevokableOperatorFilterer is OperatorFilterer { error OnlyOwner(); error AlreadyRevoked(); bool private _isOperatorFilterRegistryRevoked; modifier onlyAllowedOperator(address from) override { // Check registry code length to facilitate testing in environments without a deployed registry. if (!_isOperatorFilterRegistryRevoked && address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) override { // Check registry code length to facilitate testing in environments without a deployed registry. if (!_isOperatorFilterRegistryRevoked && address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } _; } /** * @notice Disable the isOperatorFilterRegistryRevoked flag. OnlyOwner. */ function revokeOperatorFilterRegistry() external { if (msg.sender != owner()) { revert OnlyOwner(); } if (_isOperatorFilterRegistryRevoked) { revert AlreadyRevoked(); } _isOperatorFilterRegistryRevoked = true; } function isOperatorFilterRegistryRevoked() public view returns (bool) { return _isOperatorFilterRegistryRevoked; } /** * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract */ function owner() public view virtual returns (address); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"proxySaleAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyRevoked","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_proxySaleAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","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":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405260006001556000600855611b5860a0908152503480156200002457600080fd5b50604051620052763803806200527683398181016040528101906200004a91906200067b565b6040518060400160405280600b81526020017f48657921205265617033720000000000000000000000000000000000000000008152506040518060400160405280600681526020017f52454150335200000000000000000000000000000000000000000000000000008152506064733cc6cdda760b79bafa08df41ecfa224f810dceb6600160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620002c45780156200018a576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b815260040162000150929190620006f2565b600060405180830381600087803b1580156200016b57600080fd5b505af115801562000180573d6000803e3d6000fd5b50505050620002c3565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000244576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200020a929190620006f2565b600060405180830381600087803b1580156200022557600080fd5b505af11580156200023a573d6000803e3d6000fd5b50505050620002c2565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200028d91906200071f565b600060405180830381600087803b158015620002a857600080fd5b505af1158015620002bd573d6000803e3d6000fd5b505050505b5b5b5050620002e6620002da620003b660201b60201c565b620003be60201b60201c565b600081116200032c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200032390620007c3565b60405180910390fd5b82600290816200033d919062000a30565b5081600390816200034f919062000a30565b50806080818152505050505081600990816200036c919062000a30565b5080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000b17565b600033905090565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620004ec82620004a1565b810181811067ffffffffffffffff821117156200050e576200050d620004b2565b5b80604052505050565b60006200052362000483565b9050620005318282620004e1565b919050565b600067ffffffffffffffff821115620005545762000553620004b2565b5b6200055f82620004a1565b9050602081019050919050565b60005b838110156200058c5780820151818401526020810190506200056f565b60008484015250505050565b6000620005af620005a98462000536565b62000517565b905082815260208101848484011115620005ce57620005cd6200049c565b5b620005db8482856200056c565b509392505050565b600082601f830112620005fb57620005fa62000497565b5b81516200060d84826020860162000598565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006438262000616565b9050919050565b620006558162000636565b81146200066157600080fd5b50565b60008151905062000675816200064a565b92915050565b600080604083850312156200069557620006946200048d565b5b600083015167ffffffffffffffff811115620006b657620006b562000492565b5b620006c485828601620005e3565b9250506020620006d78582860162000664565b9150509250929050565b620006ec8162000636565b82525050565b6000604082019050620007096000830185620006e1565b620007186020830184620006e1565b9392505050565b6000602082019050620007366000830184620006e1565b92915050565b600082825260208201905092915050565b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b6000620007ab6027836200073c565b9150620007b8826200074d565b604082019050919050565b60006020820190508181036000830152620007de816200079c565b9050919050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200083857607f821691505b6020821081036200084e576200084d620007f0565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620008b87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000879565b620008c4868362000879565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620009116200090b6200090584620008dc565b620008e6565b620008dc565b9050919050565b6000819050919050565b6200092d83620008f0565b620009456200093c8262000918565b84845462000886565b825550505050565b600090565b6200095c6200094d565b6200096981848462000922565b505050565b5b8181101562000991576200098560008262000952565b6001810190506200096f565b5050565b601f821115620009e057620009aa8162000854565b620009b58462000869565b81016020851015620009c5578190505b620009dd620009d48562000869565b8301826200096e565b50505b505050565b600082821c905092915050565b600062000a0560001984600802620009e5565b1980831691505092915050565b600062000a208383620009f2565b9150826002028217905092915050565b62000a3b82620007e5565b67ffffffffffffffff81111562000a575762000a56620004b2565b5b62000a6382546200081f565b62000a7082828562000995565b600060209050601f83116001811462000aa8576000841562000a93578287015190505b62000a9f858262000a12565b86555062000b0f565b601f19841662000ab88662000854565b60005b8281101562000ae25784890151825560018201915060208501945060208101905062000abb565b8683101562000b02578489015162000afe601f891682620009f2565b8355505b6001600288020188555050505b505050505050565b60805160a05161472462000b5260003960008181610d4b0152610e080152600081816121600152818161218901526127b101526147246000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80635ef9432a116100f9578063a22cb46511610097578063d7224ba011610071578063d7224ba0146104a8578063e985e9c5146104c6578063ecba222a146104f6578063f2fde38b14610514576101a9565b8063a22cb46514610440578063b88d4fde1461045c578063c87b56dd14610478576101a9565b8063715018a6116100d3578063715018a6146103dc5780638da5cb5b146103e6578063919aa07a1461040457806395d89b4114610422576101a9565b80635ef9432a146103725780636352211e1461037c57806370a08231146103ac576101a9565b806323b872dd1161016657806340c10f191161014057806340c10f19146102ec57806341f434341461030857806342842e0e146103265780634f6ccce714610342576101a9565b806323b872dd146102825780632f745c591461029e57806333039d3d146102ce576101a9565b806301ffc9a7146101ae57806302fe5305146101de57806306fdde03146101fa578063081812fc14610218578063095ea7b31461024857806318160ddd14610264575b600080fd5b6101c860048036038101906101c39190612deb565b610530565b6040516101d59190612e33565b60405180910390f35b6101f860048036038101906101f39190612f94565b61067a565b005b610202610695565b60405161020f919061305c565b60405180910390f35b610232600480360381019061022d91906130b4565b610727565b60405161023f9190613122565b60405180910390f35b610262600480360381019061025d9190613169565b6107ac565b005b61026c6109d7565b60405161027991906131b8565b60405180910390f35b61029c600480360381019061029791906131d3565b6109e6565b005b6102b860048036038101906102b39190613169565b610b4d565b6040516102c591906131b8565b60405180910390f35b6102d6610d49565b6040516102e391906131b8565b60405180910390f35b61030660048036038101906103019190613169565b610d6d565b005b610310610e80565b60405161031d9190613285565b60405180910390f35b610340600480360381019061033b91906131d3565b610e92565b005b61035c600480360381019061035791906130b4565b611019565b60405161036991906131b8565b60405180910390f35b61037a61106c565b005b610396600480360381019061039191906130b4565b611139565b6040516103a39190613122565b60405180910390f35b6103c660048036038101906103c191906132a0565b61114f565b6040516103d391906131b8565b60405180910390f35b6103e4611237565b005b6103ee61124b565b6040516103fb9190613122565b60405180910390f35b61040c61125a565b6040516104199190613122565b60405180910390f35b61042a611280565b604051610437919061305c565b60405180910390f35b61045a600480360381019061045591906132f9565b611312565b005b610476600480360381019061047191906133da565b6115a5565b005b610492600480360381019061048d91906130b4565b6117a3565b60405161049f919061305c565b60405180910390f35b6104b061184a565b6040516104bd91906131b8565b60405180910390f35b6104e060048036038101906104db919061345d565b611850565b6040516104ed9190612e33565b60405180910390f35b6104fe6118e4565b60405161050b9190612e33565b60405180910390f35b61052e600480360381019061052991906132a0565b6118fa565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105fb57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061066357507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061067357506106728261197d565b5b9050919050565b6106826119e7565b8060099081610691919061369f565b5050565b6060600280546106a4906134cc565b80601f01602080910402602001604051908101604052809291908181526020018280546106d0906134cc565b801561071d5780601f106106f25761010080835404028352916020019161071d565b820191906000526020600020905b81548152906001019060200180831161070057829003601f168201915b5050505050905090565b600061073282611a65565b610771576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610768906137e3565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8160008054906101000a900460ff161580156107ed575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b156108be576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161083b929190613803565b602060405180830381865afa158015610858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087c9190613841565b6108bd57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016108b49190613122565b60405180910390fd5b5b60006108c983611139565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610939576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610930906138e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610958611a73565b73ffffffffffffffffffffffffffffffffffffffff161480610987575061098681610981611a73565b611850565b5b6109c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bd90613972565b60405180910390fd5b6109d1848483611a7b565b50505050565b60006109e1611b2d565b905090565b8260008054906101000a900460ff16158015610a27575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b15610b3b573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a6f57610a6a848484611b37565b610b47565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610ab8929190613803565b602060405180830381865afa158015610ad5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af99190613841565b610b3a57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610b319190613122565b60405180910390fd5b5b610b46848484611b37565b5b50505050565b6000610b588361114f565b8210610b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9090613a04565b60405180910390fd5b6000610ba36109d7565b905060008060005b83811015610d07576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610c9d57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610cf357868403610ce4578195505050505050610d43565b8380610cef90613a53565b9450505b508080610cff90613a53565b915050610bab565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3a90613b0d565b60405180910390fd5b92915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b3373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df490613b9f565b60405180910390fd5b80610e066109d7565b7f0000000000000000000000000000000000000000000000000000000000000000610e319190613bbf565b1015610e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6990613c3f565b60405180910390fd5b610e7c82826120ee565b5050565b6daaeb6d7670e522a718067333cd4e81565b8260008054906101000a900460ff16158015610ed3575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b15610ff7573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f2b57610f26848484604051806020016040528060008152506115a5565b611013565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610f74929190613803565b602060405180830381865afa158015610f91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb59190613841565b610ff657336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610fed9190613122565b60405180910390fd5b5b611012848484604051806020016040528060008152506115a5565b5b50505050565b60006110236109d7565b8210611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b90613cd1565b60405180910390fd5b819050919050565b61107461124b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110d8576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900460ff161561111d576040517f905e710700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016000806101000a81548160ff021916908315150217905550565b60006111448261210c565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b690613d63565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61123f6119e7565b611249600061230f565b565b60006112556123d4565b905090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003805461128f906134cc565b80601f01602080910402602001604051908101604052809291908181526020018280546112bb906134cc565b80156113085780601f106112dd57610100808354040283529160200191611308565b820191906000526020600020905b8154815290600101906020018083116112eb57829003601f168201915b5050505050905090565b8160008054906101000a900460ff16158015611353575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b15611424576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016113a1929190613803565b602060405180830381865afa1580156113be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e29190613841565b61142357806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161141a9190613122565b60405180910390fd5b5b61142c611a73565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611499576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149090613dcf565b60405180910390fd5b81600760006114a6611a73565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508273ffffffffffffffffffffffffffffffffffffffff16611553611a73565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31846040516115989190612e33565b60405180910390a3505050565b8360008054906101000a900460ff161580156115e6575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b15611745573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361167957611629858585611b37565b611635858585856123fd565b611674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166b90613e61565b60405180910390fd5b61179c565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016116c2929190613803565b602060405180830381865afa1580156116df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117039190613841565b61174457336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161173b9190613122565b60405180910390fd5b5b611750858585611b37565b61175c858585856123fd565b61179b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179290613e61565b60405180910390fd5b5b5050505050565b60606117ae82611a65565b6117ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e490613ef3565b60405180910390fd5b60006117f7612584565b905060008151116118175760405180602001604052806000815250611842565b8061182184612616565b604051602001611832929190613f4f565b6040516020818303038152906040525b915050919050565b60085481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60008060009054906101000a900460ff16905090565b6119026119e7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196890613fe5565b60405180910390fd5b61197a8161230f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6119ef611a73565b73ffffffffffffffffffffffffffffffffffffffff16611a0d61124b565b73ffffffffffffffffffffffffffffffffffffffff1614611a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a90614051565b60405180910390fd5b565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600154905090565b6000611b428261210c565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611b69611a73565b73ffffffffffffffffffffffffffffffffffffffff161480611bc55750611b8e611a73565b73ffffffffffffffffffffffffffffffffffffffff16611bad84610727565b73ffffffffffffffffffffffffffffffffffffffff16145b80611be15750611be08260000151611bdb611a73565b611850565b5b905080611c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1a906140e3565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8c90614175565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfb90614207565b60405180910390fd5b611d1185858560016126e4565b611d216000848460000151611a7b565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16611d8f9190614243565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16611e339190614287565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184611f3991906142cb565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361207e57611fae81611a65565b1561207d576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120e686868660016126ea565b505050505050565b6121088282604051806020016040528060008152506126f0565b5050565b612114612d45565b61211d82611a65565b61215c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215390614371565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000083106121c05760017f0000000000000000000000000000000000000000000000000000000000000000846121b39190613bbf565b6121bd91906142cb565b90505b60008390505b8181106122ce576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146122ba5780935050505061230a565b5080806122c690614391565b9150506121c6565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123019061442c565b60405180910390fd5b919050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061241e8473ffffffffffffffffffffffffffffffffffffffff16612bcf565b15612577578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612447611a73565b8786866040518563ffffffff1660e01b815260040161246994939291906144a1565b6020604051808303816000875af19250505080156124a557506040513d601f19601f820116820180604052508101906124a29190614502565b60015b612527573d80600081146124d5576040519150601f19603f3d011682016040523d82523d6000602084013e6124da565b606091505b50600081510361251f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251690613e61565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061257c565b600190505b949350505050565b606060098054612593906134cc565b80601f01602080910402602001604051908101604052809291908181526020018280546125bf906134cc565b801561260c5780601f106125e15761010080835404028352916020019161260c565b820191906000526020600020905b8154815290600101906020018083116125ef57829003601f168201915b5050505050905090565b60606000600161262584612bf2565b01905060008167ffffffffffffffff81111561264457612643612e69565b5b6040519080825280601f01601f1916602001820160405280156126765781602001600182028036833780820191505090505b509050600082602001820190505b6001156126d9578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816126cd576126cc61452f565b5b04945060008503612684575b819350505050919050565b50505050565b50505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275d906145d0565b60405180910390fd5b61276f81611a65565b156127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a69061463c565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000831115612812576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612809906146ce565b60405180910390fd5b61281f60008583866126e4565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815250509050604051806040016040528085836000015161291c9190614287565b6fffffffffffffffffffffffffffffffff1681526020018583602001516129439190614287565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015612bb257818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b5260008884886123fd565b612b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8890613e61565b60405180910390fd5b8180612b9c90613a53565b9250508080612baa90613a53565b915050612ae1565b5080600181905550612bc760008785886126ea565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612c50577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612c4657612c4561452f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612c8d576d04ee2d6d415b85acef81000000008381612c8357612c8261452f565b5b0492506020810190505b662386f26fc100008310612cbc57662386f26fc100008381612cb257612cb161452f565b5b0492506010810190505b6305f5e1008310612ce5576305f5e1008381612cdb57612cda61452f565b5b0492506008810190505b6127108310612d0a576127108381612d0057612cff61452f565b5b0492506004810190505b60648310612d2d5760648381612d2357612d2261452f565b5b0492506002810190505b600a8310612d3c576001810190505b80915050919050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612dc881612d93565b8114612dd357600080fd5b50565b600081359050612de581612dbf565b92915050565b600060208284031215612e0157612e00612d89565b5b6000612e0f84828501612dd6565b91505092915050565b60008115159050919050565b612e2d81612e18565b82525050565b6000602082019050612e486000830184612e24565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ea182612e58565b810181811067ffffffffffffffff82111715612ec057612ebf612e69565b5b80604052505050565b6000612ed3612d7f565b9050612edf8282612e98565b919050565b600067ffffffffffffffff821115612eff57612efe612e69565b5b612f0882612e58565b9050602081019050919050565b82818337600083830152505050565b6000612f37612f3284612ee4565b612ec9565b905082815260208101848484011115612f5357612f52612e53565b5b612f5e848285612f15565b509392505050565b600082601f830112612f7b57612f7a612e4e565b5b8135612f8b848260208601612f24565b91505092915050565b600060208284031215612faa57612fa9612d89565b5b600082013567ffffffffffffffff811115612fc857612fc7612d8e565b5b612fd484828501612f66565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613017578082015181840152602081019050612ffc565b60008484015250505050565b600061302e82612fdd565b6130388185612fe8565b9350613048818560208601612ff9565b61305181612e58565b840191505092915050565b600060208201905081810360008301526130768184613023565b905092915050565b6000819050919050565b6130918161307e565b811461309c57600080fd5b50565b6000813590506130ae81613088565b92915050565b6000602082840312156130ca576130c9612d89565b5b60006130d88482850161309f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061310c826130e1565b9050919050565b61311c81613101565b82525050565b60006020820190506131376000830184613113565b92915050565b61314681613101565b811461315157600080fd5b50565b6000813590506131638161313d565b92915050565b600080604083850312156131805761317f612d89565b5b600061318e85828601613154565b925050602061319f8582860161309f565b9150509250929050565b6131b28161307e565b82525050565b60006020820190506131cd60008301846131a9565b92915050565b6000806000606084860312156131ec576131eb612d89565b5b60006131fa86828701613154565b935050602061320b86828701613154565b925050604061321c8682870161309f565b9150509250925092565b6000819050919050565b600061324b613246613241846130e1565b613226565b6130e1565b9050919050565b600061325d82613230565b9050919050565b600061326f82613252565b9050919050565b61327f81613264565b82525050565b600060208201905061329a6000830184613276565b92915050565b6000602082840312156132b6576132b5612d89565b5b60006132c484828501613154565b91505092915050565b6132d681612e18565b81146132e157600080fd5b50565b6000813590506132f3816132cd565b92915050565b600080604083850312156133105761330f612d89565b5b600061331e85828601613154565b925050602061332f858286016132e4565b9150509250929050565b600067ffffffffffffffff82111561335457613353612e69565b5b61335d82612e58565b9050602081019050919050565b600061337d61337884613339565b612ec9565b90508281526020810184848401111561339957613398612e53565b5b6133a4848285612f15565b509392505050565b600082601f8301126133c1576133c0612e4e565b5b81356133d184826020860161336a565b91505092915050565b600080600080608085870312156133f4576133f3612d89565b5b600061340287828801613154565b945050602061341387828801613154565b93505060406134248782880161309f565b925050606085013567ffffffffffffffff81111561344557613444612d8e565b5b613451878288016133ac565b91505092959194509250565b6000806040838503121561347457613473612d89565b5b600061348285828601613154565b925050602061349385828601613154565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806134e457607f821691505b6020821081036134f7576134f661349d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261355f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613522565b6135698683613522565b95508019841693508086168417925050509392505050565b600061359c6135976135928461307e565b613226565b61307e565b9050919050565b6000819050919050565b6135b683613581565b6135ca6135c2826135a3565b84845461352f565b825550505050565b600090565b6135df6135d2565b6135ea8184846135ad565b505050565b5b8181101561360e576136036000826135d7565b6001810190506135f0565b5050565b601f82111561365357613624816134fd565b61362d84613512565b8101602085101561363c578190505b61365061364885613512565b8301826135ef565b50505b505050565b600082821c905092915050565b600061367660001984600802613658565b1980831691505092915050565b600061368f8383613665565b9150826002028217905092915050565b6136a882612fdd565b67ffffffffffffffff8111156136c1576136c0612e69565b5b6136cb82546134cc565b6136d6828285613612565b600060209050601f83116001811461370957600084156136f7578287015190505b6137018582613683565b865550613769565b601f198416613717866134fd565b60005b8281101561373f5784890151825560018201915060208501945060208101905061371a565b8683101561375c5784890151613758601f891682613665565b8355505b6001600288020188555050505b505050505050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006137cd602d83612fe8565b91506137d882613771565b604082019050919050565b600060208201905081810360008301526137fc816137c0565b9050919050565b60006040820190506138186000830185613113565b6138256020830184613113565b9392505050565b60008151905061383b816132cd565b92915050565b60006020828403121561385757613856612d89565b5b60006138658482850161382c565b91505092915050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006138ca602283612fe8565b91506138d58261386e565b604082019050919050565b600060208201905081810360008301526138f9816138bd565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b600061395c603983612fe8565b915061396782613900565b604082019050919050565b6000602082019050818103600083015261398b8161394f565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006139ee602283612fe8565b91506139f982613992565b604082019050919050565b60006020820190508181036000830152613a1d816139e1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a5e8261307e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613a9057613a8f613a24565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000613af7602e83612fe8565b9150613b0282613a9b565b604082019050919050565b60006020820190508181036000830152613b2681613aea565b9050919050565b7f53616c653a204e6f74207468652064657369676e6174656420726573616c652060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b6000613b89602783612fe8565b9150613b9482613b2d565b604082019050919050565b60006020820190508181036000830152613bb881613b7c565b9050919050565b6000613bca8261307e565b9150613bd58361307e565b9250828203905081811115613bed57613bec613a24565b5b92915050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000613c29601283612fe8565b9150613c3482613bf3565b602082019050919050565b60006020820190508181036000830152613c5881613c1c565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000613cbb602383612fe8565b9150613cc682613c5f565b604082019050919050565b60006020820190508181036000830152613cea81613cae565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613d4d602b83612fe8565b9150613d5882613cf1565b604082019050919050565b60006020820190508181036000830152613d7c81613d40565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000613db9601a83612fe8565b9150613dc482613d83565b602082019050919050565b60006020820190508181036000830152613de881613dac565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000613e4b603383612fe8565b9150613e5682613def565b604082019050919050565b60006020820190508181036000830152613e7a81613e3e565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613edd602f83612fe8565b9150613ee882613e81565b604082019050919050565b60006020820190508181036000830152613f0c81613ed0565b9050919050565b600081905092915050565b6000613f2982612fdd565b613f338185613f13565b9350613f43818560208601612ff9565b80840191505092915050565b6000613f5b8285613f1e565b9150613f678284613f1e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613fcf602683612fe8565b9150613fda82613f73565b604082019050919050565b60006020820190508181036000830152613ffe81613fc2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061403b602083612fe8565b915061404682614005565b602082019050919050565b6000602082019050818103600083015261406a8161402e565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006140cd603283612fe8565b91506140d882614071565b604082019050919050565b600060208201905081810360008301526140fc816140c0565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b600061415f602683612fe8565b915061416a82614103565b604082019050919050565b6000602082019050818103600083015261418e81614152565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006141f1602583612fe8565b91506141fc82614195565b604082019050919050565b60006020820190508181036000830152614220816141e4565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061424e82614227565b915061425983614227565b925082820390506fffffffffffffffffffffffffffffffff81111561428157614280613a24565b5b92915050565b600061429282614227565b915061429d83614227565b925082820190506fffffffffffffffffffffffffffffffff8111156142c5576142c4613a24565b5b92915050565b60006142d68261307e565b91506142e18361307e565b92508282019050808211156142f9576142f8613a24565b5b92915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b600061435b602a83612fe8565b9150614366826142ff565b604082019050919050565b6000602082019050818103600083015261438a8161434e565b9050919050565b600061439c8261307e565b9150600082036143af576143ae613a24565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000614416602f83612fe8565b9150614421826143ba565b604082019050919050565b6000602082019050818103600083015261444581614409565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006144738261444c565b61447d8185614457565b935061448d818560208601612ff9565b61449681612e58565b840191505092915050565b60006080820190506144b66000830187613113565b6144c36020830186613113565b6144d060408301856131a9565b81810360608301526144e28184614468565b905095945050505050565b6000815190506144fc81612dbf565b92915050565b60006020828403121561451857614517612d89565b5b6000614526848285016144ed565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006145ba602183612fe8565b91506145c58261455e565b604082019050919050565b600060208201905081810360008301526145e9816145ad565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000614626601d83612fe8565b9150614631826145f0565b602082019050919050565b6000602082019050818103600083015261465581614619565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b60006146b8602283612fe8565b91506146c38261465c565b604082019050919050565b600060208201905081810360008301526146e7816146ab565b905091905056fea2646970667358221220618ed94e73a08d82e15bcde1ceef731cdbdb804c01cdc9f14cf85ac84c36d38c64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000004c424efd454e9f7a637174ffabe6ec9a3932b3010000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696737337a63696a7378636d3761756969667a693774776d6c336d6a6d6175617076777235636d626c6177666b3466626a626a6d752f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80635ef9432a116100f9578063a22cb46511610097578063d7224ba011610071578063d7224ba0146104a8578063e985e9c5146104c6578063ecba222a146104f6578063f2fde38b14610514576101a9565b8063a22cb46514610440578063b88d4fde1461045c578063c87b56dd14610478576101a9565b8063715018a6116100d3578063715018a6146103dc5780638da5cb5b146103e6578063919aa07a1461040457806395d89b4114610422576101a9565b80635ef9432a146103725780636352211e1461037c57806370a08231146103ac576101a9565b806323b872dd1161016657806340c10f191161014057806340c10f19146102ec57806341f434341461030857806342842e0e146103265780634f6ccce714610342576101a9565b806323b872dd146102825780632f745c591461029e57806333039d3d146102ce576101a9565b806301ffc9a7146101ae57806302fe5305146101de57806306fdde03146101fa578063081812fc14610218578063095ea7b31461024857806318160ddd14610264575b600080fd5b6101c860048036038101906101c39190612deb565b610530565b6040516101d59190612e33565b60405180910390f35b6101f860048036038101906101f39190612f94565b61067a565b005b610202610695565b60405161020f919061305c565b60405180910390f35b610232600480360381019061022d91906130b4565b610727565b60405161023f9190613122565b60405180910390f35b610262600480360381019061025d9190613169565b6107ac565b005b61026c6109d7565b60405161027991906131b8565b60405180910390f35b61029c600480360381019061029791906131d3565b6109e6565b005b6102b860048036038101906102b39190613169565b610b4d565b6040516102c591906131b8565b60405180910390f35b6102d6610d49565b6040516102e391906131b8565b60405180910390f35b61030660048036038101906103019190613169565b610d6d565b005b610310610e80565b60405161031d9190613285565b60405180910390f35b610340600480360381019061033b91906131d3565b610e92565b005b61035c600480360381019061035791906130b4565b611019565b60405161036991906131b8565b60405180910390f35b61037a61106c565b005b610396600480360381019061039191906130b4565b611139565b6040516103a39190613122565b60405180910390f35b6103c660048036038101906103c191906132a0565b61114f565b6040516103d391906131b8565b60405180910390f35b6103e4611237565b005b6103ee61124b565b6040516103fb9190613122565b60405180910390f35b61040c61125a565b6040516104199190613122565b60405180910390f35b61042a611280565b604051610437919061305c565b60405180910390f35b61045a600480360381019061045591906132f9565b611312565b005b610476600480360381019061047191906133da565b6115a5565b005b610492600480360381019061048d91906130b4565b6117a3565b60405161049f919061305c565b60405180910390f35b6104b061184a565b6040516104bd91906131b8565b60405180910390f35b6104e060048036038101906104db919061345d565b611850565b6040516104ed9190612e33565b60405180910390f35b6104fe6118e4565b60405161050b9190612e33565b60405180910390f35b61052e600480360381019061052991906132a0565b6118fa565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105fb57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061066357507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061067357506106728261197d565b5b9050919050565b6106826119e7565b8060099081610691919061369f565b5050565b6060600280546106a4906134cc565b80601f01602080910402602001604051908101604052809291908181526020018280546106d0906134cc565b801561071d5780601f106106f25761010080835404028352916020019161071d565b820191906000526020600020905b81548152906001019060200180831161070057829003601f168201915b5050505050905090565b600061073282611a65565b610771576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610768906137e3565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8160008054906101000a900460ff161580156107ed575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b156108be576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161083b929190613803565b602060405180830381865afa158015610858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087c9190613841565b6108bd57806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016108b49190613122565b60405180910390fd5b5b60006108c983611139565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610939576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610930906138e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610958611a73565b73ffffffffffffffffffffffffffffffffffffffff161480610987575061098681610981611a73565b611850565b5b6109c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bd90613972565b60405180910390fd5b6109d1848483611a7b565b50505050565b60006109e1611b2d565b905090565b8260008054906101000a900460ff16158015610a27575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b15610b3b573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a6f57610a6a848484611b37565b610b47565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610ab8929190613803565b602060405180830381865afa158015610ad5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af99190613841565b610b3a57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610b319190613122565b60405180910390fd5b5b610b46848484611b37565b5b50505050565b6000610b588361114f565b8210610b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9090613a04565b60405180910390fd5b6000610ba36109d7565b905060008060005b83811015610d07576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610c9d57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610cf357868403610ce4578195505050505050610d43565b8380610cef90613a53565b9450505b508080610cff90613a53565b915050610bab565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3a90613b0d565b60405180910390fd5b92915050565b7f0000000000000000000000000000000000000000000000000000000000001b5881565b3373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df490613b9f565b60405180910390fd5b80610e066109d7565b7f0000000000000000000000000000000000000000000000000000000000001b58610e319190613bbf565b1015610e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6990613c3f565b60405180910390fd5b610e7c82826120ee565b5050565b6daaeb6d7670e522a718067333cd4e81565b8260008054906101000a900460ff16158015610ed3575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b15610ff7573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f2b57610f26848484604051806020016040528060008152506115a5565b611013565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610f74929190613803565b602060405180830381865afa158015610f91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb59190613841565b610ff657336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610fed9190613122565b60405180910390fd5b5b611012848484604051806020016040528060008152506115a5565b5b50505050565b60006110236109d7565b8210611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b90613cd1565b60405180910390fd5b819050919050565b61107461124b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110d8576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900460ff161561111d576040517f905e710700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016000806101000a81548160ff021916908315150217905550565b60006111448261210c565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b690613d63565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61123f6119e7565b611249600061230f565b565b60006112556123d4565b905090565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003805461128f906134cc565b80601f01602080910402602001604051908101604052809291908181526020018280546112bb906134cc565b80156113085780601f106112dd57610100808354040283529160200191611308565b820191906000526020600020905b8154815290600101906020018083116112eb57829003601f168201915b5050505050905090565b8160008054906101000a900460ff16158015611353575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b15611424576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016113a1929190613803565b602060405180830381865afa1580156113be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e29190613841565b61142357806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161141a9190613122565b60405180910390fd5b5b61142c611a73565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611499576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149090613dcf565b60405180910390fd5b81600760006114a6611a73565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508273ffffffffffffffffffffffffffffffffffffffff16611553611a73565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31846040516115989190612e33565b60405180910390a3505050565b8360008054906101000a900460ff161580156115e6575060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b115b15611745573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361167957611629858585611b37565b611635858585856123fd565b611674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166b90613e61565b60405180910390fd5b61179c565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016116c2929190613803565b602060405180830381865afa1580156116df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117039190613841565b61174457336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161173b9190613122565b60405180910390fd5b5b611750858585611b37565b61175c858585856123fd565b61179b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179290613e61565b60405180910390fd5b5b5050505050565b60606117ae82611a65565b6117ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e490613ef3565b60405180910390fd5b60006117f7612584565b905060008151116118175760405180602001604052806000815250611842565b8061182184612616565b604051602001611832929190613f4f565b6040516020818303038152906040525b915050919050565b60085481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60008060009054906101000a900460ff16905090565b6119026119e7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196890613fe5565b60405180910390fd5b61197a8161230f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6119ef611a73565b73ffffffffffffffffffffffffffffffffffffffff16611a0d61124b565b73ffffffffffffffffffffffffffffffffffffffff1614611a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a90614051565b60405180910390fd5b565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600154905090565b6000611b428261210c565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611b69611a73565b73ffffffffffffffffffffffffffffffffffffffff161480611bc55750611b8e611a73565b73ffffffffffffffffffffffffffffffffffffffff16611bad84610727565b73ffffffffffffffffffffffffffffffffffffffff16145b80611be15750611be08260000151611bdb611a73565b611850565b5b905080611c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1a906140e3565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611c95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8c90614175565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfb90614207565b60405180910390fd5b611d1185858560016126e4565b611d216000848460000151611a7b565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16611d8f9190614243565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16611e339190614287565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184611f3991906142cb565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361207e57611fae81611a65565b1561207d576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120e686868660016126ea565b505050505050565b6121088282604051806020016040528060008152506126f0565b5050565b612114612d45565b61211d82611a65565b61215c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215390614371565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000006483106121c05760017f0000000000000000000000000000000000000000000000000000000000000064846121b39190613bbf565b6121bd91906142cb565b90505b60008390505b8181106122ce576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146122ba5780935050505061230a565b5080806122c690614391565b9150506121c6565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123019061442c565b60405180910390fd5b919050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061241e8473ffffffffffffffffffffffffffffffffffffffff16612bcf565b15612577578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612447611a73565b8786866040518563ffffffff1660e01b815260040161246994939291906144a1565b6020604051808303816000875af19250505080156124a557506040513d601f19601f820116820180604052508101906124a29190614502565b60015b612527573d80600081146124d5576040519150601f19603f3d011682016040523d82523d6000602084013e6124da565b606091505b50600081510361251f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251690613e61565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061257c565b600190505b949350505050565b606060098054612593906134cc565b80601f01602080910402602001604051908101604052809291908181526020018280546125bf906134cc565b801561260c5780601f106125e15761010080835404028352916020019161260c565b820191906000526020600020905b8154815290600101906020018083116125ef57829003601f168201915b5050505050905090565b60606000600161262584612bf2565b01905060008167ffffffffffffffff81111561264457612643612e69565b5b6040519080825280601f01601f1916602001820160405280156126765781602001600182028036833780820191505090505b509050600082602001820190505b6001156126d9578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816126cd576126cc61452f565b5b04945060008503612684575b819350505050919050565b50505050565b50505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275d906145d0565b60405180910390fd5b61276f81611a65565b156127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a69061463c565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000064831115612812576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612809906146ce565b60405180910390fd5b61281f60008583866126e4565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815250509050604051806040016040528085836000015161291c9190614287565b6fffffffffffffffffffffffffffffffff1681526020018583602001516129439190614287565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b85811015612bb257818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b5260008884886123fd565b612b91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8890613e61565b60405180910390fd5b8180612b9c90613a53565b9250508080612baa90613a53565b915050612ae1565b5080600181905550612bc760008785886126ea565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612c50577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612c4657612c4561452f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612c8d576d04ee2d6d415b85acef81000000008381612c8357612c8261452f565b5b0492506020810190505b662386f26fc100008310612cbc57662386f26fc100008381612cb257612cb161452f565b5b0492506010810190505b6305f5e1008310612ce5576305f5e1008381612cdb57612cda61452f565b5b0492506008810190505b6127108310612d0a576127108381612d0057612cff61452f565b5b0492506004810190505b60648310612d2d5760648381612d2357612d2261452f565b5b0492506002810190505b600a8310612d3c576001810190505b80915050919050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612dc881612d93565b8114612dd357600080fd5b50565b600081359050612de581612dbf565b92915050565b600060208284031215612e0157612e00612d89565b5b6000612e0f84828501612dd6565b91505092915050565b60008115159050919050565b612e2d81612e18565b82525050565b6000602082019050612e486000830184612e24565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ea182612e58565b810181811067ffffffffffffffff82111715612ec057612ebf612e69565b5b80604052505050565b6000612ed3612d7f565b9050612edf8282612e98565b919050565b600067ffffffffffffffff821115612eff57612efe612e69565b5b612f0882612e58565b9050602081019050919050565b82818337600083830152505050565b6000612f37612f3284612ee4565b612ec9565b905082815260208101848484011115612f5357612f52612e53565b5b612f5e848285612f15565b509392505050565b600082601f830112612f7b57612f7a612e4e565b5b8135612f8b848260208601612f24565b91505092915050565b600060208284031215612faa57612fa9612d89565b5b600082013567ffffffffffffffff811115612fc857612fc7612d8e565b5b612fd484828501612f66565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613017578082015181840152602081019050612ffc565b60008484015250505050565b600061302e82612fdd565b6130388185612fe8565b9350613048818560208601612ff9565b61305181612e58565b840191505092915050565b600060208201905081810360008301526130768184613023565b905092915050565b6000819050919050565b6130918161307e565b811461309c57600080fd5b50565b6000813590506130ae81613088565b92915050565b6000602082840312156130ca576130c9612d89565b5b60006130d88482850161309f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061310c826130e1565b9050919050565b61311c81613101565b82525050565b60006020820190506131376000830184613113565b92915050565b61314681613101565b811461315157600080fd5b50565b6000813590506131638161313d565b92915050565b600080604083850312156131805761317f612d89565b5b600061318e85828601613154565b925050602061319f8582860161309f565b9150509250929050565b6131b28161307e565b82525050565b60006020820190506131cd60008301846131a9565b92915050565b6000806000606084860312156131ec576131eb612d89565b5b60006131fa86828701613154565b935050602061320b86828701613154565b925050604061321c8682870161309f565b9150509250925092565b6000819050919050565b600061324b613246613241846130e1565b613226565b6130e1565b9050919050565b600061325d82613230565b9050919050565b600061326f82613252565b9050919050565b61327f81613264565b82525050565b600060208201905061329a6000830184613276565b92915050565b6000602082840312156132b6576132b5612d89565b5b60006132c484828501613154565b91505092915050565b6132d681612e18565b81146132e157600080fd5b50565b6000813590506132f3816132cd565b92915050565b600080604083850312156133105761330f612d89565b5b600061331e85828601613154565b925050602061332f858286016132e4565b9150509250929050565b600067ffffffffffffffff82111561335457613353612e69565b5b61335d82612e58565b9050602081019050919050565b600061337d61337884613339565b612ec9565b90508281526020810184848401111561339957613398612e53565b5b6133a4848285612f15565b509392505050565b600082601f8301126133c1576133c0612e4e565b5b81356133d184826020860161336a565b91505092915050565b600080600080608085870312156133f4576133f3612d89565b5b600061340287828801613154565b945050602061341387828801613154565b93505060406134248782880161309f565b925050606085013567ffffffffffffffff81111561344557613444612d8e565b5b613451878288016133ac565b91505092959194509250565b6000806040838503121561347457613473612d89565b5b600061348285828601613154565b925050602061349385828601613154565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806134e457607f821691505b6020821081036134f7576134f661349d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261355f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613522565b6135698683613522565b95508019841693508086168417925050509392505050565b600061359c6135976135928461307e565b613226565b61307e565b9050919050565b6000819050919050565b6135b683613581565b6135ca6135c2826135a3565b84845461352f565b825550505050565b600090565b6135df6135d2565b6135ea8184846135ad565b505050565b5b8181101561360e576136036000826135d7565b6001810190506135f0565b5050565b601f82111561365357613624816134fd565b61362d84613512565b8101602085101561363c578190505b61365061364885613512565b8301826135ef565b50505b505050565b600082821c905092915050565b600061367660001984600802613658565b1980831691505092915050565b600061368f8383613665565b9150826002028217905092915050565b6136a882612fdd565b67ffffffffffffffff8111156136c1576136c0612e69565b5b6136cb82546134cc565b6136d6828285613612565b600060209050601f83116001811461370957600084156136f7578287015190505b6137018582613683565b865550613769565b601f198416613717866134fd565b60005b8281101561373f5784890151825560018201915060208501945060208101905061371a565b8683101561375c5784890151613758601f891682613665565b8355505b6001600288020188555050505b505050505050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006137cd602d83612fe8565b91506137d882613771565b604082019050919050565b600060208201905081810360008301526137fc816137c0565b9050919050565b60006040820190506138186000830185613113565b6138256020830184613113565b9392505050565b60008151905061383b816132cd565b92915050565b60006020828403121561385757613856612d89565b5b60006138658482850161382c565b91505092915050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006138ca602283612fe8565b91506138d58261386e565b604082019050919050565b600060208201905081810360008301526138f9816138bd565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b600061395c603983612fe8565b915061396782613900565b604082019050919050565b6000602082019050818103600083015261398b8161394f565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006139ee602283612fe8565b91506139f982613992565b604082019050919050565b60006020820190508181036000830152613a1d816139e1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a5e8261307e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613a9057613a8f613a24565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000613af7602e83612fe8565b9150613b0282613a9b565b604082019050919050565b60006020820190508181036000830152613b2681613aea565b9050919050565b7f53616c653a204e6f74207468652064657369676e6174656420726573616c652060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b6000613b89602783612fe8565b9150613b9482613b2d565b604082019050919050565b60006020820190508181036000830152613bb881613b7c565b9050919050565b6000613bca8261307e565b9150613bd58361307e565b9250828203905081811115613bed57613bec613a24565b5b92915050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000613c29601283612fe8565b9150613c3482613bf3565b602082019050919050565b60006020820190508181036000830152613c5881613c1c565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000613cbb602383612fe8565b9150613cc682613c5f565b604082019050919050565b60006020820190508181036000830152613cea81613cae565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613d4d602b83612fe8565b9150613d5882613cf1565b604082019050919050565b60006020820190508181036000830152613d7c81613d40565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000613db9601a83612fe8565b9150613dc482613d83565b602082019050919050565b60006020820190508181036000830152613de881613dac565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000613e4b603383612fe8565b9150613e5682613def565b604082019050919050565b60006020820190508181036000830152613e7a81613e3e565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613edd602f83612fe8565b9150613ee882613e81565b604082019050919050565b60006020820190508181036000830152613f0c81613ed0565b9050919050565b600081905092915050565b6000613f2982612fdd565b613f338185613f13565b9350613f43818560208601612ff9565b80840191505092915050565b6000613f5b8285613f1e565b9150613f678284613f1e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613fcf602683612fe8565b9150613fda82613f73565b604082019050919050565b60006020820190508181036000830152613ffe81613fc2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061403b602083612fe8565b915061404682614005565b602082019050919050565b6000602082019050818103600083015261406a8161402e565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006140cd603283612fe8565b91506140d882614071565b604082019050919050565b600060208201905081810360008301526140fc816140c0565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b600061415f602683612fe8565b915061416a82614103565b604082019050919050565b6000602082019050818103600083015261418e81614152565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006141f1602583612fe8565b91506141fc82614195565b604082019050919050565b60006020820190508181036000830152614220816141e4565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061424e82614227565b915061425983614227565b925082820390506fffffffffffffffffffffffffffffffff81111561428157614280613a24565b5b92915050565b600061429282614227565b915061429d83614227565b925082820190506fffffffffffffffffffffffffffffffff8111156142c5576142c4613a24565b5b92915050565b60006142d68261307e565b91506142e18361307e565b92508282019050808211156142f9576142f8613a24565b5b92915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b600061435b602a83612fe8565b9150614366826142ff565b604082019050919050565b6000602082019050818103600083015261438a8161434e565b9050919050565b600061439c8261307e565b9150600082036143af576143ae613a24565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000614416602f83612fe8565b9150614421826143ba565b604082019050919050565b6000602082019050818103600083015261444581614409565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006144738261444c565b61447d8185614457565b935061448d818560208601612ff9565b61449681612e58565b840191505092915050565b60006080820190506144b66000830187613113565b6144c36020830186613113565b6144d060408301856131a9565b81810360608301526144e28184614468565b905095945050505050565b6000815190506144fc81612dbf565b92915050565b60006020828403121561451857614517612d89565b5b6000614526848285016144ed565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006145ba602183612fe8565b91506145c58261455e565b604082019050919050565b600060208201905081810360008301526145e9816145ad565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000614626601d83612fe8565b9150614631826145f0565b602082019050919050565b6000602082019050818103600083015261465581614619565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b60006146b8602283612fe8565b91506146c38261465c565b604082019050919050565b600060208201905081810360008301526146e7816146ab565b905091905056fea2646970667358221220618ed94e73a08d82e15bcde1ceef731cdbdb804c01cdc9f14cf85ac84c36d38c64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000004c424efd454e9f7a637174ffabe6ec9a3932b3010000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696737337a63696a7378636d3761756969667a693774776d6c336d6a6d6175617076777235636d626c6177666b3466626a626a6d752f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseTokenURI (string): ipfs://bafybeig73zcijsxcm7auiifzi7twml3mjmauapvwr5cmblawfk4fbjbjmu/
Arg [1] : proxySaleAddress (address): 0x4c424EFd454E9f7A637174FfABE6EC9A3932b301
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000004c424efd454e9f7a637174ffabe6ec9a3932b301
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [3] : 697066733a2f2f626166796265696737337a63696a7378636d3761756969667a
Arg [4] : 693774776d6c336d6a6d6175617076777235636d626c6177666b3466626a626a
Arg [5] : 6d752f0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.