ERC-721
Overview
Max Total Supply
71 GP
Holders
38
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GlyphPets
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicense /* Glyph Pets inspires by WAGMIpet NFT by m1guelpf.eth, which was inspired by dhof.eth's wagmipet contract (mainnet:0xecb504d39723b0be0e3a9aa33d646642d1051ee1) */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract GlyphPets is Ownable, ERC721Enumerable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; event CaretakerLoved( address indexed caretaker, uint256 indexed tokenId, uint256 amount ); struct Pet { uint256 lastFeedBlock; uint256 lastCleanBlock; uint256 lastPlayBlock; uint256 lastSleepBlock; uint8 hunger; uint8 uncleanliness; uint8 boredom; uint8 sleepiness; } mapping(uint256 => Pet) internal pets; mapping(address => uint256) public love; ERC721 lilglyphs; constructor(address lilGlyphAddress) ERC721("Glyph Pets", "GP") { lilglyphs = ERC721(lilGlyphAddress); } function glyphInPlay(uint256 tokenId) public view returns (bool) { require(_exists(tokenId), "token id invalid"); return getAlive(tokenId); } function adopt(uint256 tokenId) public returns (uint256) { bool exists = _exists(tokenId); if (exists) { require(!getAlive(tokenId) && ownerOf(tokenId) == msg.sender, "in play"); } else { require(lilglyphs.ownerOf(tokenId) == _msgSender(), "not owned"); } pets[tokenId] = Pet( block.number, block.number, block.number, block.number, 0, 0, 0, 0 ); if (!exists) { _mint(_msgSender(), tokenId); } return tokenId; } function addLove( address caretaker, uint256 tokenId, uint256 amount ) internal { love[caretaker] += amount; emit CaretakerLoved(caretaker, tokenId, amount); } function feed(uint256 tokenId) public { require(_exists(tokenId), "pet does not exist"); require(ownerOf(tokenId) == _msgSender(), "not your pet"); require(getHunger(tokenId) > 0, "i dont need to eat"); require(getAlive(tokenId), "no longer with us"); require(getBoredom(tokenId) < 80, "im too tired to eat"); require(getUncleanliness(tokenId) < 80, "im feeling too gross to eat"); require(getHunger(tokenId) > 0, "i dont need to eat"); pets[tokenId].lastFeedBlock = block.number; pets[tokenId].hunger = 0; pets[tokenId].boredom += 10; pets[tokenId].uncleanliness += 3; addLove(_msgSender(), tokenId, 1); } function clean(uint256 tokenId) public { require(_exists(tokenId), "pet does not exist"); require(ownerOf(tokenId) == _msgSender(), "not your pet"); require(getAlive(tokenId), "no longer with us"); require(getUncleanliness(tokenId) > 0, "i dont need a bath"); pets[tokenId].lastCleanBlock = block.number; pets[tokenId].uncleanliness = 0; addLove(_msgSender(), tokenId, 1); } function play(uint256 tokenId) public { require(_exists(tokenId), "pet does not exist"); require(ownerOf(tokenId) == _msgSender(), "not your pet"); require(getAlive(tokenId), "no longer with us"); require(getHunger(tokenId) < 80, "im too hungry to play"); require(getSleepiness(tokenId) < 80, "im too sleepy to play"); require(getUncleanliness(tokenId) < 80, "im feeling too gross to play"); require(getBoredom(tokenId) > 0, "i dont wanna play"); pets[tokenId].lastPlayBlock = block.number; pets[tokenId].boredom = 0; pets[tokenId].hunger += 10; pets[tokenId].sleepiness += 10; pets[tokenId].uncleanliness += 5; addLove(_msgSender(), tokenId, 1); } function sleep(uint256 tokenId) public { require(_exists(tokenId), "pet does not exist"); require(ownerOf(tokenId) == _msgSender(), "not your pet"); require(getAlive(tokenId), "no longer with us"); require(getUncleanliness(tokenId) < 80, "im feeling too gross to sleep"); require(getSleepiness(tokenId) > 0, "im not feeling sleepy"); pets[tokenId].lastSleepBlock = block.number; pets[tokenId].sleepiness = 0; pets[tokenId].uncleanliness += 5; addLove(_msgSender(), tokenId, 1); } function getStatus(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "pet does not exist"); uint256 mostNeeded = 0; string[5] memory goodStatus = [ "gm", "im feeling great", "we gmi", "all good", "i love u" ]; string memory status = goodStatus[block.number % 5]; uint256 hunger = getHunger(tokenId); uint256 uncleanliness = getUncleanliness(tokenId); uint256 boredom = getBoredom(tokenId); uint256 sleepiness = getSleepiness(tokenId); if (getAlive(tokenId) == false) { return "no longer with us"; } if (hunger > 50 && hunger > mostNeeded) { mostNeeded = hunger; status = "im hungry"; } if (uncleanliness > 50 && uncleanliness > mostNeeded) { mostNeeded = uncleanliness; status = "i need a bath"; } if (boredom > 50 && boredom > mostNeeded) { mostNeeded = boredom; status = "im bored"; } if (sleepiness > 50 && sleepiness > mostNeeded) { mostNeeded = sleepiness; status = "im sleepy"; } return status; } function getAlive(uint256 tokenId) public view returns (bool) { require(_exists(tokenId), "pet does not exist"); return getHunger(tokenId) < 101 && getUncleanliness(tokenId) < 101 && getBoredom(tokenId) < 101 && getSleepiness(tokenId) < 101; } function getHunger(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId), "pet does not exist"); return pets[tokenId].hunger + ((block.number - pets[tokenId].lastFeedBlock) / 400); } function getUncleanliness(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId), "pet does not exist"); return pets[tokenId].uncleanliness + ((block.number - pets[tokenId].lastCleanBlock) / 400); } function getBoredom(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId), "pet does not exist"); return pets[tokenId].boredom + ((block.number - pets[tokenId].lastPlayBlock) / 400); } function getSleepiness(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId), "pet does not exist"); return pets[tokenId].sleepiness + ((block.number - pets[tokenId].lastSleepBlock) / 400); } function getStats(uint256 tokenId) public view returns (uint256[5] memory) { return [ getAlive(tokenId) ? 1 : 0, getHunger(tokenId), getUncleanliness(tokenId), getBoredom(tokenId), getSleepiness(tokenId) ]; } function countNeighbors( uint256 id, uint256 idx, uint256 index ) internal pure returns (uint256) { uint256 top = idx >= 5 ? getBoolean(id, idx - 5) : 0; uint256 bottom = idx <= 44 ? getBoolean(id, idx + 5) : 0; uint256 left = idx > 0 && index != 0 ? getBoolean(id, idx - 1) : 0; uint256 right = idx < 49 && index != 4 ? getBoolean(id, idx + 1) : 0; return top + bottom + left + right; } function setBoolean( uint256 _packedBools, uint256 _boolNumber, uint256 _value ) public pure returns (uint256) { if (_value == 1) return _packedBools | (uint256(1) << _boolNumber); else return _packedBools & ~(uint256(1) << _boolNumber); } function getBoolean(uint256 _packedBools, uint256 _boolNumber) public pure returns (uint256) { uint256 flag = (_packedBools >> _boolNumber) & uint256(1); return flag; } string[] baseColors = [ "#FFD12A", "#4F86F7", "#FFD3F8", "#DA2647", "#FFFF31", "#44D7A8", "#A6E7FF", "#6F2DA8", "#DA614E", "#253529", "#1A1110", "#B2F302", "#214FC6", "#FF5050", "#0048BA", "#B0BF1A", "#7CB9E8", "#C0E8D5", "#B284BE", "#FF7E00", "#9966CC", "#66FF00" ]; string[] buttonColors = [ "#FF3855", "#FFAA1D", "#FFF700", "#299617", "#FF5470", "#BFAFB2", "#E936A7", "#66FF66", "#FF00CC", "#848482", "#318CE7", "#66FF00", "#FB607F" ]; function compareStr(string memory a, string memory b) internal pure returns (bool) { if (bytes(a).length != bytes(b).length) { return false; } else { return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)); } } function getSvg(uint256 tokenId) public view returns (string memory) { uint256 ppd = 5; string memory svg; for (uint256 i = 0; i < 50; i++) { uint256 x = (i - ((i / 5) * 5)); if (getBoolean(tokenId, i) == 1) { continue; } else if (countNeighbors(tokenId, i, x) > 0) { string memory color1 = "3B2F2F"; string memory color2 = "3B2F2F"; string memory status = getStatus(tokenId); if (!getAlive(tokenId)) { color1 = "DEAD"; color2 = color1; } else if (compareStr(status, "im hungry")) { color1 = "E52B50"; color2 = "FFBF00"; } else if (compareStr(status, "i need a bath")) { color1 = "9F8170"; color2 = color1; } else if (compareStr(status, "im bored")) { color1 = "FB607F"; color2 = color1; } else if (compareStr(status, "im sleepy")) { color1 = "8A2BE2"; color2 = color1; } string memory rect = string( abi.encodePacked( '<rect x="', Strings.toString(x * ppd), '" y="', Strings.toString((i / 5) * ppd), '" width="5" height="5" style="fill:#', color1, '"></rect>' ) ); string memory rectFlip = string( abi.encodePacked( '<rect data-id="', Strings.toString(i), '" x="', Strings.toString((10 - x - 1) * ppd), '" y="', Strings.toString((i / 5) * ppd), '" width="5" height="5" style="fill:#', color2, '"></rect>' ) ); svg = string(abi.encodePacked(svg, rect, rectFlip)); } else { continue; } } string[5] memory wrap; wrap[0] = string( abi.encodePacked( '<svg fill="#FFF" height="270" viewBox="0 0 210 270" width="210" xmlns="http://www.w3.org/2000/svg"> <defs><linearGradient id="g" gradientTransform="rotate(', Strings.toString(tokenId % 180), ')"><stop offset="5%" stop-color="', baseColors[(tokenId / 2) % baseColors.length], '" /><stop offset="95%" stop-color="', baseColors[(tokenId) % baseColors.length], '" /></linearGradient></defs><g><rect width="210" height="270"></rect><path fill="url(#g)" d="m105 0c10.2 0 18.9 8.4 18.6 18.6 0 2.1-.3 4.2-.9 6 49.5 12 87.3 72.9 87.3 146.4 0 54.6-47.1 99-105 99s-105-44.4-105-99c0-73.5 37.8-134.4 87-146.1-.6-1.8-.9-3.9-.9-6 0-10.5 8.7-18.9 18.9-18.9zm45 97.5h-90c-4.2 0-7.5 3.3-7.5 7.5v90c0 4.2 3.3 7.5 7.5 7.5h90c4.2 0 7.5-3.3 7.5-7.5v-90c0-4.2-3.3-7.5-7.5-7.5zm-45-86.1c-4.2 0-7.5 3.3-7.5 7.5s3.3 7.5 7.5 7.5 7.5-3.3 7.5-7.5-3.3-7.5-7.5-7.5z"/><g transform="translate(80 125)">' ) ); if (getAlive(tokenId)) { wrap[1] = string( abi.encodePacked( '<animateTransform xmlns="http://www.w3.org/2000/svg" attributeName="transform" attributeType="XML" type="translate" dur=".9s" repeatCount="indefinite" autoReverse="true" values="80 125; 80 122; 80 125;"/>', svg, "</g>" ) ); } else { wrap[1] = string(abi.encodePacked(svg, "</g>")); } wrap[2] = string( abi.encodePacked( '<g fill="', buttonColors[tokenId % buttonColors.length], '">' ) ); wrap[ 3 ] = '<path d="m75 247.5c-4.2 0-7.5-3.3-7.5-7.5s3.3-7.5 7.5-7.5 7.5 3.3 7.5 7.5-3.3 7.5-7.5 7.5z"/><path d="m105 255c-4.2 0-7.5-3.3-7.5-7.5s3.3-7.5 7.5-7.5 7.5 3.3 7.5 7.5-3.3 7.5-7.5 7.5z"/><path d="m135 247.5c-4.2 0-7.5-3.3-7.5-7.5s3.3-7.5 7.5-7.5 7.5 3.3 7.5 7.5-3.3 7.5-7.5 7.5z"/>'; wrap[4] = "</g></g></svg>"; return string(abi.encodePacked(wrap[0], wrap[1], wrap[2], wrap[3], wrap[4])); } function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require(_exists(tokenId), "pet does not exist"); // solhint-disable-next-line quotes string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "Glyph Pet #', Strings.toString(tokenId), '", "background_color": "FFFFFF", "description": "Glyph Pets are virtual pets living on the blockchain.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(getSvg(tokenId))), '"}' ) ) ) ); return string(abi.encodePacked("data:application/json;base64,", json)); } } library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @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(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @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}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public 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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { 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` and `to` are never both zero. * * 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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"lilGlyphAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caretaker","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CaretakerLoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"adopt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"clean","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"feed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAlive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_packedBools","type":"uint256"},{"internalType":"uint256","name":"_boolNumber","type":"uint256"}],"name":"getBoolean","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBoredom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHunger","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSleepiness","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStats","outputs":[{"internalType":"uint256[5]","name":"","type":"uint256[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStatus","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSvg","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getUncleanliness","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"glyphInPlay","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":[{"internalType":"address","name":"","type":"address"}],"name":"love","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"play","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_packedBools","type":"uint256"},{"internalType":"uint256","name":"_boolNumber","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setBoolean","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"sleep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6007610340818152662346464431324160c81b610360526080908152610380828152662334463836463760c81b6103a05260a0526103c0828152660468c8c88668c760cb1b6103e05260c052610400828152662344413236343760c81b6104205260e052610440828152662346464646333160c81b6104605261010052610480828152660466868886e82760cb1b6104a052610120526104c08281526611a09b229ba32360c91b6104e05261014052610500828152660466c8c648882760cb1b6105205261016052610540828152662344413631344560c81b6105605261018052610580828152662332353335323960c81b6105a0526101a0526105c0828152660233141313131360cc1b6105e0526101c0526106008281526611a1192319981960c91b610620526101e052610640828152661199189a23219b60c91b6106605261020052610680828152660234646353035360cc1b6106a052610220526106c0828152662330303438424160c81b6106e05261024052610700828152662342304246314160c81b6107205261026052610740828152660466e8684728a760cb1b6107605261028052610780828152662343304538443560c81b6107a0526102a0526107c0828152662342323834424560c81b6107e0526102c052610800828152660234646374530360cc1b610820526102e052610840828152662339393636434360c81b61086052610300526108c0604052610880918252660233636464630360cc1b6108a052610320919091526200023e90600f90601662000520565b50604080516101e08101825260076101a08201818152662346463338353560c81b6101c08401528252825180840184528181526608d19190504c5160ca1b6020828101919091528084019190915283518085018552828152660234646463730360cc1b818301528385015283518085018552828152662332393936313760c81b81830152606084015283518085018552828152660234646353437360cc1b818301526080840152835180850185528281526611a12320a3211960c91b8183015260a084015283518085018552828152662345393336413760c81b8183015260c08401528351808501855282815266119b1b23231b1b60c91b8183015260e084015283518085018552828152662346463030434360c81b818301526101008401528351808501855282815266119c1a1c1a1c1960c91b8183015261012084015283518085018552828152662333313843453760c81b8183015261014084015283518085018552828152660233636464630360cc1b8183015261016084015283518085019094529083526611a3211b181ba360c91b90830152610180810191909152620003ee90601090600d62000584565b50348015620003fc57600080fd5b5060405162004828380380620048288339810160408190526200041f91620006de565b6040518060400160405280600a815260200169476c797068205065747360b01b81525060405180604001604052806002815260200161047560f41b8152506200047762000471620004cc60201b60201c565b620004d0565b81516200048c906001906020850190620005d6565b508051620004a2906002906020840190620005d6565b5050600e80546001600160a01b0319166001600160a01b039390931692909217909155506200074b565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090810192821562000572579160200282015b8281111562000572578251805162000561918491602090910190620005d6565b509160200191906001019062000541565b506200058092915062000661565b5090565b82805482825590600052602060002090810192821562000572579160200282015b82811115620005725782518051620005c5918491602090910190620005d6565b5091602001919060010190620005a5565b828054620005e4906200070e565b90600052602060002090601f01602090048101928262000608576000855562000653565b82601f106200062357805160ff191683800117855562000653565b8280016001018555821562000653579182015b828111156200065357825182559160200191906001019062000636565b506200058092915062000682565b808211156200058057600062000678828262000699565b5060010162000661565b5b8082111562000580576000815560010162000683565b508054620006a7906200070e565b6000825580601f10620006bb5750620006db565b601f016020900490600052602060002090810190620006db919062000682565b50565b600060208284031215620006f0578081fd5b81516001600160a01b038116811462000707578182fd5b9392505050565b6002810460018216806200072357607f821691505b602082108114156200074557634e487b7160e01b600052602260045260246000fd5b50919050565b6140cd806200075b6000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80637b30396511610125578063c87b56dd116100ad578063e985e9c51161007c578063e985e9c514610483578063f2e7dd3014610496578063f2fde38b146104a9578063f59dfdfb146104bc578063fa9d8713146104cf5761021c565b8063c87b56dd14610437578063c9d4f8001461044a578063caebe85e1461045d578063e5fa1973146104705761021c565b806395d89b41116100f457806395d89b41146103e3578063995e9228146103eb578063a22cb465146103fe578063b0dc78fa14610411578063b88d4fde146104245761021c565b80637b303965146103955780637c3403cf146103b55780638588b2c5146103c85780638da5cb5b146103db5761021c565b80633684b4a6116101a85780636352211e116101775780636352211e14610341578063674ef0fa146103545780636898f82b1461036757806370a082311461037a578063715018a61461038d5761021c565b80633684b4a6146102f557806342842e0e146103085780634f6ccce71461031b5780635c622a0e1461032e5761021c565b806318160ddd116101ef57806318160ddd146102945780631ef16048146102a957806323b872dd146102bc5780632f745c59146102cf578063344c9c70146102e25761021c565b806301ffc9a71461022157806306fdde031461024a578063081812fc1461025f578063095ea7b31461027f575b600080fd5b61023461022f366004612b45565b6104e2565b6040516102419190613608565b60405180910390f35b61025261050f565b6040516102419190613613565b61027261026d366004612b7d565b6105a1565b6040516102419190613586565b61029261028d366004612b1a565b6105ed565b005b61029c610685565b6040516102419190613da1565b6102346102b7366004612b7d565b61068b565b6102926102ca3660046129d9565b6106bb565b61029c6102dd366004612b1a565b6106f3565b6102346102f0366004612b7d565b610748565b61029c610303366004612969565b6107bc565b6102926103163660046129d9565b6107ce565b61029c610329366004612b7d565b6107e9565b61025261033c366004612b7d565b610844565b61027261034f366004612b7d565b610acb565b610292610362366004612b7d565b610b00565b610292610375366004612b7d565b610be8565b61029c610388366004612969565b610dff565b610292610e43565b6103a86103a3366004612b7d565b610e8e565b60405161024191906135d7565b61029c6103c3366004612b7d565b610efb565b61029c6103d6366004612b7d565b610f72565b61027261115c565b61025261116b565b61029c6103f9366004612b95565b61117a565b61029261040c366004612ae9565b611181565b61025261041f366004612b7d565b61124f565b610292610432366004612a19565b611791565b610252610445366004612b7d565b6117d0565b61029c610458366004612b7d565b611865565b61029c61046b366004612bb6565b6118db565b61029c61047e366004612b7d565b611902565b6102346104913660046129a1565b611977565b61029c6104a4366004612b7d565b6119a5565b6102926104b7366004612969565b611a12565b6102926104ca366004612b7d565b611a80565b6102926104dd366004612b7d565b611c2d565b60006001600160e01b0319821663780e9d6360e01b1480610507575061050782611d44565b90505b919050565b60606001805461051e90613e69565b80601f016020809104026020016040519081016040528092919081815260200182805461054a90613e69565b80156105975780601f1061056c57610100808354040283529160200191610597565b820191906000526020600020905b81548152906001019060200180831161057a57829003601f168201915b5050505050905090565b60006105ac82611d84565b6105d15760405162461bcd60e51b81526004016105c890613a78565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006105f882610acb565b9050806001600160a01b0316836001600160a01b0316141561062c5760405162461bcd60e51b81526004016105c890613b8e565b806001600160a01b031661063e611da1565b6001600160a01b0316148061065a575061065a81610491611da1565b6106765760405162461bcd60e51b81526004016105c8906138b6565b6106808383611da5565b505050565b60095490565b600061069682611d84565b6106b25760405162461bcd60e51b81526004016105c890613bcf565b61050782610748565b6106cc6106c6611da1565b82611e13565b6106e85760405162461bcd60e51b81526004016105c890613bf9565b610680838383611e98565b60006106fe83610dff565b821061071c5760405162461bcd60e51b81526004016105c890613626565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b600061075382611d84565b61076f5760405162461bcd60e51b81526004016105c890613cc5565b606561077a836119a5565b10801561078f5750606561078d83611902565b105b80156107a3575060656107a183611865565b105b8015610507575060656107b583610efb565b1092915050565b600d6020526000908152604090205481565b61068083838360405180602001604052806000815250611791565b60006107f3610685565b82106108115760405162461bcd60e51b81526004016105c890613c4a565b6009828154811061083257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b606061084f82611d84565b61086b5760405162461bcd60e51b81526004016105c890613cc5565b6040805160e081018252600260a0820190815261676d60f01b60c0830152815281518083018352601081526f1a5b481999595b1a5b99c819dc99585d60821b60208281019190915280830191909152825180840184526006815265776520676d6960d01b818301528284015282518084018452600880825267185b1b0819dbdbd960c21b828401526060840191909152835180850190945283526769206c6f7665207560c01b908301526080810191909152600090818161092d600543613ebf565b6005811061094b57634e487b7160e01b600052603260045260246000fd5b60200201519050600061095d866119a5565b9050600061096a87611902565b9050600061097788611865565b9050600061098489610efb565b905061098f89610748565b6109cb57604051806040016040528060118152602001706e6f206c6f6e676572207769746820757360781b81525097505050505050505061050a565b6032841180156109da57508684115b15610a075783965060405180604001604052806009815260200168696d2068756e67727960b81b81525094505b603283118015610a1657508683115b15610a47578296506040518060400160405280600d81526020016c0d240dccacac840c240c4c2e8d609b1b81525094505b603282118015610a5657508682115b15610a8257819650604051806040016040528060088152602001671a5b48189bdc995960c21b81525094505b603281118015610a9157508681115b15610abe5780965060405180604001604052806009815260200168696d20736c6565707960b81b81525094505b5092979650505050505050565b6000818152600360205260408120546001600160a01b0316806105075760405162461bcd60e51b81526004016105c89061395d565b610b0981611d84565b610b255760405162461bcd60e51b81526004016105c890613cc5565b610b2d611da1565b6001600160a01b0316610b3f82610acb565b6001600160a01b031614610b655760405162461bcd60e51b81526004016105c890613861565b610b6e81610748565b610b8a5760405162461bcd60e51b81526004016105c890613d1e565b6000610b9582611902565b11610bb25760405162461bcd60e51b81526004016105c890613d75565b6000818152600c60205260409020436001820155600401805461ff0019169055610be5610bdd611da1565b826001611fc5565b50565b610bf181611d84565b610c0d5760405162461bcd60e51b81526004016105c890613cc5565b610c15611da1565b6001600160a01b0316610c2782610acb565b6001600160a01b031614610c4d5760405162461bcd60e51b81526004016105c890613861565b610c5681610748565b610c725760405162461bcd60e51b81526004016105c890613d1e565b6050610c7d826119a5565b10610c9a5760405162461bcd60e51b81526004016105c890613c96565b6050610ca582610efb565b10610cc25760405162461bcd60e51b81526004016105c890613a14565b6050610ccd82611902565b10610cea5760405162461bcd60e51b81526004016105c8906139a6565b6000610cf582611865565b11610d125760405162461bcd60e51b81526004016105c890613af9565b6000818152600c60205260408120436002820155600401805462ff00001981168255600a9290610d4690849060ff16613dce565b92506101000a81548160ff021916908360ff160217905550600a600c600083815260200190815260200160002060040160038282829054906101000a900460ff16610d919190613dce565b92506101000a81548160ff021916908360ff1602179055506005600c600083815260200190815260200160002060040160018282829054906101000a900460ff16610ddc9190613dce565b92506101000a81548160ff021916908360ff160217905550610be5610bdd611da1565b60006001600160a01b038216610e275760405162461bcd60e51b81526004016105c890613913565b506001600160a01b031660009081526004602052604090205490565b610e4b611da1565b6001600160a01b0316610e5c61115c565b6001600160a01b031614610e825760405162461bcd60e51b81526004016105c890613ac4565b610e8c600061203b565b565b610e96612924565b6040518060a00160405280610eaa84610748565b610eb5576000610eb8565b60015b60ff168152602001610ec9846119a5565b8152602001610ed784611902565b8152602001610ee584611865565b8152602001610ef384610efb565b905292915050565b6000610f0682611d84565b610f225760405162461bcd60e51b81526004016105c890613cc5565b6000828152600c602052604090206003015461019090610f429043613e26565b610f4c9190613df3565b6000838152600c602052604090206004015461050791906301000000900460ff16613db6565b600080610f7e83611d84565b90508015610fcd57610f8f83610748565b158015610fac575033610fa184610acb565b6001600160a01b0316145b610fc85760405162461bcd60e51b81526004016105c890613b6d565b61107f565b610fd5611da1565b600e546040516331a9108f60e11b81526001600160a01b039283169290911690636352211e90611009908790600401613da1565b60206040518083038186803b15801561102157600080fd5b505afa158015611035573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110599190612985565b6001600160a01b03161461107f5760405162461bcd60e51b81526004016105c8906137bb565b6040805161010080820183524380835260208084018281528486018381526060860193845260006080870181815260a0880182815260c0890183815260e08a018481528e8552600c9097529990922097518855925160018801559051600287015592516003860155516004909401805492519551915160ff1990931660ff9586161761ff0019169585169093029490941762ff0000191662010000948416949094029390931763ff000000191663010000009290931691909102919091179055806111555761115561114f611da1565b8461208b565b5090919050565b6000546001600160a01b031690565b60606002805461051e90613e69565b1c60011690565b611189611da1565b6001600160a01b0316826001600160a01b031614156111ba5760405162461bcd60e51b81526004016105c890613784565b80600660006111c7611da1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561120b611da1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112439190613608565b60405180910390a35050565b606060058160005b603281101561159657600061126d600583613df3565b611278906005613e07565b6112829083613e26565b905061128e868361117a565b6001141561129c5750611584565b60006112a987848461216a565b111561157c5760408051808201825260068082526519a11923192360d11b60208084018290528451808601909552918452908301529060006112ea89610844565b90506112f589610748565b61132057604051806040016040528060048152602001631111505160e21b81525092508291506114a1565b61134b8160405180604001604052806009815260200168696d2068756e67727960b81b815250612238565b15611397576040518060400160405280600681526020016504535324235360d41b81525092506040518060400160405280600681526020016504646424630360d41b81525091506114a1565b6113c6816040518060400160405280600d81526020016c0d240dccacac840c240c4c2e8d609b1b815250612238565b156113f4576040518060400160405280600681526020016503946383137360d41b81525092508291506114a1565b61141e81604051806040016040528060088152602001671a5b48189bdc995960c21b815250612238565b1561144c576040518060400160405280600681526020016523211b181ba360d11b81525092508291506114a1565b6114778160405180604001604052806009815260200168696d20736c6565707960b81b815250612238565b156114a157604051806040016040528060068152602001651c209921229960d11b81525092508291505b60006114b56114b08987613e07565b6122a1565b6114ce896114c460058a613df3565b6114b09190613e07565b856040516020016114e193929190613447565b604051602081830303815290604052905060006114fd876122a1565b6115188a600161150e8a600a613e26565b6114c49190613e26565b6115278b6114c460058c613df3565b8660405160200161153b94939291906134d0565b604051602081830303815290604052905087828260405160200161156193929190612cf7565b60405160208183030381529060405297505050505050611582565b50611584565b505b8061158e81613ea4565b915050611257565b5061159f612942565b6115ad6114b060b487613ebf565b600f80546115bc600289613df3565b6115c69190613ebf565b815481106115e457634e487b7160e01b600052603260045260246000fd5b90600052602060002001600f8080549050886116009190613ebf565b8154811061161e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160405160200161163a93929190612f68565b60408051808303601f19018152919052815261165585610748565b15611685578160405160200161166b9190612dfd565b60408051808303601f1901815291905260208201526116ac565b816040516020016116969190612da5565b60408051808303601f1901815291905260208201525b601080546116ba9087613ebf565b815481106116d857634e487b7160e01b600052603260045260246000fd5b906000526020600020016040516020016116f29190612dcd565b60408051808303601f190181529181528281019190915280516101408101909152610117808252613f41602083013960608201908152604080518082018252600e81526d1e17b39f1e17b39f1e17b9bb339f60911b6020808301919091526080850182905284518186015184870151955194516117789692959194929391929101612d3a565b6040516020818303038152906040529350505050919050565b6117a261179c611da1565b83611e13565b6117be5760405162461bcd60e51b81526004016105c890613bf9565b6117ca848484846123bc565b50505050565b60606117db82611d84565b6117f75760405162461bcd60e51b81526004016105c890613cc5565b600061183b611805846122a1565b6118166118118661124f565b6123ef565b604051602001611827929190613336565b6040516020818303038152906040526123ef565b90508060405160200161184e9190612f23565b604051602081830303815290604052915050919050565b600061187082611d84565b61188c5760405162461bcd60e51b81526004016105c890613cc5565b6000828152600c6020526040902060020154610190906118ac9043613e26565b6118b69190613df3565b6000838152600c6020526040902060040154610507919062010000900460ff16613db6565b600081600114156118f257506001821b83176118fb565b506001821b1983165b9392505050565b600061190d82611d84565b6119295760405162461bcd60e51b81526004016105c890613cc5565b6000828152600c6020526040902060010154610190906119499043613e26565b6119539190613df3565b6000838152600c60205260409020600401546105079190610100900460ff16613db6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006119b082611d84565b6119cc5760405162461bcd60e51b81526004016105c890613cc5565b6000828152600c6020526040902054610190906119e99043613e26565b6119f39190613df3565b6000838152600c6020526040902060040154610507919060ff16613db6565b611a1a611da1565b6001600160a01b0316611a2b61115c565b6001600160a01b031614611a515760405162461bcd60e51b81526004016105c890613ac4565b6001600160a01b038116611a775760405162461bcd60e51b81526004016105c8906136c3565b610be58161203b565b611a8981611d84565b611aa55760405162461bcd60e51b81526004016105c890613cc5565b611aad611da1565b6001600160a01b0316611abf82610acb565b6001600160a01b031614611ae55760405162461bcd60e51b81526004016105c890613861565b6000611af0826119a5565b11611b0d5760405162461bcd60e51b81526004016105c890613d49565b611b1681610748565b611b325760405162461bcd60e51b81526004016105c890613d1e565b6050611b3d82611865565b10611b5a5760405162461bcd60e51b81526004016105c890613cf1565b6050611b6582611902565b10611b825760405162461bcd60e51b81526004016105c8906137de565b6000611b8d826119a5565b11611baa5760405162461bcd60e51b81526004016105c890613d49565b6000818152600c60205260409020438155600401805460ff1916808255600a9190600290611be290849062010000900460ff16613dce565b92506101000a81548160ff021916908360ff1602179055506003600c600083815260200190815260200160002060040160018282829054906101000a900460ff16610ddc9190613dce565b611c3681611d84565b611c525760405162461bcd60e51b81526004016105c890613cc5565b611c5a611da1565b6001600160a01b0316611c6c82610acb565b6001600160a01b031614611c925760405162461bcd60e51b81526004016105c890613861565b611c9b81610748565b611cb75760405162461bcd60e51b81526004016105c890613d1e565b6050611cc282611902565b10611cdf5760405162461bcd60e51b81526004016105c8906139dd565b6000611cea82610efb565b11611d075760405162461bcd60e51b81526004016105c890613887565b6000818152600c60205260409020436003820155600401805463ff000000191680825560059190600190610ddc908490610100900460ff16613dce565b60006001600160e01b031982166380ac58cd60e01b1480611d7557506001600160e01b03198216635b5e139f60e01b145b80610507575061050782612563565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611dda82610acb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611e1e82611d84565b611e3a5760405162461bcd60e51b81526004016105c890613815565b6000611e4583610acb565b9050806001600160a01b0316846001600160a01b03161480611e805750836001600160a01b0316611e75846105a1565b6001600160a01b0316145b80611e905750611e908185611977565b949350505050565b826001600160a01b0316611eab82610acb565b6001600160a01b031614611ed15760405162461bcd60e51b81526004016105c890613b24565b6001600160a01b038216611ef75760405162461bcd60e51b81526004016105c890613740565b611f0283838361257c565b611f0d600082611da5565b6001600160a01b0383166000908152600460205260408120805460019290611f36908490613e26565b90915550506001600160a01b0382166000908152600460205260408120805460019290611f64908490613db6565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0383166000908152600d602052604081208054839290611fed908490613db6565b9250508190555081836001600160a01b03167f8f003bb46f63cce38b799e7346726847b8221a9cc9875391339612dab22d532d8360405161202e9190613da1565b60405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166120b15760405162461bcd60e51b81526004016105c890613a43565b6120ba81611d84565b156120d75760405162461bcd60e51b81526004016105c890613709565b6120e36000838361257c565b6001600160a01b038216600090815260046020526040812080546001929061210c908490613db6565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080600584101561217d57600061218c565b61218c856103f9600587613e26565b90506000602c8511156121a05760006121af565b6121af866103f9876005613db6565b9050600080861180156121c157508415155b6121cc5760006121db565b6121db876103f9600189613e26565b905060006031871080156121f0575085600414155b6121fb57600061220a565b61220a886103f9896001613db6565b905080826122188587613db6565b6122229190613db6565b61222c9190613db6565b98975050505050505050565b6000815183511461224b57506000610742565b8160405160200161225c9190612cdb565b60405160208183030381529060405280519060200120836040516020016122839190612cdb565b60405160208183030381529060405280519060200120149050610742565b6060816122c657506040805180820190915260018152600360fc1b602082015261050a565b8160005b81156122f057806122da81613ea4565b91506122e99050600a83613df3565b91506122ca565b60008167ffffffffffffffff81111561231957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612343576020820181803683370190505b5090505b8415611e9057612358600183613e26565b9150612365600a86613ebf565b612370906030613db6565b60f81b81838151811061239357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506123b5600a86613df3565b9450612347565b6123c7848484611e98565b6123d384848484612605565b6117ca5760405162461bcd60e51b81526004016105c890613671565b80516060908061240f57505060408051602081019091526000815261050a565b6000600361241e836002613db6565b6124289190613df3565b612433906004613e07565b90506000612442826020613db6565b67ffffffffffffffff81111561246857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612492576020820181803683370190505b5090506000604051806060016040528060408152602001614058604091399050600181016020830160005b8681101561251e576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016124bd565b506003860660018114612538576002811461254957612555565b613d3d60f01b600119830152612555565b603d60f81b6000198301525b505050918152949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b612587838383610680565b6001600160a01b0383166125a35761259e81612720565b6125c6565b816001600160a01b0316836001600160a01b0316146125c6576125c68382612764565b6001600160a01b0382166125e2576125dd81612801565b610680565b826001600160a01b0316826001600160a01b0316146106805761068082826128da565b6000612619846001600160a01b031661291e565b1561271557836001600160a01b031663150b7a02612635611da1565b8786866040518563ffffffff1660e01b8152600401612657949392919061359a565b602060405180830381600087803b15801561267157600080fd5b505af19250505080156126a1575060408051601f3d908101601f1916820190925261269e91810190612b61565b60015b6126fb573d8080156126cf576040519150601f19603f3d011682016040523d82523d6000602084013e6126d4565b606091505b5080516126f35760405162461bcd60e51b81526004016105c890613671565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e90565b506001949350505050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6000600161277184610dff565b61277b9190613e26565b6000838152600860205260409020549091508082146127ce576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061281390600190613e26565b6000838152600a60205260408120546009805493945090928490811061284957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061287857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806128be57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006128e583610dff565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b3b151590565b6040518060a001604052806005906020820280368337509192915050565b6040518060a001604052806005905b60608152602001906001900390816129515790505090565b60006020828403121561297a578081fd5b81356118fb81613f15565b600060208284031215612996578081fd5b81516118fb81613f15565b600080604083850312156129b3578081fd5b82356129be81613f15565b915060208301356129ce81613f15565b809150509250929050565b6000806000606084860312156129ed578081fd5b83356129f881613f15565b92506020840135612a0881613f15565b929592945050506040919091013590565b60008060008060808587031215612a2e578081fd5b8435612a3981613f15565b9350602085810135612a4a81613f15565b935060408601359250606086013567ffffffffffffffff80821115612a6d578384fd5b818801915088601f830112612a80578384fd5b813581811115612a9257612a92613eff565b604051601f8201601f1916810185018381118282101715612ab557612ab5613eff565b60405281815283820185018b1015612acb578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612afb578182fd5b8235612b0681613f15565b9150602083013580151581146129ce578182fd5b60008060408385031215612b2c578182fd5b8235612b3781613f15565b946020939093013593505050565b600060208284031215612b56578081fd5b81356118fb81613f2a565b600060208284031215612b72578081fd5b81516118fb81613f2a565b600060208284031215612b8e578081fd5b5035919050565b60008060408385031215612ba7578182fd5b50508035926020909101359150565b600080600060608486031215612bca578283fd5b505081359360208301359350604090920135919050565b60008151808452612bf9816020860160208601613e3d565b601f01601f19169290920160200192915050565b805460009060028104600180831680612c2757607f831692505b6020808410821415612c4757634e487b7160e01b86526022600452602486fd5b818015612c5b5760018114612c6c57612c99565b60ff19861689528489019650612c99565b612c7588613daa565b60005b86811015612c915781548b820152908501908301612c78565b505084890196505b50505050505092915050565b7f222077696474683d223522206865696768743d223522207374796c653d2266698152636c6c3a2360e01b602082015260240190565b60008251612ced818460208701613e3d565b9190910192915050565b60008451612d09818460208901613e3d565b845190830190612d1d818360208901613e3d565b8451910190612d30818360208801613e3d565b0195945050505050565b60008651612d4c818460208b01613e3d565b865190830190612d60818360208b01613e3d565b8651910190612d73818360208a01613e3d565b8551910190612d86818360208901613e3d565b8451910190612d99818360208801613e3d565b01979650505050505050565b60008251612db7818460208701613e3d565b631e17b39f60e11b920191825250600401919050565b681e33903334b6361e9160b91b81526000612deb6009830184612c0d565b61111f60f11b81526002019392505050565b60007f3c616e696d6174655472616e73666f726d20786d6c6e733d22687474703a2f2f82527f7777772e77332e6f72672f323030302f73766722206174747269627574654e6160208301527f6d653d227472616e73666f726d2220617474726962757465547970653d22584d60408301527f4c2220747970653d227472616e736c61746522206475723d222e39732220726560608301527f70656174436f756e743d22696e646566696e69746522206175746f526576657260808301527f73653d2274727565222076616c7565733d223830203132353b2038302031323260a08301526b1d901c181018991a9d91179f60a11b60c08301528251612f088160cc850160208701613e3d565b631e17b39f60e11b60cc93909101928301525060d001919050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612f5b81601d850160208701613e3d565b91909101601d0192915050565b60007f3c7376672066696c6c3d222346464622206865696768743d223237302220766982527f6577426f783d223020302032313020323730222077696474683d22323130222060208301527f786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737660408301527f67223e20203c646566733e3c6c696e6561724772616469656e742069643d226760608301527f22206772616469656e745472616e73666f726d3d22726f7461746528000000006080830152845161303881609c850160208901613e3d565b7f29223e3c73746f70206f66667365743d22352522202073746f702d636f6c6f72609c91840191820152611e9160f11b60bc82015261307a60be820186612c0d565b7f22202f3e3c73746f70206f66667365743d22393525222073746f702d636f6c6f815262391e9160e91b602082015290506130b86023820185612c0d565b7f22202f3e3c2f6c696e6561724772616469656e743e3c2f646566733e3c673e3c81527f726563742077696474683d2232313022206865696768743d22323730223e3c2f60208201527f726563743e3c706174682066696c6c3d2275726c282367292220643d226d313060408201527f3520306331302e3220302031382e3920382e342031382e362031382e3620302060608201527f322e312d2e3320342e322d2e3920362034392e352031322038372e332037322e60808201527f392038372e33203134362e3420302035342e362d34372e312039392d3130352060a08201527f3939732d3130352d34342e342d3130352d393963302d37332e352033372e382d60c08201527f3133342e342038372d3134362e312d2e362d312e382d2e392d332e392d2e392d60e08201527f3620302d31302e3520382e372d31382e392031382e392d31382e397a6d3435206101008201527f39372e35682d3930632d342e3220302d372e3520332e332d372e3520372e35766101208201527f3930633020342e3220332e3320372e3520372e3520372e3568393063342e32206101408201527f3020372e352d332e3320372e352d372e35762d393063302d342e322d332e332d6101608201527f372e352d372e352d372e357a6d2d34352d38362e31632d342e3220302d372e356101808201527f20332e332d372e3520372e3573332e3320372e3520372e3520372e3520372e356101a08201527f2d332e3320372e352d372e352d332e332d372e352d372e352d372e357a222f3e6101c08201527f3c67207472616e73666f726d3d227472616e736c6174652838302031323529226101e0820152601f60f91b610200820152610201019695505050505050565b747b226e616d65223a2022476c79706820506574202360581b81528251600090613367816015850160208801613e3d565b7f222c20226261636b67726f756e645f636f6c6f72223a2022464646464646222c6015918401918201527f20226465736372697074696f6e223a2022476c7970682050657473206172652060358201527f7669727475616c2070657473206c6976696e67206f6e2074686520626c6f636b60558201527f636861696e2e222c2022696d616765223a2022646174613a696d6167652f737660758201526c19cade1b5b0ed8985cd94d8d0b609a1b6095820152835161342c8160a2840160208801613e3d565b61227d60f01b60a2929091019182015260a401949350505050565b681e3932b1ba103c1e9160b91b8152835160009061346c816009850160208901613e3d565b6411103c9e9160d91b600991840191820152845161349181600e840160208901613e3d565b61349f600e82840101612ca5565b91505083516134b2818360208801613e3d565b68111f1e17b932b1ba1f60b91b910190815260090195945050505050565b6e1e3932b1ba103230ba3096b4b21e9160891b815284516000906134fb81600f850160208a01613e3d565b6411103c1e9160d91b600f918401918201528551613520816014840160208a01613e3d565b6411103c9e9160d91b601492909101918201528451613546816019840160208901613e3d565b613554601982840101612ca5565b9150508351613567818360208801613e3d565b68111f1e17b932b1ba1f60b91b91019081526009019695505050505050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135cd90830184612be1565b9695505050505050565b60a08101818360005b60058110156135ff5781518352602092830192909101906001016135e0565b50505092915050565b901515815260200190565b6000602082526118fb6020830184612be1565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600990820152681b9bdd081bdddb995960ba1b604082015260600190565b6020808252601b908201527f696d206665656c696e6720746f6f2067726f737320746f206561740000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600c908201526b1b9bdd081e5bdd5c881c195d60a21b604082015260600190565b602080825260159082015274696d206e6f74206665656c696e6720736c6565707960581b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252601c908201527f696d206665656c696e6720746f6f2067726f737320746f20706c617900000000604082015260600190565b6020808252601d908201527f696d206665656c696e6720746f6f2067726f737320746f20736c656570000000604082015260600190565b602080825260159082015274696d20746f6f20736c6565707920746f20706c617960581b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601190820152706920646f6e742077616e6e6120706c617960781b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b602080825260079082015266696e20706c617960c81b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526010908201526f1d1bdad95b881a59081a5b9d985b1a5960821b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b602080825260159082015274696d20746f6f2068756e67727920746f20706c617960581b604082015260600190565b6020808252601290820152711c195d08191bd95cc81b9bdd08195e1a5cdd60721b604082015260600190565b6020808252601390820152721a5b481d1bdbc81d1a5c9959081d1bc819585d606a1b604082015260600190565b6020808252601190820152706e6f206c6f6e676572207769746820757360781b604082015260600190565b6020808252601290820152711a48191bdb9d081b995959081d1bc819585d60721b604082015260600190565b6020808252601290820152710d240c8dedce840dccacac840c240c4c2e8d60731b604082015260600190565b90815260200190565b60009081526020902090565b60008219821115613dc957613dc9613ed3565b500190565b600060ff821660ff84168060ff03821115613deb57613deb613ed3565b019392505050565b600082613e0257613e02613ee9565b500490565b6000816000190483118215151615613e2157613e21613ed3565b500290565b600082821015613e3857613e38613ed3565b500390565b60005b83811015613e58578181015183820152602001613e40565b838111156117ca5750506000910152565b600281046001821680613e7d57607f821691505b60208210811415613e9e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613eb857613eb8613ed3565b5060010190565b600082613ece57613ece613ee9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610be557600080fd5b6001600160e01b031981168114610be557600080fdfe3c7061746820643d226d3735203234372e35632d342e3220302d372e352d332e332d372e352d372e3573332e332d372e3520372e352d372e3520372e3520332e3320372e3520372e352d332e3320372e352d372e3520372e357a222f3e3c7061746820643d226d31303520323535632d342e3220302d372e352d332e332d372e352d372e3573332e332d372e3520372e352d372e3520372e3520332e3320372e3520372e352d332e3320372e352d372e3520372e357a222f3e3c7061746820643d226d313335203234372e35632d342e3220302d372e352d332e332d372e352d372e3573332e332d372e3520372e352d372e3520372e3520332e3320372e3520372e352d332e3320372e352d372e3520372e357a222f3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220da766b8cb454d9ae3a1484d26792640797db08541cbfa32527e0c826c245059564736f6c634300080000330000000000000000000000008b7f316b8b771d7cb82192ef189ce5e3c29af532
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80637b30396511610125578063c87b56dd116100ad578063e985e9c51161007c578063e985e9c514610483578063f2e7dd3014610496578063f2fde38b146104a9578063f59dfdfb146104bc578063fa9d8713146104cf5761021c565b8063c87b56dd14610437578063c9d4f8001461044a578063caebe85e1461045d578063e5fa1973146104705761021c565b806395d89b41116100f457806395d89b41146103e3578063995e9228146103eb578063a22cb465146103fe578063b0dc78fa14610411578063b88d4fde146104245761021c565b80637b303965146103955780637c3403cf146103b55780638588b2c5146103c85780638da5cb5b146103db5761021c565b80633684b4a6116101a85780636352211e116101775780636352211e14610341578063674ef0fa146103545780636898f82b1461036757806370a082311461037a578063715018a61461038d5761021c565b80633684b4a6146102f557806342842e0e146103085780634f6ccce71461031b5780635c622a0e1461032e5761021c565b806318160ddd116101ef57806318160ddd146102945780631ef16048146102a957806323b872dd146102bc5780632f745c59146102cf578063344c9c70146102e25761021c565b806301ffc9a71461022157806306fdde031461024a578063081812fc1461025f578063095ea7b31461027f575b600080fd5b61023461022f366004612b45565b6104e2565b6040516102419190613608565b60405180910390f35b61025261050f565b6040516102419190613613565b61027261026d366004612b7d565b6105a1565b6040516102419190613586565b61029261028d366004612b1a565b6105ed565b005b61029c610685565b6040516102419190613da1565b6102346102b7366004612b7d565b61068b565b6102926102ca3660046129d9565b6106bb565b61029c6102dd366004612b1a565b6106f3565b6102346102f0366004612b7d565b610748565b61029c610303366004612969565b6107bc565b6102926103163660046129d9565b6107ce565b61029c610329366004612b7d565b6107e9565b61025261033c366004612b7d565b610844565b61027261034f366004612b7d565b610acb565b610292610362366004612b7d565b610b00565b610292610375366004612b7d565b610be8565b61029c610388366004612969565b610dff565b610292610e43565b6103a86103a3366004612b7d565b610e8e565b60405161024191906135d7565b61029c6103c3366004612b7d565b610efb565b61029c6103d6366004612b7d565b610f72565b61027261115c565b61025261116b565b61029c6103f9366004612b95565b61117a565b61029261040c366004612ae9565b611181565b61025261041f366004612b7d565b61124f565b610292610432366004612a19565b611791565b610252610445366004612b7d565b6117d0565b61029c610458366004612b7d565b611865565b61029c61046b366004612bb6565b6118db565b61029c61047e366004612b7d565b611902565b6102346104913660046129a1565b611977565b61029c6104a4366004612b7d565b6119a5565b6102926104b7366004612969565b611a12565b6102926104ca366004612b7d565b611a80565b6102926104dd366004612b7d565b611c2d565b60006001600160e01b0319821663780e9d6360e01b1480610507575061050782611d44565b90505b919050565b60606001805461051e90613e69565b80601f016020809104026020016040519081016040528092919081815260200182805461054a90613e69565b80156105975780601f1061056c57610100808354040283529160200191610597565b820191906000526020600020905b81548152906001019060200180831161057a57829003601f168201915b5050505050905090565b60006105ac82611d84565b6105d15760405162461bcd60e51b81526004016105c890613a78565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006105f882610acb565b9050806001600160a01b0316836001600160a01b0316141561062c5760405162461bcd60e51b81526004016105c890613b8e565b806001600160a01b031661063e611da1565b6001600160a01b0316148061065a575061065a81610491611da1565b6106765760405162461bcd60e51b81526004016105c8906138b6565b6106808383611da5565b505050565b60095490565b600061069682611d84565b6106b25760405162461bcd60e51b81526004016105c890613bcf565b61050782610748565b6106cc6106c6611da1565b82611e13565b6106e85760405162461bcd60e51b81526004016105c890613bf9565b610680838383611e98565b60006106fe83610dff565b821061071c5760405162461bcd60e51b81526004016105c890613626565b506001600160a01b03821660009081526007602090815260408083208484529091529020545b92915050565b600061075382611d84565b61076f5760405162461bcd60e51b81526004016105c890613cc5565b606561077a836119a5565b10801561078f5750606561078d83611902565b105b80156107a3575060656107a183611865565b105b8015610507575060656107b583610efb565b1092915050565b600d6020526000908152604090205481565b61068083838360405180602001604052806000815250611791565b60006107f3610685565b82106108115760405162461bcd60e51b81526004016105c890613c4a565b6009828154811061083257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b606061084f82611d84565b61086b5760405162461bcd60e51b81526004016105c890613cc5565b6040805160e081018252600260a0820190815261676d60f01b60c0830152815281518083018352601081526f1a5b481999595b1a5b99c819dc99585d60821b60208281019190915280830191909152825180840184526006815265776520676d6960d01b818301528284015282518084018452600880825267185b1b0819dbdbd960c21b828401526060840191909152835180850190945283526769206c6f7665207560c01b908301526080810191909152600090818161092d600543613ebf565b6005811061094b57634e487b7160e01b600052603260045260246000fd5b60200201519050600061095d866119a5565b9050600061096a87611902565b9050600061097788611865565b9050600061098489610efb565b905061098f89610748565b6109cb57604051806040016040528060118152602001706e6f206c6f6e676572207769746820757360781b81525097505050505050505061050a565b6032841180156109da57508684115b15610a075783965060405180604001604052806009815260200168696d2068756e67727960b81b81525094505b603283118015610a1657508683115b15610a47578296506040518060400160405280600d81526020016c0d240dccacac840c240c4c2e8d609b1b81525094505b603282118015610a5657508682115b15610a8257819650604051806040016040528060088152602001671a5b48189bdc995960c21b81525094505b603281118015610a9157508681115b15610abe5780965060405180604001604052806009815260200168696d20736c6565707960b81b81525094505b5092979650505050505050565b6000818152600360205260408120546001600160a01b0316806105075760405162461bcd60e51b81526004016105c89061395d565b610b0981611d84565b610b255760405162461bcd60e51b81526004016105c890613cc5565b610b2d611da1565b6001600160a01b0316610b3f82610acb565b6001600160a01b031614610b655760405162461bcd60e51b81526004016105c890613861565b610b6e81610748565b610b8a5760405162461bcd60e51b81526004016105c890613d1e565b6000610b9582611902565b11610bb25760405162461bcd60e51b81526004016105c890613d75565b6000818152600c60205260409020436001820155600401805461ff0019169055610be5610bdd611da1565b826001611fc5565b50565b610bf181611d84565b610c0d5760405162461bcd60e51b81526004016105c890613cc5565b610c15611da1565b6001600160a01b0316610c2782610acb565b6001600160a01b031614610c4d5760405162461bcd60e51b81526004016105c890613861565b610c5681610748565b610c725760405162461bcd60e51b81526004016105c890613d1e565b6050610c7d826119a5565b10610c9a5760405162461bcd60e51b81526004016105c890613c96565b6050610ca582610efb565b10610cc25760405162461bcd60e51b81526004016105c890613a14565b6050610ccd82611902565b10610cea5760405162461bcd60e51b81526004016105c8906139a6565b6000610cf582611865565b11610d125760405162461bcd60e51b81526004016105c890613af9565b6000818152600c60205260408120436002820155600401805462ff00001981168255600a9290610d4690849060ff16613dce565b92506101000a81548160ff021916908360ff160217905550600a600c600083815260200190815260200160002060040160038282829054906101000a900460ff16610d919190613dce565b92506101000a81548160ff021916908360ff1602179055506005600c600083815260200190815260200160002060040160018282829054906101000a900460ff16610ddc9190613dce565b92506101000a81548160ff021916908360ff160217905550610be5610bdd611da1565b60006001600160a01b038216610e275760405162461bcd60e51b81526004016105c890613913565b506001600160a01b031660009081526004602052604090205490565b610e4b611da1565b6001600160a01b0316610e5c61115c565b6001600160a01b031614610e825760405162461bcd60e51b81526004016105c890613ac4565b610e8c600061203b565b565b610e96612924565b6040518060a00160405280610eaa84610748565b610eb5576000610eb8565b60015b60ff168152602001610ec9846119a5565b8152602001610ed784611902565b8152602001610ee584611865565b8152602001610ef384610efb565b905292915050565b6000610f0682611d84565b610f225760405162461bcd60e51b81526004016105c890613cc5565b6000828152600c602052604090206003015461019090610f429043613e26565b610f4c9190613df3565b6000838152600c602052604090206004015461050791906301000000900460ff16613db6565b600080610f7e83611d84565b90508015610fcd57610f8f83610748565b158015610fac575033610fa184610acb565b6001600160a01b0316145b610fc85760405162461bcd60e51b81526004016105c890613b6d565b61107f565b610fd5611da1565b600e546040516331a9108f60e11b81526001600160a01b039283169290911690636352211e90611009908790600401613da1565b60206040518083038186803b15801561102157600080fd5b505afa158015611035573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110599190612985565b6001600160a01b03161461107f5760405162461bcd60e51b81526004016105c8906137bb565b6040805161010080820183524380835260208084018281528486018381526060860193845260006080870181815260a0880182815260c0890183815260e08a018481528e8552600c9097529990922097518855925160018801559051600287015592516003860155516004909401805492519551915160ff1990931660ff9586161761ff0019169585169093029490941762ff0000191662010000948416949094029390931763ff000000191663010000009290931691909102919091179055806111555761115561114f611da1565b8461208b565b5090919050565b6000546001600160a01b031690565b60606002805461051e90613e69565b1c60011690565b611189611da1565b6001600160a01b0316826001600160a01b031614156111ba5760405162461bcd60e51b81526004016105c890613784565b80600660006111c7611da1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561120b611da1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112439190613608565b60405180910390a35050565b606060058160005b603281101561159657600061126d600583613df3565b611278906005613e07565b6112829083613e26565b905061128e868361117a565b6001141561129c5750611584565b60006112a987848461216a565b111561157c5760408051808201825260068082526519a11923192360d11b60208084018290528451808601909552918452908301529060006112ea89610844565b90506112f589610748565b61132057604051806040016040528060048152602001631111505160e21b81525092508291506114a1565b61134b8160405180604001604052806009815260200168696d2068756e67727960b81b815250612238565b15611397576040518060400160405280600681526020016504535324235360d41b81525092506040518060400160405280600681526020016504646424630360d41b81525091506114a1565b6113c6816040518060400160405280600d81526020016c0d240dccacac840c240c4c2e8d609b1b815250612238565b156113f4576040518060400160405280600681526020016503946383137360d41b81525092508291506114a1565b61141e81604051806040016040528060088152602001671a5b48189bdc995960c21b815250612238565b1561144c576040518060400160405280600681526020016523211b181ba360d11b81525092508291506114a1565b6114778160405180604001604052806009815260200168696d20736c6565707960b81b815250612238565b156114a157604051806040016040528060068152602001651c209921229960d11b81525092508291505b60006114b56114b08987613e07565b6122a1565b6114ce896114c460058a613df3565b6114b09190613e07565b856040516020016114e193929190613447565b604051602081830303815290604052905060006114fd876122a1565b6115188a600161150e8a600a613e26565b6114c49190613e26565b6115278b6114c460058c613df3565b8660405160200161153b94939291906134d0565b604051602081830303815290604052905087828260405160200161156193929190612cf7565b60405160208183030381529060405297505050505050611582565b50611584565b505b8061158e81613ea4565b915050611257565b5061159f612942565b6115ad6114b060b487613ebf565b600f80546115bc600289613df3565b6115c69190613ebf565b815481106115e457634e487b7160e01b600052603260045260246000fd5b90600052602060002001600f8080549050886116009190613ebf565b8154811061161e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160405160200161163a93929190612f68565b60408051808303601f19018152919052815261165585610748565b15611685578160405160200161166b9190612dfd565b60408051808303601f1901815291905260208201526116ac565b816040516020016116969190612da5565b60408051808303601f1901815291905260208201525b601080546116ba9087613ebf565b815481106116d857634e487b7160e01b600052603260045260246000fd5b906000526020600020016040516020016116f29190612dcd565b60408051808303601f190181529181528281019190915280516101408101909152610117808252613f41602083013960608201908152604080518082018252600e81526d1e17b39f1e17b39f1e17b9bb339f60911b6020808301919091526080850182905284518186015184870151955194516117789692959194929391929101612d3a565b6040516020818303038152906040529350505050919050565b6117a261179c611da1565b83611e13565b6117be5760405162461bcd60e51b81526004016105c890613bf9565b6117ca848484846123bc565b50505050565b60606117db82611d84565b6117f75760405162461bcd60e51b81526004016105c890613cc5565b600061183b611805846122a1565b6118166118118661124f565b6123ef565b604051602001611827929190613336565b6040516020818303038152906040526123ef565b90508060405160200161184e9190612f23565b604051602081830303815290604052915050919050565b600061187082611d84565b61188c5760405162461bcd60e51b81526004016105c890613cc5565b6000828152600c6020526040902060020154610190906118ac9043613e26565b6118b69190613df3565b6000838152600c6020526040902060040154610507919062010000900460ff16613db6565b600081600114156118f257506001821b83176118fb565b506001821b1983165b9392505050565b600061190d82611d84565b6119295760405162461bcd60e51b81526004016105c890613cc5565b6000828152600c6020526040902060010154610190906119499043613e26565b6119539190613df3565b6000838152600c60205260409020600401546105079190610100900460ff16613db6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006119b082611d84565b6119cc5760405162461bcd60e51b81526004016105c890613cc5565b6000828152600c6020526040902054610190906119e99043613e26565b6119f39190613df3565b6000838152600c6020526040902060040154610507919060ff16613db6565b611a1a611da1565b6001600160a01b0316611a2b61115c565b6001600160a01b031614611a515760405162461bcd60e51b81526004016105c890613ac4565b6001600160a01b038116611a775760405162461bcd60e51b81526004016105c8906136c3565b610be58161203b565b611a8981611d84565b611aa55760405162461bcd60e51b81526004016105c890613cc5565b611aad611da1565b6001600160a01b0316611abf82610acb565b6001600160a01b031614611ae55760405162461bcd60e51b81526004016105c890613861565b6000611af0826119a5565b11611b0d5760405162461bcd60e51b81526004016105c890613d49565b611b1681610748565b611b325760405162461bcd60e51b81526004016105c890613d1e565b6050611b3d82611865565b10611b5a5760405162461bcd60e51b81526004016105c890613cf1565b6050611b6582611902565b10611b825760405162461bcd60e51b81526004016105c8906137de565b6000611b8d826119a5565b11611baa5760405162461bcd60e51b81526004016105c890613d49565b6000818152600c60205260409020438155600401805460ff1916808255600a9190600290611be290849062010000900460ff16613dce565b92506101000a81548160ff021916908360ff1602179055506003600c600083815260200190815260200160002060040160018282829054906101000a900460ff16610ddc9190613dce565b611c3681611d84565b611c525760405162461bcd60e51b81526004016105c890613cc5565b611c5a611da1565b6001600160a01b0316611c6c82610acb565b6001600160a01b031614611c925760405162461bcd60e51b81526004016105c890613861565b611c9b81610748565b611cb75760405162461bcd60e51b81526004016105c890613d1e565b6050611cc282611902565b10611cdf5760405162461bcd60e51b81526004016105c8906139dd565b6000611cea82610efb565b11611d075760405162461bcd60e51b81526004016105c890613887565b6000818152600c60205260409020436003820155600401805463ff000000191680825560059190600190610ddc908490610100900460ff16613dce565b60006001600160e01b031982166380ac58cd60e01b1480611d7557506001600160e01b03198216635b5e139f60e01b145b80610507575061050782612563565b6000908152600360205260409020546001600160a01b0316151590565b3390565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611dda82610acb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611e1e82611d84565b611e3a5760405162461bcd60e51b81526004016105c890613815565b6000611e4583610acb565b9050806001600160a01b0316846001600160a01b03161480611e805750836001600160a01b0316611e75846105a1565b6001600160a01b0316145b80611e905750611e908185611977565b949350505050565b826001600160a01b0316611eab82610acb565b6001600160a01b031614611ed15760405162461bcd60e51b81526004016105c890613b24565b6001600160a01b038216611ef75760405162461bcd60e51b81526004016105c890613740565b611f0283838361257c565b611f0d600082611da5565b6001600160a01b0383166000908152600460205260408120805460019290611f36908490613e26565b90915550506001600160a01b0382166000908152600460205260408120805460019290611f64908490613db6565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0383166000908152600d602052604081208054839290611fed908490613db6565b9250508190555081836001600160a01b03167f8f003bb46f63cce38b799e7346726847b8221a9cc9875391339612dab22d532d8360405161202e9190613da1565b60405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166120b15760405162461bcd60e51b81526004016105c890613a43565b6120ba81611d84565b156120d75760405162461bcd60e51b81526004016105c890613709565b6120e36000838361257c565b6001600160a01b038216600090815260046020526040812080546001929061210c908490613db6565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080600584101561217d57600061218c565b61218c856103f9600587613e26565b90506000602c8511156121a05760006121af565b6121af866103f9876005613db6565b9050600080861180156121c157508415155b6121cc5760006121db565b6121db876103f9600189613e26565b905060006031871080156121f0575085600414155b6121fb57600061220a565b61220a886103f9896001613db6565b905080826122188587613db6565b6122229190613db6565b61222c9190613db6565b98975050505050505050565b6000815183511461224b57506000610742565b8160405160200161225c9190612cdb565b60405160208183030381529060405280519060200120836040516020016122839190612cdb565b60405160208183030381529060405280519060200120149050610742565b6060816122c657506040805180820190915260018152600360fc1b602082015261050a565b8160005b81156122f057806122da81613ea4565b91506122e99050600a83613df3565b91506122ca565b60008167ffffffffffffffff81111561231957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612343576020820181803683370190505b5090505b8415611e9057612358600183613e26565b9150612365600a86613ebf565b612370906030613db6565b60f81b81838151811061239357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506123b5600a86613df3565b9450612347565b6123c7848484611e98565b6123d384848484612605565b6117ca5760405162461bcd60e51b81526004016105c890613671565b80516060908061240f57505060408051602081019091526000815261050a565b6000600361241e836002613db6565b6124289190613df3565b612433906004613e07565b90506000612442826020613db6565b67ffffffffffffffff81111561246857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612492576020820181803683370190505b5090506000604051806060016040528060408152602001614058604091399050600181016020830160005b8681101561251e576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016124bd565b506003860660018114612538576002811461254957612555565b613d3d60f01b600119830152612555565b603d60f81b6000198301525b505050918152949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b612587838383610680565b6001600160a01b0383166125a35761259e81612720565b6125c6565b816001600160a01b0316836001600160a01b0316146125c6576125c68382612764565b6001600160a01b0382166125e2576125dd81612801565b610680565b826001600160a01b0316826001600160a01b0316146106805761068082826128da565b6000612619846001600160a01b031661291e565b1561271557836001600160a01b031663150b7a02612635611da1565b8786866040518563ffffffff1660e01b8152600401612657949392919061359a565b602060405180830381600087803b15801561267157600080fd5b505af19250505080156126a1575060408051601f3d908101601f1916820190925261269e91810190612b61565b60015b6126fb573d8080156126cf576040519150601f19603f3d011682016040523d82523d6000602084013e6126d4565b606091505b5080516126f35760405162461bcd60e51b81526004016105c890613671565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e90565b506001949350505050565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6000600161277184610dff565b61277b9190613e26565b6000838152600860205260409020549091508082146127ce576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061281390600190613e26565b6000838152600a60205260408120546009805493945090928490811061284957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061287857634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806128be57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006128e583610dff565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b3b151590565b6040518060a001604052806005906020820280368337509192915050565b6040518060a001604052806005905b60608152602001906001900390816129515790505090565b60006020828403121561297a578081fd5b81356118fb81613f15565b600060208284031215612996578081fd5b81516118fb81613f15565b600080604083850312156129b3578081fd5b82356129be81613f15565b915060208301356129ce81613f15565b809150509250929050565b6000806000606084860312156129ed578081fd5b83356129f881613f15565b92506020840135612a0881613f15565b929592945050506040919091013590565b60008060008060808587031215612a2e578081fd5b8435612a3981613f15565b9350602085810135612a4a81613f15565b935060408601359250606086013567ffffffffffffffff80821115612a6d578384fd5b818801915088601f830112612a80578384fd5b813581811115612a9257612a92613eff565b604051601f8201601f1916810185018381118282101715612ab557612ab5613eff565b60405281815283820185018b1015612acb578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215612afb578182fd5b8235612b0681613f15565b9150602083013580151581146129ce578182fd5b60008060408385031215612b2c578182fd5b8235612b3781613f15565b946020939093013593505050565b600060208284031215612b56578081fd5b81356118fb81613f2a565b600060208284031215612b72578081fd5b81516118fb81613f2a565b600060208284031215612b8e578081fd5b5035919050565b60008060408385031215612ba7578182fd5b50508035926020909101359150565b600080600060608486031215612bca578283fd5b505081359360208301359350604090920135919050565b60008151808452612bf9816020860160208601613e3d565b601f01601f19169290920160200192915050565b805460009060028104600180831680612c2757607f831692505b6020808410821415612c4757634e487b7160e01b86526022600452602486fd5b818015612c5b5760018114612c6c57612c99565b60ff19861689528489019650612c99565b612c7588613daa565b60005b86811015612c915781548b820152908501908301612c78565b505084890196505b50505050505092915050565b7f222077696474683d223522206865696768743d223522207374796c653d2266698152636c6c3a2360e01b602082015260240190565b60008251612ced818460208701613e3d565b9190910192915050565b60008451612d09818460208901613e3d565b845190830190612d1d818360208901613e3d565b8451910190612d30818360208801613e3d565b0195945050505050565b60008651612d4c818460208b01613e3d565b865190830190612d60818360208b01613e3d565b8651910190612d73818360208a01613e3d565b8551910190612d86818360208901613e3d565b8451910190612d99818360208801613e3d565b01979650505050505050565b60008251612db7818460208701613e3d565b631e17b39f60e11b920191825250600401919050565b681e33903334b6361e9160b91b81526000612deb6009830184612c0d565b61111f60f11b81526002019392505050565b60007f3c616e696d6174655472616e73666f726d20786d6c6e733d22687474703a2f2f82527f7777772e77332e6f72672f323030302f73766722206174747269627574654e6160208301527f6d653d227472616e73666f726d2220617474726962757465547970653d22584d60408301527f4c2220747970653d227472616e736c61746522206475723d222e39732220726560608301527f70656174436f756e743d22696e646566696e69746522206175746f526576657260808301527f73653d2274727565222076616c7565733d223830203132353b2038302031323260a08301526b1d901c181018991a9d91179f60a11b60c08301528251612f088160cc850160208701613e3d565b631e17b39f60e11b60cc93909101928301525060d001919050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612f5b81601d850160208701613e3d565b91909101601d0192915050565b60007f3c7376672066696c6c3d222346464622206865696768743d223237302220766982527f6577426f783d223020302032313020323730222077696474683d22323130222060208301527f786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737660408301527f67223e20203c646566733e3c6c696e6561724772616469656e742069643d226760608301527f22206772616469656e745472616e73666f726d3d22726f7461746528000000006080830152845161303881609c850160208901613e3d565b7f29223e3c73746f70206f66667365743d22352522202073746f702d636f6c6f72609c91840191820152611e9160f11b60bc82015261307a60be820186612c0d565b7f22202f3e3c73746f70206f66667365743d22393525222073746f702d636f6c6f815262391e9160e91b602082015290506130b86023820185612c0d565b7f22202f3e3c2f6c696e6561724772616469656e743e3c2f646566733e3c673e3c81527f726563742077696474683d2232313022206865696768743d22323730223e3c2f60208201527f726563743e3c706174682066696c6c3d2275726c282367292220643d226d313060408201527f3520306331302e3220302031382e3920382e342031382e362031382e3620302060608201527f322e312d2e3320342e322d2e3920362034392e352031322038372e332037322e60808201527f392038372e33203134362e3420302035342e362d34372e312039392d3130352060a08201527f3939732d3130352d34342e342d3130352d393963302d37332e352033372e382d60c08201527f3133342e342038372d3134362e312d2e362d312e382d2e392d332e392d2e392d60e08201527f3620302d31302e3520382e372d31382e392031382e392d31382e397a6d3435206101008201527f39372e35682d3930632d342e3220302d372e3520332e332d372e3520372e35766101208201527f3930633020342e3220332e3320372e3520372e3520372e3568393063342e32206101408201527f3020372e352d332e3320372e352d372e35762d393063302d342e322d332e332d6101608201527f372e352d372e352d372e357a6d2d34352d38362e31632d342e3220302d372e356101808201527f20332e332d372e3520372e3573332e3320372e3520372e3520372e3520372e356101a08201527f2d332e3320372e352d372e352d332e332d372e352d372e352d372e357a222f3e6101c08201527f3c67207472616e73666f726d3d227472616e736c6174652838302031323529226101e0820152601f60f91b610200820152610201019695505050505050565b747b226e616d65223a2022476c79706820506574202360581b81528251600090613367816015850160208801613e3d565b7f222c20226261636b67726f756e645f636f6c6f72223a2022464646464646222c6015918401918201527f20226465736372697074696f6e223a2022476c7970682050657473206172652060358201527f7669727475616c2070657473206c6976696e67206f6e2074686520626c6f636b60558201527f636861696e2e222c2022696d616765223a2022646174613a696d6167652f737660758201526c19cade1b5b0ed8985cd94d8d0b609a1b6095820152835161342c8160a2840160208801613e3d565b61227d60f01b60a2929091019182015260a401949350505050565b681e3932b1ba103c1e9160b91b8152835160009061346c816009850160208901613e3d565b6411103c9e9160d91b600991840191820152845161349181600e840160208901613e3d565b61349f600e82840101612ca5565b91505083516134b2818360208801613e3d565b68111f1e17b932b1ba1f60b91b910190815260090195945050505050565b6e1e3932b1ba103230ba3096b4b21e9160891b815284516000906134fb81600f850160208a01613e3d565b6411103c1e9160d91b600f918401918201528551613520816014840160208a01613e3d565b6411103c9e9160d91b601492909101918201528451613546816019840160208901613e3d565b613554601982840101612ca5565b9150508351613567818360208801613e3d565b68111f1e17b932b1ba1f60b91b91019081526009019695505050505050565b6001600160a01b0391909116815260200190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135cd90830184612be1565b9695505050505050565b60a08101818360005b60058110156135ff5781518352602092830192909101906001016135e0565b50505092915050565b901515815260200190565b6000602082526118fb6020830184612be1565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600990820152681b9bdd081bdddb995960ba1b604082015260600190565b6020808252601b908201527f696d206665656c696e6720746f6f2067726f737320746f206561740000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600c908201526b1b9bdd081e5bdd5c881c195d60a21b604082015260600190565b602080825260159082015274696d206e6f74206665656c696e6720736c6565707960581b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252601c908201527f696d206665656c696e6720746f6f2067726f737320746f20706c617900000000604082015260600190565b6020808252601d908201527f696d206665656c696e6720746f6f2067726f737320746f20736c656570000000604082015260600190565b602080825260159082015274696d20746f6f20736c6565707920746f20706c617960581b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601190820152706920646f6e742077616e6e6120706c617960781b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b602080825260079082015266696e20706c617960c81b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526010908201526f1d1bdad95b881a59081a5b9d985b1a5960821b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b602080825260159082015274696d20746f6f2068756e67727920746f20706c617960581b604082015260600190565b6020808252601290820152711c195d08191bd95cc81b9bdd08195e1a5cdd60721b604082015260600190565b6020808252601390820152721a5b481d1bdbc81d1a5c9959081d1bc819585d606a1b604082015260600190565b6020808252601190820152706e6f206c6f6e676572207769746820757360781b604082015260600190565b6020808252601290820152711a48191bdb9d081b995959081d1bc819585d60721b604082015260600190565b6020808252601290820152710d240c8dedce840dccacac840c240c4c2e8d60731b604082015260600190565b90815260200190565b60009081526020902090565b60008219821115613dc957613dc9613ed3565b500190565b600060ff821660ff84168060ff03821115613deb57613deb613ed3565b019392505050565b600082613e0257613e02613ee9565b500490565b6000816000190483118215151615613e2157613e21613ed3565b500290565b600082821015613e3857613e38613ed3565b500390565b60005b83811015613e58578181015183820152602001613e40565b838111156117ca5750506000910152565b600281046001821680613e7d57607f821691505b60208210811415613e9e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613eb857613eb8613ed3565b5060010190565b600082613ece57613ece613ee9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610be557600080fd5b6001600160e01b031981168114610be557600080fdfe3c7061746820643d226d3735203234372e35632d342e3220302d372e352d332e332d372e352d372e3573332e332d372e3520372e352d372e3520372e3520332e3320372e3520372e352d332e3320372e352d372e3520372e357a222f3e3c7061746820643d226d31303520323535632d342e3220302d372e352d332e332d372e352d372e3573332e332d372e3520372e352d372e3520372e3520332e3320372e3520372e352d332e3320372e352d372e3520372e357a222f3e3c7061746820643d226d313335203234372e35632d342e3220302d372e352d332e332d372e352d372e3573332e332d372e3520372e352d372e3520372e3520332e3320372e3520372e352d332e3320372e352d372e3520372e357a222f3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220da766b8cb454d9ae3a1484d26792640797db08541cbfa32527e0c826c245059564736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008b7f316b8b771d7cb82192ef189ce5e3c29af532
-----Decoded View---------------
Arg [0] : lilGlyphAddress (address): 0x8B7F316B8B771d7Cb82192EF189cE5E3c29af532
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008b7f316b8b771d7cb82192ef189ce5e3c29af532
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.