ERC-721
Overview
Max Total Supply
1,737 HBORN
Holders
577
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 HBORNLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
WhelpsBreed7
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2021-09-22 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.7; // Part: Address /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Part: Context /* * @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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // Part: EnumerableSet /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // Part: IERC165 /** * @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); } // Part: IERC721Receiver /** * @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 `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // Part: SafeMath // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ 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 substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ 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. * * _Available since v3.4._ */ 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. * * _Available since v3.4._ */ 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. * * _Available since v3.4._ */ 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 addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // Part: Strings /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // Part: ERC165 /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // Part: EnumerableMap /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { using EnumerableSet for EnumerableSet.Bytes32Set; // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct Map { // Storage of keys EnumerableSet.Bytes32Set _keys; mapping (bytes32 => bytes32) _values; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { map._values[key] = value; return map._keys.add(key); } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { delete map._values[key]; return map._keys.remove(key); } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._keys.contains(key); } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._keys.length(); } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { bytes32 key = map._keys.at(index); return (key, map._values[key]); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { bytes32 value = map._values[key]; if (value == bytes32(0)) { return (_contains(map, key), bytes32(0)); } else { return (true, value); } } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key"); return value; } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), errorMessage); return value; } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } } // Part: IERC721 /** * @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`, 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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns 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); /** * @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; } // Part: Ownable /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // Part: IERC721Enumerable /** * @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 tokenId); /** * @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); } // Part: IERC721Metadata /** * @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); } // Part: ERC721 /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), 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 virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } } // Part: ERC721Enumerable /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: FPOLY_WhelpsBreed7.sol contract WhelpsBreed7 is ERC721Enumerable, Ownable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; address public _approvedContract = address(0); address public _stakingContract = address(0); bool public stakingContractLocked = false; /** * @dev Returns the address of the current owner. */ function approvedContract() public view virtual returns (address) { return _approvedContract; } function setApprovedContract(address _contract) external onlyOwner { _approvedContract = _contract; } modifier onlyOwnerOrApprovedContract() { require(owner() == _msgSender() || approvedContract() == _msgSender(), "Caller is not the owner or the approved contract"); _; } function setStakingContract(address _contract) external onlyOwner { require(!stakingContractLocked, "Locked"); _stakingContract = _contract; } function lockStakingContract() external onlyOwner { stakingContractLocked = true; } // name handlers bool public namesActivated; bool public namesActivatedLock; mapping (uint256 => string) public tokenIdToName; uint256 public constant MAX_NAME_LEN = 100; function toggleActivateNameFeature() public onlyOwner { require(namesActivatedLock == false, "Locked"); namesActivated = !namesActivated; } function lockNameFeatureForever() public onlyOwner { namesActivatedLock = true; } function checkNameValid(string calldata name) public pure returns(bool) { bytes memory nameBytes = bytes(name); require(nameBytes.length <= MAX_NAME_LEN); for (uint256 i = 0; i < nameBytes.length; i++) { require((nameBytes[i]>="a"&&nameBytes[i]<="z")||(nameBytes[i]>="A"&&nameBytes[i]<="Z")||(nameBytes[i]>="0"&&nameBytes[i]<="9")||nameBytes[i]=="-"||nameBytes[i]=="."||nameBytes[i]=="_"||nameBytes[i]=="~", "invalid char"); } return true; } function setNameForTokenId(uint256 tokenId, string calldata name) public { require(_exists(tokenId), "Unknown token"); require(msg.sender == ownerOf(tokenId), "Unauthorized"); require(namesActivated, "Setting names is disabled"); require(checkNameValid(name)); tokenIdToName[tokenId] = name; } // metadata & ipfs string public baseURI = "https://whelpsio.herokuapp.com/api7-poly/"; string public ipfsBaseURI = "https://whelps.mypinata.cloud/ipfs/"; mapping (uint256 => string) public tokenIdToIpfsHash; // 1 - force use computed name for all // 2 - use ipfs hash if available, fallback to computed name // 3 - force use ipfs hash for all uint256 public metadataSwitch = 1; bool public ipfsLocked = false; mapping (uint256 => bool) public ipfsLockPerToken; bool public switchLocked = false; bool public manualMintAllowed = true; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory __name, string memory __symbol) ERC721(__name, __symbol) {} // Metadata handlers function _baseURI() internal view override returns (string memory) { return baseURI; } function _ipfsBaseURI() internal view returns (string memory) { return ipfsBaseURI; } function setBaseUri(string memory _uri) external onlyOwner { baseURI = _uri; } function setIpfsBaseUri(string memory _uri) external onlyOwner { require(ipfsLocked == false); ipfsBaseURI = _uri; } function lockIpfsMetadata() external onlyOwner { require(ipfsLocked == false); ipfsLocked = true; } function setMetadataSwitch(uint256 _switch) external onlyOwner { require(!switchLocked, "Locked"); require(_switch >= 1 && _switch <= 3); metadataSwitch = _switch; } function lockMetadataSwitch() external onlyOwner { require(switchLocked == false); switchLocked = true; } function setIpfsHash(uint256 traitSummary, string memory hash) external onlyOwnerOrApprovedContract { if (ipfsLocked == true) { require(bytes(tokenIdToIpfsHash[traitSummary]).length == 0); } require(ipfsLockPerToken[traitSummary] == false); tokenIdToIpfsHash[traitSummary] = hash; } function lockIpfsPerToken(uint256 traitSummary) external onlyOwnerOrApprovedContract { require(ipfsLockPerToken[traitSummary] == false); ipfsLockPerToken[traitSummary] = true; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory base = _baseURI(); string memory ipfsBase = _ipfsBaseURI(); string memory ipfsHash = tokenIdToIpfsHash[tokenId]; if (metadataSwitch == 1) { // force computed name return string(abi.encodePacked(base, tokenId.toString(), "/", tokenIdToName[tokenId])); } else if (metadataSwitch == 2) { // ipfs hash if available, fallback to computed name if (bytes(ipfsBase).length == 0) { return string(abi.encodePacked(base, tokenId.toString(), "/", tokenIdToName[tokenId])); } else { if (bytes(ipfsHash).length == 0) { return string(abi.encodePacked(ipfsBase, tokenId.toString())); } else { return string(abi.encodePacked(ipfsBase, ipfsHash)); } } } else if (metadataSwitch == 3) { // force ipfs hash return string(abi.encodePacked(ipfsBase, ipfsHash)); } return ""; } // Minting function disableManualMint() public onlyOwner { manualMintAllowed = false; } function mintOwner(address[] calldata owners, uint256[] calldata tokenIds) public onlyOwner { require(manualMintAllowed, "Not allowed"); require(owners.length == tokenIds.length, "Bad length"); for (uint256 i = 0; i < tokenIds.length; i++) { require(!_exists(tokenIds[i]), "Token already minted"); _mint(owners[i], tokenIds[i]); } } function mint(address minter, uint256 mintIndex) public returns (uint256) { require(msg.sender == _stakingContract, "Unauthorized"); require(!_exists(mintIndex), "Token already minted"); _mint(minter, mintIndex); return mintIndex; } /** * @dev Withdraw ether from this contract (Callable by owner) */ function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_NAME_LEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_approvedContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"approvedContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"checkNameValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"disableManualMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipfsBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ipfsLockPerToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipfsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockIpfsMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"traitSummary","type":"uint256"}],"name":"lockIpfsPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockMetadataSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockNameFeatureForever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockStakingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualMintAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataSwitch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"mintIndex","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"namesActivated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"namesActivatedLock","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setApprovedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setIpfsBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"traitSummary","type":"uint256"},{"internalType":"string","name":"hash","type":"string"}],"name":"setIpfsHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_switch","type":"uint256"}],"name":"setMetadataSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"setNameForTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setStakingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContractLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleActivateNameFeature","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToIpfsHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToName","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600c60146101000a81548160ff0219169083151502179055506040518060600160405280602981526020016200618e60299139600e9080519060200190620000d4929190620002bc565b50604051806060016040528060238152602001620061b760239139600f908051906020019062000106929190620002bc565b5060016011556000601260006101000a81548160ff0219169083151502179055506000601460006101000a81548160ff0219169083151502179055506001601460016101000a81548160ff0219169083151502179055503480156200016a57600080fd5b50604051620061da380380620061da8339818101604052810190620001909190620003ea565b81818160009080519060200190620001aa929190620002bc565b508060019080519060200190620001c3929190620002bc565b505050620001e6620001da620001ee60201b60201c565b620001f660201b60201c565b5050620005f3565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002ca9062000504565b90600052602060002090601f016020900481019282620002ee57600085556200033a565b82601f106200030957805160ff19168380011785556200033a565b828001600101855582156200033a579182015b82811115620003395782518255916020019190600101906200031c565b5b5090506200034991906200034d565b5090565b5b80821115620003685760008160009055506001016200034e565b5090565b6000620003836200037d8462000498565b6200046f565b905082815260208101848484011115620003a257620003a1620005d3565b5b620003af848285620004ce565b509392505050565b600082601f830112620003cf57620003ce620005ce565b5b8151620003e18482602086016200036c565b91505092915050565b60008060408385031215620004045762000403620005dd565b5b600083015167ffffffffffffffff811115620004255762000424620005d8565b5b6200043385828601620003b7565b925050602083015167ffffffffffffffff811115620004575762000456620005d8565b5b6200046585828601620003b7565b9150509250929050565b60006200047b6200048e565b90506200048982826200053a565b919050565b6000604051905090565b600067ffffffffffffffff821115620004b657620004b56200059f565b5b620004c182620005e2565b9050602081019050919050565b60005b83811015620004ee578082015181840152602081019050620004d1565b83811115620004fe576000848401525b50505050565b600060028204905060018216806200051d57607f821691505b6020821081141562000534576200053362000570565b5b50919050565b6200054582620005e2565b810181811067ffffffffffffffff821117156200056757620005666200059f565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b615b8b80620006036000396000f3fe608060405234801561001057600080fd5b50600436106102675760003560e01c806301ffc9a71461026c5780630385c0de1461029c57806306fdde03146102b8578063081812fc146102d6578063095ea7b3146103065780630a63d8bb146103225780630af90ea6146103405780630f52b76e1461035e578063123ac9a91461036857806318160ddd146103725780631fb3060f1461039057806323b872dd146103ac5780632be9279d146103c85780632f745c59146103e657806338cdbddd146104165780633ccfd60b1461043257806340c10f191461043c578063415d1ed01461046c57806342842e0e146104765780634f6ccce7146104925780636352211e146104c25780636583b70c146104f257806366319eb6146104fc57806369242dc61461050657806369362fb1146105225780636c0360eb1461054057806370a082311461055e578063715018a61461058e5780637a5661e514610598578063831a460f146105c85780638da5cb5b146105e4578063949de4461461060257806395d89b41146106205780639c0dbc481461063e5780639dd373b91461065c578063a0bcfc7f14610678578063a22cb46514610694578063b0de5e29146106b0578063b35fbf74146106ce578063b88d4fde146106fe578063b90aed2e1461071a578063bfb2166714610738578063c87b56dd14610756578063cda8c90f14610786578063d8fa316814610790578063da2bfdb1146107ac578063e0b5b951146107dc578063e985e9c5146107fa578063f0c5bbaa1461082a578063f0fb21b01461085a578063f2fde38b14610878578063fd8b6f9a14610894578063fe288c72146108b0575b600080fd5b61028660048036038101906102819190614452565b6108ce565b6040516102939190614c15565b60405180910390f35b6102b660048036038101906102b191906145cf565b610948565b005b6102c0610aae565b6040516102cd9190614c30565b60405180910390f35b6102f060048036038101906102eb9190614542565b610b40565b6040516102fd9190614bae565b60405180910390f35b610320600480360381019061031b9190614391565b610bc5565b005b61032a610cdd565b6040516103379190614fb2565b60405180910390f35b610348610ce2565b6040516103559190614c15565b60405180910390f35b610366610cf5565b005b610370610d8e565b005b61037a610e47565b6040516103879190614fb2565b60405180910390f35b6103aa60048036038101906103a591906144f9565b610e54565b005b6103c660048036038101906103c1919061427b565b610f0a565b005b6103d0610f6a565b6040516103dd9190614c15565b60405180910390f35b61040060048036038101906103fb9190614391565b610f7d565b60405161040d9190614fb2565b60405180910390f35b610430600480360381019061042b9190614542565b611022565b005b61043a611113565b005b61045660048036038101906104519190614391565b6111de565b6040516104639190614fb2565b60405180910390f35b6104746112cc565b005b610490600480360381019061048b919061427b565b611365565b005b6104ac60048036038101906104a79190614542565b611385565b6040516104b99190614fb2565b60405180910390f35b6104dc60048036038101906104d79190614542565b6113f6565b6040516104e99190614bae565b60405180910390f35b6104fa6114a8565b005b610504611541565b005b610520600480360381019061051b919061420e565b61163f565b005b61052a6116ff565b6040516105379190614c15565b60405180910390f35b610548611712565b6040516105559190614c30565b60405180910390f35b6105786004803603810190610573919061420e565b6117a0565b6040516105859190614fb2565b60405180910390f35b610596611858565b005b6105b260048036038101906105ad91906144ac565b6118e0565b6040516105bf9190614c15565b60405180910390f35b6105e260048036038101906105dd9190614542565b611dbf565b005b6105ec611edf565b6040516105f99190614bae565b60405180910390f35b61060a611f09565b6040516106179190614fb2565b60405180910390f35b610628611f0f565b6040516106359190614c30565b60405180910390f35b610646611fa1565b6040516106539190614bae565b60405180910390f35b6106766004803603810190610671919061420e565b611fc7565b005b610692600480360381019061068d91906144f9565b6120d7565b005b6106ae60048036038101906106a99190614351565b61216d565b005b6106b86122ee565b6040516106c59190614bae565b60405180910390f35b6106e860048036038101906106e39190614542565b612314565b6040516106f59190614c15565b60405180910390f35b610718600480360381019061071391906142ce565b612334565b005b610722612396565b60405161072f9190614c15565b60405180910390f35b6107406123a9565b60405161074d9190614c15565b60405180910390f35b610770600480360381019061076b9190614542565b6123bc565b60405161077d9190614c30565b60405180910390f35b61078e61262a565b005b6107aa60048036038101906107a591906143d1565b6126e3565b005b6107c660048036038101906107c19190614542565b6128ca565b6040516107d39190614c30565b60405180910390f35b6107e461296a565b6040516107f19190614c15565b60405180910390f35b610814600480360381019061080f919061423b565b61297d565b6040516108219190614c15565b60405180910390f35b610844600480360381019061083f9190614542565b612a11565b6040516108519190614c30565b60405180910390f35b610862612ab1565b60405161086f9190614c30565b60405180910390f35b610892600480360381019061088d919061420e565b612b3f565b005b6108ae60048036038101906108a9919061456f565b612c37565b005b6108b8612d7f565b6040516108c59190614bae565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610941575061094082612da9565b5b9050919050565b610950612e8b565b73ffffffffffffffffffffffffffffffffffffffff1661096e611edf565b73ffffffffffffffffffffffffffffffffffffffff1614806109c95750610993612e8b565b73ffffffffffffffffffffffffffffffffffffffff166109b1612d7f565b73ffffffffffffffffffffffffffffffffffffffff16145b610a08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ff90614db2565b60405180910390fd5b60011515601260009054906101000a900460ff1615151415610a51576000601060008481526020019081526020016000208054610a449061521d565b905014610a5057600080fd5b5b600015156013600084815260200190815260200160002060009054906101000a900460ff16151514610a8257600080fd5b80601060008481526020019081526020016000209080519060200190610aa9929190613e9a565b505050565b606060008054610abd9061521d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae99061521d565b8015610b365780601f10610b0b57610100808354040283529160200191610b36565b820191906000526020600020905b815481529060010190602001808311610b1957829003601f168201915b5050505050905090565b6000610b4b82612e93565b610b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8190614e92565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bd0826113f6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3890614f52565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c60612e8b565b73ffffffffffffffffffffffffffffffffffffffff161480610c8f5750610c8e81610c89612e8b565b61297d565b5b610cce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc590614df2565b60405180910390fd5b610cd88383612eff565b505050565b606481565b601260009054906101000a900460ff1681565b610cfd612e8b565b73ffffffffffffffffffffffffffffffffffffffff16610d1b611edf565b73ffffffffffffffffffffffffffffffffffffffff1614610d71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6890614f12565b60405180910390fd5b6000601460016101000a81548160ff021916908315150217905550565b610d96612e8b565b73ffffffffffffffffffffffffffffffffffffffff16610db4611edf565b73ffffffffffffffffffffffffffffffffffffffff1614610e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0190614f12565b60405180910390fd5b60001515601260009054906101000a900460ff16151514610e2a57600080fd5b6001601260006101000a81548160ff021916908315150217905550565b6000600880549050905090565b610e5c612e8b565b73ffffffffffffffffffffffffffffffffffffffff16610e7a611edf565b73ffffffffffffffffffffffffffffffffffffffff1614610ed0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec790614f12565b60405180910390fd5b60001515601260009054906101000a900460ff16151514610ef057600080fd5b80600f9080519060200190610f06929190613e9a565b5050565b610f1b610f15612e8b565b82612fb8565b610f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5190614f72565b60405180910390fd5b610f65838383613096565b505050565b601460019054906101000a900460ff1681565b6000610f88836117a0565b8210610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc090614cd2565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61102a612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611048611edf565b73ffffffffffffffffffffffffffffffffffffffff161461109e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109590614f12565b60405180910390fd5b601460009054906101000a900460ff16156110ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e590614c72565b60405180910390fd5b60018110158015611100575060038111155b61110957600080fd5b8060118190555050565b61111b612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611139611edf565b73ffffffffffffffffffffffffffffffffffffffff161461118f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118690614f12565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156111da573d6000803e3d6000fd5b5050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611270576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126790614c92565b60405180910390fd5b61127982612e93565b156112b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b090614cb2565b60405180910390fd5b6112c383836132f2565b81905092915050565b6112d4612e8b565b73ffffffffffffffffffffffffffffffffffffffff166112f2611edf565b73ffffffffffffffffffffffffffffffffffffffff1614611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f90614f12565b60405180910390fd5b6001600c60166101000a81548160ff021916908315150217905550565b61138083838360405180602001604052806000815250612334565b505050565b600061138f610e47565b82106113d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c790614f92565b60405180910390fd5b600882815481106113e4576113e36153b6565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561149f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149690614e32565b60405180910390fd5b80915050919050565b6114b0612e8b565b73ffffffffffffffffffffffffffffffffffffffff166114ce611edf565b73ffffffffffffffffffffffffffffffffffffffff1614611524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151b90614f12565b60405180910390fd5b6001600c60146101000a81548160ff021916908315150217905550565b611549612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611567611edf565b73ffffffffffffffffffffffffffffffffffffffff16146115bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b490614f12565b60405180910390fd5b60001515600c60169054906101000a900460ff16151514611613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160a90614c72565b60405180910390fd5b600c60159054906101000a900460ff1615600c60156101000a81548160ff021916908315150217905550565b611647612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611665611edf565b73ffffffffffffffffffffffffffffffffffffffff16146116bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b290614f12565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601460009054906101000a900460ff1681565b600e805461171f9061521d565b80601f016020809104026020016040519081016040528092919081815260200182805461174b9061521d565b80156117985780601f1061176d57610100808354040283529160200191611798565b820191906000526020600020905b81548152906001019060200180831161177b57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180890614e12565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611860612e8b565b73ffffffffffffffffffffffffffffffffffffffff1661187e611edf565b73ffffffffffffffffffffffffffffffffffffffff16146118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb90614f12565b60405180910390fd5b6118de60006134c0565b565b60008083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050905060648151111561193957600080fd5b60005b8151811015611db3577f6100000000000000000000000000000000000000000000000000000000000000828281518110611979576119786153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611a1357507f7a000000000000000000000000000000000000000000000000000000000000008282815181106119e3576119e26153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b80611ae857507f4100000000000000000000000000000000000000000000000000000000000000828281518110611a4d57611a4c6153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611ae757507f5a00000000000000000000000000000000000000000000000000000000000000828281518110611ab757611ab66153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611bbd57507f3000000000000000000000000000000000000000000000000000000000000000828281518110611b2257611b216153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611bbc57507f3900000000000000000000000000000000000000000000000000000000000000828281518110611b8c57611b8b6153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611c2657507f2d00000000000000000000000000000000000000000000000000000000000000828281518110611bf757611bf66153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c8f57507f2e00000000000000000000000000000000000000000000000000000000000000828281518110611c6057611c5f6153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611cf857507f5f00000000000000000000000000000000000000000000000000000000000000828281518110611cc957611cc86153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d6157507f7e00000000000000000000000000000000000000000000000000000000000000828281518110611d3257611d316153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b611da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9790614c52565b60405180910390fd5b8080611dab90615280565b91505061193c565b50600191505092915050565b611dc7612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611de5611edf565b73ffffffffffffffffffffffffffffffffffffffff161480611e405750611e0a612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611e28612d7f565b73ffffffffffffffffffffffffffffffffffffffff16145b611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7690614db2565b60405180910390fd5b600015156013600083815260200190815260200160002060009054906101000a900460ff16151514611eb057600080fd5b60016013600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b606060018054611f1e9061521d565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4a9061521d565b8015611f975780601f10611f6c57610100808354040283529160200191611f97565b820191906000526020600020905b815481529060010190602001808311611f7a57829003601f168201915b5050505050905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611fcf612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611fed611edf565b73ffffffffffffffffffffffffffffffffffffffff1614612043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203a90614f12565b60405180910390fd5b600c60149054906101000a900460ff1615612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90614c72565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6120df612e8b565b73ffffffffffffffffffffffffffffffffffffffff166120fd611edf565b73ffffffffffffffffffffffffffffffffffffffff1614612153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214a90614f12565b60405180910390fd5b80600e9080519060200190612169929190613e9a565b5050565b612175612e8b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121da90614d72565b60405180910390fd5b80600560006121f0612e8b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661229d612e8b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122e29190614c15565b60405180910390a35050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60136020528060005260406000206000915054906101000a900460ff1681565b61234561233f612e8b565b83612fb8565b612384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237b90614f72565b60405180910390fd5b61239084848484613586565b50505050565b600c60149054906101000a900460ff1681565b600c60159054906101000a900460ff1681565b60606123c782612e93565b612406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fd90614e72565b60405180910390fd5b60006124106135e2565b9050600061241c613674565b9050600060106000868152602001908152602001600020805461243e9061521d565b80601f016020809104026020016040519081016040528092919081815260200182805461246a9061521d565b80156124b75780601f1061248c576101008083540402835291602001916124b7565b820191906000526020600020905b81548152906001019060200180831161249a57829003601f168201915b505050505090506001601154141561251157826124d386613706565b600d60008881526020019081526020016000206040516020016124f893929190614b72565b6040516020818303038152906040529350505050612625565b600260115414156125d85760008251141561256e578261253086613706565b600d600088815260200190815260200160002060405160200161255593929190614b72565b6040516020818303038152906040529350505050612625565b6000815114156125ac578161258286613706565b604051602001612593929190614b4e565b6040516020818303038152906040529350505050612625565b81816040516020016125bf929190614b4e565b6040516020818303038152906040529350505050612625565b6003601154141561260f5781816040516020016125f6929190614b4e565b6040516020818303038152906040529350505050612625565b6040518060200160405280600081525093505050505b919050565b612632612e8b565b73ffffffffffffffffffffffffffffffffffffffff16612650611edf565b73ffffffffffffffffffffffffffffffffffffffff16146126a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269d90614f12565b60405180910390fd5b60001515601460009054906101000a900460ff161515146126c657600080fd5b6001601460006101000a81548160ff021916908315150217905550565b6126eb612e8b565b73ffffffffffffffffffffffffffffffffffffffff16612709611edf565b73ffffffffffffffffffffffffffffffffffffffff161461275f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275690614f12565b60405180910390fd5b601460019054906101000a900460ff166127ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a590614ef2565b60405180910390fd5b8181905084849050146127f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ed90614ed2565b60405180910390fd5b60005b828290508110156128c35761282683838381811061281a576128196153b6565b5b90506020020135612e93565b15612866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285d90614cb2565b60405180910390fd5b6128b085858381811061287c5761287b6153b6565b5b9050602002016020810190612891919061420e565b8484848181106128a4576128a36153b6565b5b905060200201356132f2565b80806128bb90615280565b9150506127f9565b5050505050565b600d60205280600052604060002060009150905080546128e99061521d565b80601f01602080910402602001604051908101604052809291908181526020018280546129159061521d565b80156129625780601f1061293757610100808354040283529160200191612962565b820191906000526020600020905b81548152906001019060200180831161294557829003601f168201915b505050505081565b600c60169054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60106020528060005260406000206000915090508054612a309061521d565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5c9061521d565b8015612aa95780601f10612a7e57610100808354040283529160200191612aa9565b820191906000526020600020905b815481529060010190602001808311612a8c57829003601f168201915b505050505081565b600f8054612abe9061521d565b80601f0160208091040260200160405190810160405280929190818152602001828054612aea9061521d565b8015612b375780601f10612b0c57610100808354040283529160200191612b37565b820191906000526020600020905b815481529060010190602001808311612b1a57829003601f168201915b505050505081565b612b47612e8b565b73ffffffffffffffffffffffffffffffffffffffff16612b65611edf565b73ffffffffffffffffffffffffffffffffffffffff1614612bbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb290614f12565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2290614d12565b60405180910390fd5b612c34816134c0565b50565b612c4083612e93565b612c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7690614d92565b60405180910390fd5b612c88836113f6565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cec90614c92565b60405180910390fd5b600c60159054906101000a900460ff16612d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3b90614eb2565b60405180910390fd5b612d4e82826118e0565b612d5757600080fd5b8181600d60008681526020019081526020016000209190612d79929190613f20565b50505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e7457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e845750612e8382613867565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612f72836113f6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612fc382612e93565b613002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff990614dd2565b60405180910390fd5b600061300d836113f6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061307c57508373ffffffffffffffffffffffffffffffffffffffff1661306484610b40565b73ffffffffffffffffffffffffffffffffffffffff16145b8061308d575061308c818561297d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166130b6826113f6565b73ffffffffffffffffffffffffffffffffffffffff161461310c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310390614f32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561317c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317390614d52565b60405180910390fd5b6131878383836138d1565b613192600082612eff565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131e29190615133565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461323991906150ac565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335990614e52565b60405180910390fd5b61336b81612e93565b156133ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a290614d32565b60405180910390fd5b6133b7600083836138d1565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461340791906150ac565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613591848484613096565b61359d848484846139e5565b6135dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d390614cf2565b60405180910390fd5b50505050565b6060600e80546135f19061521d565b80601f016020809104026020016040519081016040528092919081815260200182805461361d9061521d565b801561366a5780601f1061363f5761010080835404028352916020019161366a565b820191906000526020600020905b81548152906001019060200180831161364d57829003601f168201915b5050505050905090565b6060600f80546136839061521d565b80601f01602080910402602001604051908101604052809291908181526020018280546136af9061521d565b80156136fc5780601f106136d1576101008083540402835291602001916136fc565b820191906000526020600020905b8154815290600101906020018083116136df57829003601f168201915b5050505050905090565b6060600082141561374e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613862565b600082905060005b6000821461378057808061376990615280565b915050600a826137799190615102565b9150613756565b60008167ffffffffffffffff81111561379c5761379b6153e5565b5b6040519080825280601f01601f1916602001820160405280156137ce5781602001600182028036833780820191505090505b5090505b6000851461385b576001826137e79190615133565b9150600a856137f691906152c9565b603061380291906150ac565b60f81b818381518110613818576138176153b6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856138549190615102565b94506137d2565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6138dc838383613b7c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561391f5761391a81613b81565b61395e565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461395d5761395c8382613bca565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156139a15761399c81613d37565b6139e0565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146139df576139de8282613e08565b5b5b505050565b6000613a068473ffffffffffffffffffffffffffffffffffffffff16613e87565b15613b6f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613a2f612e8b565b8786866040518563ffffffff1660e01b8152600401613a519493929190614bc9565b602060405180830381600087803b158015613a6b57600080fd5b505af1925050508015613a9c57506040513d601f19601f82011682018060405250810190613a99919061447f565b60015b613b1f573d8060008114613acc576040519150601f19603f3d011682016040523d82523d6000602084013e613ad1565b606091505b50600081511415613b17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b0e90614cf2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613b74565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613bd7846117a0565b613be19190615133565b9050600060076000848152602001908152602001600020549050818114613cc6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613d4b9190615133565b9050600060096000848152602001908152602001600020549050600060088381548110613d7b57613d7a6153b6565b5b906000526020600020015490508060088381548110613d9d57613d9c6153b6565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613dec57613deb615387565b5b6001900381819060005260206000200160009055905550505050565b6000613e13836117a0565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054613ea69061521d565b90600052602060002090601f016020900481019282613ec85760008555613f0f565b82601f10613ee157805160ff1916838001178555613f0f565b82800160010185558215613f0f579182015b82811115613f0e578251825591602001919060010190613ef3565b5b509050613f1c9190613fa6565b5090565b828054613f2c9061521d565b90600052602060002090601f016020900481019282613f4e5760008555613f95565b82601f10613f6757803560ff1916838001178555613f95565b82800160010185558215613f95579182015b82811115613f94578235825591602001919060010190613f79565b5b509050613fa29190613fa6565b5090565b5b80821115613fbf576000816000905550600101613fa7565b5090565b6000613fd6613fd184614ff2565b614fcd565b905082815260208101848484011115613ff257613ff1615423565b5b613ffd8482856151db565b509392505050565b600061401861401384615023565b614fcd565b90508281526020810184848401111561403457614033615423565b5b61403f8482856151db565b509392505050565b60008135905061405681615af9565b92915050565b60008083601f84011261407257614071615419565b5b8235905067ffffffffffffffff81111561408f5761408e615414565b5b6020830191508360208202830111156140ab576140aa61541e565b5b9250929050565b60008083601f8401126140c8576140c7615419565b5b8235905067ffffffffffffffff8111156140e5576140e4615414565b5b6020830191508360208202830111156141015761410061541e565b5b9250929050565b60008135905061411781615b10565b92915050565b60008135905061412c81615b27565b92915050565b60008151905061414181615b27565b92915050565b600082601f83011261415c5761415b615419565b5b813561416c848260208601613fc3565b91505092915050565b60008083601f84011261418b5761418a615419565b5b8235905067ffffffffffffffff8111156141a8576141a7615414565b5b6020830191508360018202830111156141c4576141c361541e565b5b9250929050565b600082601f8301126141e0576141df615419565b5b81356141f0848260208601614005565b91505092915050565b60008135905061420881615b3e565b92915050565b6000602082840312156142245761422361542d565b5b600061423284828501614047565b91505092915050565b600080604083850312156142525761425161542d565b5b600061426085828601614047565b925050602061427185828601614047565b9150509250929050565b6000806000606084860312156142945761429361542d565b5b60006142a286828701614047565b93505060206142b386828701614047565b92505060406142c4868287016141f9565b9150509250925092565b600080600080608085870312156142e8576142e761542d565b5b60006142f687828801614047565b945050602061430787828801614047565b9350506040614318878288016141f9565b925050606085013567ffffffffffffffff81111561433957614338615428565b5b61434587828801614147565b91505092959194509250565b600080604083850312156143685761436761542d565b5b600061437685828601614047565b925050602061438785828601614108565b9150509250929050565b600080604083850312156143a8576143a761542d565b5b60006143b685828601614047565b92505060206143c7858286016141f9565b9150509250929050565b600080600080604085870312156143eb576143ea61542d565b5b600085013567ffffffffffffffff81111561440957614408615428565b5b6144158782880161405c565b9450945050602085013567ffffffffffffffff81111561443857614437615428565b5b614444878288016140b2565b925092505092959194509250565b6000602082840312156144685761446761542d565b5b60006144768482850161411d565b91505092915050565b6000602082840312156144955761449461542d565b5b60006144a384828501614132565b91505092915050565b600080602083850312156144c3576144c261542d565b5b600083013567ffffffffffffffff8111156144e1576144e0615428565b5b6144ed85828601614175565b92509250509250929050565b60006020828403121561450f5761450e61542d565b5b600082013567ffffffffffffffff81111561452d5761452c615428565b5b614539848285016141cb565b91505092915050565b6000602082840312156145585761455761542d565b5b6000614566848285016141f9565b91505092915050565b6000806000604084860312156145885761458761542d565b5b6000614596868287016141f9565b935050602084013567ffffffffffffffff8111156145b7576145b6615428565b5b6145c386828701614175565b92509250509250925092565b600080604083850312156145e6576145e561542d565b5b60006145f4858286016141f9565b925050602083013567ffffffffffffffff81111561461557614614615428565b5b614621858286016141cb565b9150509250929050565b61463481615167565b82525050565b61464381615179565b82525050565b600061465482615069565b61465e818561507f565b935061466e8185602086016151ea565b61467781615432565b840191505092915050565b600061468d82615074565b6146978185615090565b93506146a78185602086016151ea565b6146b081615432565b840191505092915050565b60006146c682615074565b6146d081856150a1565b93506146e08185602086016151ea565b80840191505092915050565b600081546146f98161521d565b61470381866150a1565b9450600182166000811461471e576001811461472f57614762565b60ff19831686528186019350614762565b61473885615054565b60005b8381101561475a5781548189015260018201915060208101905061473b565b838801955050505b50505092915050565b6000614778600c83615090565b915061478382615443565b602082019050919050565b600061479b600683615090565b91506147a68261546c565b602082019050919050565b60006147be600c83615090565b91506147c982615495565b602082019050919050565b60006147e1601483615090565b91506147ec826154be565b602082019050919050565b6000614804602b83615090565b915061480f826154e7565b604082019050919050565b6000614827603283615090565b915061483282615536565b604082019050919050565b600061484a602683615090565b915061485582615585565b604082019050919050565b600061486d601c83615090565b9150614878826155d4565b602082019050919050565b6000614890602483615090565b915061489b826155fd565b604082019050919050565b60006148b3601983615090565b91506148be8261564c565b602082019050919050565b60006148d6600d83615090565b91506148e182615675565b602082019050919050565b60006148f9603083615090565b91506149048261569e565b604082019050919050565b600061491c602c83615090565b9150614927826156ed565b604082019050919050565b600061493f603883615090565b915061494a8261573c565b604082019050919050565b6000614962602a83615090565b915061496d8261578b565b604082019050919050565b6000614985602983615090565b9150614990826157da565b604082019050919050565b60006149a8602083615090565b91506149b382615829565b602082019050919050565b60006149cb603183615090565b91506149d682615852565b604082019050919050565b60006149ee602c83615090565b91506149f9826158a1565b604082019050919050565b6000614a11601983615090565b9150614a1c826158f0565b602082019050919050565b6000614a34600a83615090565b9150614a3f82615919565b602082019050919050565b6000614a57600b83615090565b9150614a6282615942565b602082019050919050565b6000614a7a602083615090565b9150614a858261596b565b602082019050919050565b6000614a9d602983615090565b9150614aa882615994565b604082019050919050565b6000614ac0602183615090565b9150614acb826159e3565b604082019050919050565b6000614ae3603183615090565b9150614aee82615a32565b604082019050919050565b6000614b06602c83615090565b9150614b1182615a81565b604082019050919050565b6000614b296001836150a1565b9150614b3482615ad0565b600182019050919050565b614b48816151d1565b82525050565b6000614b5a82856146bb565b9150614b6682846146bb565b91508190509392505050565b6000614b7e82866146bb565b9150614b8a82856146bb565b9150614b9582614b1c565b9150614ba182846146ec565b9150819050949350505050565b6000602082019050614bc3600083018461462b565b92915050565b6000608082019050614bde600083018761462b565b614beb602083018661462b565b614bf86040830185614b3f565b8181036060830152614c0a8184614649565b905095945050505050565b6000602082019050614c2a600083018461463a565b92915050565b60006020820190508181036000830152614c4a8184614682565b905092915050565b60006020820190508181036000830152614c6b8161476b565b9050919050565b60006020820190508181036000830152614c8b8161478e565b9050919050565b60006020820190508181036000830152614cab816147b1565b9050919050565b60006020820190508181036000830152614ccb816147d4565b9050919050565b60006020820190508181036000830152614ceb816147f7565b9050919050565b60006020820190508181036000830152614d0b8161481a565b9050919050565b60006020820190508181036000830152614d2b8161483d565b9050919050565b60006020820190508181036000830152614d4b81614860565b9050919050565b60006020820190508181036000830152614d6b81614883565b9050919050565b60006020820190508181036000830152614d8b816148a6565b9050919050565b60006020820190508181036000830152614dab816148c9565b9050919050565b60006020820190508181036000830152614dcb816148ec565b9050919050565b60006020820190508181036000830152614deb8161490f565b9050919050565b60006020820190508181036000830152614e0b81614932565b9050919050565b60006020820190508181036000830152614e2b81614955565b9050919050565b60006020820190508181036000830152614e4b81614978565b9050919050565b60006020820190508181036000830152614e6b8161499b565b9050919050565b60006020820190508181036000830152614e8b816149be565b9050919050565b60006020820190508181036000830152614eab816149e1565b9050919050565b60006020820190508181036000830152614ecb81614a04565b9050919050565b60006020820190508181036000830152614eeb81614a27565b9050919050565b60006020820190508181036000830152614f0b81614a4a565b9050919050565b60006020820190508181036000830152614f2b81614a6d565b9050919050565b60006020820190508181036000830152614f4b81614a90565b9050919050565b60006020820190508181036000830152614f6b81614ab3565b9050919050565b60006020820190508181036000830152614f8b81614ad6565b9050919050565b60006020820190508181036000830152614fab81614af9565b9050919050565b6000602082019050614fc76000830184614b3f565b92915050565b6000614fd7614fe8565b9050614fe3828261524f565b919050565b6000604051905090565b600067ffffffffffffffff82111561500d5761500c6153e5565b5b61501682615432565b9050602081019050919050565b600067ffffffffffffffff82111561503e5761503d6153e5565b5b61504782615432565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006150b7826151d1565b91506150c2836151d1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156150f7576150f66152fa565b5b828201905092915050565b600061510d826151d1565b9150615118836151d1565b92508261512857615127615329565b5b828204905092915050565b600061513e826151d1565b9150615149836151d1565b92508282101561515c5761515b6152fa565b5b828203905092915050565b6000615172826151b1565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156152085780820151818401526020810190506151ed565b83811115615217576000848401525b50505050565b6000600282049050600182168061523557607f821691505b6020821081141561524957615248615358565b5b50919050565b61525882615432565b810181811067ffffffffffffffff82111715615277576152766153e5565b5b80604052505050565b600061528b826151d1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152be576152bd6152fa565b5b600182019050919050565b60006152d4826151d1565b91506152df836151d1565b9250826152ef576152ee615329565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f696e76616c696420636861720000000000000000000000000000000000000000600082015250565b7f4c6f636b65640000000000000000000000000000000000000000000000000000600082015250565b7f556e617574686f72697a65640000000000000000000000000000000000000000600082015250565b7f546f6b656e20616c7265616479206d696e746564000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f556e6b6e6f776e20746f6b656e00000000000000000000000000000000000000600082015250565b7f43616c6c6572206973206e6f7420746865206f776e6572206f7220746865206160008201527f7070726f76656420636f6e747261637400000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53657474696e67206e616d65732069732064697361626c656400000000000000600082015250565b7f426164206c656e67746800000000000000000000000000000000000000000000600082015250565b7f4e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b615b0281615167565b8114615b0d57600080fd5b50565b615b1981615179565b8114615b2457600080fd5b50565b615b3081615185565b8114615b3b57600080fd5b50565b615b47816151d1565b8114615b5257600080fd5b5056fea264697066735822122047fbc20ea0d56285ab37bca34d5ae1be166d2f82e1b970b9aebc8f06ff90be5f64736f6c6343000807003368747470733a2f2f7768656c7073696f2e6865726f6b756170702e636f6d2f617069372d706f6c792f68747470733a2f2f7768656c70732e6d7970696e6174612e636c6f75642f697066732f00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000848696768626f726e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000548424f524e000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102675760003560e01c806301ffc9a71461026c5780630385c0de1461029c57806306fdde03146102b8578063081812fc146102d6578063095ea7b3146103065780630a63d8bb146103225780630af90ea6146103405780630f52b76e1461035e578063123ac9a91461036857806318160ddd146103725780631fb3060f1461039057806323b872dd146103ac5780632be9279d146103c85780632f745c59146103e657806338cdbddd146104165780633ccfd60b1461043257806340c10f191461043c578063415d1ed01461046c57806342842e0e146104765780634f6ccce7146104925780636352211e146104c25780636583b70c146104f257806366319eb6146104fc57806369242dc61461050657806369362fb1146105225780636c0360eb1461054057806370a082311461055e578063715018a61461058e5780637a5661e514610598578063831a460f146105c85780638da5cb5b146105e4578063949de4461461060257806395d89b41146106205780639c0dbc481461063e5780639dd373b91461065c578063a0bcfc7f14610678578063a22cb46514610694578063b0de5e29146106b0578063b35fbf74146106ce578063b88d4fde146106fe578063b90aed2e1461071a578063bfb2166714610738578063c87b56dd14610756578063cda8c90f14610786578063d8fa316814610790578063da2bfdb1146107ac578063e0b5b951146107dc578063e985e9c5146107fa578063f0c5bbaa1461082a578063f0fb21b01461085a578063f2fde38b14610878578063fd8b6f9a14610894578063fe288c72146108b0575b600080fd5b61028660048036038101906102819190614452565b6108ce565b6040516102939190614c15565b60405180910390f35b6102b660048036038101906102b191906145cf565b610948565b005b6102c0610aae565b6040516102cd9190614c30565b60405180910390f35b6102f060048036038101906102eb9190614542565b610b40565b6040516102fd9190614bae565b60405180910390f35b610320600480360381019061031b9190614391565b610bc5565b005b61032a610cdd565b6040516103379190614fb2565b60405180910390f35b610348610ce2565b6040516103559190614c15565b60405180910390f35b610366610cf5565b005b610370610d8e565b005b61037a610e47565b6040516103879190614fb2565b60405180910390f35b6103aa60048036038101906103a591906144f9565b610e54565b005b6103c660048036038101906103c1919061427b565b610f0a565b005b6103d0610f6a565b6040516103dd9190614c15565b60405180910390f35b61040060048036038101906103fb9190614391565b610f7d565b60405161040d9190614fb2565b60405180910390f35b610430600480360381019061042b9190614542565b611022565b005b61043a611113565b005b61045660048036038101906104519190614391565b6111de565b6040516104639190614fb2565b60405180910390f35b6104746112cc565b005b610490600480360381019061048b919061427b565b611365565b005b6104ac60048036038101906104a79190614542565b611385565b6040516104b99190614fb2565b60405180910390f35b6104dc60048036038101906104d79190614542565b6113f6565b6040516104e99190614bae565b60405180910390f35b6104fa6114a8565b005b610504611541565b005b610520600480360381019061051b919061420e565b61163f565b005b61052a6116ff565b6040516105379190614c15565b60405180910390f35b610548611712565b6040516105559190614c30565b60405180910390f35b6105786004803603810190610573919061420e565b6117a0565b6040516105859190614fb2565b60405180910390f35b610596611858565b005b6105b260048036038101906105ad91906144ac565b6118e0565b6040516105bf9190614c15565b60405180910390f35b6105e260048036038101906105dd9190614542565b611dbf565b005b6105ec611edf565b6040516105f99190614bae565b60405180910390f35b61060a611f09565b6040516106179190614fb2565b60405180910390f35b610628611f0f565b6040516106359190614c30565b60405180910390f35b610646611fa1565b6040516106539190614bae565b60405180910390f35b6106766004803603810190610671919061420e565b611fc7565b005b610692600480360381019061068d91906144f9565b6120d7565b005b6106ae60048036038101906106a99190614351565b61216d565b005b6106b86122ee565b6040516106c59190614bae565b60405180910390f35b6106e860048036038101906106e39190614542565b612314565b6040516106f59190614c15565b60405180910390f35b610718600480360381019061071391906142ce565b612334565b005b610722612396565b60405161072f9190614c15565b60405180910390f35b6107406123a9565b60405161074d9190614c15565b60405180910390f35b610770600480360381019061076b9190614542565b6123bc565b60405161077d9190614c30565b60405180910390f35b61078e61262a565b005b6107aa60048036038101906107a591906143d1565b6126e3565b005b6107c660048036038101906107c19190614542565b6128ca565b6040516107d39190614c30565b60405180910390f35b6107e461296a565b6040516107f19190614c15565b60405180910390f35b610814600480360381019061080f919061423b565b61297d565b6040516108219190614c15565b60405180910390f35b610844600480360381019061083f9190614542565b612a11565b6040516108519190614c30565b60405180910390f35b610862612ab1565b60405161086f9190614c30565b60405180910390f35b610892600480360381019061088d919061420e565b612b3f565b005b6108ae60048036038101906108a9919061456f565b612c37565b005b6108b8612d7f565b6040516108c59190614bae565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610941575061094082612da9565b5b9050919050565b610950612e8b565b73ffffffffffffffffffffffffffffffffffffffff1661096e611edf565b73ffffffffffffffffffffffffffffffffffffffff1614806109c95750610993612e8b565b73ffffffffffffffffffffffffffffffffffffffff166109b1612d7f565b73ffffffffffffffffffffffffffffffffffffffff16145b610a08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ff90614db2565b60405180910390fd5b60011515601260009054906101000a900460ff1615151415610a51576000601060008481526020019081526020016000208054610a449061521d565b905014610a5057600080fd5b5b600015156013600084815260200190815260200160002060009054906101000a900460ff16151514610a8257600080fd5b80601060008481526020019081526020016000209080519060200190610aa9929190613e9a565b505050565b606060008054610abd9061521d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae99061521d565b8015610b365780601f10610b0b57610100808354040283529160200191610b36565b820191906000526020600020905b815481529060010190602001808311610b1957829003601f168201915b5050505050905090565b6000610b4b82612e93565b610b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8190614e92565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bd0826113f6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3890614f52565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c60612e8b565b73ffffffffffffffffffffffffffffffffffffffff161480610c8f5750610c8e81610c89612e8b565b61297d565b5b610cce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc590614df2565b60405180910390fd5b610cd88383612eff565b505050565b606481565b601260009054906101000a900460ff1681565b610cfd612e8b565b73ffffffffffffffffffffffffffffffffffffffff16610d1b611edf565b73ffffffffffffffffffffffffffffffffffffffff1614610d71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6890614f12565b60405180910390fd5b6000601460016101000a81548160ff021916908315150217905550565b610d96612e8b565b73ffffffffffffffffffffffffffffffffffffffff16610db4611edf565b73ffffffffffffffffffffffffffffffffffffffff1614610e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0190614f12565b60405180910390fd5b60001515601260009054906101000a900460ff16151514610e2a57600080fd5b6001601260006101000a81548160ff021916908315150217905550565b6000600880549050905090565b610e5c612e8b565b73ffffffffffffffffffffffffffffffffffffffff16610e7a611edf565b73ffffffffffffffffffffffffffffffffffffffff1614610ed0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec790614f12565b60405180910390fd5b60001515601260009054906101000a900460ff16151514610ef057600080fd5b80600f9080519060200190610f06929190613e9a565b5050565b610f1b610f15612e8b565b82612fb8565b610f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5190614f72565b60405180910390fd5b610f65838383613096565b505050565b601460019054906101000a900460ff1681565b6000610f88836117a0565b8210610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc090614cd2565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61102a612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611048611edf565b73ffffffffffffffffffffffffffffffffffffffff161461109e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109590614f12565b60405180910390fd5b601460009054906101000a900460ff16156110ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e590614c72565b60405180910390fd5b60018110158015611100575060038111155b61110957600080fd5b8060118190555050565b61111b612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611139611edf565b73ffffffffffffffffffffffffffffffffffffffff161461118f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118690614f12565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156111da573d6000803e3d6000fd5b5050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611270576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126790614c92565b60405180910390fd5b61127982612e93565b156112b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b090614cb2565b60405180910390fd5b6112c383836132f2565b81905092915050565b6112d4612e8b565b73ffffffffffffffffffffffffffffffffffffffff166112f2611edf565b73ffffffffffffffffffffffffffffffffffffffff1614611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f90614f12565b60405180910390fd5b6001600c60166101000a81548160ff021916908315150217905550565b61138083838360405180602001604052806000815250612334565b505050565b600061138f610e47565b82106113d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c790614f92565b60405180910390fd5b600882815481106113e4576113e36153b6565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561149f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149690614e32565b60405180910390fd5b80915050919050565b6114b0612e8b565b73ffffffffffffffffffffffffffffffffffffffff166114ce611edf565b73ffffffffffffffffffffffffffffffffffffffff1614611524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151b90614f12565b60405180910390fd5b6001600c60146101000a81548160ff021916908315150217905550565b611549612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611567611edf565b73ffffffffffffffffffffffffffffffffffffffff16146115bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b490614f12565b60405180910390fd5b60001515600c60169054906101000a900460ff16151514611613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160a90614c72565b60405180910390fd5b600c60159054906101000a900460ff1615600c60156101000a81548160ff021916908315150217905550565b611647612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611665611edf565b73ffffffffffffffffffffffffffffffffffffffff16146116bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b290614f12565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601460009054906101000a900460ff1681565b600e805461171f9061521d565b80601f016020809104026020016040519081016040528092919081815260200182805461174b9061521d565b80156117985780601f1061176d57610100808354040283529160200191611798565b820191906000526020600020905b81548152906001019060200180831161177b57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180890614e12565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611860612e8b565b73ffffffffffffffffffffffffffffffffffffffff1661187e611edf565b73ffffffffffffffffffffffffffffffffffffffff16146118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb90614f12565b60405180910390fd5b6118de60006134c0565b565b60008083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050905060648151111561193957600080fd5b60005b8151811015611db3577f6100000000000000000000000000000000000000000000000000000000000000828281518110611979576119786153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611a1357507f7a000000000000000000000000000000000000000000000000000000000000008282815181106119e3576119e26153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b80611ae857507f4100000000000000000000000000000000000000000000000000000000000000828281518110611a4d57611a4c6153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611ae757507f5a00000000000000000000000000000000000000000000000000000000000000828281518110611ab757611ab66153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611bbd57507f3000000000000000000000000000000000000000000000000000000000000000828281518110611b2257611b216153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015611bbc57507f3900000000000000000000000000000000000000000000000000000000000000828281518110611b8c57611b8b6153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b5b80611c2657507f2d00000000000000000000000000000000000000000000000000000000000000828281518110611bf757611bf66153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c8f57507f2e00000000000000000000000000000000000000000000000000000000000000828281518110611c6057611c5f6153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611cf857507f5f00000000000000000000000000000000000000000000000000000000000000828281518110611cc957611cc86153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d6157507f7e00000000000000000000000000000000000000000000000000000000000000828281518110611d3257611d316153b6565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b611da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9790614c52565b60405180910390fd5b8080611dab90615280565b91505061193c565b50600191505092915050565b611dc7612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611de5611edf565b73ffffffffffffffffffffffffffffffffffffffff161480611e405750611e0a612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611e28612d7f565b73ffffffffffffffffffffffffffffffffffffffff16145b611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7690614db2565b60405180910390fd5b600015156013600083815260200190815260200160002060009054906101000a900460ff16151514611eb057600080fd5b60016013600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b606060018054611f1e9061521d565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4a9061521d565b8015611f975780601f10611f6c57610100808354040283529160200191611f97565b820191906000526020600020905b815481529060010190602001808311611f7a57829003601f168201915b5050505050905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611fcf612e8b565b73ffffffffffffffffffffffffffffffffffffffff16611fed611edf565b73ffffffffffffffffffffffffffffffffffffffff1614612043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203a90614f12565b60405180910390fd5b600c60149054906101000a900460ff1615612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90614c72565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6120df612e8b565b73ffffffffffffffffffffffffffffffffffffffff166120fd611edf565b73ffffffffffffffffffffffffffffffffffffffff1614612153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214a90614f12565b60405180910390fd5b80600e9080519060200190612169929190613e9a565b5050565b612175612e8b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121da90614d72565b60405180910390fd5b80600560006121f0612e8b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661229d612e8b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122e29190614c15565b60405180910390a35050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60136020528060005260406000206000915054906101000a900460ff1681565b61234561233f612e8b565b83612fb8565b612384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237b90614f72565b60405180910390fd5b61239084848484613586565b50505050565b600c60149054906101000a900460ff1681565b600c60159054906101000a900460ff1681565b60606123c782612e93565b612406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fd90614e72565b60405180910390fd5b60006124106135e2565b9050600061241c613674565b9050600060106000868152602001908152602001600020805461243e9061521d565b80601f016020809104026020016040519081016040528092919081815260200182805461246a9061521d565b80156124b75780601f1061248c576101008083540402835291602001916124b7565b820191906000526020600020905b81548152906001019060200180831161249a57829003601f168201915b505050505090506001601154141561251157826124d386613706565b600d60008881526020019081526020016000206040516020016124f893929190614b72565b6040516020818303038152906040529350505050612625565b600260115414156125d85760008251141561256e578261253086613706565b600d600088815260200190815260200160002060405160200161255593929190614b72565b6040516020818303038152906040529350505050612625565b6000815114156125ac578161258286613706565b604051602001612593929190614b4e565b6040516020818303038152906040529350505050612625565b81816040516020016125bf929190614b4e565b6040516020818303038152906040529350505050612625565b6003601154141561260f5781816040516020016125f6929190614b4e565b6040516020818303038152906040529350505050612625565b6040518060200160405280600081525093505050505b919050565b612632612e8b565b73ffffffffffffffffffffffffffffffffffffffff16612650611edf565b73ffffffffffffffffffffffffffffffffffffffff16146126a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269d90614f12565b60405180910390fd5b60001515601460009054906101000a900460ff161515146126c657600080fd5b6001601460006101000a81548160ff021916908315150217905550565b6126eb612e8b565b73ffffffffffffffffffffffffffffffffffffffff16612709611edf565b73ffffffffffffffffffffffffffffffffffffffff161461275f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275690614f12565b60405180910390fd5b601460019054906101000a900460ff166127ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a590614ef2565b60405180910390fd5b8181905084849050146127f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ed90614ed2565b60405180910390fd5b60005b828290508110156128c35761282683838381811061281a576128196153b6565b5b90506020020135612e93565b15612866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285d90614cb2565b60405180910390fd5b6128b085858381811061287c5761287b6153b6565b5b9050602002016020810190612891919061420e565b8484848181106128a4576128a36153b6565b5b905060200201356132f2565b80806128bb90615280565b9150506127f9565b5050505050565b600d60205280600052604060002060009150905080546128e99061521d565b80601f01602080910402602001604051908101604052809291908181526020018280546129159061521d565b80156129625780601f1061293757610100808354040283529160200191612962565b820191906000526020600020905b81548152906001019060200180831161294557829003601f168201915b505050505081565b600c60169054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60106020528060005260406000206000915090508054612a309061521d565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5c9061521d565b8015612aa95780601f10612a7e57610100808354040283529160200191612aa9565b820191906000526020600020905b815481529060010190602001808311612a8c57829003601f168201915b505050505081565b600f8054612abe9061521d565b80601f0160208091040260200160405190810160405280929190818152602001828054612aea9061521d565b8015612b375780601f10612b0c57610100808354040283529160200191612b37565b820191906000526020600020905b815481529060010190602001808311612b1a57829003601f168201915b505050505081565b612b47612e8b565b73ffffffffffffffffffffffffffffffffffffffff16612b65611edf565b73ffffffffffffffffffffffffffffffffffffffff1614612bbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb290614f12565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2290614d12565b60405180910390fd5b612c34816134c0565b50565b612c4083612e93565b612c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7690614d92565b60405180910390fd5b612c88836113f6565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cec90614c92565b60405180910390fd5b600c60159054906101000a900460ff16612d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3b90614eb2565b60405180910390fd5b612d4e82826118e0565b612d5757600080fd5b8181600d60008681526020019081526020016000209190612d79929190613f20565b50505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e7457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e845750612e8382613867565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612f72836113f6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612fc382612e93565b613002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff990614dd2565b60405180910390fd5b600061300d836113f6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061307c57508373ffffffffffffffffffffffffffffffffffffffff1661306484610b40565b73ffffffffffffffffffffffffffffffffffffffff16145b8061308d575061308c818561297d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166130b6826113f6565b73ffffffffffffffffffffffffffffffffffffffff161461310c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310390614f32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561317c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317390614d52565b60405180910390fd5b6131878383836138d1565b613192600082612eff565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131e29190615133565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461323991906150ac565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335990614e52565b60405180910390fd5b61336b81612e93565b156133ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133a290614d32565b60405180910390fd5b6133b7600083836138d1565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461340791906150ac565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613591848484613096565b61359d848484846139e5565b6135dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d390614cf2565b60405180910390fd5b50505050565b6060600e80546135f19061521d565b80601f016020809104026020016040519081016040528092919081815260200182805461361d9061521d565b801561366a5780601f1061363f5761010080835404028352916020019161366a565b820191906000526020600020905b81548152906001019060200180831161364d57829003601f168201915b5050505050905090565b6060600f80546136839061521d565b80601f01602080910402602001604051908101604052809291908181526020018280546136af9061521d565b80156136fc5780601f106136d1576101008083540402835291602001916136fc565b820191906000526020600020905b8154815290600101906020018083116136df57829003601f168201915b5050505050905090565b6060600082141561374e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613862565b600082905060005b6000821461378057808061376990615280565b915050600a826137799190615102565b9150613756565b60008167ffffffffffffffff81111561379c5761379b6153e5565b5b6040519080825280601f01601f1916602001820160405280156137ce5781602001600182028036833780820191505090505b5090505b6000851461385b576001826137e79190615133565b9150600a856137f691906152c9565b603061380291906150ac565b60f81b818381518110613818576138176153b6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856138549190615102565b94506137d2565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6138dc838383613b7c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561391f5761391a81613b81565b61395e565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461395d5761395c8382613bca565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156139a15761399c81613d37565b6139e0565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146139df576139de8282613e08565b5b5b505050565b6000613a068473ffffffffffffffffffffffffffffffffffffffff16613e87565b15613b6f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613a2f612e8b565b8786866040518563ffffffff1660e01b8152600401613a519493929190614bc9565b602060405180830381600087803b158015613a6b57600080fd5b505af1925050508015613a9c57506040513d601f19601f82011682018060405250810190613a99919061447f565b60015b613b1f573d8060008114613acc576040519150601f19603f3d011682016040523d82523d6000602084013e613ad1565b606091505b50600081511415613b17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b0e90614cf2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613b74565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613bd7846117a0565b613be19190615133565b9050600060076000848152602001908152602001600020549050818114613cc6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613d4b9190615133565b9050600060096000848152602001908152602001600020549050600060088381548110613d7b57613d7a6153b6565b5b906000526020600020015490508060088381548110613d9d57613d9c6153b6565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613dec57613deb615387565b5b6001900381819060005260206000200160009055905550505050565b6000613e13836117a0565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054613ea69061521d565b90600052602060002090601f016020900481019282613ec85760008555613f0f565b82601f10613ee157805160ff1916838001178555613f0f565b82800160010185558215613f0f579182015b82811115613f0e578251825591602001919060010190613ef3565b5b509050613f1c9190613fa6565b5090565b828054613f2c9061521d565b90600052602060002090601f016020900481019282613f4e5760008555613f95565b82601f10613f6757803560ff1916838001178555613f95565b82800160010185558215613f95579182015b82811115613f94578235825591602001919060010190613f79565b5b509050613fa29190613fa6565b5090565b5b80821115613fbf576000816000905550600101613fa7565b5090565b6000613fd6613fd184614ff2565b614fcd565b905082815260208101848484011115613ff257613ff1615423565b5b613ffd8482856151db565b509392505050565b600061401861401384615023565b614fcd565b90508281526020810184848401111561403457614033615423565b5b61403f8482856151db565b509392505050565b60008135905061405681615af9565b92915050565b60008083601f84011261407257614071615419565b5b8235905067ffffffffffffffff81111561408f5761408e615414565b5b6020830191508360208202830111156140ab576140aa61541e565b5b9250929050565b60008083601f8401126140c8576140c7615419565b5b8235905067ffffffffffffffff8111156140e5576140e4615414565b5b6020830191508360208202830111156141015761410061541e565b5b9250929050565b60008135905061411781615b10565b92915050565b60008135905061412c81615b27565b92915050565b60008151905061414181615b27565b92915050565b600082601f83011261415c5761415b615419565b5b813561416c848260208601613fc3565b91505092915050565b60008083601f84011261418b5761418a615419565b5b8235905067ffffffffffffffff8111156141a8576141a7615414565b5b6020830191508360018202830111156141c4576141c361541e565b5b9250929050565b600082601f8301126141e0576141df615419565b5b81356141f0848260208601614005565b91505092915050565b60008135905061420881615b3e565b92915050565b6000602082840312156142245761422361542d565b5b600061423284828501614047565b91505092915050565b600080604083850312156142525761425161542d565b5b600061426085828601614047565b925050602061427185828601614047565b9150509250929050565b6000806000606084860312156142945761429361542d565b5b60006142a286828701614047565b93505060206142b386828701614047565b92505060406142c4868287016141f9565b9150509250925092565b600080600080608085870312156142e8576142e761542d565b5b60006142f687828801614047565b945050602061430787828801614047565b9350506040614318878288016141f9565b925050606085013567ffffffffffffffff81111561433957614338615428565b5b61434587828801614147565b91505092959194509250565b600080604083850312156143685761436761542d565b5b600061437685828601614047565b925050602061438785828601614108565b9150509250929050565b600080604083850312156143a8576143a761542d565b5b60006143b685828601614047565b92505060206143c7858286016141f9565b9150509250929050565b600080600080604085870312156143eb576143ea61542d565b5b600085013567ffffffffffffffff81111561440957614408615428565b5b6144158782880161405c565b9450945050602085013567ffffffffffffffff81111561443857614437615428565b5b614444878288016140b2565b925092505092959194509250565b6000602082840312156144685761446761542d565b5b60006144768482850161411d565b91505092915050565b6000602082840312156144955761449461542d565b5b60006144a384828501614132565b91505092915050565b600080602083850312156144c3576144c261542d565b5b600083013567ffffffffffffffff8111156144e1576144e0615428565b5b6144ed85828601614175565b92509250509250929050565b60006020828403121561450f5761450e61542d565b5b600082013567ffffffffffffffff81111561452d5761452c615428565b5b614539848285016141cb565b91505092915050565b6000602082840312156145585761455761542d565b5b6000614566848285016141f9565b91505092915050565b6000806000604084860312156145885761458761542d565b5b6000614596868287016141f9565b935050602084013567ffffffffffffffff8111156145b7576145b6615428565b5b6145c386828701614175565b92509250509250925092565b600080604083850312156145e6576145e561542d565b5b60006145f4858286016141f9565b925050602083013567ffffffffffffffff81111561461557614614615428565b5b614621858286016141cb565b9150509250929050565b61463481615167565b82525050565b61464381615179565b82525050565b600061465482615069565b61465e818561507f565b935061466e8185602086016151ea565b61467781615432565b840191505092915050565b600061468d82615074565b6146978185615090565b93506146a78185602086016151ea565b6146b081615432565b840191505092915050565b60006146c682615074565b6146d081856150a1565b93506146e08185602086016151ea565b80840191505092915050565b600081546146f98161521d565b61470381866150a1565b9450600182166000811461471e576001811461472f57614762565b60ff19831686528186019350614762565b61473885615054565b60005b8381101561475a5781548189015260018201915060208101905061473b565b838801955050505b50505092915050565b6000614778600c83615090565b915061478382615443565b602082019050919050565b600061479b600683615090565b91506147a68261546c565b602082019050919050565b60006147be600c83615090565b91506147c982615495565b602082019050919050565b60006147e1601483615090565b91506147ec826154be565b602082019050919050565b6000614804602b83615090565b915061480f826154e7565b604082019050919050565b6000614827603283615090565b915061483282615536565b604082019050919050565b600061484a602683615090565b915061485582615585565b604082019050919050565b600061486d601c83615090565b9150614878826155d4565b602082019050919050565b6000614890602483615090565b915061489b826155fd565b604082019050919050565b60006148b3601983615090565b91506148be8261564c565b602082019050919050565b60006148d6600d83615090565b91506148e182615675565b602082019050919050565b60006148f9603083615090565b91506149048261569e565b604082019050919050565b600061491c602c83615090565b9150614927826156ed565b604082019050919050565b600061493f603883615090565b915061494a8261573c565b604082019050919050565b6000614962602a83615090565b915061496d8261578b565b604082019050919050565b6000614985602983615090565b9150614990826157da565b604082019050919050565b60006149a8602083615090565b91506149b382615829565b602082019050919050565b60006149cb603183615090565b91506149d682615852565b604082019050919050565b60006149ee602c83615090565b91506149f9826158a1565b604082019050919050565b6000614a11601983615090565b9150614a1c826158f0565b602082019050919050565b6000614a34600a83615090565b9150614a3f82615919565b602082019050919050565b6000614a57600b83615090565b9150614a6282615942565b602082019050919050565b6000614a7a602083615090565b9150614a858261596b565b602082019050919050565b6000614a9d602983615090565b9150614aa882615994565b604082019050919050565b6000614ac0602183615090565b9150614acb826159e3565b604082019050919050565b6000614ae3603183615090565b9150614aee82615a32565b604082019050919050565b6000614b06602c83615090565b9150614b1182615a81565b604082019050919050565b6000614b296001836150a1565b9150614b3482615ad0565b600182019050919050565b614b48816151d1565b82525050565b6000614b5a82856146bb565b9150614b6682846146bb565b91508190509392505050565b6000614b7e82866146bb565b9150614b8a82856146bb565b9150614b9582614b1c565b9150614ba182846146ec565b9150819050949350505050565b6000602082019050614bc3600083018461462b565b92915050565b6000608082019050614bde600083018761462b565b614beb602083018661462b565b614bf86040830185614b3f565b8181036060830152614c0a8184614649565b905095945050505050565b6000602082019050614c2a600083018461463a565b92915050565b60006020820190508181036000830152614c4a8184614682565b905092915050565b60006020820190508181036000830152614c6b8161476b565b9050919050565b60006020820190508181036000830152614c8b8161478e565b9050919050565b60006020820190508181036000830152614cab816147b1565b9050919050565b60006020820190508181036000830152614ccb816147d4565b9050919050565b60006020820190508181036000830152614ceb816147f7565b9050919050565b60006020820190508181036000830152614d0b8161481a565b9050919050565b60006020820190508181036000830152614d2b8161483d565b9050919050565b60006020820190508181036000830152614d4b81614860565b9050919050565b60006020820190508181036000830152614d6b81614883565b9050919050565b60006020820190508181036000830152614d8b816148a6565b9050919050565b60006020820190508181036000830152614dab816148c9565b9050919050565b60006020820190508181036000830152614dcb816148ec565b9050919050565b60006020820190508181036000830152614deb8161490f565b9050919050565b60006020820190508181036000830152614e0b81614932565b9050919050565b60006020820190508181036000830152614e2b81614955565b9050919050565b60006020820190508181036000830152614e4b81614978565b9050919050565b60006020820190508181036000830152614e6b8161499b565b9050919050565b60006020820190508181036000830152614e8b816149be565b9050919050565b60006020820190508181036000830152614eab816149e1565b9050919050565b60006020820190508181036000830152614ecb81614a04565b9050919050565b60006020820190508181036000830152614eeb81614a27565b9050919050565b60006020820190508181036000830152614f0b81614a4a565b9050919050565b60006020820190508181036000830152614f2b81614a6d565b9050919050565b60006020820190508181036000830152614f4b81614a90565b9050919050565b60006020820190508181036000830152614f6b81614ab3565b9050919050565b60006020820190508181036000830152614f8b81614ad6565b9050919050565b60006020820190508181036000830152614fab81614af9565b9050919050565b6000602082019050614fc76000830184614b3f565b92915050565b6000614fd7614fe8565b9050614fe3828261524f565b919050565b6000604051905090565b600067ffffffffffffffff82111561500d5761500c6153e5565b5b61501682615432565b9050602081019050919050565b600067ffffffffffffffff82111561503e5761503d6153e5565b5b61504782615432565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006150b7826151d1565b91506150c2836151d1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156150f7576150f66152fa565b5b828201905092915050565b600061510d826151d1565b9150615118836151d1565b92508261512857615127615329565b5b828204905092915050565b600061513e826151d1565b9150615149836151d1565b92508282101561515c5761515b6152fa565b5b828203905092915050565b6000615172826151b1565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156152085780820151818401526020810190506151ed565b83811115615217576000848401525b50505050565b6000600282049050600182168061523557607f821691505b6020821081141561524957615248615358565b5b50919050565b61525882615432565b810181811067ffffffffffffffff82111715615277576152766153e5565b5b80604052505050565b600061528b826151d1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152be576152bd6152fa565b5b600182019050919050565b60006152d4826151d1565b91506152df836151d1565b9250826152ef576152ee615329565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f696e76616c696420636861720000000000000000000000000000000000000000600082015250565b7f4c6f636b65640000000000000000000000000000000000000000000000000000600082015250565b7f556e617574686f72697a65640000000000000000000000000000000000000000600082015250565b7f546f6b656e20616c7265616479206d696e746564000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f556e6b6e6f776e20746f6b656e00000000000000000000000000000000000000600082015250565b7f43616c6c6572206973206e6f7420746865206f776e6572206f7220746865206160008201527f7070726f76656420636f6e747261637400000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53657474696e67206e616d65732069732064697361626c656400000000000000600082015250565b7f426164206c656e67746800000000000000000000000000000000000000000000600082015250565b7f4e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b615b0281615167565b8114615b0d57600080fd5b50565b615b1981615179565b8114615b2457600080fd5b50565b615b3081615185565b8114615b3b57600080fd5b50565b615b47816151d1565b8114615b5257600080fd5b5056fea264697066735822122047fbc20ea0d56285ab37bca34d5ae1be166d2f82e1b970b9aebc8f06ff90be5f64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000848696768626f726e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000548424f524e000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : __name (string): Highborn
Arg [1] : __symbol (string): HBORN
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [3] : 48696768626f726e000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 48424f524e000000000000000000000000000000000000000000000000000000
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.