ERC-721
Overview
Max Total Supply
100 WOLF
Holders
83
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 WOLFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LittleRedRidingHood
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @artist: TedsLittleDream /// @animator: Kenson /// @author: proteinNFT with WestCoastNFT and special thanks to Manifold import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./DateTime.sol"; bytes32 constant SUPPORT_ROLE = keccak256("SUPPORT"); struct range { uint256 min; uint256 max; } contract LittleRedRidingHood is ERC721Enumerable, AccessControl, ReentrancyGuard, DateTime { uint public constant MAX_PUBLIC_MINT = 15; uint public constant PRICE_PER_TOKEN = 0.3 ether; uint constant REDEMPTION_RATE = 3; uint constant REDEMPTION_MAX = 60; uint constant MAX_TOKENS = 100; using Strings for uint; using Strings for int; bool public burnIsActive; bool public saleIsActive; uint8 constant NUM_WEATHER_CONDITIONS = 6; uint8 constant NUM_SEASONS = 4; string private BASE_URI; enum WeatherCondition { Default, Flowers, Rain, Sun, Thunder, Cloudy, Snow, Blizzard } enum Season { Spring, Summer, Autumn, Winter } enum Hemisphere { Northern, Southern } mapping(Season => mapping(WeatherCondition => string)) private weatherConditionStrings; mapping(Season => string) private seasonStrings; mapping(Hemisphere => string) private hemisphereStrings; mapping(Season => mapping(WeatherCondition => uint8)) internal weights; mapping(uint => int) public offsets; mapping(uint => Hemisphere) public hemispheres; mapping(address => range[]) private _approvedTokenRange; constructor(string memory _baseURI) ERC721("Little Red Riding Hood v2", "WOLF") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(SUPPORT_ROLE, msg.sender); BASE_URI = _baseURI; weatherConditionStrings[Season.Spring][WeatherCondition.Default] = unicode"風和日麗"; weatherConditionStrings[Season.Spring][WeatherCondition.Flowers] = unicode"春暖花開"; weatherConditionStrings[Season.Spring][WeatherCondition.Rain] = unicode"和風細雨"; weatherConditionStrings[Season.Summer][WeatherCondition.Default] = unicode"鳥語蟬鳴"; weatherConditionStrings[Season.Summer][WeatherCondition.Sun] = unicode"赤日炎炎"; weatherConditionStrings[Season.Summer][WeatherCondition.Rain] = unicode"和風細雨"; weatherConditionStrings[Season.Summer][WeatherCondition.Thunder] = unicode"雷電交加"; weatherConditionStrings[Season.Autumn][WeatherCondition.Default] = unicode"秋色宜人"; weatherConditionStrings[Season.Autumn][WeatherCondition.Rain] = unicode"秋雨連綿 "; weatherConditionStrings[Season.Autumn][WeatherCondition.Cloudy] = unicode"雲霧迷濛"; weatherConditionStrings[Season.Winter][WeatherCondition.Default] = unicode"雪花如席"; weatherConditionStrings[Season.Winter][WeatherCondition.Snow] = unicode"雪飄如絮"; weatherConditionStrings[Season.Winter][WeatherCondition.Blizzard] = unicode"大雪紛飛"; seasonStrings[Season.Spring] = unicode"春"; seasonStrings[Season.Summer] = unicode"夏"; seasonStrings[Season.Autumn] = unicode"秋"; seasonStrings[Season.Winter] = unicode"冬"; hemisphereStrings[Hemisphere.Northern] = "Northern"; hemisphereStrings[Hemisphere.Southern] = "Southern"; weights[Season.Spring][WeatherCondition.Default] = 3; weights[Season.Spring][WeatherCondition.Flowers] = 1; weights[Season.Spring][WeatherCondition.Rain] = 2; weights[Season.Summer][WeatherCondition.Default] = 3; weights[Season.Summer][WeatherCondition.Sun] = 2; weights[Season.Summer][WeatherCondition.Rain] = 2; weights[Season.Summer][WeatherCondition.Thunder] = 1; weights[Season.Autumn][WeatherCondition.Default] = 2; weights[Season.Autumn][WeatherCondition.Rain] = 1; weights[Season.Autumn][WeatherCondition.Cloudy] = 1; weights[Season.Winter][WeatherCondition.Default] = 5; weights[Season.Winter][WeatherCondition.Snow] = 3; weights[Season.Winter][WeatherCondition.Blizzard] = 1; } function setBaseURI(string memory baseURI_) external onlyRole(SUPPORT_ROLE) { BASE_URI = baseURI_; } function setWeatherConditionString(Season season, WeatherCondition wc, string memory s) external onlyRole(SUPPORT_ROLE) { weatherConditionStrings[season][wc] = s; } function setSeasonString(Season season, string memory s) external onlyRole(SUPPORT_ROLE) { seasonStrings[season] = s; } function setHemisphereString(Hemisphere h, string memory s) external onlyRole(SUPPORT_ROLE) { hemisphereStrings[h] = s; } function setWeight(Season season, WeatherCondition wc, uint8 weight) external onlyRole(SUPPORT_ROLE) { weights[season][wc] = weight; } function validOffset(int offset) public pure returns(bool) { return (offset >= -14 && offset <= 14); } function setOffset(uint256 tokenId, int offset) public { require(msg.sender == ownerOf(tokenId), "Must be the token owner."); require(validOffset(offset), "Invalid offset"); offsets[tokenId] = offset; } function setHemisphere(uint256 tokenId, Hemisphere hemisphere) public { require(msg.sender == ownerOf(tokenId), "Must be the token owner."); hemispheres[tokenId] = hemisphere; } function randomInt(bytes memory seed, uint _modulus) public pure returns(uint) { return uint(keccak256(seed)) % _modulus; } function getSeed(uint month, uint day, uint year, uint256 tokenId) public pure returns(bytes memory) { return abi.encodePacked(month, day, year, tokenId); } function weightedRandom(bytes memory seed, mapping(WeatherCondition => uint8) storage weights_) internal view returns(WeatherCondition) { uint num_choices = 0; for(uint i = 0; i < NUM_WEATHER_CONDITIONS; i++) { num_choices += weights_[WeatherCondition(i)]; } uint rnd = randomInt(seed, num_choices); for(uint i = 0; i < NUM_WEATHER_CONDITIONS; i++) { if(rnd < weights_[WeatherCondition(i)]) { return WeatherCondition(i); } rnd -= weights_[WeatherCondition(i)]; } return(WeatherCondition.Sun); } function monthToSeason(Hemisphere hemisphere, uint8 month) public pure returns(Season) { if (hemisphere == Hemisphere.Northern) { if (month <= 2 || month == 12) return Season.Winter; if (month <= 5) return Season.Spring; if (month <= 8) return Season.Summer; return Season.Autumn; } else { if (month <= 2 || month == 12) return Season.Summer; if (month <= 5) return Season.Autumn; if (month <= 8) return Season.Winter; return Season.Spring; } } function getWeather(uint8 month, uint8 day, uint16 year, Season season, uint256 tokenId) public view returns(WeatherCondition) { return weightedRandom(getSeed(month, day, year, tokenId), weights[season]); } function currentSeason(uint256 tokenId) public view returns(Season) { return monthToSeason(hemispheres[tokenId], getMonth(block.timestamp)); } function currentWeather(uint256 tokenId) public view returns(WeatherCondition) { uint ts = block.timestamp; uint8 month = getMonth(ts); uint8 day = getDay(ts); uint16 year = getYear(ts); Season season = monthToSeason(hemispheres[tokenId], month); return getWeather(month, day, year, season, tokenId); } function setBurnState(bool _active) external onlyRole(SUPPORT_ROLE) { burnIsActive = _active; } function setSaleState(bool _active) external onlyRole(SUPPORT_ROLE) { saleIsActive = _active; } function reserve(uint256 amount) external onlyRole(SUPPORT_ROLE) { uint startingIndex = totalSupply(); for (uint i; i < amount; i++) { _safeMint(msg.sender, startingIndex + i); } } function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function purchase(uint256 amount, Hemisphere hemisphere, int offset) external payable nonReentrant { uint ts = totalSupply(); require(saleIsActive, "Sale must be active to purchase tokens"); require(amount < MAX_PUBLIC_MINT, "Exceeded max token purchase"); require(ts + amount < MAX_TOKENS, "Purchase would exceed max tokens"); require(PRICE_PER_TOKEN * amount == msg.value, "Ether value sent is not correct"); require(validOffset(offset), "Invalid offset"); for (uint i; i < amount; i++) { uint tokenId = ts + i; _safeMint(msg.sender, tokenId); hemispheres[tokenId] = hemisphere; offsets[tokenId] = offset; } } function updateApprovedTokenRanges(address contract_, uint256[] memory minTokenIds, uint256[] memory maxTokenIds) public onlyRole(SUPPORT_ROLE) { require(minTokenIds.length == maxTokenIds.length, "Redeem: Invalid input parameters"); uint existingRangesLength = _approvedTokenRange[contract_].length; for (uint i = 0; i < existingRangesLength; i++) { _approvedTokenRange[contract_][i].min = 0; _approvedTokenRange[contract_][i].max = 0; } for (uint i = 0; i < minTokenIds.length; i++) { require(minTokenIds[i] < maxTokenIds[i], "Redeem: min must be less than max"); if (i < existingRangesLength) { _approvedTokenRange[contract_][i].min = minTokenIds[i]; _approvedTokenRange[contract_][i].max = maxTokenIds[i]; } else { _approvedTokenRange[contract_].push(range(minTokenIds[i], maxTokenIds[i])); } } } function redeemable(address contract_, uint tokenId) public view returns(bool) { if (_approvedTokenRange[contract_].length > 0) { for (uint i=0; i < _approvedTokenRange[contract_].length; i++) { if (_approvedTokenRange[contract_][i].max != 0 && tokenId >= _approvedTokenRange[contract_][i].min && tokenId <= _approvedTokenRange[contract_][i].max) { return true; } } } return false; } function redeem(address[] calldata contracts, uint256[] calldata tokenIds, Hemisphere hemisphere, int offset) external nonReentrant { uint ts = totalSupply(); require(burnIsActive, "Burn is not active"); require(contracts.length == tokenIds.length, "BurnRedeem: Invalid parameters"); require(contracts.length == REDEMPTION_RATE, "BurnRedeem: Incorrect number of NFTs being redeemed"); require(ts + 1 < MAX_TOKENS, "Redemption would exceed max tokens"); require(validOffset(offset), "Invalid offset"); for (uint i = 0; i < contracts.length; i++) { require(redeemable(contracts[i], tokenIds[i]), "redeem: Invalid NFT"); try IERC721(contracts[i]).ownerOf(tokenIds[i]) returns (address ownerOfAddress) { require(ownerOfAddress == msg.sender, "redeem: Caller must own NFTs"); } catch (bytes memory) { revert("redeeem: Bad token contract"); } try IERC721(contracts[i]).transferFrom(msg.sender, address(0xdEaD), tokenIds[i]) { } catch (bytes memory) { revert("redeem: Burn failure"); } } _safeMint(msg.sender, ts); hemispheres[ts] = hemisphere; offsets[ts] = offset; } function imageTitle(Season season, WeatherCondition weatherCondition) public view returns(string memory) { return string(abi.encodePacked(seasonStrings[season], "-", weatherConditionStrings[season][weatherCondition])); } function getImageURL(uint256 tokenId) public view returns(string memory) { return string(abi.encodePacked(BASE_URI, "/", imageTitle(currentSeason(tokenId), currentWeather(tokenId)), ".mp4")); } function getName(uint256 tokenId) public pure returns(string memory) { return string(abi.encodePacked("Little Red Riding Hood v2 ", (tokenId + 1).toString(), "/", MAX_TOKENS.toString())); } function getDescription() internal pure returns(string memory) { return "Little Red Riding Hood v2 is an upgraded NFT from TedsLittleDream's debut drop of the same name in March 2021. Combining art with smart contract, TedsLittleDream (Artist), protein (Smart Contract Developer), and Kenson (Animator), have created an NFT that changes with the passage of time. Collectors can choose which part of the world they'd like their NFT's seasons to track, then sit back and watch as the weather in their NFT changes daily and with the seasons."; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "Invalid token id"); return string(abi.encodePacked( 'data:application/json;utf8,{"name":"',getName(tokenId), '", "description":"',getDescription(), '", "image":"',getImageURL(tokenId), '", "attributes":[', _getChangingData(tokenId), _getStaticData(), ']', '}')); } function _wrapTrait(string memory trait, string memory value) internal pure returns(string memory) { return string(abi.encodePacked( '{"trait_type":"', trait, '","value":"', value, '"}' )); } function _getStaticData() internal pure returns(string memory) { return string(abi.encodePacked( ',',_wrapTrait("Artist","TedsLittleDream"), ',',_wrapTrait("Contract by","West Coast NFT"), ',',_wrapTrait("Collection","Little Red Riding Hood") )); } function intToString(int n) public pure returns (string memory) { if (n < 0) { return string(abi.encodePacked("-", uint(-n).toString())); } else { return uint(n).toString(); } } function _getChangingData(uint256 tokenId) internal view returns(string memory) { Season s = currentSeason(tokenId); return string(abi.encodePacked( _wrapTrait("Weather", weatherConditionStrings[s][currentWeather(tokenId)]), ',',_wrapTrait("Season", seasonStrings[s]), ',',_wrapTrait("Hour Offset", intToString(offsets[tokenId])), ',',_wrapTrait("Hemisphere", hemisphereStrings[hemispheres[tokenId]]) )); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract DateTime { /* * Date and Time utilities for ethereum contracts * */ struct _DateTime { uint16 year; uint8 month; uint8 day; uint8 hour; uint8 minute; uint8 second; uint8 weekday; } uint constant DAY_IN_SECONDS = 86400; uint constant YEAR_IN_SECONDS = 31536000; uint constant LEAP_YEAR_IN_SECONDS = 31622400; uint constant HOUR_IN_SECONDS = 3600; uint constant MINUTE_IN_SECONDS = 60; uint16 constant ORIGIN_YEAR = 1970; function isLeapYear(uint16 year) public pure returns (bool) { if (year % 4 != 0) { return false; } if (year % 100 != 0) { return true; } if (year % 400 != 0) { return false; } return true; } function leapYearsBefore(uint year) public pure returns (uint) { year -= 1; return year / 4 - year / 100 + year / 400; } function getDaysInMonth(uint8 month, uint16 year) public pure returns (uint8) { if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) { return 31; } else if (month == 4 || month == 6 || month == 9 || month == 11) { return 30; } else if (isLeapYear(year)) { return 29; } else { return 28; } } function parseTimestamp(uint timestamp) internal pure returns (_DateTime memory dt) { uint secondsAccountedFor = 0; uint buf; uint8 i; // Year dt.year = getYear(timestamp); buf = leapYearsBefore(dt.year) - leapYearsBefore(ORIGIN_YEAR); secondsAccountedFor += LEAP_YEAR_IN_SECONDS * buf; secondsAccountedFor += YEAR_IN_SECONDS * (dt.year - ORIGIN_YEAR - buf); // Month uint secondsInMonth; for (i = 1; i <= 12; i++) { secondsInMonth = DAY_IN_SECONDS * getDaysInMonth(i, dt.year); if (secondsInMonth + secondsAccountedFor > timestamp) { dt.month = i; break; } secondsAccountedFor += secondsInMonth; } // Day for (i = 1; i <= getDaysInMonth(dt.month, dt.year); i++) { if (DAY_IN_SECONDS + secondsAccountedFor > timestamp) { dt.day = i; break; } secondsAccountedFor += DAY_IN_SECONDS; } // Hour dt.hour = getHour(timestamp); // Minute dt.minute = getMinute(timestamp); // Second dt.second = getSecond(timestamp); // Day of week. dt.weekday = getWeekday(timestamp); } function getYear(uint timestamp) public pure returns (uint16) { uint secondsAccountedFor = 0; uint16 year; uint numLeapYears; // Year year = uint16(ORIGIN_YEAR + timestamp / YEAR_IN_SECONDS); numLeapYears = leapYearsBefore(year) - leapYearsBefore(ORIGIN_YEAR); secondsAccountedFor += LEAP_YEAR_IN_SECONDS * numLeapYears; secondsAccountedFor += YEAR_IN_SECONDS * (year - ORIGIN_YEAR - numLeapYears); while (secondsAccountedFor > timestamp) { if (isLeapYear(uint16(year - 1))) { secondsAccountedFor -= LEAP_YEAR_IN_SECONDS; } else { secondsAccountedFor -= YEAR_IN_SECONDS; } year -= 1; } return year; } function getMonth(uint timestamp) public pure returns (uint8) { return parseTimestamp(timestamp).month; } function getDay(uint timestamp) public pure returns (uint8) { return parseTimestamp(timestamp).day; } function getHour(uint timestamp) public pure returns (uint8) { return uint8((timestamp / 60 / 60) % 24); } function getMinute(uint timestamp) public pure returns (uint8) { return uint8((timestamp / 60) % 60); } function getSecond(uint timestamp) public pure returns (uint8) { return uint8(timestamp % 60); } function getWeekday(uint timestamp) public pure returns (uint8) { return uint8((timestamp / DAY_IN_SECONDS + 4) % 7); } function toTimestamp(uint16 year, uint8 month, uint8 day) public pure returns (uint timestamp) { return toTimestamp(year, month, day, 0, 0, 0); } function toTimestamp(uint16 year, uint8 month, uint8 day, uint8 hour) public pure returns (uint timestamp) { return toTimestamp(year, month, day, hour, 0, 0); } function toTimestamp(uint16 year, uint8 month, uint8 day, uint8 hour, uint8 minute) public pure returns (uint timestamp) { return toTimestamp(year, month, day, hour, minute, 0); } function toTimestamp(uint16 year, uint8 month, uint8 day, uint8 hour, uint8 minute, uint8 second) public pure returns (uint timestamp) { uint16 i; // Year for (i = ORIGIN_YEAR; i < year; i++) { if (isLeapYear(i)) { timestamp += LEAP_YEAR_IN_SECONDS; } else { timestamp += YEAR_IN_SECONDS; } } // Month uint8[12] memory monthDayCounts; monthDayCounts[0] = 31; if (isLeapYear(year)) { monthDayCounts[1] = 29; } else { monthDayCounts[1] = 28; } monthDayCounts[2] = 31; monthDayCounts[3] = 30; monthDayCounts[4] = 31; monthDayCounts[5] = 30; monthDayCounts[6] = 31; monthDayCounts[7] = 31; monthDayCounts[8] = 30; monthDayCounts[9] = 31; monthDayCounts[10] = 30; monthDayCounts[11] = 31; for (i = 1; i < month; i++) { timestamp += DAY_IN_SECONDS * monthDayCounts[i - 1]; } // Day timestamp += DAY_IN_SECONDS * (day - 1); // Hour timestamp += HOUR_IN_SECONDS * (hour); // Minute timestamp += MINUTE_IN_SECONDS * (minute); // Second timestamp += second; return timestamp; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev 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 // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"currentSeason","outputs":[{"internalType":"enum LittleRedRidingHood.Season","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"currentWeather","outputs":[{"internalType":"enum LittleRedRidingHood.WeatherCondition","name":"","type":"uint8"}],"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":"timestamp","type":"uint256"}],"name":"getDay","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint16","name":"year","type":"uint16"}],"name":"getDaysInMonth","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getHour","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getImageURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMinute","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMonth","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getSecond","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSeed","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"},{"internalType":"uint16","name":"year","type":"uint16"},{"internalType":"enum LittleRedRidingHood.Season","name":"season","type":"uint8"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getWeather","outputs":[{"internalType":"enum LittleRedRidingHood.WeatherCondition","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getWeekday","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getYear","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hemispheres","outputs":[{"internalType":"enum LittleRedRidingHood.Hemisphere","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum LittleRedRidingHood.Season","name":"season","type":"uint8"},{"internalType":"enum LittleRedRidingHood.WeatherCondition","name":"weatherCondition","type":"uint8"}],"name":"imageTitle","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"n","type":"int256"}],"name":"intToString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"uint16","name":"year","type":"uint16"}],"name":"isLeapYear","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"}],"name":"leapYearsBefore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"enum LittleRedRidingHood.Hemisphere","name":"hemisphere","type":"uint8"},{"internalType":"uint8","name":"month","type":"uint8"}],"name":"monthToSeason","outputs":[{"internalType":"enum LittleRedRidingHood.Season","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"offsets","outputs":[{"internalType":"int256","name":"","type":"int256"}],"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":"amount","type":"uint256"},{"internalType":"enum LittleRedRidingHood.Hemisphere","name":"hemisphere","type":"uint8"},{"internalType":"int256","name":"offset","type":"int256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"seed","type":"bytes"},{"internalType":"uint256","name":"_modulus","type":"uint256"}],"name":"randomInt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address[]","name":"contracts","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"enum LittleRedRidingHood.Hemisphere","name":"hemisphere","type":"uint8"},{"internalType":"int256","name":"offset","type":"int256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contract_","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"redeemable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setBurnState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"enum LittleRedRidingHood.Hemisphere","name":"hemisphere","type":"uint8"}],"name":"setHemisphere","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum LittleRedRidingHood.Hemisphere","name":"h","type":"uint8"},{"internalType":"string","name":"s","type":"string"}],"name":"setHemisphereString","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"int256","name":"offset","type":"int256"}],"name":"setOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum LittleRedRidingHood.Season","name":"season","type":"uint8"},{"internalType":"string","name":"s","type":"string"}],"name":"setSeasonString","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum LittleRedRidingHood.Season","name":"season","type":"uint8"},{"internalType":"enum LittleRedRidingHood.WeatherCondition","name":"wc","type":"uint8"},{"internalType":"string","name":"s","type":"string"}],"name":"setWeatherConditionString","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum LittleRedRidingHood.Season","name":"season","type":"uint8"},{"internalType":"enum LittleRedRidingHood.WeatherCondition","name":"wc","type":"uint8"},{"internalType":"uint8","name":"weight","type":"uint8"}],"name":"setWeight","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":"uint16","name":"year","type":"uint16"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"},{"internalType":"uint8","name":"hour","type":"uint8"},{"internalType":"uint8","name":"minute","type":"uint8"}],"name":"toTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"year","type":"uint16"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"},{"internalType":"uint8","name":"hour","type":"uint8"}],"name":"toTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"year","type":"uint16"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"}],"name":"toTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"year","type":"uint16"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"},{"internalType":"uint8","name":"hour","type":"uint8"},{"internalType":"uint8","name":"minute","type":"uint8"},{"internalType":"uint8","name":"second","type":"uint8"}],"name":"toTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","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":"contract_","type":"address"},{"internalType":"uint256[]","name":"minTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"maxTokenIds","type":"uint256[]"}],"name":"updateApprovedTokenRanges","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"offset","type":"int256"}],"name":"validOffset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200644d3803806200644d833981016040819052620000349162000c4c565b604080518082018252601981527f4c6974746c652052656420526964696e6720486f6f64207632000000000000006020808301918252835180850190945260048452632ba7a62360e11b908401528151919291620000959160009162000ba6565b508051620000ab90600190602084019062000ba6565b50506001600b5550620000c060003362000af2565b620000ec7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b3362000af2565b80516200010190600d90602084019062000ba6565b5060408051808201909152600c81526be9a2a8e5928ce697a5e9ba9760a01b6020808301918252600080526000805160206200642d833981519152905290516200016d917f2f9281680502dfead900c00c0bcc8d9a2b85abd936564faa45d975decb4e8a6f9162000ba6565b5060408051808201909152600c81526be698a5e69a96e88ab1e9968b60a01b602080830191825260016000526000805160206200642d83398151915290529051620001da917fe668067d73ac375a2f547501890030fb4b5ef164760095835b20ad7760d26fe89162000ba6565b5060408051808201909152600c81526b1cb2519d34551cf6961d337560a31b602080830191825260026000526000805160206200642d8339815191529052905162000247917fd0c013b265a56b9d233634f23c49648db608f3f81a094135bf4ddc639f5471929162000ba6565b5060408051808201909152600c81526b3a6ce97a2aa7ba27eb3a6ced60a21b602080830191825260008052600080516020620063ed83398151915290529051620002b3917f14c59eed989372b13b9ffdad3c397c178450139af216ccc91acde49544dcd9809162000ba6565b5060408051808201909152600c81526b745ad2734bd2f3c14773c14760a11b60208083019182526003600052600080516020620063ed8339815191529052905162000320917f6d6d901f3c8365ca63fe03cd1132400ce18ab69b7cef923add284dea78f9c2049162000ba6565b5060408051808201909152600c81526b1cb2519d34551cf6961d337560a31b60208083019182526002600052600080516020620063ed833981519152905290516200038d917fe6162961f75d99acde149e0a34f0888397f992aabac3b4694faa893ac55d2fb89162000ba6565b5060408051808201909152600c81526b074cddbf4cdddf25d5272c5560a51b60208083019182526004600052600080516020620063ed83398151915290529051620003fa917f7b4e3123705a26671f7c9803d1e7a21fc6139b89601c3d8d9b3e9355ec15bb499162000ba6565b5060408051808201909152600c81526b73d3c5f444d972d74e725d5d60a11b6020808301918252600080526000805160206200640d8339815191529052905162000466917fd7af69c09ebd9aa8e04eef1bc56ae5a74ecab8dfd534bc4f3dc6926ec089f7009162000ba6565b5060408051808201909152600d81526c073d3c5f4cdd474c051f3db5f9609d1b602080830191825260026000526000805160206200640d83398151915290529051620004d4917f73e77ef2586f1171a33032b7c84d5563499036eb4e75db711fa37085a1913c009162000ba6565b5060408051808201909152600c81526be99bb2e99ca7e8bfb7e6bf9b60a01b602080830191825260056000526000805160206200640d8339815191529052905162000541917fdfb0d579830df2510ae5cf1460fd05b54916bc920b27d3b77d8038358399ce859162000ba6565b5060408051808201909152600c81526be99baae88ab1e5a682e5b8ad60a01b602080830191825260008052600080516020620063cd83398151915290529051620005ad917fea7e800b1d2554856c28c3a0d4035febbfff76e5dbf67c44d64048700a78ed4c9162000ba6565b5060408051808201909152600c81526b74cdd574d1c272d34173dad760a11b60208083019182526006600052600080516020620063cd833981519152905290516200061a917f0a9daaef4b11e00c67e75b0f08a0eef89c649f23df5743e376239b1a373432b29162000ba6565b5060408051808201909152600c81526be5a4a7e99baae7b49be9a39b60a01b60208083019182526007600052600080516020620063cd8339815191529052905162000687917f6853370de8eb65aefb7b83e5db657ab4f9759146fbf3dee17ea4490150e12a7e9162000ba6565b50604080518082019091526003815262e698a560e81b602080830191825260008052600f90529051620006dc917ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec3759162000ba6565b50604080518082019091526003815262e5a48f60e81b60208083019182526001600052600f9052905162000732917f169f97de0d9a84d840042b17d3c6b9638b3d6fd9024c9eb0c7a306a17b49f88f9162000ba6565b50604080518082019091526003815262e7a78b60e81b60208083019182526002600052600f9052905162000788917fa74ba3945261e09fde15ba3db55005b205e61eeb4ad811ac0faa2b315bffeead9162000ba6565b50604080518082019091526003808252623961ab60ea1b6020808401918252600092909252600f9091529051620007e1917f45f76dafbbad695564362934e24d72eedc57f9fc1a65f39bca62176cc82968289162000ba6565b506040805180820190915260088152672737b93a3432b93760c11b6020808301918252600080526010905290516200083b917f6e0956cda88cad152e89927e53611735b61a5c762d1428573c6931b0a5efcb019162000ba6565b5060408051808201909152600881526729b7baba3432b93760c11b6020808301918252600160005260109052905162000896917f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f9162000ba6565b50507f248aa3dab24d457978867be752bcbbd118cae26b7fc79481ab4fe8793df804498054600360ff1991821681179092557ff9aec3b1b79836326d845f8c1e6699788fa1cfc741a96c1fb60d44de222626fd8054821660019081179091557f03ed88dd41b50315f427918058d1e33b0180b38bbe1a806f12e5f2887f9e98558054600290841681179091557fd9f598969d31ba46c7eea8ae3edc0a7a2ce2414244efe91dd552f42c4aa2df2780548416851790557fc1d559a3a3bf4aea15284c1d3673e4f6b22bb334b0b3ae35575c19568a280c3a80548416821790557f24bc3688a431eeb8396b3d46059e8eaad37fb4a669c0caebec857d3e8e28c2a480548416821790557f9bf9563db041a7debef366a01cd2194bc8297857c9d73fbb24d376d3501e9c2780548416831790557fd98ab4ad965ba7532adb83b12964a99c9cffeaa4f53155a18320f8df8b0832c78054841690911790557f02afb728ee6871503da32d0fedad4ab9098994afe622a7a0744af9c8eca667db80548316821790557f6778f2f0ec8d813f542c0decc1a7a802c4e2465287eb0f88a7eb33cfb7630eb980548316821790557fef4014eadd03f73f40429484c683861a6a101bb438be63abc131821cae1fa2aa805460059084161790557faf8827108f91a6f60a1a8de46030e0dba21d5fdc067f3cc584e185d591f533978054831690931790925560076000527f9bfbaa59f8e10e7868f8b402de9d605a390c45ddaebd8c9de3c6f31e733c87ff6020527f15e6a826e2d02b55cfc85d2cacaced83843bf5c5756681c9851bc93b662120728054909116909117905562000d7b565b62000afe828262000b02565b5050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1662000afe576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff1916600117905562000b623390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b82805462000bb49062000d28565b90600052602060002090601f01602090048101928262000bd8576000855562000c23565b82601f1062000bf357805160ff191683800117855562000c23565b8280016001018555821562000c23579182015b8281111562000c2357825182559160200191906001019062000c06565b5062000c3192915062000c35565b5090565b5b8082111562000c31576000815560010162000c36565b6000602080838503121562000c6057600080fd5b82516001600160401b038082111562000c7857600080fd5b818501915085601f83011262000c8d57600080fd5b81518181111562000ca25762000ca262000d65565b604051601f8201601f19908116603f0116810190838211818310171562000ccd5762000ccd62000d65565b81604052828152888684870101111562000ce657600080fd5b600093505b8284101562000d0a578484018601518185018701529285019262000ceb565b8284111562000d1c5760008684830101525b98975050505050505050565b600181811c9082168062000d3d57607f821691505b6020821081141562000d5f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6156428062000d8b6000396000f3fe6080604052600436106103ef5760003560e01c80637f79183311610208578063a6f0e57711610118578063cd4d4ddb116100ab578063e985e9c51161007a578063e985e9c514610c6d578063eb8d244414610cb6578063f011189114610cd5578063f32a635e14610cf5578063fa93f88314610d1557600080fd5b8063cd4d4ddb14610bed578063d1b1ed7b14610c0d578063d547741f14610c2d578063e4a53fdb14610c4d57600080fd5b8063b88d4fde116100e7578063b88d4fde14610b6d578063c028342014610b8d578063c4e3709514610bad578063c87b56dd14610bcd57600080fd5b8063a6f0e57714610aba578063b199993714610ada578063b238ad0e14610afa578063b44bc63814610b1a57600080fd5b806391d148541161019b5780639ef875531161016a5780639ef8755314610a18578063a217fddf14610a38578063a22cb46514610a4d578063a324ad2414610a6d578063a54d080914610a8d57600080fd5b806391d148541461099057806392d66313146109b057806395d89b41146109e35780639a117d15146109f857600080fd5b806385970786116101d757806385970786146109105780638aa001fc146109305780638c8d98a0146109505780639054bdec1461097057600080fd5b80637f7918331461088757806381914619146108a7578063819b25ba146108d4578063833b9499146108f457600080fd5b8063487e03aa116103035780636352211e1161029657806367627b621161026557806367627b62146107ca578063693ae569146107ea5780636b8ff5741461082757806370a0823114610847578063732f33c71461086757600080fd5b80636352211e1461075b57806365c728401461077b57806365f130971461079b57806366caa6ab146107b057600080fd5b806355edf3cb116102d257806355edf3cb146106db57806355f804b3146106fb5780635ce289ba1461071b57806362ba96871461073b57600080fd5b8063487e03aa146106685780634ac1ad78146106885780634f6ccce7146106a857806355a21e51146106c857600080fd5b8063248a9ca3116103865780632f745c59116103555780632f745c59146105c157806336568abe146105e15780633ccfd60b146106015780633e239e1a1461061657806342842e0e1461064857600080fd5b8063248a9ca31461052457806329d704c0146105545780632af8a413146105815780632f2ff15d146105a157600080fd5b80630bb3e510116103c25780630bb3e510146104a557806318160ddd146104c557806320524a29146104e457806323b872dd1461050457600080fd5b806301ffc9a7146103f457806306fdde0314610429578063081812fc1461044b578063095ea7b314610483575b600080fd5b34801561040057600080fd5b5061041461040f3660046146c7565b610d35565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b5061043e610d46565b6040516104209190615044565b34801561045757600080fd5b5061046b610466366004614689565b610dd8565b6040516001600160a01b039091168152602001610420565b34801561048f57600080fd5b506104a361049e3660046145ba565b610e72565b005b3480156104b157600080fd5b5061043e6104c0366004614689565b610f88565b3480156104d157600080fd5b506008545b604051908152602001610420565b3480156104f057600080fd5b506104a36104ff366004614a98565b610fd8565b34801561051057600080fd5b506104a361051f366004614464565b611073565b34801561053057600080fd5b506104d661053f366004614689565b6000908152600a602052604090206001015490565b34801561056057600080fd5b5061057461056f366004614b16565b6110a4565b6040516104209190615085565b34801561058d57600080fd5b506104a361059c366004614510565b611127565b3480156105ad57600080fd5b506104a36105bc3660046146a2565b61145e565b3480156105cd57600080fd5b506104d66105dc3660046145ba565b611484565b3480156105ed57600080fd5b506104a36105fc3660046146a2565b61151a565b34801561060d57600080fd5b506104a3611598565b34801561062257600080fd5b50610636610631366004614689565b61162f565b60405160ff9091168152602001610420565b34801561065457600080fd5b506104a3610663366004614464565b611653565b34801561067457600080fd5b50610414610683366004614689565b61166e565b34801561069457600080fd5b506106366106a3366004614689565b611685565b3480156106b457600080fd5b506104d66106c3366004614689565b6116a1565b6104a36106d6366004614a63565b611734565b3480156106e757600080fd5b506104a36106f63660046145e6565b6119af565b34801561070757600080fd5b506104a3610716366004614898565b611f4c565b34801561072757600080fd5b506104a361073636600461466e565b611f78565b34801561074757600080fd5b506104d6610756366004614967565b611fa5565b34801561076757600080fd5b5061046b610776366004614689565b611fb6565b34801561078757600080fd5b50610636610796366004614689565b61202d565b3480156107a757600080fd5b506104d6600f81565b3480156107bc57600080fd5b50600c546104149060ff1681565b3480156107d657600080fd5b506104146107e53660046145ba565b612042565b3480156107f657600080fd5b5061081a610805366004614689565b60136020526000908152604090205460ff1681565b6040516104209190615057565b34801561083357600080fd5b5061043e610842366004614689565b61217d565b34801561085357600080fd5b506104d66108623660046143f1565b6121a8565b34801561087357600080fd5b5061043e6108823660046147bc565b61222f565b34801561089357600080fd5b506104d66108a2366004614913565b6122f6565b3480156108b357600080fd5b506104d66108c2366004614689565b60126020526000908152604090205481565b3480156108e057600080fd5b506104a36108ef366004614689565b612312565b34801561090057600080fd5b506104d6670429d069189e000081565b34801561091c57600080fd5b506104a361092b3660046147e6565b61236e565b34801561093c57600080fd5b5061063661094b366004614689565b61240a565b34801561095c57600080fd5b506104d661096b3660046148e7565b612417565b34801561097c57600080fd5b506104d661098b3660046149cc565b612425565b34801561099c57600080fd5b506104146109ab3660046146a2565b6125d6565b3480156109bc57600080fd5b506109d06109cb366004614689565b612601565b60405161ffff9091168152602001610420565b3480156109ef57600080fd5b5061043e6126f1565b348015610a0457600080fd5b506104d6610a13366004614701565b612700565b348015610a2457600080fd5b506104a3610a3336600461487c565b61271c565b348015610a4457600080fd5b506104d6600081565b348015610a5957600080fd5b506104a3610a68366004614585565b61277e565b348015610a7957600080fd5b50610636610a88366004614689565b612789565b348015610a9957600080fd5b50610aad610aa8366004614689565b61279e565b6040516104209190615071565b348015610ac657600080fd5b50610414610ad53660046148cc565b6127bd565b348015610ae657600080fd5b506104d6610af5366004614689565b61281c565b348015610b0657600080fd5b50610636610b15366004614aec565b612861565b348015610b2657600080fd5b5061043e610b35366004614aba565b6040805160208101959095528481019390935260608401919091526080808401919091528151808403909101815260a0909201905290565b348015610b7957600080fd5b506104a3610b883660046144a5565b612927565b348015610b9957600080fd5b50610aad610ba8366004614792565b612959565b348015610bb957600080fd5b506104a3610bc836600461466e565b612a16565b348015610bd957600080fd5b5061043e610be8366004614689565b612a4a565b348015610bf957600080fd5b506104a3610c08366004614a40565b612ae3565b348015610c1957600080fd5b5061043e610c28366004614689565b612b7a565b348015610c3957600080fd5b506104a3610c483660046146a2565b612ba4565b348015610c5957600080fd5b506104a3610c68366004614745565b612bca565b348015610c7957600080fd5b50610414610c8836600461442b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610cc257600080fd5b50600c5461041490610100900460ff1681565b348015610ce157600080fd5b506104a3610cf0366004614839565b612c0b565b348015610d0157600080fd5b50610574610d10366004614689565b612cab565b348015610d2157600080fd5b50610636610d30366004614689565b612d0c565b6000610d4082612d1a565b92915050565b606060008054610d559061527f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d819061527f565b8015610dce5780601f10610da357610100808354040283529160200191610dce565b820191906000526020600020905b815481529060010190602001808311610db157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e565760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610e7d82611fb6565b9050806001600160a01b0316836001600160a01b03161415610eeb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e4d565b336001600160a01b0382161480610f075750610f078133610c88565b610f795760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e4d565b610f838383612d3f565b505050565b60606000821215610fca57610fa4610f9f8361534c565b612dad565b604051602001610fb49190614f73565b6040516020818303038152906040529050919050565b610d4082612dad565b919050565b610fe182611fb6565b6001600160a01b0316336001600160a01b03161461103c5760405162461bcd60e51b815260206004820152601860248201527726bab9ba103132903a3432903a37b5b2b71037bbb732b91760411b6044820152606401610e4d565b6110458161166e565b6110615760405162461bcd60e51b8152600401610e4d906150eb565b60009182526012602052604090912055565b61107d3382612eaa565b6110995760405162461bcd60e51b8152600401610e4d90615113565b610f83838383612f9d565b6040805160ff808816602083015286168183015261ffff8516606082015260808082018490528251808303909101815260a090910190915260009061111d90601160008660038111156110f9576110f9615395565b600381111561110a5761110a615395565b8152602001908152602001600020613148565b9695505050505050565b60008051602061541c83398151915261114081336132bd565b81518351146111915760405162461bcd60e51b815260206004820181905260248201527f52656465656d3a20496e76616c696420696e70757420706172616d65746572736044820152606401610e4d565b6001600160a01b038416600090815260146020526040812054905b81811015611241576001600160a01b03861660009081526014602052604081208054839081106111de576111de6153c1565b600091825260208083206002909202909101929092556001600160a01b038816815260149091526040812080548390811061121b5761121b6153c1565b600091825260209091206001600290920201015580611239816152dc565b9150506111ac565b5060005b845181101561145657838181518110611260576112606153c1565b602002602001015185828151811061127a5761127a6153c1565b6020026020010151106112d95760405162461bcd60e51b815260206004820152602160248201527f52656465656d3a206d696e206d757374206265206c657373207468616e206d616044820152600f60fb1b6064820152608401610e4d565b818110156113b0578481815181106112f3576112f36153c1565b602002602001015160146000886001600160a01b03166001600160a01b031681526020019081526020016000208281548110611331576113316153c1565b906000526020600020906002020160000181905550838181518110611358576113586153c1565b602002602001015160146000886001600160a01b03166001600160a01b031681526020019081526020016000208281548110611396576113966153c1565b906000526020600020906002020160010181905550611444565b60146000876001600160a01b03166001600160a01b0316815260200190815260200160002060405180604001604052808784815181106113f2576113f26153c1565b60200260200101518152602001868481518110611411576114116153c1565b60209081029190910181015190915282546001818101855560009485529382902083516002909202019081559101519101555b8061144e816152dc565b915050611245565b505050505050565b6000828152600a602052604090206001015461147a81336132bd565b610f838383613321565b600061148f836121a8565b82106114f15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610e4d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b038116331461158a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e4d565b61159482826133a7565b5050565b60006115a481336132bd565b604051600090339047908381818185875af1925050503d80600081146115e6576040519150601f19603f3d011682016040523d82523d6000602084013e6115eb565b606091505b50509050806115945760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610e4d565b60006018603c61163f81856151ac565b61164991906151ac565b610d409190615338565b610f8383838360405180602001604052806000815250612927565b6000600d198212158015610d40575050600e121590565b6000600761169662015180846151ac565b611649906004615194565b60006116ac60085490565b821061170f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610e4d565b60088281548110611722576117226153c1565b90600052602060002001549050919050565b6002600b5414156117875760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e4d565b6002600b55600061179760085490565b600c54909150610100900460ff166118005760405162461bcd60e51b815260206004820152602660248201527f53616c65206d7573742062652061637469766520746f20707572636861736520604482015265746f6b656e7360d01b6064820152608401610e4d565b600f84106118505760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206d617820746f6b656e20707572636861736500000000006044820152606401610e4d565b606461185c8583615194565b106118a95760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e736044820152606401610e4d565b346118bc85670429d069189e00006151c0565b146119095760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610e4d565b6119128261166e565b61192e5760405162461bcd60e51b8152600401610e4d906150eb565b60005b848110156119a35760006119458284615194565b9050611951338261340e565b6000818152601360205260409020805486919060ff19166001838181111561197b5761197b615395565b021790555060009081526012602052604090208390558061199b816152dc565b915050611931565b50506001600b55505050565b6002600b541415611a025760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e4d565b6002600b556000611a1260085490565b600c5490915060ff16611a5c5760405162461bcd60e51b81526020600482015260126024820152714275726e206973206e6f742061637469766560701b6044820152606401610e4d565b858414611aab5760405162461bcd60e51b815260206004820152601e60248201527f4275726e52656465656d3a20496e76616c696420706172616d657465727300006044820152606401610e4d565b60038614611b175760405162461bcd60e51b815260206004820152603360248201527f4275726e52656465656d3a20496e636f7272656374206e756d626572206f66206044820152721391951cc818995a5b99c81c995919595b5959606a1b6064820152608401610e4d565b6064611b24826001615194565b10611b7c5760405162461bcd60e51b815260206004820152602260248201527f526564656d7074696f6e20776f756c6420657863656564206d617820746f6b656044820152616e7360f01b6064820152608401610e4d565b611b858261166e565b611ba15760405162461bcd60e51b8152600401610e4d906150eb565b60005b86811015611ef757611bf4888883818110611bc157611bc16153c1565b9050602002016020810190611bd691906143f1565b878784818110611be857611be86153c1565b90506020020135612042565b611c365760405162461bcd60e51b81526020600482015260136024820152721c995919595b4e88125b9d985b1a5908139195606a1b6044820152606401610e4d565b878782818110611c4857611c486153c1565b9050602002016020810190611c5d91906143f1565b6001600160a01b0316636352211e878784818110611c7d57611c7d6153c1565b905060200201356040518263ffffffff1660e01b8152600401611ca291815260200190565b60206040518083038186803b158015611cba57600080fd5b505afa925050508015611cea575060408051601f3d908101601f19168201909252611ce79181019061440e565b60015b611d66573d808015611d18576040519150601f19603f3d011682016040523d82523d6000602084013e611d1d565b606091505b5060405162461bcd60e51b815260206004820152601b60248201527f7265646565656d3a2042616420746f6b656e20636f6e747261637400000000006044820152606401610e4d565b6001600160a01b0381163314611dbe5760405162461bcd60e51b815260206004820152601c60248201527f72656465656d3a2043616c6c6572206d757374206f776e204e465473000000006044820152606401610e4d565b50878782818110611dd157611dd16153c1565b9050602002016020810190611de691906143f1565b6001600160a01b03166323b872dd3361dead898986818110611e0a57611e0a6153c1565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015611e6157600080fd5b505af1925050508015611e72575060015b611ee5573d808015611ea0576040519150601f19603f3d011682016040523d82523d6000602084013e611ea5565b606091505b5060405162461bcd60e51b815260206004820152601460248201527372656465656d3a204275726e206661696c75726560601b6044820152606401610e4d565b80611eef816152dc565b915050611ba4565b50611f02338261340e565b6000818152601360205260409020805484919060ff191660018381811115611f2c57611f2c615395565b021790555060009081526012602052604090205550506001600b55505050565b60008051602061541c833981519152611f6581336132bd565b8151610f8390600d90602085019061419a565b60008051602061541c833981519152611f9181336132bd565b50600c805460ff1916911515919091179055565b600061111d86868686866000612425565b6000818152600260205260408120546001600160a01b031680610d405760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610e4d565b600061203882613428565b6040015192915050565b6001600160a01b038216600090815260146020526040812054156121745760005b6001600160a01b038416600090815260146020526040902054811015612172576001600160a01b03841660009081526014602052604090208054829081106120ad576120ad6153c1565b90600052602060002090600202016001015460001415801561210a57506001600160a01b03841660009081526014602052604090208054829081106120f4576120f46153c1565b9060005260206000209060020201600001548310155b801561215157506001600160a01b038416600090815260146020526040902080548290811061213b5761213b6153c1565b9060005260206000209060020201600101548311155b15612160576001915050610d40565b8061216a816152dc565b915050612063565b505b50600092915050565b606061218d610f9f836001615194565b6121976064612dad565b604051602001610fb4929190614d81565b60006001600160a01b0382166122135760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610e4d565b506001600160a01b031660009081526003602052604090205490565b6060600f600084600381111561224757612247615395565b600381111561225857612258615395565b8152602001908152602001600020600e600085600381111561227c5761227c615395565b600381111561228d5761228d615395565b815260200190815260200160002060008460078111156122af576122af615395565b60078111156122c0576122c0615395565b81526020019081526020016000206040516020016122df929190614cb0565b604051602081830303815290604052905092915050565b600061230785858585600080612425565b90505b949350505050565b60008051602061541c83398151915261232b81336132bd565b600061233660085490565b905060005b8381101561236857612356336123518385615194565b61340e565b80612360816152dc565b91505061233b565b50505050565b60008051602061541c83398151915261238781336132bd565b81600e600086600381111561239e5761239e615395565b60038111156123af576123af615395565b815260200190815260200160002060008560078111156123d1576123d1615395565b60078111156123e2576123e2615395565b8152602001908152602001600020908051906020019061240392919061419a565b5050505050565b6000610d40603c83615338565b600061230a84848460008060005b60006107b25b8761ffff168161ffff16101561248157612444816127bd565b1561245e576124576301e2850083615194565b915061246f565b61246c6301e1338083615194565b91505b80612479816152ba565b91505061242b565b61248961421e565b601f8152612496896127bd565b156124a757601d60208201526124af565b601c60208201525b601f60408201819052601e606083018190526080830182905260a0830181905260c0830182905260e0830182905261010083018190526101208301829052610140830152610160820152600191505b8760ff168261ffff16101561256057806125196001846151df565b61ffff16600c811061252d5761252d6153c1565b60200201516125429060ff16620151806151c0565b61254c9084615194565b925081612558816152ba565b9250506124fe565b61256b600188615219565b61257b9060ff16620151806151c0565b6125859084615194565b925061259660ff8716610e106151c0565b6125a09084615194565b92506125b060ff8616603c6151c0565b6125ba9084615194565b92506125c960ff851684615194565b9998505050505050505050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60008080806126146301e13380866151ac565b612620906107b2615194565b915061262d6107b261281c565b61263a8361ffff1661281c565b6126449190615202565b9050612654816301e285006151c0565b61265e9084615194565b92508061266d6107b2846151df565b61ffff1661267b9190615202565b612689906301e133806151c0565b6126939084615194565b92505b848311156126e9576126ac610ad56001846151df565b156126c6576126bf6301e2850084615202565b92506126d7565b6126d46301e1338084615202565b92505b6126e26001836151df565b9150612696565b509392505050565b606060018054610d559061527f565b81516020830120600090612715908390615338565b9392505050565b60008051602061541c83398151915261273581336132bd565b81600f600085600381111561274c5761274c615395565b600381111561275d5761275d615395565b8152602001908152602001600020908051906020019061236892919061419a565b611594338383613610565b600061279482613428565b6020015192915050565b600081815260136020526040812054610d409060ff16610ba842612789565b60006127ca600483615317565b61ffff16156127db57506000919050565b6127e6606483615317565b61ffff16156127f757506001919050565b61280361019083615317565b61ffff161561281457506000919050565b506001919050565b6000612829600183615202565b9150612837610190836151ac565b6128426064846151ac565b61284d6004856151ac565b6128579190615202565b610d409190615194565b60008260ff166001148061287857508260ff166003145b8061288657508260ff166005145b8061289457508260ff166007145b806128a257508260ff166008145b806128b057508260ff16600a145b806128be57508260ff16600c145b156128cb5750601f610d40565b8260ff16600414806128e057508260ff166006145b806128ee57508260ff166009145b806128fc57508260ff16600b145b156129095750601e610d40565b612912826127bd565b1561291f5750601d610d40565b50601c610d40565b6129313383612eaa565b61294d5760405162461bcd60e51b8152600401610e4d90615113565b612368848484846136df565b60008083600181111561296e5761296e615395565b14156129c55760028260ff1611158061298a57508160ff16600c145b1561299757506003610d40565b60058260ff16116129aa57506000610d40565b60088260ff16116129bd57506001610d40565b506002610d40565b60028260ff161115806129db57508160ff16600c145b156129e857506001610d40565b60058260ff16116129fb57506002610d40565b60088260ff1611612a0e57506003610d40565b506000610d40565b60008051602061541c833981519152612a2f81336132bd565b50600c80549115156101000261ff0019909216919091179055565b6000818152600260205260409020546060906001600160a01b0316612aa45760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b6044820152606401610e4d565b612aad8261217d565b612ab5613712565b612abe84612b7a565b612ac785613735565b612acf61397e565b604051602001610fb4959493929190614e57565b612aec82611fb6565b6001600160a01b0316336001600160a01b031614612b475760405162461bcd60e51b815260206004820152601860248201527726bab9ba103132903a3432903a37b5b2b71037bbb732b91760411b6044820152606401610e4d565b6000828152601360205260409020805482919060ff191660018381811115612b7157612b71615395565b02179055505050565b6060600d612b93612b8a8461279e565b61088285612cab565b604051602001610fb4929190614cd9565b6000828152600a6020526040902060010154612bc081336132bd565b610f8383836133a7565b60008051602061541c833981519152612be381336132bd565b8160106000856001811115612bfa57612bfa615395565b600181111561275d5761275d615395565b60008051602061541c833981519152612c2481336132bd565b8160116000866003811115612c3b57612c3b615395565b6003811115612c4c57612c4c615395565b81526020019081526020016000206000856007811115612c6e57612c6e615395565b6007811115612c7f57612c7f615395565b815260200190815260200160002060006101000a81548160ff021916908360ff16021790555050505050565b60004281612cb882612789565b90506000612cc58361202d565b90506000612cd284612601565b60008781526013602052604081205491925090612cf29060ff1685612959565b9050612d01848484848b6110a4565b979650505050505050565b6000603c61164981846151ac565b60006001600160e01b03198216637965db0b60e01b1480610d405750610d4082613aa2565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d7482611fb6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606081612dd15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612dfb5780612de5816152dc565b9150612df49050600a836151ac565b9150612dd5565b6000816001600160401b03811115612e1557612e156153d7565b6040519080825280601f01601f191660200182016040528015612e3f576020820181803683370190505b5090505b841561230a57612e54600183615202565b9150612e61600a86615338565b612e6c906030615194565b60f81b818381518110612e8157612e816153c1565b60200101906001600160f81b031916908160001a905350612ea3600a866151ac565b9450612e43565b6000818152600260205260408120546001600160a01b0316612f235760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e4d565b6000612f2e83611fb6565b9050806001600160a01b0316846001600160a01b03161480612f695750836001600160a01b0316612f5e84610dd8565b6001600160a01b0316145b8061230a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661230a565b826001600160a01b0316612fb082611fb6565b6001600160a01b0316146130185760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610e4d565b6001600160a01b03821661307a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e4d565b613085838383613ac7565b613090600082612d3f565b6001600160a01b03831660009081526003602052604081208054600192906130b9908490615202565b90915550506001600160a01b03821660009081526003602052604081208054600192906130e7908490615194565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080805b60068110156131bf5783600082600781111561316b5761316b615395565b600781111561317c5761317c615395565b600781111561318d5761318d615395565b81526020810191909152604001600020546131ab9060ff1683615194565b9150806131b7816152dc565b91505061314d565b5060006131cc8583612700565b905060005b60068110156132b1578460008260078111156131ef576131ef615395565b600781111561320057613200615395565b600781111561321157613211615395565b815260208101919091526040016000205460ff168210156132485780600781111561323e5761323e615395565b9350505050610d40565b84600082600781111561325d5761325d615395565b600781111561326e5761326e615395565b600781111561327f5761327f615395565b815260208101919091526040016000205461329d9060ff1683615202565b9150806132a9816152dc565b9150506131d1565b50600395945050505050565b6132c782826125d6565b611594576132df816001600160a01b03166014613b7f565b6132ea836020613b7f565b6040516020016132fb929190614f9c565b60408051601f198184030181529082905262461bcd60e51b8252610e4d91600401615044565b61332b82826125d6565b611594576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556133633390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6133b182826125d6565b15611594576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b611594828260405180602001604052806000815250613d1a565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905290808061346c85612601565b61ffff16845261347d6107b261281c565b845161348c9061ffff1661281c565b6134969190615202565b91506134a6826301e285006151c0565b6134b09084615194565b9250816107b285600001516134c591906151df565b61ffff166134d39190615202565b6134e1906301e133806151c0565b6134eb9084615194565b92506000600191505b600c8260ff161161355c5761350d828660000151612861565b61351d9060ff16620151806151c0565b90508561352a8583615194565b111561353e5760ff8216602086015261355c565b6135488185615194565b935081613554816152f7565b9250506134f4565b600191505b61357385602001518660000151612861565b60ff168260ff16116135c2578561358d8562015180615194565b11156135a15760ff821660408601526135c2565b6135ae6201518085615194565b9350816135ba816152f7565b925050613561565b6135cb8661162f565b60ff1660608601526135dc86612d0c565b60ff1660808601526135ed8661240a565b60ff1660a08601526135fe86611685565b60ff1660c08601525092949350505050565b816001600160a01b0316836001600160a01b031614156136725760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e4d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6136ea848484612f9d565b6136f684848484613d4d565b6123685760405162461bcd60e51b8152600401610e4d90615099565b60606040518061020001604052806101d1815260200161543c6101d19139905090565b606060006137428361279e565b9050613865604051806040016040528060078152602001662bb2b0ba3432b960c91b815250600e600084600381111561377d5761377d615395565b600381111561378e5761378e615395565b815260200190815260200160002060006137a787612cab565b60078111156137b8576137b8615395565b60078111156137c9576137c9615395565b815260200190815260200160002080546137e29061527f565b80601f016020809104026020016040519081016040528092919081815260200182805461380e9061527f565b801561385b5780601f106138305761010080835404028352916020019161385b565b820191906000526020600020905b81548152906001019060200180831161383e57829003601f168201915b5050505050613e57565b6138ae6040518060400160405280600681526020016529b2b0b9b7b760d11b815250600f600085600381111561389d5761389d615395565b60038111156137c9576137c9615395565b6138f66040518060400160405280600b81526020016a121bdd5c8813d9999cd95d60aa1b8152506138f16012600089815260200190815260200160002054610f88565b613e57565b604080518082018252600a81526948656d6973706865726560b01b60208083019190915260008981526013909152918220546139549260109160ff16600181111561394357613943615395565b60018111156137c9576137c9615395565b6040516020016139679493929190614c38565b604051602081830303815290604052915050919050565b60606139cf60405180604001604052806006815260200165105c9d1a5cdd60d21b8152506040518060400160405280600f81526020016e546564734c6974746c65447265616d60881b815250613e57565b613a226040518060400160405280600b81526020016a436f6e747261637420627960a81b8152506040518060400160405280600e81526020016d15d95cdd0810dbd85cdd0813919560921b815250613e57565b613a7c6040518060400160405280600a81526020016921b7b63632b1ba34b7b760b11b81525060405180604001604052806016815260200175131a5d1d1b194814995908149a591a5b99c8121bdbd960521b815250613e57565b604051602001613a8e93929190614d1c565b604051602081830303815290604052905090565b60006001600160e01b0319821663780e9d6360e01b1480610d405750610d4082613e6c565b6001600160a01b038316613b2257613b1d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613b45565b816001600160a01b0316836001600160a01b031614613b4557613b458382613ebc565b6001600160a01b038216613b5c57610f8381613f59565b826001600160a01b0316826001600160a01b031614610f8357610f838282614008565b60606000613b8e8360026151c0565b613b99906002615194565b6001600160401b03811115613bb057613bb06153d7565b6040519080825280601f01601f191660200182016040528015613bda576020820181803683370190505b509050600360fc1b81600081518110613bf557613bf56153c1565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613c2457613c246153c1565b60200101906001600160f81b031916908160001a9053506000613c488460026151c0565b613c53906001615194565b90505b6001811115613ccb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613c8757613c876153c1565b1a60f81b828281518110613c9d57613c9d6153c1565b60200101906001600160f81b031916908160001a90535060049490941c93613cc481615268565b9050613c56565b5083156127155760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e4d565b613d24838361404c565b613d316000848484613d4d565b610f835760405162461bcd60e51b8152600401610e4d90615099565b60006001600160a01b0384163b15613e4f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d91903390899088908890600401615011565b602060405180830381600087803b158015613dab57600080fd5b505af1925050508015613ddb575060408051601f3d908101601f19168201909252613dd8918101906146e4565b60015b613e35573d808015613e09576040519150601f19603f3d011682016040523d82523d6000602084013e613e0e565b606091505b508051613e2d5760405162461bcd60e51b8152600401610e4d90615099565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061230a565b50600161230a565b606082826040516020016122df929190614de6565b60006001600160e01b031982166380ac58cd60e01b1480613e9d57506001600160e01b03198216635b5e139f60e01b145b80610d4057506301ffc9a760e01b6001600160e01b0319831614610d40565b60006001613ec9846121a8565b613ed39190615202565b600083815260076020526040902054909150808214613f26576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613f6b90600190615202565b60008381526009602052604081205460088054939450909284908110613f9357613f936153c1565b906000526020600020015490508060088381548110613fb457613fb46153c1565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613fec57613fec6153ab565b6001900381819060005260206000200160009055905550505050565b6000614013836121a8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166140a25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e4d565b6000818152600260205260409020546001600160a01b0316156141075760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e4d565b61411360008383613ac7565b6001600160a01b038216600090815260036020526040812080546001929061413c908490615194565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546141a69061527f565b90600052602060002090601f0160209004810192826141c8576000855561420e565b82601f106141e157805160ff191683800117855561420e565b8280016001018555821561420e579182015b8281111561420e5782518255916020019190600101906141f3565b5061421a92915061423d565b5090565b604051806101800160405280600c906020820280368337509192915050565b5b8082111561421a576000815560010161423e565b60008083601f84011261426457600080fd5b5081356001600160401b0381111561427b57600080fd5b6020830191508360208260051b850101111561429657600080fd5b9250929050565b600082601f8301126142ae57600080fd5b813560206001600160401b038211156142c9576142c96153d7565b8160051b6142d8828201615164565b8381528281019086840183880185018910156142f357600080fd5b600093505b858410156143165780358352600193909301929184019184016142f8565b50979650505050505050565b80358015158114610fd357600080fd5b600082601f83011261434357600080fd5b81356001600160401b0381111561435c5761435c6153d7565b61436f601f8201601f1916602001615164565b81815284602083860101111561438457600080fd5b816020850160208301376000918101602001919091529392505050565b803560028110610fd357600080fd5b803560048110610fd357600080fd5b803560088110610fd357600080fd5b803561ffff81168114610fd357600080fd5b803560ff81168114610fd357600080fd5b60006020828403121561440357600080fd5b8135612715816153ed565b60006020828403121561442057600080fd5b8151612715816153ed565b6000806040838503121561443e57600080fd5b8235614449816153ed565b91506020830135614459816153ed565b809150509250929050565b60008060006060848603121561447957600080fd5b8335614484816153ed565b92506020840135614494816153ed565b929592945050506040919091013590565b600080600080608085870312156144bb57600080fd5b84356144c6816153ed565b935060208501356144d6816153ed565b92506040850135915060608501356001600160401b038111156144f857600080fd5b61450487828801614332565b91505092959194509250565b60008060006060848603121561452557600080fd5b8335614530816153ed565b925060208401356001600160401b038082111561454c57600080fd5b6145588783880161429d565b9350604086013591508082111561456e57600080fd5b5061457b8682870161429d565b9150509250925092565b6000806040838503121561459857600080fd5b82356145a3816153ed565b91506145b160208401614322565b90509250929050565b600080604083850312156145cd57600080fd5b82356145d8816153ed565b946020939093013593505050565b600080600080600080608087890312156145ff57600080fd5b86356001600160401b038082111561461657600080fd5b6146228a838b01614252565b9098509650602089013591508082111561463b57600080fd5b5061464889828a01614252565b909550935061465b9050604088016143a1565b9150606087013590509295509295509295565b60006020828403121561468057600080fd5b61271582614322565b60006020828403121561469b57600080fd5b5035919050565b600080604083850312156146b557600080fd5b823591506020830135614459816153ed565b6000602082840312156146d957600080fd5b813561271581615405565b6000602082840312156146f657600080fd5b815161271581615405565b6000806040838503121561471457600080fd5b82356001600160401b0381111561472a57600080fd5b61473685828601614332565b95602094909401359450505050565b6000806040838503121561475857600080fd5b614761836143a1565b915060208301356001600160401b0381111561477c57600080fd5b61478885828601614332565b9150509250929050565b600080604083850312156147a557600080fd5b6147ae836143a1565b91506145b1602084016143e0565b600080604083850312156147cf57600080fd5b6147d8836143b0565b91506145b1602084016143bf565b6000806000606084860312156147fb57600080fd5b614804846143b0565b9250614812602085016143bf565b915060408401356001600160401b0381111561482d57600080fd5b61457b86828701614332565b60008060006060848603121561484e57600080fd5b614857846143b0565b9250614865602085016143bf565b9150614873604085016143e0565b90509250925092565b6000806040838503121561488f57600080fd5b614761836143b0565b6000602082840312156148aa57600080fd5b81356001600160401b038111156148c057600080fd5b61230a84828501614332565b6000602082840312156148de57600080fd5b612715826143ce565b6000806000606084860312156148fc57600080fd5b614905846143ce565b9250614865602085016143e0565b6000806000806080858703121561492957600080fd5b614932856143ce565b9350614940602086016143e0565b925061494e604086016143e0565b915061495c606086016143e0565b905092959194509250565b600080600080600060a0868803121561497f57600080fd5b614988866143ce565b9450614996602087016143e0565b93506149a4604087016143e0565b92506149b2606087016143e0565b91506149c0608087016143e0565b90509295509295909350565b60008060008060008060c087890312156149e557600080fd5b6149ee876143ce565b95506149fc602088016143e0565b9450614a0a604088016143e0565b9350614a18606088016143e0565b9250614a26608088016143e0565b9150614a3460a088016143e0565b90509295509295509295565b60008060408385031215614a5357600080fd5b823591506145b1602084016143a1565b600080600060608486031215614a7857600080fd5b83359250614a88602085016143a1565b9150604084013590509250925092565b60008060408385031215614aab57600080fd5b50508035926020909101359150565b60008060008060808587031215614ad057600080fd5b5050823594602084013594506040840135936060013592509050565b60008060408385031215614aff57600080fd5b614b08836143e0565b91506145b1602084016143ce565b600080600080600060a08688031215614b2e57600080fd5b614b37866143e0565b9450614b45602087016143e0565b9350614b53604087016143ce565b9250614b61606087016143b0565b949793965091946080013592915050565b60008151808452614b8a81602086016020860161523c565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614bb857607f831692505b6020808410821415614bda57634e487b7160e01b600052602260045260246000fd5b818015614bee5760018114614bff57614c2c565b60ff19861689528489019650614c2c565b60008881526020902060005b86811015614c245781548b820152908501908301614c0b565b505084890196505b50505050505092915050565b60008551614c4a818460208a0161523c565b8083019050600b60fa1b8082528651614c6a816001850160208b0161523c565b600192019182018190528551614c87816002850160208a0161523c565b60029201918201528351614ca281600384016020880161523c565b016003019695505050505050565b6000614cbc8285614b9e565b602d60f81b8152614cd06001820185614b9e565b95945050505050565b6000614ce58285614b9e565b602f60f81b81528351614cff81600184016020880161523c565b630b9b5c0d60e21b60019290910191820152600501949350505050565b6000600b60fa1b8083528551614d39816001860160208a0161523c565b80840190508160018201528551614d57816002840160208a0161523c565b016002810191909152835190614d7482600383016020880161523c565b0160030195945050505050565b7f4c6974746c652052656420526964696e6720486f6f6420763220000000000000815260008351614db981601a85016020880161523c565b602f60f81b601a918401918201528351614dda81601b84016020880161523c565b01601b01949350505050565b6e3d913a3930b4ba2fba3cb832911d1160891b81528251600090614e1181600f85016020880161523c565b6a1116113b30b63ab2911d1160a91b600f918401918201528351614e3c81601a84016020880161523c565b61227d60f01b601a9290910191820152601c01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d8152600060206332911d1160e11b818401528751614e9c8160248601848c0161523c565b71111610113232b9b1b934b83a34b7b7111d1160711b6024918501918201528751614ecd8160368401858c0161523c565b6b1116101134b6b0b3b2911d1160a11b603692909101918201528651614ef98160428401858b0161523c565b70222c202261747472696275746573223a5b60781b604292909101918201528551614f2a8160538401858a0161523c565b8551910190614f3f816053840185890161523c565b614f65614f58605383850101605d60f81b815260010190565b607d60f81b815260010190565b9a9950505050505050505050565b602d60f81b815260008251614f8f81600185016020870161523c565b9190910160010192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614fd481601785016020880161523c565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161500581602884016020880161523c565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061111d90830184614b72565b6020815260006127156020830184614b72565b602081016002831061506b5761506b615395565b91905290565b602081016004831061506b5761506b615395565b602081016008831061506b5761506b615395565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d125b9d985b1a59081bd9999cd95d60921b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b038111828210171561518c5761518c6153d7565b604052919050565b600082198211156151a7576151a7615369565b500190565b6000826151bb576151bb61537f565b500490565b60008160001904831182151516156151da576151da615369565b500290565b600061ffff838116908316818110156151fa576151fa615369565b039392505050565b60008282101561521457615214615369565b500390565b600060ff821660ff84168082101561523357615233615369565b90039392505050565b60005b8381101561525757818101518382015260200161523f565b838111156123685750506000910152565b60008161527757615277615369565b506000190190565b600181811c9082168061529357607f821691505b602082108114156152b457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff808316818114156152d2576152d2615369565b6001019392505050565b60006000198214156152f0576152f0615369565b5060010190565b600060ff821660ff81141561530e5761530e615369565b60010192915050565b600061ffff8084168061532c5761532c61537f565b92169190910692915050565b6000826153475761534761537f565b500690565b6000600160ff1b82141561536257615362615369565b5060000390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461540257600080fd5b50565b6001600160e01b03198116811461540257600080fdfed8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b4c6974746c652052656420526964696e6720486f6f6420763220697320616e207570677261646564204e46542066726f6d20546564734c6974746c65447265616d27732064656275742064726f70206f66207468652073616d65206e616d6520696e204d6172636820323032312e20436f6d62696e696e6720617274207769746820736d61727420636f6e74726163742c20546564734c6974746c65447265616d2028417274697374292c2070726f7465696e2028536d61727420436f6e747261637420446576656c6f706572292c20616e64204b656e736f6e2028416e696d61746f72292c2068617665206372656174656420616e204e46542074686174206368616e6765732077697468207468652070617373616765206f662074696d652e20436f6c6c6563746f72732063616e2063686f6f73652077686963682070617274206f662074686520776f726c6420746865792764206c696b65207468656972204e4654277320736561736f6e7320746f20747261636b2c207468656e20736974206261636b20616e6420776174636820617320746865207765617468657220696e207468656972204e4654206368616e676573206461696c7920616e6420776974682074686520736561736f6e732ea26469706673582212208e9a23f56f61a03888d896dad5a1e6fb5cb2aaee17d230e0320a92406da7e44064736f6c63430008070033e0283e559c29e31ee7f56467acc9dd307779c843a883aeeb3bf5c6128c908144a7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582079adb202b1492743bc00c81d33cdc6423fa8c79109027eb6a845391e8fc1f0481e710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d556e53385370746434645679707772357a6a38326b4d766b63445067386150566855357665515076447270620000000000000000000000
Deployed Bytecode
0x6080604052600436106103ef5760003560e01c80637f79183311610208578063a6f0e57711610118578063cd4d4ddb116100ab578063e985e9c51161007a578063e985e9c514610c6d578063eb8d244414610cb6578063f011189114610cd5578063f32a635e14610cf5578063fa93f88314610d1557600080fd5b8063cd4d4ddb14610bed578063d1b1ed7b14610c0d578063d547741f14610c2d578063e4a53fdb14610c4d57600080fd5b8063b88d4fde116100e7578063b88d4fde14610b6d578063c028342014610b8d578063c4e3709514610bad578063c87b56dd14610bcd57600080fd5b8063a6f0e57714610aba578063b199993714610ada578063b238ad0e14610afa578063b44bc63814610b1a57600080fd5b806391d148541161019b5780639ef875531161016a5780639ef8755314610a18578063a217fddf14610a38578063a22cb46514610a4d578063a324ad2414610a6d578063a54d080914610a8d57600080fd5b806391d148541461099057806392d66313146109b057806395d89b41146109e35780639a117d15146109f857600080fd5b806385970786116101d757806385970786146109105780638aa001fc146109305780638c8d98a0146109505780639054bdec1461097057600080fd5b80637f7918331461088757806381914619146108a7578063819b25ba146108d4578063833b9499146108f457600080fd5b8063487e03aa116103035780636352211e1161029657806367627b621161026557806367627b62146107ca578063693ae569146107ea5780636b8ff5741461082757806370a0823114610847578063732f33c71461086757600080fd5b80636352211e1461075b57806365c728401461077b57806365f130971461079b57806366caa6ab146107b057600080fd5b806355edf3cb116102d257806355edf3cb146106db57806355f804b3146106fb5780635ce289ba1461071b57806362ba96871461073b57600080fd5b8063487e03aa146106685780634ac1ad78146106885780634f6ccce7146106a857806355a21e51146106c857600080fd5b8063248a9ca3116103865780632f745c59116103555780632f745c59146105c157806336568abe146105e15780633ccfd60b146106015780633e239e1a1461061657806342842e0e1461064857600080fd5b8063248a9ca31461052457806329d704c0146105545780632af8a413146105815780632f2ff15d146105a157600080fd5b80630bb3e510116103c25780630bb3e510146104a557806318160ddd146104c557806320524a29146104e457806323b872dd1461050457600080fd5b806301ffc9a7146103f457806306fdde0314610429578063081812fc1461044b578063095ea7b314610483575b600080fd5b34801561040057600080fd5b5061041461040f3660046146c7565b610d35565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b5061043e610d46565b6040516104209190615044565b34801561045757600080fd5b5061046b610466366004614689565b610dd8565b6040516001600160a01b039091168152602001610420565b34801561048f57600080fd5b506104a361049e3660046145ba565b610e72565b005b3480156104b157600080fd5b5061043e6104c0366004614689565b610f88565b3480156104d157600080fd5b506008545b604051908152602001610420565b3480156104f057600080fd5b506104a36104ff366004614a98565b610fd8565b34801561051057600080fd5b506104a361051f366004614464565b611073565b34801561053057600080fd5b506104d661053f366004614689565b6000908152600a602052604090206001015490565b34801561056057600080fd5b5061057461056f366004614b16565b6110a4565b6040516104209190615085565b34801561058d57600080fd5b506104a361059c366004614510565b611127565b3480156105ad57600080fd5b506104a36105bc3660046146a2565b61145e565b3480156105cd57600080fd5b506104d66105dc3660046145ba565b611484565b3480156105ed57600080fd5b506104a36105fc3660046146a2565b61151a565b34801561060d57600080fd5b506104a3611598565b34801561062257600080fd5b50610636610631366004614689565b61162f565b60405160ff9091168152602001610420565b34801561065457600080fd5b506104a3610663366004614464565b611653565b34801561067457600080fd5b50610414610683366004614689565b61166e565b34801561069457600080fd5b506106366106a3366004614689565b611685565b3480156106b457600080fd5b506104d66106c3366004614689565b6116a1565b6104a36106d6366004614a63565b611734565b3480156106e757600080fd5b506104a36106f63660046145e6565b6119af565b34801561070757600080fd5b506104a3610716366004614898565b611f4c565b34801561072757600080fd5b506104a361073636600461466e565b611f78565b34801561074757600080fd5b506104d6610756366004614967565b611fa5565b34801561076757600080fd5b5061046b610776366004614689565b611fb6565b34801561078757600080fd5b50610636610796366004614689565b61202d565b3480156107a757600080fd5b506104d6600f81565b3480156107bc57600080fd5b50600c546104149060ff1681565b3480156107d657600080fd5b506104146107e53660046145ba565b612042565b3480156107f657600080fd5b5061081a610805366004614689565b60136020526000908152604090205460ff1681565b6040516104209190615057565b34801561083357600080fd5b5061043e610842366004614689565b61217d565b34801561085357600080fd5b506104d66108623660046143f1565b6121a8565b34801561087357600080fd5b5061043e6108823660046147bc565b61222f565b34801561089357600080fd5b506104d66108a2366004614913565b6122f6565b3480156108b357600080fd5b506104d66108c2366004614689565b60126020526000908152604090205481565b3480156108e057600080fd5b506104a36108ef366004614689565b612312565b34801561090057600080fd5b506104d6670429d069189e000081565b34801561091c57600080fd5b506104a361092b3660046147e6565b61236e565b34801561093c57600080fd5b5061063661094b366004614689565b61240a565b34801561095c57600080fd5b506104d661096b3660046148e7565b612417565b34801561097c57600080fd5b506104d661098b3660046149cc565b612425565b34801561099c57600080fd5b506104146109ab3660046146a2565b6125d6565b3480156109bc57600080fd5b506109d06109cb366004614689565b612601565b60405161ffff9091168152602001610420565b3480156109ef57600080fd5b5061043e6126f1565b348015610a0457600080fd5b506104d6610a13366004614701565b612700565b348015610a2457600080fd5b506104a3610a3336600461487c565b61271c565b348015610a4457600080fd5b506104d6600081565b348015610a5957600080fd5b506104a3610a68366004614585565b61277e565b348015610a7957600080fd5b50610636610a88366004614689565b612789565b348015610a9957600080fd5b50610aad610aa8366004614689565b61279e565b6040516104209190615071565b348015610ac657600080fd5b50610414610ad53660046148cc565b6127bd565b348015610ae657600080fd5b506104d6610af5366004614689565b61281c565b348015610b0657600080fd5b50610636610b15366004614aec565b612861565b348015610b2657600080fd5b5061043e610b35366004614aba565b6040805160208101959095528481019390935260608401919091526080808401919091528151808403909101815260a0909201905290565b348015610b7957600080fd5b506104a3610b883660046144a5565b612927565b348015610b9957600080fd5b50610aad610ba8366004614792565b612959565b348015610bb957600080fd5b506104a3610bc836600461466e565b612a16565b348015610bd957600080fd5b5061043e610be8366004614689565b612a4a565b348015610bf957600080fd5b506104a3610c08366004614a40565b612ae3565b348015610c1957600080fd5b5061043e610c28366004614689565b612b7a565b348015610c3957600080fd5b506104a3610c483660046146a2565b612ba4565b348015610c5957600080fd5b506104a3610c68366004614745565b612bca565b348015610c7957600080fd5b50610414610c8836600461442b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610cc257600080fd5b50600c5461041490610100900460ff1681565b348015610ce157600080fd5b506104a3610cf0366004614839565b612c0b565b348015610d0157600080fd5b50610574610d10366004614689565b612cab565b348015610d2157600080fd5b50610636610d30366004614689565b612d0c565b6000610d4082612d1a565b92915050565b606060008054610d559061527f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d819061527f565b8015610dce5780601f10610da357610100808354040283529160200191610dce565b820191906000526020600020905b815481529060010190602001808311610db157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e565760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610e7d82611fb6565b9050806001600160a01b0316836001600160a01b03161415610eeb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e4d565b336001600160a01b0382161480610f075750610f078133610c88565b610f795760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e4d565b610f838383612d3f565b505050565b60606000821215610fca57610fa4610f9f8361534c565b612dad565b604051602001610fb49190614f73565b6040516020818303038152906040529050919050565b610d4082612dad565b919050565b610fe182611fb6565b6001600160a01b0316336001600160a01b03161461103c5760405162461bcd60e51b815260206004820152601860248201527726bab9ba103132903a3432903a37b5b2b71037bbb732b91760411b6044820152606401610e4d565b6110458161166e565b6110615760405162461bcd60e51b8152600401610e4d906150eb565b60009182526012602052604090912055565b61107d3382612eaa565b6110995760405162461bcd60e51b8152600401610e4d90615113565b610f83838383612f9d565b6040805160ff808816602083015286168183015261ffff8516606082015260808082018490528251808303909101815260a090910190915260009061111d90601160008660038111156110f9576110f9615395565b600381111561110a5761110a615395565b8152602001908152602001600020613148565b9695505050505050565b60008051602061541c83398151915261114081336132bd565b81518351146111915760405162461bcd60e51b815260206004820181905260248201527f52656465656d3a20496e76616c696420696e70757420706172616d65746572736044820152606401610e4d565b6001600160a01b038416600090815260146020526040812054905b81811015611241576001600160a01b03861660009081526014602052604081208054839081106111de576111de6153c1565b600091825260208083206002909202909101929092556001600160a01b038816815260149091526040812080548390811061121b5761121b6153c1565b600091825260209091206001600290920201015580611239816152dc565b9150506111ac565b5060005b845181101561145657838181518110611260576112606153c1565b602002602001015185828151811061127a5761127a6153c1565b6020026020010151106112d95760405162461bcd60e51b815260206004820152602160248201527f52656465656d3a206d696e206d757374206265206c657373207468616e206d616044820152600f60fb1b6064820152608401610e4d565b818110156113b0578481815181106112f3576112f36153c1565b602002602001015160146000886001600160a01b03166001600160a01b031681526020019081526020016000208281548110611331576113316153c1565b906000526020600020906002020160000181905550838181518110611358576113586153c1565b602002602001015160146000886001600160a01b03166001600160a01b031681526020019081526020016000208281548110611396576113966153c1565b906000526020600020906002020160010181905550611444565b60146000876001600160a01b03166001600160a01b0316815260200190815260200160002060405180604001604052808784815181106113f2576113f26153c1565b60200260200101518152602001868481518110611411576114116153c1565b60209081029190910181015190915282546001818101855560009485529382902083516002909202019081559101519101555b8061144e816152dc565b915050611245565b505050505050565b6000828152600a602052604090206001015461147a81336132bd565b610f838383613321565b600061148f836121a8565b82106114f15760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610e4d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b038116331461158a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e4d565b61159482826133a7565b5050565b60006115a481336132bd565b604051600090339047908381818185875af1925050503d80600081146115e6576040519150601f19603f3d011682016040523d82523d6000602084013e6115eb565b606091505b50509050806115945760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610e4d565b60006018603c61163f81856151ac565b61164991906151ac565b610d409190615338565b610f8383838360405180602001604052806000815250612927565b6000600d198212158015610d40575050600e121590565b6000600761169662015180846151ac565b611649906004615194565b60006116ac60085490565b821061170f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610e4d565b60088281548110611722576117226153c1565b90600052602060002001549050919050565b6002600b5414156117875760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e4d565b6002600b55600061179760085490565b600c54909150610100900460ff166118005760405162461bcd60e51b815260206004820152602660248201527f53616c65206d7573742062652061637469766520746f20707572636861736520604482015265746f6b656e7360d01b6064820152608401610e4d565b600f84106118505760405162461bcd60e51b815260206004820152601b60248201527f4578636565646564206d617820746f6b656e20707572636861736500000000006044820152606401610e4d565b606461185c8583615194565b106118a95760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e736044820152606401610e4d565b346118bc85670429d069189e00006151c0565b146119095760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610e4d565b6119128261166e565b61192e5760405162461bcd60e51b8152600401610e4d906150eb565b60005b848110156119a35760006119458284615194565b9050611951338261340e565b6000818152601360205260409020805486919060ff19166001838181111561197b5761197b615395565b021790555060009081526012602052604090208390558061199b816152dc565b915050611931565b50506001600b55505050565b6002600b541415611a025760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e4d565b6002600b556000611a1260085490565b600c5490915060ff16611a5c5760405162461bcd60e51b81526020600482015260126024820152714275726e206973206e6f742061637469766560701b6044820152606401610e4d565b858414611aab5760405162461bcd60e51b815260206004820152601e60248201527f4275726e52656465656d3a20496e76616c696420706172616d657465727300006044820152606401610e4d565b60038614611b175760405162461bcd60e51b815260206004820152603360248201527f4275726e52656465656d3a20496e636f7272656374206e756d626572206f66206044820152721391951cc818995a5b99c81c995919595b5959606a1b6064820152608401610e4d565b6064611b24826001615194565b10611b7c5760405162461bcd60e51b815260206004820152602260248201527f526564656d7074696f6e20776f756c6420657863656564206d617820746f6b656044820152616e7360f01b6064820152608401610e4d565b611b858261166e565b611ba15760405162461bcd60e51b8152600401610e4d906150eb565b60005b86811015611ef757611bf4888883818110611bc157611bc16153c1565b9050602002016020810190611bd691906143f1565b878784818110611be857611be86153c1565b90506020020135612042565b611c365760405162461bcd60e51b81526020600482015260136024820152721c995919595b4e88125b9d985b1a5908139195606a1b6044820152606401610e4d565b878782818110611c4857611c486153c1565b9050602002016020810190611c5d91906143f1565b6001600160a01b0316636352211e878784818110611c7d57611c7d6153c1565b905060200201356040518263ffffffff1660e01b8152600401611ca291815260200190565b60206040518083038186803b158015611cba57600080fd5b505afa925050508015611cea575060408051601f3d908101601f19168201909252611ce79181019061440e565b60015b611d66573d808015611d18576040519150601f19603f3d011682016040523d82523d6000602084013e611d1d565b606091505b5060405162461bcd60e51b815260206004820152601b60248201527f7265646565656d3a2042616420746f6b656e20636f6e747261637400000000006044820152606401610e4d565b6001600160a01b0381163314611dbe5760405162461bcd60e51b815260206004820152601c60248201527f72656465656d3a2043616c6c6572206d757374206f776e204e465473000000006044820152606401610e4d565b50878782818110611dd157611dd16153c1565b9050602002016020810190611de691906143f1565b6001600160a01b03166323b872dd3361dead898986818110611e0a57611e0a6153c1565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015611e6157600080fd5b505af1925050508015611e72575060015b611ee5573d808015611ea0576040519150601f19603f3d011682016040523d82523d6000602084013e611ea5565b606091505b5060405162461bcd60e51b815260206004820152601460248201527372656465656d3a204275726e206661696c75726560601b6044820152606401610e4d565b80611eef816152dc565b915050611ba4565b50611f02338261340e565b6000818152601360205260409020805484919060ff191660018381811115611f2c57611f2c615395565b021790555060009081526012602052604090205550506001600b55505050565b60008051602061541c833981519152611f6581336132bd565b8151610f8390600d90602085019061419a565b60008051602061541c833981519152611f9181336132bd565b50600c805460ff1916911515919091179055565b600061111d86868686866000612425565b6000818152600260205260408120546001600160a01b031680610d405760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610e4d565b600061203882613428565b6040015192915050565b6001600160a01b038216600090815260146020526040812054156121745760005b6001600160a01b038416600090815260146020526040902054811015612172576001600160a01b03841660009081526014602052604090208054829081106120ad576120ad6153c1565b90600052602060002090600202016001015460001415801561210a57506001600160a01b03841660009081526014602052604090208054829081106120f4576120f46153c1565b9060005260206000209060020201600001548310155b801561215157506001600160a01b038416600090815260146020526040902080548290811061213b5761213b6153c1565b9060005260206000209060020201600101548311155b15612160576001915050610d40565b8061216a816152dc565b915050612063565b505b50600092915050565b606061218d610f9f836001615194565b6121976064612dad565b604051602001610fb4929190614d81565b60006001600160a01b0382166122135760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610e4d565b506001600160a01b031660009081526003602052604090205490565b6060600f600084600381111561224757612247615395565b600381111561225857612258615395565b8152602001908152602001600020600e600085600381111561227c5761227c615395565b600381111561228d5761228d615395565b815260200190815260200160002060008460078111156122af576122af615395565b60078111156122c0576122c0615395565b81526020019081526020016000206040516020016122df929190614cb0565b604051602081830303815290604052905092915050565b600061230785858585600080612425565b90505b949350505050565b60008051602061541c83398151915261232b81336132bd565b600061233660085490565b905060005b8381101561236857612356336123518385615194565b61340e565b80612360816152dc565b91505061233b565b50505050565b60008051602061541c83398151915261238781336132bd565b81600e600086600381111561239e5761239e615395565b60038111156123af576123af615395565b815260200190815260200160002060008560078111156123d1576123d1615395565b60078111156123e2576123e2615395565b8152602001908152602001600020908051906020019061240392919061419a565b5050505050565b6000610d40603c83615338565b600061230a84848460008060005b60006107b25b8761ffff168161ffff16101561248157612444816127bd565b1561245e576124576301e2850083615194565b915061246f565b61246c6301e1338083615194565b91505b80612479816152ba565b91505061242b565b61248961421e565b601f8152612496896127bd565b156124a757601d60208201526124af565b601c60208201525b601f60408201819052601e606083018190526080830182905260a0830181905260c0830182905260e0830182905261010083018190526101208301829052610140830152610160820152600191505b8760ff168261ffff16101561256057806125196001846151df565b61ffff16600c811061252d5761252d6153c1565b60200201516125429060ff16620151806151c0565b61254c9084615194565b925081612558816152ba565b9250506124fe565b61256b600188615219565b61257b9060ff16620151806151c0565b6125859084615194565b925061259660ff8716610e106151c0565b6125a09084615194565b92506125b060ff8616603c6151c0565b6125ba9084615194565b92506125c960ff851684615194565b9998505050505050505050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60008080806126146301e13380866151ac565b612620906107b2615194565b915061262d6107b261281c565b61263a8361ffff1661281c565b6126449190615202565b9050612654816301e285006151c0565b61265e9084615194565b92508061266d6107b2846151df565b61ffff1661267b9190615202565b612689906301e133806151c0565b6126939084615194565b92505b848311156126e9576126ac610ad56001846151df565b156126c6576126bf6301e2850084615202565b92506126d7565b6126d46301e1338084615202565b92505b6126e26001836151df565b9150612696565b509392505050565b606060018054610d559061527f565b81516020830120600090612715908390615338565b9392505050565b60008051602061541c83398151915261273581336132bd565b81600f600085600381111561274c5761274c615395565b600381111561275d5761275d615395565b8152602001908152602001600020908051906020019061236892919061419a565b611594338383613610565b600061279482613428565b6020015192915050565b600081815260136020526040812054610d409060ff16610ba842612789565b60006127ca600483615317565b61ffff16156127db57506000919050565b6127e6606483615317565b61ffff16156127f757506001919050565b61280361019083615317565b61ffff161561281457506000919050565b506001919050565b6000612829600183615202565b9150612837610190836151ac565b6128426064846151ac565b61284d6004856151ac565b6128579190615202565b610d409190615194565b60008260ff166001148061287857508260ff166003145b8061288657508260ff166005145b8061289457508260ff166007145b806128a257508260ff166008145b806128b057508260ff16600a145b806128be57508260ff16600c145b156128cb5750601f610d40565b8260ff16600414806128e057508260ff166006145b806128ee57508260ff166009145b806128fc57508260ff16600b145b156129095750601e610d40565b612912826127bd565b1561291f5750601d610d40565b50601c610d40565b6129313383612eaa565b61294d5760405162461bcd60e51b8152600401610e4d90615113565b612368848484846136df565b60008083600181111561296e5761296e615395565b14156129c55760028260ff1611158061298a57508160ff16600c145b1561299757506003610d40565b60058260ff16116129aa57506000610d40565b60088260ff16116129bd57506001610d40565b506002610d40565b60028260ff161115806129db57508160ff16600c145b156129e857506001610d40565b60058260ff16116129fb57506002610d40565b60088260ff1611612a0e57506003610d40565b506000610d40565b60008051602061541c833981519152612a2f81336132bd565b50600c80549115156101000261ff0019909216919091179055565b6000818152600260205260409020546060906001600160a01b0316612aa45760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b6044820152606401610e4d565b612aad8261217d565b612ab5613712565b612abe84612b7a565b612ac785613735565b612acf61397e565b604051602001610fb4959493929190614e57565b612aec82611fb6565b6001600160a01b0316336001600160a01b031614612b475760405162461bcd60e51b815260206004820152601860248201527726bab9ba103132903a3432903a37b5b2b71037bbb732b91760411b6044820152606401610e4d565b6000828152601360205260409020805482919060ff191660018381811115612b7157612b71615395565b02179055505050565b6060600d612b93612b8a8461279e565b61088285612cab565b604051602001610fb4929190614cd9565b6000828152600a6020526040902060010154612bc081336132bd565b610f8383836133a7565b60008051602061541c833981519152612be381336132bd565b8160106000856001811115612bfa57612bfa615395565b600181111561275d5761275d615395565b60008051602061541c833981519152612c2481336132bd565b8160116000866003811115612c3b57612c3b615395565b6003811115612c4c57612c4c615395565b81526020019081526020016000206000856007811115612c6e57612c6e615395565b6007811115612c7f57612c7f615395565b815260200190815260200160002060006101000a81548160ff021916908360ff16021790555050505050565b60004281612cb882612789565b90506000612cc58361202d565b90506000612cd284612601565b60008781526013602052604081205491925090612cf29060ff1685612959565b9050612d01848484848b6110a4565b979650505050505050565b6000603c61164981846151ac565b60006001600160e01b03198216637965db0b60e01b1480610d405750610d4082613aa2565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d7482611fb6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606081612dd15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612dfb5780612de5816152dc565b9150612df49050600a836151ac565b9150612dd5565b6000816001600160401b03811115612e1557612e156153d7565b6040519080825280601f01601f191660200182016040528015612e3f576020820181803683370190505b5090505b841561230a57612e54600183615202565b9150612e61600a86615338565b612e6c906030615194565b60f81b818381518110612e8157612e816153c1565b60200101906001600160f81b031916908160001a905350612ea3600a866151ac565b9450612e43565b6000818152600260205260408120546001600160a01b0316612f235760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e4d565b6000612f2e83611fb6565b9050806001600160a01b0316846001600160a01b03161480612f695750836001600160a01b0316612f5e84610dd8565b6001600160a01b0316145b8061230a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661230a565b826001600160a01b0316612fb082611fb6565b6001600160a01b0316146130185760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610e4d565b6001600160a01b03821661307a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e4d565b613085838383613ac7565b613090600082612d3f565b6001600160a01b03831660009081526003602052604081208054600192906130b9908490615202565b90915550506001600160a01b03821660009081526003602052604081208054600192906130e7908490615194565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080805b60068110156131bf5783600082600781111561316b5761316b615395565b600781111561317c5761317c615395565b600781111561318d5761318d615395565b81526020810191909152604001600020546131ab9060ff1683615194565b9150806131b7816152dc565b91505061314d565b5060006131cc8583612700565b905060005b60068110156132b1578460008260078111156131ef576131ef615395565b600781111561320057613200615395565b600781111561321157613211615395565b815260208101919091526040016000205460ff168210156132485780600781111561323e5761323e615395565b9350505050610d40565b84600082600781111561325d5761325d615395565b600781111561326e5761326e615395565b600781111561327f5761327f615395565b815260208101919091526040016000205461329d9060ff1683615202565b9150806132a9816152dc565b9150506131d1565b50600395945050505050565b6132c782826125d6565b611594576132df816001600160a01b03166014613b7f565b6132ea836020613b7f565b6040516020016132fb929190614f9c565b60408051601f198184030181529082905262461bcd60e51b8252610e4d91600401615044565b61332b82826125d6565b611594576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556133633390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6133b182826125d6565b15611594576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b611594828260405180602001604052806000815250613d1a565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905290808061346c85612601565b61ffff16845261347d6107b261281c565b845161348c9061ffff1661281c565b6134969190615202565b91506134a6826301e285006151c0565b6134b09084615194565b9250816107b285600001516134c591906151df565b61ffff166134d39190615202565b6134e1906301e133806151c0565b6134eb9084615194565b92506000600191505b600c8260ff161161355c5761350d828660000151612861565b61351d9060ff16620151806151c0565b90508561352a8583615194565b111561353e5760ff8216602086015261355c565b6135488185615194565b935081613554816152f7565b9250506134f4565b600191505b61357385602001518660000151612861565b60ff168260ff16116135c2578561358d8562015180615194565b11156135a15760ff821660408601526135c2565b6135ae6201518085615194565b9350816135ba816152f7565b925050613561565b6135cb8661162f565b60ff1660608601526135dc86612d0c565b60ff1660808601526135ed8661240a565b60ff1660a08601526135fe86611685565b60ff1660c08601525092949350505050565b816001600160a01b0316836001600160a01b031614156136725760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e4d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6136ea848484612f9d565b6136f684848484613d4d565b6123685760405162461bcd60e51b8152600401610e4d90615099565b60606040518061020001604052806101d1815260200161543c6101d19139905090565b606060006137428361279e565b9050613865604051806040016040528060078152602001662bb2b0ba3432b960c91b815250600e600084600381111561377d5761377d615395565b600381111561378e5761378e615395565b815260200190815260200160002060006137a787612cab565b60078111156137b8576137b8615395565b60078111156137c9576137c9615395565b815260200190815260200160002080546137e29061527f565b80601f016020809104026020016040519081016040528092919081815260200182805461380e9061527f565b801561385b5780601f106138305761010080835404028352916020019161385b565b820191906000526020600020905b81548152906001019060200180831161383e57829003601f168201915b5050505050613e57565b6138ae6040518060400160405280600681526020016529b2b0b9b7b760d11b815250600f600085600381111561389d5761389d615395565b60038111156137c9576137c9615395565b6138f66040518060400160405280600b81526020016a121bdd5c8813d9999cd95d60aa1b8152506138f16012600089815260200190815260200160002054610f88565b613e57565b604080518082018252600a81526948656d6973706865726560b01b60208083019190915260008981526013909152918220546139549260109160ff16600181111561394357613943615395565b60018111156137c9576137c9615395565b6040516020016139679493929190614c38565b604051602081830303815290604052915050919050565b60606139cf60405180604001604052806006815260200165105c9d1a5cdd60d21b8152506040518060400160405280600f81526020016e546564734c6974746c65447265616d60881b815250613e57565b613a226040518060400160405280600b81526020016a436f6e747261637420627960a81b8152506040518060400160405280600e81526020016d15d95cdd0810dbd85cdd0813919560921b815250613e57565b613a7c6040518060400160405280600a81526020016921b7b63632b1ba34b7b760b11b81525060405180604001604052806016815260200175131a5d1d1b194814995908149a591a5b99c8121bdbd960521b815250613e57565b604051602001613a8e93929190614d1c565b604051602081830303815290604052905090565b60006001600160e01b0319821663780e9d6360e01b1480610d405750610d4082613e6c565b6001600160a01b038316613b2257613b1d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613b45565b816001600160a01b0316836001600160a01b031614613b4557613b458382613ebc565b6001600160a01b038216613b5c57610f8381613f59565b826001600160a01b0316826001600160a01b031614610f8357610f838282614008565b60606000613b8e8360026151c0565b613b99906002615194565b6001600160401b03811115613bb057613bb06153d7565b6040519080825280601f01601f191660200182016040528015613bda576020820181803683370190505b509050600360fc1b81600081518110613bf557613bf56153c1565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613c2457613c246153c1565b60200101906001600160f81b031916908160001a9053506000613c488460026151c0565b613c53906001615194565b90505b6001811115613ccb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613c8757613c876153c1565b1a60f81b828281518110613c9d57613c9d6153c1565b60200101906001600160f81b031916908160001a90535060049490941c93613cc481615268565b9050613c56565b5083156127155760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e4d565b613d24838361404c565b613d316000848484613d4d565b610f835760405162461bcd60e51b8152600401610e4d90615099565b60006001600160a01b0384163b15613e4f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d91903390899088908890600401615011565b602060405180830381600087803b158015613dab57600080fd5b505af1925050508015613ddb575060408051601f3d908101601f19168201909252613dd8918101906146e4565b60015b613e35573d808015613e09576040519150601f19603f3d011682016040523d82523d6000602084013e613e0e565b606091505b508051613e2d5760405162461bcd60e51b8152600401610e4d90615099565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061230a565b50600161230a565b606082826040516020016122df929190614de6565b60006001600160e01b031982166380ac58cd60e01b1480613e9d57506001600160e01b03198216635b5e139f60e01b145b80610d4057506301ffc9a760e01b6001600160e01b0319831614610d40565b60006001613ec9846121a8565b613ed39190615202565b600083815260076020526040902054909150808214613f26576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613f6b90600190615202565b60008381526009602052604081205460088054939450909284908110613f9357613f936153c1565b906000526020600020015490508060088381548110613fb457613fb46153c1565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613fec57613fec6153ab565b6001900381819060005260206000200160009055905550505050565b6000614013836121a8565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166140a25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e4d565b6000818152600260205260409020546001600160a01b0316156141075760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e4d565b61411360008383613ac7565b6001600160a01b038216600090815260036020526040812080546001929061413c908490615194565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546141a69061527f565b90600052602060002090601f0160209004810192826141c8576000855561420e565b82601f106141e157805160ff191683800117855561420e565b8280016001018555821561420e579182015b8281111561420e5782518255916020019190600101906141f3565b5061421a92915061423d565b5090565b604051806101800160405280600c906020820280368337509192915050565b5b8082111561421a576000815560010161423e565b60008083601f84011261426457600080fd5b5081356001600160401b0381111561427b57600080fd5b6020830191508360208260051b850101111561429657600080fd5b9250929050565b600082601f8301126142ae57600080fd5b813560206001600160401b038211156142c9576142c96153d7565b8160051b6142d8828201615164565b8381528281019086840183880185018910156142f357600080fd5b600093505b858410156143165780358352600193909301929184019184016142f8565b50979650505050505050565b80358015158114610fd357600080fd5b600082601f83011261434357600080fd5b81356001600160401b0381111561435c5761435c6153d7565b61436f601f8201601f1916602001615164565b81815284602083860101111561438457600080fd5b816020850160208301376000918101602001919091529392505050565b803560028110610fd357600080fd5b803560048110610fd357600080fd5b803560088110610fd357600080fd5b803561ffff81168114610fd357600080fd5b803560ff81168114610fd357600080fd5b60006020828403121561440357600080fd5b8135612715816153ed565b60006020828403121561442057600080fd5b8151612715816153ed565b6000806040838503121561443e57600080fd5b8235614449816153ed565b91506020830135614459816153ed565b809150509250929050565b60008060006060848603121561447957600080fd5b8335614484816153ed565b92506020840135614494816153ed565b929592945050506040919091013590565b600080600080608085870312156144bb57600080fd5b84356144c6816153ed565b935060208501356144d6816153ed565b92506040850135915060608501356001600160401b038111156144f857600080fd5b61450487828801614332565b91505092959194509250565b60008060006060848603121561452557600080fd5b8335614530816153ed565b925060208401356001600160401b038082111561454c57600080fd5b6145588783880161429d565b9350604086013591508082111561456e57600080fd5b5061457b8682870161429d565b9150509250925092565b6000806040838503121561459857600080fd5b82356145a3816153ed565b91506145b160208401614322565b90509250929050565b600080604083850312156145cd57600080fd5b82356145d8816153ed565b946020939093013593505050565b600080600080600080608087890312156145ff57600080fd5b86356001600160401b038082111561461657600080fd5b6146228a838b01614252565b9098509650602089013591508082111561463b57600080fd5b5061464889828a01614252565b909550935061465b9050604088016143a1565b9150606087013590509295509295509295565b60006020828403121561468057600080fd5b61271582614322565b60006020828403121561469b57600080fd5b5035919050565b600080604083850312156146b557600080fd5b823591506020830135614459816153ed565b6000602082840312156146d957600080fd5b813561271581615405565b6000602082840312156146f657600080fd5b815161271581615405565b6000806040838503121561471457600080fd5b82356001600160401b0381111561472a57600080fd5b61473685828601614332565b95602094909401359450505050565b6000806040838503121561475857600080fd5b614761836143a1565b915060208301356001600160401b0381111561477c57600080fd5b61478885828601614332565b9150509250929050565b600080604083850312156147a557600080fd5b6147ae836143a1565b91506145b1602084016143e0565b600080604083850312156147cf57600080fd5b6147d8836143b0565b91506145b1602084016143bf565b6000806000606084860312156147fb57600080fd5b614804846143b0565b9250614812602085016143bf565b915060408401356001600160401b0381111561482d57600080fd5b61457b86828701614332565b60008060006060848603121561484e57600080fd5b614857846143b0565b9250614865602085016143bf565b9150614873604085016143e0565b90509250925092565b6000806040838503121561488f57600080fd5b614761836143b0565b6000602082840312156148aa57600080fd5b81356001600160401b038111156148c057600080fd5b61230a84828501614332565b6000602082840312156148de57600080fd5b612715826143ce565b6000806000606084860312156148fc57600080fd5b614905846143ce565b9250614865602085016143e0565b6000806000806080858703121561492957600080fd5b614932856143ce565b9350614940602086016143e0565b925061494e604086016143e0565b915061495c606086016143e0565b905092959194509250565b600080600080600060a0868803121561497f57600080fd5b614988866143ce565b9450614996602087016143e0565b93506149a4604087016143e0565b92506149b2606087016143e0565b91506149c0608087016143e0565b90509295509295909350565b60008060008060008060c087890312156149e557600080fd5b6149ee876143ce565b95506149fc602088016143e0565b9450614a0a604088016143e0565b9350614a18606088016143e0565b9250614a26608088016143e0565b9150614a3460a088016143e0565b90509295509295509295565b60008060408385031215614a5357600080fd5b823591506145b1602084016143a1565b600080600060608486031215614a7857600080fd5b83359250614a88602085016143a1565b9150604084013590509250925092565b60008060408385031215614aab57600080fd5b50508035926020909101359150565b60008060008060808587031215614ad057600080fd5b5050823594602084013594506040840135936060013592509050565b60008060408385031215614aff57600080fd5b614b08836143e0565b91506145b1602084016143ce565b600080600080600060a08688031215614b2e57600080fd5b614b37866143e0565b9450614b45602087016143e0565b9350614b53604087016143ce565b9250614b61606087016143b0565b949793965091946080013592915050565b60008151808452614b8a81602086016020860161523c565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614bb857607f831692505b6020808410821415614bda57634e487b7160e01b600052602260045260246000fd5b818015614bee5760018114614bff57614c2c565b60ff19861689528489019650614c2c565b60008881526020902060005b86811015614c245781548b820152908501908301614c0b565b505084890196505b50505050505092915050565b60008551614c4a818460208a0161523c565b8083019050600b60fa1b8082528651614c6a816001850160208b0161523c565b600192019182018190528551614c87816002850160208a0161523c565b60029201918201528351614ca281600384016020880161523c565b016003019695505050505050565b6000614cbc8285614b9e565b602d60f81b8152614cd06001820185614b9e565b95945050505050565b6000614ce58285614b9e565b602f60f81b81528351614cff81600184016020880161523c565b630b9b5c0d60e21b60019290910191820152600501949350505050565b6000600b60fa1b8083528551614d39816001860160208a0161523c565b80840190508160018201528551614d57816002840160208a0161523c565b016002810191909152835190614d7482600383016020880161523c565b0160030195945050505050565b7f4c6974746c652052656420526964696e6720486f6f6420763220000000000000815260008351614db981601a85016020880161523c565b602f60f81b601a918401918201528351614dda81601b84016020880161523c565b01601b01949350505050565b6e3d913a3930b4ba2fba3cb832911d1160891b81528251600090614e1181600f85016020880161523c565b6a1116113b30b63ab2911d1160a91b600f918401918201528351614e3c81601a84016020880161523c565b61227d60f01b601a9290910191820152601c01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d8152600060206332911d1160e11b818401528751614e9c8160248601848c0161523c565b71111610113232b9b1b934b83a34b7b7111d1160711b6024918501918201528751614ecd8160368401858c0161523c565b6b1116101134b6b0b3b2911d1160a11b603692909101918201528651614ef98160428401858b0161523c565b70222c202261747472696275746573223a5b60781b604292909101918201528551614f2a8160538401858a0161523c565b8551910190614f3f816053840185890161523c565b614f65614f58605383850101605d60f81b815260010190565b607d60f81b815260010190565b9a9950505050505050505050565b602d60f81b815260008251614f8f81600185016020870161523c565b9190910160010192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614fd481601785016020880161523c565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161500581602884016020880161523c565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061111d90830184614b72565b6020815260006127156020830184614b72565b602081016002831061506b5761506b615395565b91905290565b602081016004831061506b5761506b615395565b602081016008831061506b5761506b615395565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600e908201526d125b9d985b1a59081bd9999cd95d60921b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b038111828210171561518c5761518c6153d7565b604052919050565b600082198211156151a7576151a7615369565b500190565b6000826151bb576151bb61537f565b500490565b60008160001904831182151516156151da576151da615369565b500290565b600061ffff838116908316818110156151fa576151fa615369565b039392505050565b60008282101561521457615214615369565b500390565b600060ff821660ff84168082101561523357615233615369565b90039392505050565b60005b8381101561525757818101518382015260200161523f565b838111156123685750506000910152565b60008161527757615277615369565b506000190190565b600181811c9082168061529357607f821691505b602082108114156152b457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff808316818114156152d2576152d2615369565b6001019392505050565b60006000198214156152f0576152f0615369565b5060010190565b600060ff821660ff81141561530e5761530e615369565b60010192915050565b600061ffff8084168061532c5761532c61537f565b92169190910692915050565b6000826153475761534761537f565b500690565b6000600160ff1b82141561536257615362615369565b5060000390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461540257600080fd5b50565b6001600160e01b03198116811461540257600080fdfed8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b4c6974746c652052656420526964696e6720486f6f6420763220697320616e207570677261646564204e46542066726f6d20546564734c6974746c65447265616d27732064656275742064726f70206f66207468652073616d65206e616d6520696e204d6172636820323032312e20436f6d62696e696e6720617274207769746820736d61727420636f6e74726163742c20546564734c6974746c65447265616d2028417274697374292c2070726f7465696e2028536d61727420436f6e747261637420446576656c6f706572292c20616e64204b656e736f6e2028416e696d61746f72292c2068617665206372656174656420616e204e46542074686174206368616e6765732077697468207468652070617373616765206f662074696d652e20436f6c6c6563746f72732063616e2063686f6f73652077686963682070617274206f662074686520776f726c6420746865792764206c696b65207468656972204e4654277320736561736f6e7320746f20747261636b2c207468656e20736974206261636b20616e6420776174636820617320746865207765617468657220696e207468656972204e4654206368616e676573206461696c7920616e6420776974682074686520736561736f6e732ea26469706673582212208e9a23f56f61a03888d896dad5a1e6fb5cb2aaee17d230e0320a92406da7e44064736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d556e53385370746434645679707772357a6a38326b4d766b63445067386150566855357665515076447270620000000000000000000000
-----Decoded View---------------
Arg [0] : _baseURI (string): ipfs://QmUnS8Sptd4dVypwr5zj82kMvkcDPg8aPVhU5veQPvDrpb
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [2] : 697066733a2f2f516d556e53385370746434645679707772357a6a38326b4d76
Arg [3] : 6b63445067386150566855357665515076447270620000000000000000000000
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.