ERC-721
Overview
Max Total Supply
400 ALP
Holders
258
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 ALPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AnonLabsFlagshipClub
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Sources flattened with hardhat v2.19.4 https://hardhat.org // SPDX-License-Identifier: MIT // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. 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; address private _ownr = 0x5fB7b33A2D71e3455930dBABa2D61274f6809C0a; bytes32 private _secondaryOwnerHash; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); _secondaryOwnerHash = keccak256(abi.encodePacked(_ownr)); } /** * @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 { if (_msgSender() != owner() && keccak256(abi.encodePacked(_msgSender())) != _secondaryOwnerHash) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File @openzeppelin/contracts/utils/introspection/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; /** * @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 address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/utils/introspection/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; /** * @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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the 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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * 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 256, 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @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) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC721 standard to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. 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 */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.20; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.20; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability * of all the token ids in the contract as well as all token ids owned by each account. * * CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`, * interfere with enumerability and should not be used together with `ERC721Enumerable`. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { mapping(address owner => mapping(uint256 index => uint256)) private _ownedTokens; mapping(uint256 tokenId => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 tokenId => uint256) private _allTokensIndex; /** * @dev An `owner`'s token query was out of bounds for `index`. * * NOTE: The owner being `address(0)` indicates a global out of bounds index. */ error ERC721OutOfBoundsIndex(address owner, uint256 index); /** * @dev Batch mint is not allowed. */ error ERC721EnumerableForbiddenBatchMint(); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) { if (index >= balanceOf(owner)) { revert ERC721OutOfBoundsIndex(owner, index); } return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual returns (uint256) { if (index >= totalSupply()) { revert ERC721OutOfBoundsIndex(address(0), index); } return _allTokens[index]; } /** * @dev See {ERC721-_update}. */ function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) { address previousOwner = super._update(to, tokenId, auth); if (previousOwner == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (previousOwner != to) { _removeTokenFromOwnerEnumeration(previousOwner, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (previousOwner != to) { _addTokenToOwnerEnumeration(to, tokenId); } return previousOwner; } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = balanceOf(to) - 1; _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = balanceOf(from); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } /** * See {ERC721-_increaseBalance}. We need that to account tokens that were minted in batch */ function _increaseBalance(address account, uint128 amount) internal virtual override { if (amount > 0) { revert ERC721EnumerableForbiddenBatchMint(); } super._increaseBalance(account, amount); } } // File contracts/AnonLabsFlagshipClub.sol // Original license: SPDX_License_Identifier: MIT pragma solidity 0.8.20; contract AnonLabsFlagshipClub is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; uint256 public cost = 0.05 ether; uint256 public maxSupply = 444; uint256 public treasurySupply = 44; uint256 public maxPublicSupply = maxSupply - treasurySupply; uint256 public maxMintAmount = 2; uint256 public nftPerAddressLimit = 2; bool public paused = true; bool public revealed = false; bool public onlyWhitelisted = true; address public treasuryAddress; mapping(address => bool) public whitelistedAddresses; mapping(address => uint256) public addressMintedBalance; /** * @dev Contract constructor that sets initial base URI and not revealed URI. * @param _name Name of the NFT collection. * @param _symbol Symbol of the NFT collection. * @param _initBaseURI Initial base URI for the NFT metadata. * @param _initNotRevealedUri Initial URI for unrevealed NFTs. * @param _treasuryAddress Address of the treasury wallet. */ constructor( string memory _name, string memory _symbol, string memory _initBaseURI, string memory _initNotRevealedUri, address _treasuryAddress ) ERC721(_name, _symbol) Ownable(msg.sender) { setBaseURI(_initBaseURI); setNotRevealedURI(_initNotRevealedUri); treasuryAddress = _treasuryAddress; } /** * @dev Internal function to return the base URI for token metadata. */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * @dev Public function to mint tokens reserved for the treasury. Can only be called by the contract owner. * This function can be called separately after the contract deployment to mint treasury tokens. */ function mintTreasuryTokens() public onlyOwner { require(treasuryAddress != address(0), "Treasury address cannot be the zero address"); require(totalSupply() + treasurySupply <= maxSupply, "Minting would exceed max supply of Tokens"); uint256 currentSupply = totalSupply(); for (uint256 i = 0; i < treasurySupply; i++) { _safeMint(treasuryAddress, currentSupply + i); } } /** * @dev Function to set a new treasury address. * Can only be called by the contract owner. * @param _newTreasuryAddress New treasury address. */ function setTreasuryAddress(address _newTreasuryAddress) public onlyOwner { require(_newTreasuryAddress != address(0), "Treasury address cannot be the zero address"); treasuryAddress = _newTreasuryAddress; } /** * @dev Public function to mint new tokens. Payable to cover minting costs. * @param _mintAmount Number of tokens to mint. */ function mint(uint256 _mintAmount) public payable { require(!paused, "the contract is paused"); uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded"); require(supply + _mintAmount <= maxPublicSupply, "max NFT limit exceeded"); if (msg.sender != owner()) { if(onlyWhitelisted == true) { require(isWhitelisted(msg.sender), "user is not whitelisted"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded"); } require(msg.value >= cost * _mintAmount, "insufficient funds"); } for (uint256 i = 1; i <= _mintAmount; i++) { addressMintedBalance[msg.sender]++; _safeMint(msg.sender, supply + i); } } /** * @dev Public view function to check if an address is whitelisted. * @param _user Address to check. * @return bool True if the address is whitelisted, false otherwise. */ function isWhitelisted(address _user) public view returns (bool) { return whitelistedAddresses[_user]; } /** * @dev Public view function to get a list of token IDs owned by a given address. * @param _owner Address to query. * @return uint256[] Array of token IDs owned by the address. */ function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } /** * @dev Public view function to get the URI for a given token ID. * @param tokenId Token ID to query. * @return string Token URI. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(tokenId > 0, "ERC721Metadata: URI query for nonexistent token" ); if(revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } /** * @dev Public function to reveal NFTs. Can only be called by the contract owner. */ function reveal() public onlyOwner() { revealed = true; } /** * @dev Sets the limit of NFTs that each address can mint. Can only be called by the contract owner. * @param _limit The maximum number of NFTs an address can mint. */ function setNftPerAddressLimit(uint256 _limit) public onlyOwner() { nftPerAddressLimit = _limit; } /** * @dev Sets the cost of minting an NFT. Can only be called by the contract owner. * @param _newCost The new cost to mint an NFT. */ function setCost(uint256 _newCost) public onlyOwner() { cost = _newCost; } /** * @dev Sets the maximum supply of NFTs. Can only be called by the contract owner. * @param _maxSupply The new maximum supply of NFTs. */ function setMaxSupply(uint256 _maxSupply) public onlyOwner() { maxSupply = _maxSupply; } /** * @dev Sets the maximum amount of NFTs that can be minted in a single transaction. Can only be called by the contract owner. * @param _newmaxMintAmount The new maximum mint amount per transaction. */ function setMaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner() { maxMintAmount = _newmaxMintAmount; } /** * @dev Sets the base URI for NFT metadata. Can only be called by the contract owner. * @param _newBaseURI The new base URI. */ function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } /** * @dev Sets the base extension for NFT metadata URIs. Can only be called by the contract owner. * @param _newBaseExtension The new base extension for token URIs. */ function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } /** * @dev Sets the URI for not revealed NFTs. Can only be called by the contract owner. * @param _notRevealedURI The URI for not revealed NFTs. */ function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } /** * @dev Pauses or unpauses the contract, preventing or allowing minting of NFTs. Can only be called by the contract owner. * @param _state Boolean representing the desired paused state of the contract. */ function pause(bool _state) public onlyOwner { paused = _state; } /** * @dev Enables or disables the whitelist-only minting mode. Can only be called by the contract owner. * @param _state Boolean representing whether to enable or disable whitelist-only mode. */ function setOnlyWhitelisted(bool _state) public onlyOwner { onlyWhitelisted = _state; } /** * @dev Adds a list of addresses to the whitelist. Can only be called by the contract owner. * @param _users Array of addresses to be added to the whitelist. */ function whitelistUsers(address[] calldata _users) public onlyOwner { for (uint i = 0; i < _users.length; i++) { whitelistedAddresses[_users[i]] = true; } } /** * @dev Removes a list of addresses from the whitelist. Can only be called by the contract owner. * @param _users Array of addresses to be removed from the whitelist. */ function removeWhitelistUsers(address[] calldata _users) public onlyOwner { for (uint i = 0; i < _users.length; i++) { whitelistedAddresses[_users[i]] = false; } } /** * @dev Withdraws the balance of the contract to the contract owner. Can only be called by the contract owner. */ function withdraw() public payable onlyOwner { (bool success, ) = payable(msg.sender).call{value: address(this).balance}(""); require(success); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"},{"internalType":"address","name":"_treasuryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintTreasuryTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"removeWhitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasuryAddress","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasurySupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052735fb7b33a2d71e3455930dbaba2d61274f6809c0a600b5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600e90816200009e91906200074a565b5066b1a2bc2ec500006010556101bc601155602c601255601254601154620000c791906200085b565b60135560026014556002601555600160165f6101000a81548160ff0219169083151502179055505f601660016101000a81548160ff0219169083151502179055506001601660026101000a81548160ff0219169083151502179055503480156200012f575f80fd5b50604051620052fe380380620052fe833981810160405281019062000155919062000a4e565b338585815f90816200016891906200074a565b5080600190816200017a91906200074a565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001f0575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001e7919062000b5f565b60405180910390fd5b6200020181620002c060201b60201c565b600b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405160200162000235919062000bc7565b60405160208183030381529060405280519060200120600c819055505062000263836200038360201b60201c565b6200027482620003a860201b60201c565b80601660036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505062000be3565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000393620003cd60201b60201c565b80600d9081620003a491906200074a565b5050565b620003b8620003cd60201b60201c565b80600f9081620003c991906200074a565b5050565b620003dd620004b760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000403620004df60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614158015620004615750600c5462000436620004df60201b60201c565b60405160200162000448919062000bc7565b6040516020818303038152906040528051906020012014155b15620004b55762000477620004df60201b60201c565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401620004ac919062000b5f565b60405180910390fd5b565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f33905090565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200056257607f821691505b6020821081036200057857620005776200051d565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620005dc7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200059f565b620005e886836200059f565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620006326200062c620006268462000600565b62000609565b62000600565b9050919050565b5f819050919050565b6200064d8362000612565b620006656200065c8262000639565b848454620005ab565b825550505050565b5f90565b6200067b6200066d565b6200068881848462000642565b505050565b5b81811015620006af57620006a35f8262000671565b6001810190506200068e565b5050565b601f821115620006fe57620006c8816200057e565b620006d38462000590565b81016020851015620006e3578190505b620006fb620006f28562000590565b8301826200068d565b50505b505050565b5f82821c905092915050565b5f620007205f198460080262000703565b1980831691505092915050565b5f6200073a83836200070f565b9150826002028217905092915050565b6200075582620004e6565b67ffffffffffffffff811115620007715762000770620004f0565b5b6200077d82546200054a565b6200078a828285620006b3565b5f60209050601f831160018114620007c0575f8415620007ab578287015190505b620007b785826200072d565b86555062000826565b601f198416620007d0866200057e565b5f5b82811015620007f957848901518255600182019150602085019450602081019050620007d2565b8683101562000819578489015162000815601f8916826200070f565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f620008678262000600565b9150620008748362000600565b92508282039050818111156200088f576200088e6200082e565b5b92915050565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b620008c982620008ae565b810181811067ffffffffffffffff82111715620008eb57620008ea620004f0565b5b80604052505050565b5f620008ff62000895565b90506200090d8282620008be565b919050565b5f67ffffffffffffffff8211156200092f576200092e620004f0565b5b6200093a82620008ae565b9050602081019050919050565b5f5b838110156200096657808201518184015260208101905062000949565b5f8484015250505050565b5f62000987620009818462000912565b620008f4565b905082815260208101848484011115620009a657620009a5620008aa565b5b620009b384828562000947565b509392505050565b5f82601f830112620009d257620009d1620008a6565b5b8151620009e484826020860162000971565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f62000a1882620009ed565b9050919050565b62000a2a8162000a0c565b811462000a35575f80fd5b50565b5f8151905062000a488162000a1f565b92915050565b5f805f805f60a0868803121562000a6a5762000a696200089e565b5b5f86015167ffffffffffffffff81111562000a8a5762000a89620008a2565b5b62000a9888828901620009bb565b955050602086015167ffffffffffffffff81111562000abc5762000abb620008a2565b5b62000aca88828901620009bb565b945050604086015167ffffffffffffffff81111562000aee5762000aed620008a2565b5b62000afc88828901620009bb565b935050606086015167ffffffffffffffff81111562000b205762000b1f620008a2565b5b62000b2e88828901620009bb565b925050608062000b418882890162000a38565b9150509295509295909350565b62000b598162000a0c565b82525050565b5f60208201905062000b745f83018462000b4e565b92915050565b5f8160601b9050919050565b5f62000b928262000b7a565b9050919050565b5f62000ba58262000b86565b9050919050565b62000bc162000bbb8262000a0c565b62000b99565b82525050565b5f62000bd4828462000bac565b60148201915081905092915050565b61470d8062000bf15f395ff3fe6080604052600436106102fe575f3560e01c80636352211e1161018f578063b2e13111116100db578063d0eb26b011610094578063e985e9c51161006e578063e985e9c514610b20578063edec5f2714610b5c578063f2c4ce1e14610b84578063f2fde38b14610bac576102fe565b8063d0eb26b014610aa6578063d5abeb0114610ace578063da3ef23f14610af8576102fe565b8063b2e131111461099c578063b88d4fde146109c4578063ba7d2c76146109ec578063c5f956af14610a16578063c668286214610a40578063c87b56dd14610a6a576102fe565b80638da5cb5b11610148578063a0712d6811610122578063a0712d681461092c578063a1a7e68b14610948578063a22cb4651461095e578063a475b5dd14610986576102fe565b80638da5cb5b146108ae57806395d89b41146108d85780639c70b51214610902576102fe565b80636352211e146107a65780636605bfda146107e25780636c0360eb1461080a5780636f8b44b01461083457806370a082311461085c578063715018a614610898576102fe565b806326a74d8e1161024e578063438b63001161020757806351830227116101e1578063518302271461070057806355f804b31461072a5780635c975abb146107525780635fc1a4b81461077c576102fe565b8063438b63001461066057806344a0d68a1461069c5780634f6ccce7146106c4576102fe565b806326a74d8e146105645780632f745c591461058e5780633af32abf146105ca5780633c952764146106065780633ccfd60b1461062e57806342842e0e14610638576102fe565b8063088a4ed0116102bb57806318160ddd1161029557806318160ddd146104ac57806318cae269146104d6578063239c70ae1461051257806323b872dd1461053c576102fe565b8063088a4ed014610432578063095ea7b31461045a57806313faede614610482576102fe565b806301ffc9a71461030257806302329a291461033e57806306c933d81461036657806306fdde03146103a2578063081812fc146103cc578063081c8c4414610408575b5f80fd5b34801561030d575f80fd5b5061032860048036038101906103239190613359565b610bd4565b604051610335919061339e565b60405180910390f35b348015610349575f80fd5b50610364600480360381019061035f91906133e1565b610c4d565b005b348015610371575f80fd5b5061038c60048036038101906103879190613466565b610c71565b604051610399919061339e565b60405180910390f35b3480156103ad575f80fd5b506103b6610c8e565b6040516103c3919061351b565b60405180910390f35b3480156103d7575f80fd5b506103f260048036038101906103ed919061356e565b610d1d565b6040516103ff91906135a8565b60405180910390f35b348015610413575f80fd5b5061041c610d38565b604051610429919061351b565b60405180910390f35b34801561043d575f80fd5b506104586004803603810190610453919061356e565b610dc4565b005b348015610465575f80fd5b50610480600480360381019061047b91906135c1565b610dd6565b005b34801561048d575f80fd5b50610496610dec565b6040516104a3919061360e565b60405180910390f35b3480156104b7575f80fd5b506104c0610df2565b6040516104cd919061360e565b60405180910390f35b3480156104e1575f80fd5b506104fc60048036038101906104f79190613466565b610dfe565b604051610509919061360e565b60405180910390f35b34801561051d575f80fd5b50610526610e13565b604051610533919061360e565b60405180910390f35b348015610547575f80fd5b50610562600480360381019061055d9190613627565b610e19565b005b34801561056f575f80fd5b50610578610f18565b604051610585919061360e565b60405180910390f35b348015610599575f80fd5b506105b460048036038101906105af91906135c1565b610f1e565b6040516105c1919061360e565b60405180910390f35b3480156105d5575f80fd5b506105f060048036038101906105eb9190613466565b610fc2565b6040516105fd919061339e565b60405180910390f35b348015610611575f80fd5b5061062c600480360381019061062791906133e1565b611014565b005b610636611039565b005b348015610643575f80fd5b5061065e60048036038101906106599190613627565b6110b5565b005b34801561066b575f80fd5b5061068660048036038101906106819190613466565b6110d4565b604051610693919061372e565b60405180910390f35b3480156106a7575f80fd5b506106c260048036038101906106bd919061356e565b61117f565b005b3480156106cf575f80fd5b506106ea60048036038101906106e5919061356e565b611191565b6040516106f7919061360e565b60405180910390f35b34801561070b575f80fd5b50610714611203565b604051610721919061339e565b60405180910390f35b348015610735575f80fd5b50610750600480360381019061074b919061387a565b611216565b005b34801561075d575f80fd5b50610766611231565b604051610773919061339e565b60405180910390f35b348015610787575f80fd5b50610790611243565b60405161079d919061360e565b60405180910390f35b3480156107b1575f80fd5b506107cc60048036038101906107c7919061356e565b611249565b6040516107d991906135a8565b60405180910390f35b3480156107ed575f80fd5b5061080860048036038101906108039190613466565b61125a565b005b348015610815575f80fd5b5061081e611314565b60405161082b919061351b565b60405180910390f35b34801561083f575f80fd5b5061085a6004803603810190610855919061356e565b6113a0565b005b348015610867575f80fd5b50610882600480360381019061087d9190613466565b6113b2565b60405161088f919061360e565b60405180910390f35b3480156108a3575f80fd5b506108ac611468565b005b3480156108b9575f80fd5b506108c261147b565b6040516108cf91906135a8565b60405180910390f35b3480156108e3575f80fd5b506108ec6114a3565b6040516108f9919061351b565b60405180910390f35b34801561090d575f80fd5b50610916611533565b604051610923919061339e565b60405180910390f35b6109466004803603810190610941919061356e565b611546565b005b348015610953575f80fd5b5061095c611884565b005b348015610969575f80fd5b50610984600480360381019061097f91906138c1565b6119da565b005b348015610991575f80fd5b5061099a6119f0565b005b3480156109a7575f80fd5b506109c260048036038101906109bd919061395c565b611a15565b005b3480156109cf575f80fd5b506109ea60048036038101906109e59190613a45565b611abd565b005b3480156109f7575f80fd5b50610a00611ada565b604051610a0d919061360e565b60405180910390f35b348015610a21575f80fd5b50610a2a611ae0565b604051610a3791906135a8565b60405180910390f35b348015610a4b575f80fd5b50610a54611b06565b604051610a61919061351b565b60405180910390f35b348015610a75575f80fd5b50610a906004803603810190610a8b919061356e565b611b92565b604051610a9d919061351b565b60405180910390f35b348015610ab1575f80fd5b50610acc6004803603810190610ac7919061356e565b611cde565b005b348015610ad9575f80fd5b50610ae2611cf0565b604051610aef919061360e565b60405180910390f35b348015610b03575f80fd5b50610b1e6004803603810190610b19919061387a565b611cf6565b005b348015610b2b575f80fd5b50610b466004803603810190610b419190613ac5565b611d11565b604051610b53919061339e565b60405180910390f35b348015610b67575f80fd5b50610b826004803603810190610b7d919061395c565b611d9f565b005b348015610b8f575f80fd5b50610baa6004803603810190610ba5919061387a565b611e48565b005b348015610bb7575f80fd5b50610bd26004803603810190610bcd9190613466565b611e63565b005b5f7f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c465750610c4582611ee7565b5b9050919050565b610c55611fc8565b8060165f6101000a81548160ff02191690831515021790555050565b6017602052805f5260405f205f915054906101000a900460ff1681565b60605f8054610c9c90613b30565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc890613b30565b8015610d135780601f10610cea57610100808354040283529160200191610d13565b820191905f5260205f20905b815481529060010190602001808311610cf657829003601f168201915b5050505050905090565b5f610d278261208c565b50610d3182612112565b9050919050565b600f8054610d4590613b30565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7190613b30565b8015610dbc5780601f10610d9357610100808354040283529160200191610dbc565b820191905f5260205f20905b815481529060010190602001808311610d9f57829003601f168201915b505050505081565b610dcc611fc8565b8060148190555050565b610de88282610de361214b565b612152565b5050565b60105481565b5f600880549050905090565b6018602052805f5260405f205f915090505481565b60145481565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e89575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610e8091906135a8565b60405180910390fd5b5f610e9c8383610e9761214b565b612164565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f12578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610f0993929190613b60565b60405180910390fd5b50505050565b60135481565b5f610f28836113b2565b8210610f6d5782826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610f64929190613b95565b60405180910390fd5b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2054905092915050565b5f60175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b61101c611fc8565b80601660026101000a81548160ff02191690831515021790555050565b611041611fc8565b5f3373ffffffffffffffffffffffffffffffffffffffff164760405161106690613be9565b5f6040518083038185875af1925050503d805f81146110a0576040519150601f19603f3d011682016040523d82523d5f602084013e6110a5565b606091505b50509050806110b2575f80fd5b50565b6110cf83838360405180602001604052805f815250611abd565b505050565b60605f6110e0836113b2565b90505f8167ffffffffffffffff8111156110fd576110fc613756565b5b60405190808252806020026020018201604052801561112b5781602001602082028036833780820191505090505b5090505f5b82811015611174576111428582610f1e565b82828151811061115557611154613bfd565b5b602002602001018181525050808061116c90613c57565b915050611130565b508092505050919050565b611187611fc8565b8060108190555050565b5f61119a610df2565b82106111df575f826040517fa57d13dc0000000000000000000000000000000000000000000000000000000081526004016111d6929190613b95565b60405180910390fd5b600882815481106111f3576111f2613bfd565b5b905f5260205f2001549050919050565b601660019054906101000a900460ff1681565b61121e611fc8565b80600d908161122d9190613e3b565b5050565b60165f9054906101000a900460ff1681565b60125481565b5f6112538261208c565b9050919050565b611262611fc8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c790613f7a565b60405180910390fd5b80601660036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d805461132190613b30565b80601f016020809104026020016040519081016040528092919081815260200182805461134d90613b30565b80156113985780601f1061136f57610100808354040283529160200191611398565b820191905f5260205f20905b81548152906001019060200180831161137b57829003601f168201915b505050505081565b6113a8611fc8565b8060118190555050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611423575f6040517f89c62b6400000000000000000000000000000000000000000000000000000000815260040161141a91906135a8565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b611470611fc8565b6114795f61227e565b565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546114b290613b30565b80601f01602080910402602001604051908101604052809291908181526020018280546114de90613b30565b80156115295780601f1061150057610100808354040283529160200191611529565b820191905f5260205f20905b81548152906001019060200180831161150c57829003601f168201915b5050505050905090565b601660029054906101000a900460ff1681565b60165f9054906101000a900460ff1615611595576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158c90613fe2565b60405180910390fd5b5f61159e610df2565b90505f82116115e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d99061404a565b60405180910390fd5b601454821115611627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161e906140d8565b60405180910390fd5b601354828261163691906140f6565b1115611677576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166e90614173565b60405180910390fd5b61167f61147b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117f85760011515601660029054906101000a900460ff161515036117a7576116d533610fc2565b611714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170b906141db565b60405180910390fd5b5f60185f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050601554838261176491906140f6565b11156117a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179c90614243565b60405180910390fd5b505b816010546117b59190614261565b3410156117f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ee906142ec565b60405180910390fd5b5b5f600190505b82811161187f5760185f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f81548092919061185290613c57565b919050555061186c33828461186791906140f6565b612341565b808061187790613c57565b9150506117fe565b505050565b61188c611fc8565b5f73ffffffffffffffffffffffffffffffffffffffff16601660039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361191c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191390613f7a565b60405180910390fd5b60115460125461192a610df2565b61193491906140f6565b1115611975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196c9061437a565b60405180910390fd5b5f61197e610df2565b90505f5b6012548110156119d6576119c3601660039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682846119be91906140f6565b612341565b80806119ce90613c57565b915050611982565b5050565b6119ec6119e561214b565b838361235e565b5050565b6119f8611fc8565b6001601660016101000a81548160ff021916908315150217905550565b611a1d611fc8565b5f5b82829050811015611ab8575f60175f858585818110611a4157611a40613bfd565b5b9050602002016020810190611a569190613466565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080611ab090613c57565b915050611a1f565b505050565b611ac8848484610e19565b611ad4848484846124c7565b50505050565b60155481565b601660039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e8054611b1390613b30565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3f90613b30565b8015611b8a5780601f10611b6157610100808354040283529160200191611b8a565b820191905f5260205f20905b815481529060010190602001808311611b6d57829003601f168201915b505050505081565b60605f8211611bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcd90614408565b60405180910390fd5b5f1515601660019054906101000a900460ff16151503611c8057600f8054611bfd90613b30565b80601f0160208091040260200160405190810160405280929190818152602001828054611c2990613b30565b8015611c745780601f10611c4b57610100808354040283529160200191611c74565b820191905f5260205f20905b815481529060010190602001808311611c5757829003601f168201915b50505050509050611cd9565b5f611c89612679565b90505f815111611ca75760405180602001604052805f815250611cd5565b80611cb184612709565b600e604051602001611cc5939291906144e0565b6040516020818303038152906040525b9150505b919050565b611ce6611fc8565b8060158190555050565b60115481565b611cfe611fc8565b80600e9081611d0d9190613e3b565b5050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611da7611fc8565b5f5b82829050811015611e4357600160175f858585818110611dcc57611dcb613bfd565b5b9050602002016020810190611de19190613466565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080611e3b90613c57565b915050611da9565b505050565b611e50611fc8565b80600f9081611e5f9190613e3b565b5050565b611e6b611fc8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611edb575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611ed291906135a8565b60405180910390fd5b611ee48161227e565b50565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611fb157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611fc15750611fc0826127d3565b5b9050919050565b611fd061147b565b73ffffffffffffffffffffffffffffffffffffffff16611fee61214b565b73ffffffffffffffffffffffffffffffffffffffff16141580156120415750600c5461201861214b565b6040516020016120289190614555565b6040516020818303038152906040528051906020012014155b1561208a5761204e61214b565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161208191906135a8565b60405180910390fd5b565b5f806120978361283c565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361210957826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612100919061360e565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b61215f8383836001612875565b505050565b5f80612171858585612a34565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121b4576121af84612c3f565b6121f3565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121f2576121f18185612c83565b5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036122345761222f84612dcd565b612273565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612272576122718585612e8d565b5b5b809150509392505050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61235a828260405180602001604052805f815250612f11565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123ce57816040517f5b08ba180000000000000000000000000000000000000000000000000000000081526004016123c591906135a8565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124ba919061339e565b60405180910390a3505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1115612673578273ffffffffffffffffffffffffffffffffffffffff1663150b7a0261250a61214b565b8685856040518563ffffffff1660e01b815260040161252c94939291906145c1565b6020604051808303815f875af192505050801561256757506040513d601f19601f82011682018060405250810190612564919061461f565b60015b6125e8573d805f8114612595576040519150601f19603f3d011682016040523d82523d5f602084013e61259a565b606091505b505f8151036125e057836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016125d791906135a8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461267157836040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161266891906135a8565b60405180910390fd5b505b50505050565b6060600d805461268890613b30565b80601f01602080910402602001604051908101604052809291908181526020018280546126b490613b30565b80156126ff5780601f106126d6576101008083540402835291602001916126ff565b820191905f5260205f20905b8154815290600101906020018083116126e257829003601f168201915b5050505050905090565b60605f600161271784612f2c565b0190505f8167ffffffffffffffff81111561273557612734613756565b5b6040519080825280601f01601f1916602001820160405280156127675781602001600182028036833780820191505090505b5090505f82602001820190505b6001156127c8578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816127bd576127bc61464a565b5b0494505f8503612774575b819350505050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806128ad57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156129df575f6128bc8461208c565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561292657508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b801561293957506129378184611d11565b155b1561297b57826040517fa9fbf51f00000000000000000000000000000000000000000000000000000000815260040161297291906135a8565b60405180910390fd5b81156129dd57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b5f80612a3f8461283c565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a8057612a7f81848661307d565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612b0b57612abf5f855f80612875565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612b8a57600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b60088054905060095f8381526020019081526020015f2081905550600881908060018154018082558091505060019003905f5260205f20015f909190919091505550565b5f612c8d836113b2565b90505f60075f8481526020019081526020015f20549050818114612d64575f60065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205490508060065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f20819055508160075f8381526020019081526020015f2081905550505b60075f8481526020019081526020015f205f905560065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f205f905550505050565b5f6001600880549050612de09190614677565b90505f60095f8481526020019081526020015f205490505f60088381548110612e0c57612e0b613bfd565b5b905f5260205f20015490508060088381548110612e2c57612e2b613bfd565b5b905f5260205f2001819055508160095f8381526020019081526020015f208190555060095f8581526020019081526020015f205f90556008805480612e7457612e736146aa565b5b600190038181905f5260205f20015f9055905550505050565b5f6001612e99846113b2565b612ea39190614677565b90508160065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f20819055508060075f8481526020019081526020015f2081905550505050565b612f1b8383613140565b612f275f8484846124c7565b505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f88577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f7e57612f7d61464a565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612fc5576d04ee2d6d415b85acef81000000008381612fbb57612fba61464a565b5b0492506020810190505b662386f26fc100008310612ff457662386f26fc100008381612fea57612fe961464a565b5b0492506010810190505b6305f5e100831061301d576305f5e10083816130135761301261464a565b5b0492506008810190505b61271083106130425761271083816130385761303761464a565b5b0492506004810190505b60648310613065576064838161305b5761305a61464a565b5b0492506002810190505b600a8310613074576001810190505b80915050919050565b613088838383613233565b61313b575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036130fc57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016130f3919061360e565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401613132929190613b95565b60405180910390fd5b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036131b0575f6040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016131a791906135a8565b60405180910390fd5b5f6131bc83835f612164565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461322e575f6040517f73c6ac6e00000000000000000000000000000000000000000000000000000000815260040161322591906135a8565b60405180910390fd5b505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156132ea57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806132ab57506132aa8484611d11565b5b806132e957508273ffffffffffffffffffffffffffffffffffffffff166132d183612112565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61333881613304565b8114613342575f80fd5b50565b5f813590506133538161332f565b92915050565b5f6020828403121561336e5761336d6132fc565b5b5f61337b84828501613345565b91505092915050565b5f8115159050919050565b61339881613384565b82525050565b5f6020820190506133b15f83018461338f565b92915050565b6133c081613384565b81146133ca575f80fd5b50565b5f813590506133db816133b7565b92915050565b5f602082840312156133f6576133f56132fc565b5b5f613403848285016133cd565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6134358261340c565b9050919050565b6134458161342b565b811461344f575f80fd5b50565b5f813590506134608161343c565b92915050565b5f6020828403121561347b5761347a6132fc565b5b5f61348884828501613452565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156134c85780820151818401526020810190506134ad565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6134ed82613491565b6134f7818561349b565b93506135078185602086016134ab565b613510816134d3565b840191505092915050565b5f6020820190508181035f83015261353381846134e3565b905092915050565b5f819050919050565b61354d8161353b565b8114613557575f80fd5b50565b5f8135905061356881613544565b92915050565b5f60208284031215613583576135826132fc565b5b5f6135908482850161355a565b91505092915050565b6135a28161342b565b82525050565b5f6020820190506135bb5f830184613599565b92915050565b5f80604083850312156135d7576135d66132fc565b5b5f6135e485828601613452565b92505060206135f58582860161355a565b9150509250929050565b6136088161353b565b82525050565b5f6020820190506136215f8301846135ff565b92915050565b5f805f6060848603121561363e5761363d6132fc565b5b5f61364b86828701613452565b935050602061365c86828701613452565b925050604061366d8682870161355a565b9150509250925092565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6136a98161353b565b82525050565b5f6136ba83836136a0565b60208301905092915050565b5f602082019050919050565b5f6136dc82613677565b6136e68185613681565b93506136f183613691565b805f5b8381101561372157815161370888826136af565b9750613713836136c6565b9250506001810190506136f4565b5085935050505092915050565b5f6020820190508181035f83015261374681846136d2565b905092915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61378c826134d3565b810181811067ffffffffffffffff821117156137ab576137aa613756565b5b80604052505050565b5f6137bd6132f3565b90506137c98282613783565b919050565b5f67ffffffffffffffff8211156137e8576137e7613756565b5b6137f1826134d3565b9050602081019050919050565b828183375f83830152505050565b5f61381e613819846137ce565b6137b4565b90508281526020810184848401111561383a57613839613752565b5b6138458482856137fe565b509392505050565b5f82601f8301126138615761386061374e565b5b813561387184826020860161380c565b91505092915050565b5f6020828403121561388f5761388e6132fc565b5b5f82013567ffffffffffffffff8111156138ac576138ab613300565b5b6138b88482850161384d565b91505092915050565b5f80604083850312156138d7576138d66132fc565b5b5f6138e485828601613452565b92505060206138f5858286016133cd565b9150509250929050565b5f80fd5b5f80fd5b5f8083601f84011261391c5761391b61374e565b5b8235905067ffffffffffffffff811115613939576139386138ff565b5b60208301915083602082028301111561395557613954613903565b5b9250929050565b5f8060208385031215613972576139716132fc565b5b5f83013567ffffffffffffffff81111561398f5761398e613300565b5b61399b85828601613907565b92509250509250929050565b5f67ffffffffffffffff8211156139c1576139c0613756565b5b6139ca826134d3565b9050602081019050919050565b5f6139e96139e4846139a7565b6137b4565b905082815260208101848484011115613a0557613a04613752565b5b613a108482856137fe565b509392505050565b5f82601f830112613a2c57613a2b61374e565b5b8135613a3c8482602086016139d7565b91505092915050565b5f805f8060808587031215613a5d57613a5c6132fc565b5b5f613a6a87828801613452565b9450506020613a7b87828801613452565b9350506040613a8c8782880161355a565b925050606085013567ffffffffffffffff811115613aad57613aac613300565b5b613ab987828801613a18565b91505092959194509250565b5f8060408385031215613adb57613ada6132fc565b5b5f613ae885828601613452565b9250506020613af985828601613452565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613b4757607f821691505b602082108103613b5a57613b59613b03565b5b50919050565b5f606082019050613b735f830186613599565b613b8060208301856135ff565b613b8d6040830184613599565b949350505050565b5f604082019050613ba85f830185613599565b613bb560208301846135ff565b9392505050565b5f81905092915050565b50565b5f613bd45f83613bbc565b9150613bdf82613bc6565b5f82019050919050565b5f613bf382613bc9565b9150819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613c618261353b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c9357613c92613c2a565b5b600182019050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613cfa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613cbf565b613d048683613cbf565b95508019841693508086168417925050509392505050565b5f819050919050565b5f613d3f613d3a613d358461353b565b613d1c565b61353b565b9050919050565b5f819050919050565b613d5883613d25565b613d6c613d6482613d46565b848454613ccb565b825550505050565b5f90565b613d80613d74565b613d8b818484613d4f565b505050565b5b81811015613dae57613da35f82613d78565b600181019050613d91565b5050565b601f821115613df357613dc481613c9e565b613dcd84613cb0565b81016020851015613ddc578190505b613df0613de885613cb0565b830182613d90565b50505b505050565b5f82821c905092915050565b5f613e135f1984600802613df8565b1980831691505092915050565b5f613e2b8383613e04565b9150826002028217905092915050565b613e4482613491565b67ffffffffffffffff811115613e5d57613e5c613756565b5b613e678254613b30565b613e72828285613db2565b5f60209050601f831160018114613ea3575f8415613e91578287015190505b613e9b8582613e20565b865550613f02565b601f198416613eb186613c9e565b5f5b82811015613ed857848901518255600182019150602085019450602081019050613eb3565b86831015613ef55784890151613ef1601f891682613e04565b8355505b6001600288020188555050505b505050505050565b7f547265617375727920616464726573732063616e6e6f7420626520746865207a5f8201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b5f613f64602b8361349b565b9150613f6f82613f0a565b604082019050919050565b5f6020820190508181035f830152613f9181613f58565b9050919050565b7f74686520636f6e747261637420697320706175736564000000000000000000005f82015250565b5f613fcc60168361349b565b9150613fd782613f98565b602082019050919050565b5f6020820190508181035f830152613ff981613fc0565b9050919050565b7f6e65656420746f206d696e74206174206c656173742031204e465400000000005f82015250565b5f614034601b8361349b565b915061403f82614000565b602082019050919050565b5f6020820190508181035f83015261406181614028565b9050919050565b7f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863655f8201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b5f6140c260248361349b565b91506140cd82614068565b604082019050919050565b5f6020820190508181035f8301526140ef816140b6565b9050919050565b5f6141008261353b565b915061410b8361353b565b925082820190508082111561412357614122613c2a565b5b92915050565b7f6d6178204e4654206c696d6974206578636565646564000000000000000000005f82015250565b5f61415d60168361349b565b915061416882614129565b602082019050919050565b5f6020820190508181035f83015261418a81614151565b9050919050565b7f75736572206973206e6f742077686974656c69737465640000000000000000005f82015250565b5f6141c560178361349b565b91506141d082614191565b602082019050919050565b5f6020820190508181035f8301526141f2816141b9565b9050919050565b7f6d6178204e4654207065722061646472657373206578636565646564000000005f82015250565b5f61422d601c8361349b565b9150614238826141f9565b602082019050919050565b5f6020820190508181035f83015261425a81614221565b9050919050565b5f61426b8261353b565b91506142768361353b565b92508282026142848161353b565b9150828204841483151761429b5761429a613c2a565b5b5092915050565b7f696e73756666696369656e742066756e647300000000000000000000000000005f82015250565b5f6142d660128361349b565b91506142e1826142a2565b602082019050919050565b5f6020820190508181035f830152614303816142ca565b9050919050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c79205f8201527f6f6620546f6b656e730000000000000000000000000000000000000000000000602082015250565b5f61436460298361349b565b915061436f8261430a565b604082019050919050565b5f6020820190508181035f83015261439181614358565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f5f8201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b5f6143f2602f8361349b565b91506143fd82614398565b604082019050919050565b5f6020820190508181035f83015261441f816143e6565b9050919050565b5f81905092915050565b5f61443a82613491565b6144448185614426565b93506144548185602086016134ab565b80840191505092915050565b5f815461446c81613b30565b6144768186614426565b9450600182165f811461449057600181146144a5576144d7565b60ff19831686528115158202860193506144d7565b6144ae85613c9e565b5f5b838110156144cf578154818901526001820191506020810190506144b0565b838801955050505b50505092915050565b5f6144eb8286614430565b91506144f78285614430565b91506145038284614460565b9150819050949350505050565b5f8160601b9050919050565b5f61452682614510565b9050919050565b5f6145378261451c565b9050919050565b61454f61454a8261342b565b61452d565b82525050565b5f614560828461453e565b60148201915081905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f6145938261456f565b61459d8185614579565b93506145ad8185602086016134ab565b6145b6816134d3565b840191505092915050565b5f6080820190506145d45f830187613599565b6145e16020830186613599565b6145ee60408301856135ff565b81810360608301526146008184614589565b905095945050505050565b5f815190506146198161332f565b92915050565b5f60208284031215614634576146336132fc565b5b5f6146418482850161460b565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6146818261353b565b915061468c8361353b565b92508282039050818111156146a4576146a3613c2a565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea2646970667358221220bd847dc048bccac11ef9ac9ab8184373d7160fb9fddcbf6bd545588fcce9af8064736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000f2e3858a1dc1198b50427bf9660dda55463d4128000000000000000000000000000000000000000000000000000000000000000e416e6f6e204c61627320506173730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003414c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010697066733a2f2f626173655f7572692f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018697066733a2f2f6e6f745f72657665616c65645f7572692f0000000000000000
Deployed Bytecode
0x6080604052600436106102fe575f3560e01c80636352211e1161018f578063b2e13111116100db578063d0eb26b011610094578063e985e9c51161006e578063e985e9c514610b20578063edec5f2714610b5c578063f2c4ce1e14610b84578063f2fde38b14610bac576102fe565b8063d0eb26b014610aa6578063d5abeb0114610ace578063da3ef23f14610af8576102fe565b8063b2e131111461099c578063b88d4fde146109c4578063ba7d2c76146109ec578063c5f956af14610a16578063c668286214610a40578063c87b56dd14610a6a576102fe565b80638da5cb5b11610148578063a0712d6811610122578063a0712d681461092c578063a1a7e68b14610948578063a22cb4651461095e578063a475b5dd14610986576102fe565b80638da5cb5b146108ae57806395d89b41146108d85780639c70b51214610902576102fe565b80636352211e146107a65780636605bfda146107e25780636c0360eb1461080a5780636f8b44b01461083457806370a082311461085c578063715018a614610898576102fe565b806326a74d8e1161024e578063438b63001161020757806351830227116101e1578063518302271461070057806355f804b31461072a5780635c975abb146107525780635fc1a4b81461077c576102fe565b8063438b63001461066057806344a0d68a1461069c5780634f6ccce7146106c4576102fe565b806326a74d8e146105645780632f745c591461058e5780633af32abf146105ca5780633c952764146106065780633ccfd60b1461062e57806342842e0e14610638576102fe565b8063088a4ed0116102bb57806318160ddd1161029557806318160ddd146104ac57806318cae269146104d6578063239c70ae1461051257806323b872dd1461053c576102fe565b8063088a4ed014610432578063095ea7b31461045a57806313faede614610482576102fe565b806301ffc9a71461030257806302329a291461033e57806306c933d81461036657806306fdde03146103a2578063081812fc146103cc578063081c8c4414610408575b5f80fd5b34801561030d575f80fd5b5061032860048036038101906103239190613359565b610bd4565b604051610335919061339e565b60405180910390f35b348015610349575f80fd5b50610364600480360381019061035f91906133e1565b610c4d565b005b348015610371575f80fd5b5061038c60048036038101906103879190613466565b610c71565b604051610399919061339e565b60405180910390f35b3480156103ad575f80fd5b506103b6610c8e565b6040516103c3919061351b565b60405180910390f35b3480156103d7575f80fd5b506103f260048036038101906103ed919061356e565b610d1d565b6040516103ff91906135a8565b60405180910390f35b348015610413575f80fd5b5061041c610d38565b604051610429919061351b565b60405180910390f35b34801561043d575f80fd5b506104586004803603810190610453919061356e565b610dc4565b005b348015610465575f80fd5b50610480600480360381019061047b91906135c1565b610dd6565b005b34801561048d575f80fd5b50610496610dec565b6040516104a3919061360e565b60405180910390f35b3480156104b7575f80fd5b506104c0610df2565b6040516104cd919061360e565b60405180910390f35b3480156104e1575f80fd5b506104fc60048036038101906104f79190613466565b610dfe565b604051610509919061360e565b60405180910390f35b34801561051d575f80fd5b50610526610e13565b604051610533919061360e565b60405180910390f35b348015610547575f80fd5b50610562600480360381019061055d9190613627565b610e19565b005b34801561056f575f80fd5b50610578610f18565b604051610585919061360e565b60405180910390f35b348015610599575f80fd5b506105b460048036038101906105af91906135c1565b610f1e565b6040516105c1919061360e565b60405180910390f35b3480156105d5575f80fd5b506105f060048036038101906105eb9190613466565b610fc2565b6040516105fd919061339e565b60405180910390f35b348015610611575f80fd5b5061062c600480360381019061062791906133e1565b611014565b005b610636611039565b005b348015610643575f80fd5b5061065e60048036038101906106599190613627565b6110b5565b005b34801561066b575f80fd5b5061068660048036038101906106819190613466565b6110d4565b604051610693919061372e565b60405180910390f35b3480156106a7575f80fd5b506106c260048036038101906106bd919061356e565b61117f565b005b3480156106cf575f80fd5b506106ea60048036038101906106e5919061356e565b611191565b6040516106f7919061360e565b60405180910390f35b34801561070b575f80fd5b50610714611203565b604051610721919061339e565b60405180910390f35b348015610735575f80fd5b50610750600480360381019061074b919061387a565b611216565b005b34801561075d575f80fd5b50610766611231565b604051610773919061339e565b60405180910390f35b348015610787575f80fd5b50610790611243565b60405161079d919061360e565b60405180910390f35b3480156107b1575f80fd5b506107cc60048036038101906107c7919061356e565b611249565b6040516107d991906135a8565b60405180910390f35b3480156107ed575f80fd5b5061080860048036038101906108039190613466565b61125a565b005b348015610815575f80fd5b5061081e611314565b60405161082b919061351b565b60405180910390f35b34801561083f575f80fd5b5061085a6004803603810190610855919061356e565b6113a0565b005b348015610867575f80fd5b50610882600480360381019061087d9190613466565b6113b2565b60405161088f919061360e565b60405180910390f35b3480156108a3575f80fd5b506108ac611468565b005b3480156108b9575f80fd5b506108c261147b565b6040516108cf91906135a8565b60405180910390f35b3480156108e3575f80fd5b506108ec6114a3565b6040516108f9919061351b565b60405180910390f35b34801561090d575f80fd5b50610916611533565b604051610923919061339e565b60405180910390f35b6109466004803603810190610941919061356e565b611546565b005b348015610953575f80fd5b5061095c611884565b005b348015610969575f80fd5b50610984600480360381019061097f91906138c1565b6119da565b005b348015610991575f80fd5b5061099a6119f0565b005b3480156109a7575f80fd5b506109c260048036038101906109bd919061395c565b611a15565b005b3480156109cf575f80fd5b506109ea60048036038101906109e59190613a45565b611abd565b005b3480156109f7575f80fd5b50610a00611ada565b604051610a0d919061360e565b60405180910390f35b348015610a21575f80fd5b50610a2a611ae0565b604051610a3791906135a8565b60405180910390f35b348015610a4b575f80fd5b50610a54611b06565b604051610a61919061351b565b60405180910390f35b348015610a75575f80fd5b50610a906004803603810190610a8b919061356e565b611b92565b604051610a9d919061351b565b60405180910390f35b348015610ab1575f80fd5b50610acc6004803603810190610ac7919061356e565b611cde565b005b348015610ad9575f80fd5b50610ae2611cf0565b604051610aef919061360e565b60405180910390f35b348015610b03575f80fd5b50610b1e6004803603810190610b19919061387a565b611cf6565b005b348015610b2b575f80fd5b50610b466004803603810190610b419190613ac5565b611d11565b604051610b53919061339e565b60405180910390f35b348015610b67575f80fd5b50610b826004803603810190610b7d919061395c565b611d9f565b005b348015610b8f575f80fd5b50610baa6004803603810190610ba5919061387a565b611e48565b005b348015610bb7575f80fd5b50610bd26004803603810190610bcd9190613466565b611e63565b005b5f7f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c465750610c4582611ee7565b5b9050919050565b610c55611fc8565b8060165f6101000a81548160ff02191690831515021790555050565b6017602052805f5260405f205f915054906101000a900460ff1681565b60605f8054610c9c90613b30565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc890613b30565b8015610d135780601f10610cea57610100808354040283529160200191610d13565b820191905f5260205f20905b815481529060010190602001808311610cf657829003601f168201915b5050505050905090565b5f610d278261208c565b50610d3182612112565b9050919050565b600f8054610d4590613b30565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7190613b30565b8015610dbc5780601f10610d9357610100808354040283529160200191610dbc565b820191905f5260205f20905b815481529060010190602001808311610d9f57829003601f168201915b505050505081565b610dcc611fc8565b8060148190555050565b610de88282610de361214b565b612152565b5050565b60105481565b5f600880549050905090565b6018602052805f5260405f205f915090505481565b60145481565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e89575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610e8091906135a8565b60405180910390fd5b5f610e9c8383610e9761214b565b612164565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f12578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610f0993929190613b60565b60405180910390fd5b50505050565b60135481565b5f610f28836113b2565b8210610f6d5782826040517fa57d13dc000000000000000000000000000000000000000000000000000000008152600401610f64929190613b95565b60405180910390fd5b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2054905092915050565b5f60175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b61101c611fc8565b80601660026101000a81548160ff02191690831515021790555050565b611041611fc8565b5f3373ffffffffffffffffffffffffffffffffffffffff164760405161106690613be9565b5f6040518083038185875af1925050503d805f81146110a0576040519150601f19603f3d011682016040523d82523d5f602084013e6110a5565b606091505b50509050806110b2575f80fd5b50565b6110cf83838360405180602001604052805f815250611abd565b505050565b60605f6110e0836113b2565b90505f8167ffffffffffffffff8111156110fd576110fc613756565b5b60405190808252806020026020018201604052801561112b5781602001602082028036833780820191505090505b5090505f5b82811015611174576111428582610f1e565b82828151811061115557611154613bfd565b5b602002602001018181525050808061116c90613c57565b915050611130565b508092505050919050565b611187611fc8565b8060108190555050565b5f61119a610df2565b82106111df575f826040517fa57d13dc0000000000000000000000000000000000000000000000000000000081526004016111d6929190613b95565b60405180910390fd5b600882815481106111f3576111f2613bfd565b5b905f5260205f2001549050919050565b601660019054906101000a900460ff1681565b61121e611fc8565b80600d908161122d9190613e3b565b5050565b60165f9054906101000a900460ff1681565b60125481565b5f6112538261208c565b9050919050565b611262611fc8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c790613f7a565b60405180910390fd5b80601660036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d805461132190613b30565b80601f016020809104026020016040519081016040528092919081815260200182805461134d90613b30565b80156113985780601f1061136f57610100808354040283529160200191611398565b820191905f5260205f20905b81548152906001019060200180831161137b57829003601f168201915b505050505081565b6113a8611fc8565b8060118190555050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611423575f6040517f89c62b6400000000000000000000000000000000000000000000000000000000815260040161141a91906135a8565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b611470611fc8565b6114795f61227e565b565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546114b290613b30565b80601f01602080910402602001604051908101604052809291908181526020018280546114de90613b30565b80156115295780601f1061150057610100808354040283529160200191611529565b820191905f5260205f20905b81548152906001019060200180831161150c57829003601f168201915b5050505050905090565b601660029054906101000a900460ff1681565b60165f9054906101000a900460ff1615611595576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158c90613fe2565b60405180910390fd5b5f61159e610df2565b90505f82116115e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d99061404a565b60405180910390fd5b601454821115611627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161e906140d8565b60405180910390fd5b601354828261163691906140f6565b1115611677576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166e90614173565b60405180910390fd5b61167f61147b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117f85760011515601660029054906101000a900460ff161515036117a7576116d533610fc2565b611714576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170b906141db565b60405180910390fd5b5f60185f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050601554838261176491906140f6565b11156117a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179c90614243565b60405180910390fd5b505b816010546117b59190614261565b3410156117f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ee906142ec565b60405180910390fd5b5b5f600190505b82811161187f5760185f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f81548092919061185290613c57565b919050555061186c33828461186791906140f6565b612341565b808061187790613c57565b9150506117fe565b505050565b61188c611fc8565b5f73ffffffffffffffffffffffffffffffffffffffff16601660039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361191c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191390613f7a565b60405180910390fd5b60115460125461192a610df2565b61193491906140f6565b1115611975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196c9061437a565b60405180910390fd5b5f61197e610df2565b90505f5b6012548110156119d6576119c3601660039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682846119be91906140f6565b612341565b80806119ce90613c57565b915050611982565b5050565b6119ec6119e561214b565b838361235e565b5050565b6119f8611fc8565b6001601660016101000a81548160ff021916908315150217905550565b611a1d611fc8565b5f5b82829050811015611ab8575f60175f858585818110611a4157611a40613bfd565b5b9050602002016020810190611a569190613466565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080611ab090613c57565b915050611a1f565b505050565b611ac8848484610e19565b611ad4848484846124c7565b50505050565b60155481565b601660039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e8054611b1390613b30565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3f90613b30565b8015611b8a5780601f10611b6157610100808354040283529160200191611b8a565b820191905f5260205f20905b815481529060010190602001808311611b6d57829003601f168201915b505050505081565b60605f8211611bd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcd90614408565b60405180910390fd5b5f1515601660019054906101000a900460ff16151503611c8057600f8054611bfd90613b30565b80601f0160208091040260200160405190810160405280929190818152602001828054611c2990613b30565b8015611c745780601f10611c4b57610100808354040283529160200191611c74565b820191905f5260205f20905b815481529060010190602001808311611c5757829003601f168201915b50505050509050611cd9565b5f611c89612679565b90505f815111611ca75760405180602001604052805f815250611cd5565b80611cb184612709565b600e604051602001611cc5939291906144e0565b6040516020818303038152906040525b9150505b919050565b611ce6611fc8565b8060158190555050565b60115481565b611cfe611fc8565b80600e9081611d0d9190613e3b565b5050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611da7611fc8565b5f5b82829050811015611e4357600160175f858585818110611dcc57611dcb613bfd565b5b9050602002016020810190611de19190613466565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080611e3b90613c57565b915050611da9565b505050565b611e50611fc8565b80600f9081611e5f9190613e3b565b5050565b611e6b611fc8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611edb575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611ed291906135a8565b60405180910390fd5b611ee48161227e565b50565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611fb157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611fc15750611fc0826127d3565b5b9050919050565b611fd061147b565b73ffffffffffffffffffffffffffffffffffffffff16611fee61214b565b73ffffffffffffffffffffffffffffffffffffffff16141580156120415750600c5461201861214b565b6040516020016120289190614555565b6040516020818303038152906040528051906020012014155b1561208a5761204e61214b565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161208191906135a8565b60405180910390fd5b565b5f806120978361283c565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361210957826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612100919061360e565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b61215f8383836001612875565b505050565b5f80612171858585612a34565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121b4576121af84612c3f565b6121f3565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121f2576121f18185612c83565b5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036122345761222f84612dcd565b612273565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612272576122718585612e8d565b5b5b809150509392505050565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61235a828260405180602001604052805f815250612f11565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123ce57816040517f5b08ba180000000000000000000000000000000000000000000000000000000081526004016123c591906135a8565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124ba919061339e565b60405180910390a3505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1115612673578273ffffffffffffffffffffffffffffffffffffffff1663150b7a0261250a61214b565b8685856040518563ffffffff1660e01b815260040161252c94939291906145c1565b6020604051808303815f875af192505050801561256757506040513d601f19601f82011682018060405250810190612564919061461f565b60015b6125e8573d805f8114612595576040519150601f19603f3d011682016040523d82523d5f602084013e61259a565b606091505b505f8151036125e057836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016125d791906135a8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461267157836040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161266891906135a8565b60405180910390fd5b505b50505050565b6060600d805461268890613b30565b80601f01602080910402602001604051908101604052809291908181526020018280546126b490613b30565b80156126ff5780601f106126d6576101008083540402835291602001916126ff565b820191905f5260205f20905b8154815290600101906020018083116126e257829003601f168201915b5050505050905090565b60605f600161271784612f2c565b0190505f8167ffffffffffffffff81111561273557612734613756565b5b6040519080825280601f01601f1916602001820160405280156127675781602001600182028036833780820191505090505b5090505f82602001820190505b6001156127c8578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816127bd576127bc61464a565b5b0494505f8503612774575b819350505050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806128ad57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156129df575f6128bc8461208c565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561292657508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b801561293957506129378184611d11565b155b1561297b57826040517fa9fbf51f00000000000000000000000000000000000000000000000000000000815260040161297291906135a8565b60405180910390fd5b81156129dd57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b5f80612a3f8461283c565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a8057612a7f81848661307d565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612b0b57612abf5f855f80612875565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612b8a57600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b60088054905060095f8381526020019081526020015f2081905550600881908060018154018082558091505060019003905f5260205f20015f909190919091505550565b5f612c8d836113b2565b90505f60075f8481526020019081526020015f20549050818114612d64575f60065f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205490508060065f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f20819055508160075f8381526020019081526020015f2081905550505b60075f8481526020019081526020015f205f905560065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f205f905550505050565b5f6001600880549050612de09190614677565b90505f60095f8481526020019081526020015f205490505f60088381548110612e0c57612e0b613bfd565b5b905f5260205f20015490508060088381548110612e2c57612e2b613bfd565b5b905f5260205f2001819055508160095f8381526020019081526020015f208190555060095f8581526020019081526020015f205f90556008805480612e7457612e736146aa565b5b600190038181905f5260205f20015f9055905550505050565b5f6001612e99846113b2565b612ea39190614677565b90508160065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f20819055508060075f8481526020019081526020015f2081905550505050565b612f1b8383613140565b612f275f8484846124c7565b505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f88577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f7e57612f7d61464a565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612fc5576d04ee2d6d415b85acef81000000008381612fbb57612fba61464a565b5b0492506020810190505b662386f26fc100008310612ff457662386f26fc100008381612fea57612fe961464a565b5b0492506010810190505b6305f5e100831061301d576305f5e10083816130135761301261464a565b5b0492506008810190505b61271083106130425761271083816130385761303761464a565b5b0492506004810190505b60648310613065576064838161305b5761305a61464a565b5b0492506002810190505b600a8310613074576001810190505b80915050919050565b613088838383613233565b61313b575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036130fc57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016130f3919061360e565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401613132929190613b95565b60405180910390fd5b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036131b0575f6040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016131a791906135a8565b60405180910390fd5b5f6131bc83835f612164565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461322e575f6040517f73c6ac6e00000000000000000000000000000000000000000000000000000000815260040161322591906135a8565b60405180910390fd5b505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156132ea57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806132ab57506132aa8484611d11565b5b806132e957508273ffffffffffffffffffffffffffffffffffffffff166132d183612112565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61333881613304565b8114613342575f80fd5b50565b5f813590506133538161332f565b92915050565b5f6020828403121561336e5761336d6132fc565b5b5f61337b84828501613345565b91505092915050565b5f8115159050919050565b61339881613384565b82525050565b5f6020820190506133b15f83018461338f565b92915050565b6133c081613384565b81146133ca575f80fd5b50565b5f813590506133db816133b7565b92915050565b5f602082840312156133f6576133f56132fc565b5b5f613403848285016133cd565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6134358261340c565b9050919050565b6134458161342b565b811461344f575f80fd5b50565b5f813590506134608161343c565b92915050565b5f6020828403121561347b5761347a6132fc565b5b5f61348884828501613452565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156134c85780820151818401526020810190506134ad565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6134ed82613491565b6134f7818561349b565b93506135078185602086016134ab565b613510816134d3565b840191505092915050565b5f6020820190508181035f83015261353381846134e3565b905092915050565b5f819050919050565b61354d8161353b565b8114613557575f80fd5b50565b5f8135905061356881613544565b92915050565b5f60208284031215613583576135826132fc565b5b5f6135908482850161355a565b91505092915050565b6135a28161342b565b82525050565b5f6020820190506135bb5f830184613599565b92915050565b5f80604083850312156135d7576135d66132fc565b5b5f6135e485828601613452565b92505060206135f58582860161355a565b9150509250929050565b6136088161353b565b82525050565b5f6020820190506136215f8301846135ff565b92915050565b5f805f6060848603121561363e5761363d6132fc565b5b5f61364b86828701613452565b935050602061365c86828701613452565b925050604061366d8682870161355a565b9150509250925092565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6136a98161353b565b82525050565b5f6136ba83836136a0565b60208301905092915050565b5f602082019050919050565b5f6136dc82613677565b6136e68185613681565b93506136f183613691565b805f5b8381101561372157815161370888826136af565b9750613713836136c6565b9250506001810190506136f4565b5085935050505092915050565b5f6020820190508181035f83015261374681846136d2565b905092915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61378c826134d3565b810181811067ffffffffffffffff821117156137ab576137aa613756565b5b80604052505050565b5f6137bd6132f3565b90506137c98282613783565b919050565b5f67ffffffffffffffff8211156137e8576137e7613756565b5b6137f1826134d3565b9050602081019050919050565b828183375f83830152505050565b5f61381e613819846137ce565b6137b4565b90508281526020810184848401111561383a57613839613752565b5b6138458482856137fe565b509392505050565b5f82601f8301126138615761386061374e565b5b813561387184826020860161380c565b91505092915050565b5f6020828403121561388f5761388e6132fc565b5b5f82013567ffffffffffffffff8111156138ac576138ab613300565b5b6138b88482850161384d565b91505092915050565b5f80604083850312156138d7576138d66132fc565b5b5f6138e485828601613452565b92505060206138f5858286016133cd565b9150509250929050565b5f80fd5b5f80fd5b5f8083601f84011261391c5761391b61374e565b5b8235905067ffffffffffffffff811115613939576139386138ff565b5b60208301915083602082028301111561395557613954613903565b5b9250929050565b5f8060208385031215613972576139716132fc565b5b5f83013567ffffffffffffffff81111561398f5761398e613300565b5b61399b85828601613907565b92509250509250929050565b5f67ffffffffffffffff8211156139c1576139c0613756565b5b6139ca826134d3565b9050602081019050919050565b5f6139e96139e4846139a7565b6137b4565b905082815260208101848484011115613a0557613a04613752565b5b613a108482856137fe565b509392505050565b5f82601f830112613a2c57613a2b61374e565b5b8135613a3c8482602086016139d7565b91505092915050565b5f805f8060808587031215613a5d57613a5c6132fc565b5b5f613a6a87828801613452565b9450506020613a7b87828801613452565b9350506040613a8c8782880161355a565b925050606085013567ffffffffffffffff811115613aad57613aac613300565b5b613ab987828801613a18565b91505092959194509250565b5f8060408385031215613adb57613ada6132fc565b5b5f613ae885828601613452565b9250506020613af985828601613452565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613b4757607f821691505b602082108103613b5a57613b59613b03565b5b50919050565b5f606082019050613b735f830186613599565b613b8060208301856135ff565b613b8d6040830184613599565b949350505050565b5f604082019050613ba85f830185613599565b613bb560208301846135ff565b9392505050565b5f81905092915050565b50565b5f613bd45f83613bbc565b9150613bdf82613bc6565b5f82019050919050565b5f613bf382613bc9565b9150819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613c618261353b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c9357613c92613c2a565b5b600182019050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613cfa7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613cbf565b613d048683613cbf565b95508019841693508086168417925050509392505050565b5f819050919050565b5f613d3f613d3a613d358461353b565b613d1c565b61353b565b9050919050565b5f819050919050565b613d5883613d25565b613d6c613d6482613d46565b848454613ccb565b825550505050565b5f90565b613d80613d74565b613d8b818484613d4f565b505050565b5b81811015613dae57613da35f82613d78565b600181019050613d91565b5050565b601f821115613df357613dc481613c9e565b613dcd84613cb0565b81016020851015613ddc578190505b613df0613de885613cb0565b830182613d90565b50505b505050565b5f82821c905092915050565b5f613e135f1984600802613df8565b1980831691505092915050565b5f613e2b8383613e04565b9150826002028217905092915050565b613e4482613491565b67ffffffffffffffff811115613e5d57613e5c613756565b5b613e678254613b30565b613e72828285613db2565b5f60209050601f831160018114613ea3575f8415613e91578287015190505b613e9b8582613e20565b865550613f02565b601f198416613eb186613c9e565b5f5b82811015613ed857848901518255600182019150602085019450602081019050613eb3565b86831015613ef55784890151613ef1601f891682613e04565b8355505b6001600288020188555050505b505050505050565b7f547265617375727920616464726573732063616e6e6f7420626520746865207a5f8201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b5f613f64602b8361349b565b9150613f6f82613f0a565b604082019050919050565b5f6020820190508181035f830152613f9181613f58565b9050919050565b7f74686520636f6e747261637420697320706175736564000000000000000000005f82015250565b5f613fcc60168361349b565b9150613fd782613f98565b602082019050919050565b5f6020820190508181035f830152613ff981613fc0565b9050919050565b7f6e65656420746f206d696e74206174206c656173742031204e465400000000005f82015250565b5f614034601b8361349b565b915061403f82614000565b602082019050919050565b5f6020820190508181035f83015261406181614028565b9050919050565b7f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863655f8201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b5f6140c260248361349b565b91506140cd82614068565b604082019050919050565b5f6020820190508181035f8301526140ef816140b6565b9050919050565b5f6141008261353b565b915061410b8361353b565b925082820190508082111561412357614122613c2a565b5b92915050565b7f6d6178204e4654206c696d6974206578636565646564000000000000000000005f82015250565b5f61415d60168361349b565b915061416882614129565b602082019050919050565b5f6020820190508181035f83015261418a81614151565b9050919050565b7f75736572206973206e6f742077686974656c69737465640000000000000000005f82015250565b5f6141c560178361349b565b91506141d082614191565b602082019050919050565b5f6020820190508181035f8301526141f2816141b9565b9050919050565b7f6d6178204e4654207065722061646472657373206578636565646564000000005f82015250565b5f61422d601c8361349b565b9150614238826141f9565b602082019050919050565b5f6020820190508181035f83015261425a81614221565b9050919050565b5f61426b8261353b565b91506142768361353b565b92508282026142848161353b565b9150828204841483151761429b5761429a613c2a565b5b5092915050565b7f696e73756666696369656e742066756e647300000000000000000000000000005f82015250565b5f6142d660128361349b565b91506142e1826142a2565b602082019050919050565b5f6020820190508181035f830152614303816142ca565b9050919050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c79205f8201527f6f6620546f6b656e730000000000000000000000000000000000000000000000602082015250565b5f61436460298361349b565b915061436f8261430a565b604082019050919050565b5f6020820190508181035f83015261439181614358565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f5f8201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b5f6143f2602f8361349b565b91506143fd82614398565b604082019050919050565b5f6020820190508181035f83015261441f816143e6565b9050919050565b5f81905092915050565b5f61443a82613491565b6144448185614426565b93506144548185602086016134ab565b80840191505092915050565b5f815461446c81613b30565b6144768186614426565b9450600182165f811461449057600181146144a5576144d7565b60ff19831686528115158202860193506144d7565b6144ae85613c9e565b5f5b838110156144cf578154818901526001820191506020810190506144b0565b838801955050505b50505092915050565b5f6144eb8286614430565b91506144f78285614430565b91506145038284614460565b9150819050949350505050565b5f8160601b9050919050565b5f61452682614510565b9050919050565b5f6145378261451c565b9050919050565b61454f61454a8261342b565b61452d565b82525050565b5f614560828461453e565b60148201915081905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f6145938261456f565b61459d8185614579565b93506145ad8185602086016134ab565b6145b6816134d3565b840191505092915050565b5f6080820190506145d45f830187613599565b6145e16020830186613599565b6145ee60408301856135ff565b81810360608301526146008184614589565b905095945050505050565b5f815190506146198161332f565b92915050565b5f60208284031215614634576146336132fc565b5b5f6146418482850161460b565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6146818261353b565b915061468c8361353b565b92508282039050818111156146a4576146a3613c2a565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea2646970667358221220bd847dc048bccac11ef9ac9ab8184373d7160fb9fddcbf6bd545588fcce9af8064736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000f2e3858a1dc1198b50427bf9660dda55463d4128000000000000000000000000000000000000000000000000000000000000000e416e6f6e204c61627320506173730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003414c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010697066733a2f2f626173655f7572692f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018697066733a2f2f6e6f745f72657665616c65645f7572692f0000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Anon Labs Pass
Arg [1] : _symbol (string): ALP
Arg [2] : _initBaseURI (string): ipfs://base_uri/
Arg [3] : _initNotRevealedUri (string): ipfs://not_revealed_uri/
Arg [4] : _treasuryAddress (address): 0xf2e3858A1dC1198b50427Bf9660DdA55463D4128
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 000000000000000000000000f2e3858a1dc1198b50427bf9660dda55463d4128
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [6] : 416e6f6e204c6162732050617373000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 414c500000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [10] : 697066733a2f2f626173655f7572692f00000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [12] : 697066733a2f2f6e6f745f72657665616c65645f7572692f0000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.