Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
622 PLACES
Holders
192
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 PLACESLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Places
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /// @title Places ERC-721 contract /// @author Places DAO /************************************* * ████░░░░░░░░░░░░░░░░░░░░░░░░░████ * * ██░░░░░░░██████░░██████░░░░░░░░██ * * ░░░░░░░██████████████████░░░░░░░░ * * ░░░░░████████ ████████░░░░░░ * * ░░░░░██████ ██████ ██████░░░░░░ * * ░░░░░██████ ██████ ██████░░░░░░ * * ░░░░░░░████ ██████ ████░░░░░░░░ * * ░░░░░░░░░████ ████░░░░░░░░░░ * * ░░░░░░░░░░░██████████░░░░░░░░░░░░ * * ░░░░░░░░░░░░░██████░░░░░░░░░░░░░░ * * ██░░░░░░░░░░░░░██░░░░░░░░░░░░░░██ * * ████░░░░░░░░░░░░░░░░░░░░░░░░░████ * *************************************/ pragma solidity ^0.8.6; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IPlaces} from "./interfaces/IPlaces.sol"; import {IPlacesDescriptor} from "./interfaces/IPlacesDescriptor.sol"; import {IPlacesProvider} from "./interfaces/IPlacesProvider.sol"; import {IProxyRegistry} from "./external/IProxyRegistry.sol"; contract Places is ERC721, ERC721Enumerable, ERC721URIStorage, ERC721Burnable, Pausable, ReentrancyGuard, Ownable { using Counters for Counters.Counter; event PlacesDAOUpdated(address placesDao); event GroundersUpdated(address grounders); event DescriptorUpdated(IPlacesDescriptor descriptor); event PlacesProviderUpdated(IPlacesProvider provider); event PlaceCreated(uint256 tokenId); event PlaceBurned(uint256 tokenId); event MintFeeUpdated(uint256 mintFee); event NeighborhoodTreasuryEnabledUpdated(bool isEnabled); event GuestlistEnabledUpdated(bool isEnabled); event GroundersGiftingEnabledUpdated(bool isEnabled); /** * @notice Location encoded integer maximum and minimum values for on-chain computation. * @dev IPlace.Place.Location returns both integer and string representations for use. */ int256 public constant MAX_LATITUDE_INT = 9000000000000000; int256 public constant MIN_LATITUDE_INT = -9000000000000000; int256 public constant MAX_LONGITUDE_INT = 18000000000000000; int256 public constant MIN_LONGITUDE_INT = -18000000000000000; /** * @notice Location integer resolution allowing for 14 places of decimal storage and enable on-chain computation. * @dev IPlace.Place.Location returns both integer and string representations for use. */ int256 public constant GEO_RESOLUTION_INT = 100000000000000; IProxyRegistry public immutable proxyRegistry; Counters.Counter private _tokenIdCounter; address payable private _placesDAO; address private _grounders; IPlacesProvider private _placesProvider; IPlacesDescriptor private _placesDescriptor; address[] private _guestlistKeys; mapping(address => bool) private _guestlist; uint256 private _mintFee; uint256 private _randomGrounderOffset; bool private _isGuestlistEnabled; bool private _isGroundersGiftingEnabled; bool private _isNeighborhoodTreasuryEnabled; /** * @notice Require that the sender is a grounders. */ modifier onlyGrounders() { require( (_msgSender() == _grounders || _msgSender() == owner()), "Not a grounder" ); _; } /** * @notice Set the places DAO. * @dev Only callable by the grounders. */ function setPlacesDAO(address payable placesDAO) external onlyGrounders { _placesDAO = placesDAO; emit PlacesDAOUpdated(placesDAO); } /** * @notice Set the grounders. * @dev Only callable by the grounders. */ function setGrounders(address grounders) external onlyGrounders { _grounders = grounders; emit GroundersUpdated(grounders); } /** * @notice Set the place provider. * @dev Only callable by the grounders. */ function setPlacesProvider(IPlacesProvider placesProvider) external onlyGrounders { _placesProvider = placesProvider; _randomGrounderOffset = uint256(keccak256(abi.encodePacked(block.number))) % 10; emit PlacesProviderUpdated(placesProvider); } /** * @notice Set the descriptor. * @dev Only callable by the grounders. */ function setDescriptor(IPlacesDescriptor placesDescriptor) external onlyGrounders { _placesDescriptor = placesDescriptor; emit DescriptorUpdated(placesDescriptor); } /** * @notice Pause minting. * @dev Only callable by the grounders. */ function setPaused(bool paused) external onlyGrounders { if (paused) { _pause(); } else { _unpause(); } } /** * @notice Reset and increment counter. * @dev Only callable by the grounders. */ function setCounter(uint256 _countValue) external onlyGrounders { _tokenIdCounter.reset(); while (_tokenIdCounter.current() < _countValue) { _tokenIdCounter.increment(); } } /** * @notice Toggle guestlisting. * @dev Only callable by the grounders. */ function setGuestlistEnabled(bool isGuestlistEnabled) external onlyGrounders { _isGuestlistEnabled = isGuestlistEnabled; emit GuestlistEnabledUpdated(isGuestlistEnabled); } /** * @notice Update guestlist addresses. * @dev Only callable by the grounders. */ function setGuestlist(address[] memory guestlist) external onlyGrounders { // unregister existing addresses from quick access for (uint256 i = 0; i < _guestlistKeys.length; i++) { if (_guestlist[_guestlistKeys[i]]) { delete _guestlist[_guestlistKeys[i]]; } } // copy new guestlist delete _guestlistKeys; for (uint256 j = 0; j < guestlist.length; j++) { _guestlistKeys.push(guestlist[j]); } // register addresses for quick access for (uint256 k = 0; k < guestlist.length; k++) { _guestlist[guestlist[k]] = true; } } /** * @notice Add an address to the guestlist. * @dev Only callable by the grounders. */ function addGuest(address guestAddress) external onlyGrounders { _guestlistKeys.push(guestAddress); _guestlist[guestAddress] = true; } /** * @notice Toggle grounder gifting. * @dev Only callable by the grounders. */ function setGroundersGifting(bool isGroundersGiftingEnabled) external onlyGrounders { _isGroundersGiftingEnabled = isGroundersGiftingEnabled; emit GroundersGiftingEnabledUpdated(isGroundersGiftingEnabled); } /** * @notice Update the minting fee. * @dev Only callable by the grounders. */ function setMintFee(uint256 mintFee) external onlyGrounders { _mintFee = mintFee; emit MintFeeUpdated(mintFee); } /** * @notice Toggle neighborhood treasury. * @dev Only callable by the grounders. */ function setNeighborhoodTreasury(bool isNeighborhoodTreasuryEnabled) external onlyGrounders { _isNeighborhoodTreasuryEnabled = isNeighborhoodTreasuryEnabled; emit NeighborhoodTreasuryEnabledUpdated(isNeighborhoodTreasuryEnabled); } constructor( address payable placesDAO, address grounders, IPlacesDescriptor placesDescriptor, IPlacesProvider placesProvider, address _proxyAddress ) ERC721("Places", "PLACES") { _placesDAO = placesDAO; _grounders = grounders; _placesDescriptor = placesDescriptor; _placesProvider = placesProvider; proxyRegistry = IProxyRegistry(_proxyAddress); _isGuestlistEnabled = false; _isGroundersGiftingEnabled = true; _isNeighborhoodTreasuryEnabled = true; _mintFee = 0; _randomGrounderOffset = uint256(keccak256(abi.encodePacked(block.number))) % 10; } /** * @notice Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override(ERC721) returns (bool) { if (proxyRegistry.proxies(owner) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * @notice Request location information for place. */ function getLocation(uint256 tokenId) public view returns (IPlaces.Location memory) { require(_exists(tokenId), "Token must exist"); return _placesProvider.getPlace(tokenId).location; } /** * @notice Request place information. */ function getPlace(uint256 tokenId) public view returns (IPlaces.Place memory) { require(_exists(tokenId), "Token must exist"); return _placesProvider.getPlace(tokenId); } /** * @notice Requests place supply count (both minted & available on-chain). * @dev Subtract totalSupply() to determine available to be minted. */ function getPlaceSupply() public view returns (uint256 supplyCount) { return _placesProvider.getPlaceSupply(); } /** * @notice Requests the current fee for minting in wei. */ function getMintFeeInWei() public view returns (uint256 currentMintFee) { return _mintFee; } /** * @notice Requests state of grounder gifting. */ function getGroundersGiftingEnabled() public view returns (bool isEnabled) { return _isGroundersGiftingEnabled; } /** * @notice Requests state of neighorhood treasury sending. */ function getNeighborhoodTreasuryEnabled() public view returns (bool isEnabled) { return _isNeighborhoodTreasuryEnabled; } /** * @notice Generate a random integer. */ function random(string memory input) internal pure returns (uint256) { return uint256(keccak256(abi.encodePacked(input))); } /** * @notice Mint a place. */ function mint() public payable whenNotPaused nonReentrant returns (uint256) { require(msg.value >= _mintFee, "Minimum fee required"); require(!_exists(_tokenIdCounter.current()), "Token already exists"); require( _tokenIdCounter.current() < _placesProvider.getPlaceSupply(), "No supply available" ); if (_isGuestlistEnabled) { require(_guestlist[_msgSender()], "Mint not permitted"); } if ( _tokenIdCounter.current() > 0 && ((_tokenIdCounter.current() + _randomGrounderOffset) % 20 == 0) && _isGroundersGiftingEnabled == true ) { safeMint(_grounders); } if (_mintFee > 0) { uint256 weiAmount = msg.value; if (_isNeighborhoodTreasuryEnabled) { uint256 neighborhoodAmount = (weiAmount * 250) / 1000; uint256 daoAmount = weiAmount - neighborhoodAmount; address payable neighborhoodTreasury = _placesProvider .getTreasury(_tokenIdCounter.current()); (bool sentPlacesDAO, ) = _placesDAO.call{value: daoAmount}(""); require(sentPlacesDAO, "DAO deposit failed"); (bool sentNeighborhood, ) = neighborhoodTreasury.call{ value: neighborhoodAmount }(""); require(sentNeighborhood, "Neighborhood deposit failed"); } else { (bool sentPlacesDAO, ) = _placesDAO.call{value: weiAmount}(""); require(sentPlacesDAO, "DAO deposit failed"); } } safeMint(_msgSender()); emit PlaceCreated(_tokenIdCounter.current() - 1); return _tokenIdCounter.current() - 1; } /** * @notice Grounder mint a place. * @dev Only callable by the grounders. */ function grounderMint(uint256 tokenId) public onlyGrounders nonReentrant returns (uint256) { _safeMint(_grounders, tokenId); emit PlaceCreated(tokenId); return tokenId; } /** * @notice Owner mint a place. * @dev Only callable by the owners. */ function ownerMint(uint256 tokenId) public onlyOwner nonReentrant returns (uint256) { _safeMint(owner(), tokenId); emit PlaceCreated(tokenId); return tokenId; } /** * @notice Internal utility for minting. * @dev Increments the internal token counter. */ function safeMint(address to) internal { _safeMint(to, _tokenIdCounter.current()); _tokenIdCounter.increment(); } /** * @notice Internal hook. * @dev Hook that is called before any token transfer. This includes minting * and burning. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } /** * @notice Burn a place. * @dev Only callable by the owners. */ function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) onlyGrounders { super._burn(tokenId); emit PlaceBurned(tokenId); } /** * @notice Construct an ERC721 token URI. */ function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { require(_exists(tokenId), "Token must exist"); return _placesDescriptor.constructTokenURI( tokenId, _placesProvider.getPlace(tokenId) ); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Construct an Opensea contract URI. */ function contractURI(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "Token must exist"); return _placesDescriptor.constructContractURI(); } }
// SPDX-License-Identifier: MIT /// @title Interface for Places provider /// @author Places DAO /************************************* * ████░░░░░░░░░░░░░░░░░░░░░░░░░████ * * ██░░░░░░░██████░░██████░░░░░░░░██ * * ░░░░░░░██████████████████░░░░░░░░ * * ░░░░░████████ ████████░░░░░░ * * ░░░░░██████ ██████ ██████░░░░░░ * * ░░░░░██████ ██████ ██████░░░░░░ * * ░░░░░░░████ ██████ ████░░░░░░░░ * * ░░░░░░░░░████ ████░░░░░░░░░░ * * ░░░░░░░░░░░██████████░░░░░░░░░░░░ * * ░░░░░░░░░░░░░██████░░░░░░░░░░░░░░ * * ██░░░░░░░░░░░░░██░░░░░░░░░░░░░░██ * * ████░░░░░░░░░░░░░░░░░░░░░░░░░████ * *************************************/ pragma solidity ^0.8.6; import {IPlaces} from "./IPlaces.sol"; interface IPlacesProvider { function getTreasury(uint256 tokenId) external view returns (address payable); function getPlace(uint256 tokenId) external view returns (IPlaces.Place memory); function getPlaceSupply() external view returns (uint256 supplyCount); }
// SPDX-License-Identifier: MIT /// @title Interface for Places descriptor /// @author Places DAO /************************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░███░░░░░░░░░░░░░███░░░░░░░ * * ░▒▒▒░░░███░░░░░░░░░░░░░███░░░▒▒▒░ * * ░▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒░ * * ░░░░█████████████████████████░░░░ * * ░░░░░░█████ ███ █████░░░░░░ * * ░░░░░░░░█████████████████░░░░░░░░ * * ░░░░░░░░░░████▓▓▓▓▓▓███░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *************************************/ pragma solidity ^0.8.6; import {IPlaces} from "./IPlaces.sol"; interface IPlacesDescriptor { function constructContractURI() external pure returns (string memory); function constructTokenURI(uint256 tokenId, IPlaces.Place memory place) external pure returns (string memory); }
// SPDX-License-Identifier: MIT /// @title Interface for Places /// @author Places DAO /************************************* * ████░░░░░░░░░░░░░░░░░░░░░░░░░████ * * ██░░░░░░░██████░░██████░░░░░░░░██ * * ░░░░░░░██████████████████░░░░░░░░ * * ░░░░░████████ ████████░░░░░░ * * ░░░░░██████ ██████ ██████░░░░░░ * * ░░░░░██████ ██████ ██████░░░░░░ * * ░░░░░░░████ ██████ ████░░░░░░░░ * * ░░░░░░░░░████ ████░░░░░░░░░░ * * ░░░░░░░░░░░██████████░░░░░░░░░░░░ * * ░░░░░░░░░░░░░██████░░░░░░░░░░░░░░ * * ██░░░░░░░░░░░░░██░░░░░░░░░░░░░░██ * * ████░░░░░░░░░░░░░░░░░░░░░░░░░████ * *************************************/ pragma solidity ^0.8.6; interface IPlaces { /** * @notice Location – Represents a geographic coordinate with altitude. * * Latitude and longitude values are in degrees under the WGS 84 reference * frame. Altitude values are in meters. Two location types are provided * int256 and string. The integer representation enables on chain computation * where as the string representation provides future computational compatability. * * Converting a location from a to integer uses GEO_RESOLUTION_INT denominator. * 37.73957402260721 encodes to 3773957402260721 * -122.41902666230027 encodes to -12241902666230027 * * hasAltitude – a boolean that indicates the validity of the altitude values * latitudeInt – integer representing the latitude in degrees encoded with * GEO_RESOLUTION_INT * longitudeInt – integer representing the longitude in degrees encoded with * GEO_RESOLUTION_INT * altitudeInt – integer representing the altitude in meters encoded with * GEO_RESOLUTION_INT * latitude – string representing the latitude coordinate in degrees under * the WGS 84 reference frame * longitude – string representing the longitude coordinate in degrees under * the WGS 84 reference frame * altitude – string representing the altitude measurement in meters */ struct Location { int256 latitudeInt; int256 longitudeInt; int256 altitudeInt; bool hasAltitude; string latitude; string longitude; string altitude; } /** * @notice Place – Represents place information for a geographic location. * * name – string representing the place name * streetAddress – string indicating a precise address * sublocality – string representing the subdivision and first-order civil * entity below locality (neighborhood or common name) * locality – string representing the incorporated city or town political * entity * subadministrativeArea – string representing the subdivision of the * second-order civil entity (county name) * administrativeArea – string representing the second-order civil entity * below country (state or region name) * country – string representing the national political entity * postalCode – string representing the code used to address postal mail * within the country * countryCode – string representing the ISO 3166-1 country code, * https://en.wikipedia.org/wiki/ISO_3166-1 * location – geographic location of the place, see Location type * attributes – string array of attributes describing the place */ struct Place { string name; string streetAddress; string sublocality; string locality; string subadministrativeArea; string administrativeArea; string country; string postalCode; string countryCode; Location location; string[3] attributes; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; interface IProxyRegistry { function proxies(address) external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 make 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 pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"placesDAO","type":"address"},{"internalType":"address","name":"grounders","type":"address"},{"internalType":"contract IPlacesDescriptor","name":"placesDescriptor","type":"address"},{"internalType":"contract IPlacesProvider","name":"placesProvider","type":"address"},{"internalType":"address","name":"_proxyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IPlacesDescriptor","name":"descriptor","type":"address"}],"name":"DescriptorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"GroundersGiftingEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"grounders","type":"address"}],"name":"GroundersUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"GuestlistEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintFee","type":"uint256"}],"name":"MintFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"NeighborhoodTreasuryEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"PlaceBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"PlaceCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"placesDao","type":"address"}],"name":"PlacesDAOUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IPlacesProvider","name":"provider","type":"address"}],"name":"PlacesProviderUpdated","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"GEO_RESOLUTION_INT","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LATITUDE_INT","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LONGITUDE_INT","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LATITUDE_INT","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_LONGITUDE_INT","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"guestAddress","type":"address"}],"name":"addGuest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGroundersGiftingEnabled","outputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getLocation","outputs":[{"components":[{"internalType":"int256","name":"latitudeInt","type":"int256"},{"internalType":"int256","name":"longitudeInt","type":"int256"},{"internalType":"int256","name":"altitudeInt","type":"int256"},{"internalType":"bool","name":"hasAltitude","type":"bool"},{"internalType":"string","name":"latitude","type":"string"},{"internalType":"string","name":"longitude","type":"string"},{"internalType":"string","name":"altitude","type":"string"}],"internalType":"struct IPlaces.Location","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintFeeInWei","outputs":[{"internalType":"uint256","name":"currentMintFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNeighborhoodTreasuryEnabled","outputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPlace","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"streetAddress","type":"string"},{"internalType":"string","name":"sublocality","type":"string"},{"internalType":"string","name":"locality","type":"string"},{"internalType":"string","name":"subadministrativeArea","type":"string"},{"internalType":"string","name":"administrativeArea","type":"string"},{"internalType":"string","name":"country","type":"string"},{"internalType":"string","name":"postalCode","type":"string"},{"internalType":"string","name":"countryCode","type":"string"},{"components":[{"internalType":"int256","name":"latitudeInt","type":"int256"},{"internalType":"int256","name":"longitudeInt","type":"int256"},{"internalType":"int256","name":"altitudeInt","type":"int256"},{"internalType":"bool","name":"hasAltitude","type":"bool"},{"internalType":"string","name":"latitude","type":"string"},{"internalType":"string","name":"longitude","type":"string"},{"internalType":"string","name":"altitude","type":"string"}],"internalType":"struct IPlaces.Location","name":"location","type":"tuple"},{"internalType":"string[3]","name":"attributes","type":"string[3]"}],"internalType":"struct IPlaces.Place","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPlaceSupply","outputs":[{"internalType":"uint256","name":"supplyCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"grounderMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistry","outputs":[{"internalType":"contract IProxyRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_countValue","type":"uint256"}],"name":"setCounter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPlacesDescriptor","name":"placesDescriptor","type":"address"}],"name":"setDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"grounders","type":"address"}],"name":"setGrounders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isGroundersGiftingEnabled","type":"bool"}],"name":"setGroundersGifting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"guestlist","type":"address[]"}],"name":"setGuestlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isGuestlistEnabled","type":"bool"}],"name":"setGuestlistEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintFee","type":"uint256"}],"name":"setMintFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isNeighborhoodTreasuryEnabled","type":"bool"}],"name":"setNeighborhoodTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"placesDAO","type":"address"}],"name":"setPlacesDAO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPlacesProvider","name":"placesProvider","type":"address"}],"name":"setPlacesProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200470e3803806200470e833981016040819052620000349162000272565b60405180604001604052806006815260200165506c6163657360d01b81525060405180604001604052806006815260200165504c4143455360d01b81525081600090805190602001906200008a929190620001b3565b508051620000a0906001906020840190620001b3565b5050600b805460ff19169055506001600c55620000bd3362000161565b600f80546001600160a01b03199081166001600160a01b03888116919091179092556010805482168784161790556012805482168684161790556011805490911684831617905581166080526017805462ffffff191662010100179055600060155560408051436020820152600a91016040516020818303038152906040528051906020012060001c620001529190620002f2565b60165550620003529350505050565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c19062000315565b90600052602060002090601f016020900481019282620001e5576000855562000230565b82601f106200020057805160ff191683800117855562000230565b8280016001018555821562000230579182015b828111156200023057825182559160200191906001019062000213565b506200023e92915062000242565b5090565b5b808211156200023e576000815560010162000243565b6001600160a01b03811681146200026f57600080fd5b50565b600080600080600060a086880312156200028b57600080fd5b8551620002988162000259565b6020870151909550620002ab8162000259565b6040870151909450620002be8162000259565b6060870151909350620002d18162000259565b6080870151909250620002e48162000259565b809150509295509295909350565b6000826200031057634e487b7160e01b600052601260045260246000fd5b500690565b600181811c908216806200032a57607f821691505b602082108114156200034c57634e487b7160e01b600052602260045260246000fd5b50919050565b608051614399620003756000396000818161083d015261266601526143996000f3fe60806040526004361061031e5760003560e01c806370a08231116101a5578063a2f4bb50116100ec578063b88d4fde11610095578063e985e9c51161006f578063e985e9c5146108ba578063eddd0d9c146108da578063f19e75d4146108fa578063f2fde38b1461091a57600080fd5b8063b88d4fde1461085f578063b9485c321461087f578063c87b56dd1461089a57600080fd5b8063ac70cc75116100c6578063ac70cc75146107fc578063aef9bc8214610816578063b50cbd9f1461082b57600080fd5b8063a2f4bb501461079c578063a4b69593146107bc578063a94193c0146107dc57600080fd5b806395d89b411161014e578063a0b6e3af11610128578063a0b6e3af14610745578063a0d8a56e14610760578063a22cb4651461077c57600080fd5b806395d89b41146106f05780639bc4ff94146107055780639bd486c61461072557600080fd5b80637f7b13931161017f5780637f7b1393146106855780638bb5d9c3146106b25780638da5cb5b146106d257600080fd5b806370a0823114610630578063715018a6146106505780637a62b3401461066557600080fd5b80631aac2894116102695780634482ae9a116102125780635c975abb116101ec5780635c975abb146105da5780636352211e146105f25780636eff3cdf1461061257600080fd5b80634482ae9a1461057d5780634f6ccce71461059a5780635136f358146105ba57600080fd5b80632f745c59116102435780632f745c591461051d57806342842e0e1461053d57806342966c681461055d57600080fd5b80631aac2894146104c15780631f7bbae1146104dd57806323b872dd146104fd57600080fd5b80630f753e91116102cb57806318160ddd116102a557806318160ddd1461045f57806319779e2814610474578063197c35551461049457600080fd5b80630f753e91146104175780631249c58b1461043757806316c38b3c1461043f57600080fd5b8063081812fc116102fc578063081812fc1461039c578063095ea7b3146103d45780630d1b185d146103f457600080fd5b806301b9a3971461032357806301ffc9a71461034557806306fdde031461037a575b600080fd5b34801561032f57600080fd5b5061034361033e3660046137e9565b61093a565b005b34801561035157600080fd5b5061036561036036600461381c565b6109fd565b60405190151581526020015b60405180910390f35b34801561038657600080fd5b5061038f610a0e565b6040516103719190613891565b3480156103a857600080fd5b506103bc6103b73660046138a4565b610aa0565b6040516001600160a01b039091168152602001610371565b3480156103e057600080fd5b506103436103ef3660046138bd565b610b35565b34801561040057600080fd5b50610409610c67565b604051908152602001610371565b34801561042357600080fd5b506103436104323660046137e9565b610d02565b610409610db9565b34801561044b57600080fd5b5061034361045a3660046138f7565b61141a565b34801561046b57600080fd5b50600854610409565b34801561048057600080fd5b5061034361048f3660046138f7565b61149c565b3480156104a057600080fd5b506104b46104af3660046138a4565b61154e565b6040516103719190613afd565b3480156104cd57600080fd5b50610409661ff973cafa7fff1981565b3480156104e957600080fd5b506104096104f83660046138a4565b61162d565b34801561050957600080fd5b50610343610518366004613b10565b611743565b34801561052957600080fd5b506104096105383660046138bd565b6117cb565b34801561054957600080fd5b50610343610558366004613b10565b611873565b34801561056957600080fd5b506103436105783660046138a4565b61188e565b34801561058957600080fd5b50601754610100900460ff16610365565b3480156105a657600080fd5b506104096105b53660046138a4565b611912565b3480156105c657600080fd5b506103436105d53660046137e9565b6119b6565b3480156105e657600080fd5b50600b5460ff16610365565b3480156105fe57600080fd5b506103bc61060d3660046138a4565b611a86565b34801561061e57600080fd5b5060175462010000900460ff16610365565b34801561063c57600080fd5b5061040961064b3660046137e9565b611b11565b34801561065c57600080fd5b50610343611bab565b34801561067157600080fd5b5061038f6106803660046138a4565b611c11565b34801561069157600080fd5b506106a56106a03660046138a4565b611cf5565b6040516103719190613b51565b3480156106be57600080fd5b506103436106cd3660046138a4565b611e19565b3480156106de57600080fd5b50600d546001600160a01b03166103bc565b3480156106fc57600080fd5b5061038f611eab565b34801561071157600080fd5b50610343610720366004613bf8565b611eba565b34801561073157600080fd5b506103436107403660046137e9565b6120b1565b34801561075157600080fd5b50610409663ff2e795f5000081565b34801561076c57600080fd5b50610409663ff2e795f4ffff1981565b34801561078857600080fd5b50610343610797366004613caa565b6121a2565b3480156107a857600080fd5b506103436107b73660046138f7565b612267565b3480156107c857600080fd5b506103436107d73660046137e9565b612311565b3480156107e857600080fd5b506103436107f73660046138f7565b6123c8565b34801561080857600080fd5b50610409655af3107a400081565b34801561082257600080fd5b50601554610409565b34801561083757600080fd5b506103bc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561086b57600080fd5b5061034361087a366004613d0b565b61247c565b34801561088b57600080fd5b50610409661ff973cafa800081565b3480156108a657600080fd5b5061038f6108b53660046138a4565b61250a565b3480156108c657600080fd5b506103656108d5366004613dba565b612627565b3480156108e657600080fd5b506103436108f53660046138a4565b612728565b34801561090657600080fd5b506104096109153660046138a4565b6127c6565b34801561092657600080fd5b506103436109353660046137e9565b612896565b6010546001600160a01b0316336001600160a01b031614806109665750600d546001600160a01b031633145b6109a85760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b60448201526064015b60405180910390fd5b601280546001600160a01b0319166001600160a01b0383169081179091556040519081527f6e66ab22238a5471005895947c8f57db923c2a9c9c73180eff80864c21295c1b906020015b60405180910390a150565b6000610a0882612975565b92915050565b606060008054610a1d90613de8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4990613de8565b8015610a965780601f10610a6b57610100808354040283529160200191610a96565b820191906000526020600020905b815481529060010190602001808311610a7957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b195760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161099f565b506000908152600460205260409020546001600160a01b031690565b6000610b4082611a86565b9050806001600160a01b0316836001600160a01b03161415610bca5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161099f565b336001600160a01b0382161480610be65750610be68133612627565b610c585760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161099f565b610c6283836129b3565b505050565b601154604080517f0d1b185d00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691630d1b185d916004808301926020929190829003018186803b158015610cc557600080fd5b505afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd9190613e23565b905090565b6010546001600160a01b0316336001600160a01b03161480610d2e5750600d546001600160a01b031633145b610d6b5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b601080546001600160a01b0319166001600160a01b0383169081179091556040519081527fbacd45cc8ada63864f7a9f3480bcf83a4cee8bb9af58eaa40b32b9f039124956906020016109f2565b6000610dc7600b5460ff1690565b15610e145760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161099f565b6002600c541415610e675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161099f565b6002600c55601554341015610ebe5760405162461bcd60e51b815260206004820152601460248201527f4d696e696d756d20666565207265717569726564000000000000000000000000604482015260640161099f565b610ee7610eca600e5490565b6000908152600260205260409020546001600160a01b0316151590565b15610f345760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20616c726561647920657869737473000000000000000000000000604482015260640161099f565b601160009054906101000a90046001600160a01b03166001600160a01b0316630d1b185d6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8257600080fd5b505afa158015610f96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fba9190613e23565b600e541061100a5760405162461bcd60e51b815260206004820152601360248201527f4e6f20737570706c7920617661696c61626c6500000000000000000000000000604482015260640161099f565b60175460ff1615611074573360009081526014602052604090205460ff166110745760405162461bcd60e51b815260206004820152601260248201527f4d696e74206e6f74207065726d69747465640000000000000000000000000000604482015260640161099f565b600061107f600e5490565b1180156110ab57506014601654611095600e5490565b61109f9190613e52565b6110a99190613e80565b155b80156110c4575060175460ff6101009091041615156001145b156110de576010546110de906001600160a01b0316612a21565b601554156113ab57601754349062010000900460ff16156113045760006103e86111098360fa613e94565b6111139190613eb3565b905060006111218284613ec7565b6011549091506000906001600160a01b031663adcd2940611141600e5490565b6040518263ffffffff1660e01b815260040161115f91815260200190565b60206040518083038186803b15801561117757600080fd5b505afa15801561118b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111af9190613ede565b600f546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611201576040519150601f19603f3d011682016040523d82523d6000602084013e611206565b606091505b50509050806112575760405162461bcd60e51b815260206004820152601260248201527f44414f206465706f736974206661696c65640000000000000000000000000000604482015260640161099f565b6000826001600160a01b03168560405160006040518083038185875af1925050503d80600081146112a4576040519150601f19603f3d011682016040523d82523d6000602084013e6112a9565b606091505b50509050806112fa5760405162461bcd60e51b815260206004820152601b60248201527f4e65696768626f72686f6f64206465706f736974206661696c65640000000000604482015260640161099f565b50505050506113a9565b600f546040516000916001600160a01b03169083908381818185875af1925050503d8060008114611351576040519150601f19603f3d011682016040523d82523d6000602084013e611356565b606091505b50509050806113a75760405162461bcd60e51b815260206004820152601260248201527f44414f206465706f736974206661696c65640000000000000000000000000000604482015260640161099f565b505b505b6113b433612a21565b7f9e54f6a45e7b311f3418d55268846484cfff4a9b737ecd127179d18469396a0060016113e0600e5490565b6113ea9190613ec7565b60405190815260200160405180910390a16001611406600e5490565b6114109190613ec7565b90506001600c5590565b6010546001600160a01b0316336001600160a01b031614806114465750600d546001600160a01b031633145b6114835760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b801561149457611491612a41565b50565b611491612ae6565b6010546001600160a01b0316336001600160a01b031614806114c85750600d546001600160a01b031633145b6115055760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b601780548215156101000261ff00199091161790556040517f80585b6bb14f170e6963473df6678471c8b223a1073f77c338ed55245a4830e7906109f290831515815260200190565b61155661369d565b6000828152600260205260409020546001600160a01b03166115ad5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b5d5cdd08195e1a5cdd60821b604482015260640161099f565b60115460405163197c355560e01b8152600481018490526001600160a01b039091169063197c35559060240160006040518083038186803b1580156115f157600080fd5b505afa158015611605573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a0891908101906140a1565b6010546000906001600160a01b0316336001600160a01b0316148061165c5750600d546001600160a01b031633145b6116995760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b6002600c5414156116ec5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161099f565b6002600c55601054611707906001600160a01b031683612b69565b6040518281527f9e54f6a45e7b311f3418d55268846484cfff4a9b737ecd127179d18469396a009060200160405180910390a1506001600c5590565b61174e335b82612b83565b6117c05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161099f565b610c62838383612c5a565b60006117d683611b11565b821061184a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161099f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610c628383836040518060200160405280600081525061247c565b61189733611748565b6119095760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161099f565b61149181612e32565b600061191d60085490565b82106119915760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161099f565b600882815481106119a4576119a461427f565b90600052602060002001549050919050565b6010546001600160a01b0316336001600160a01b031614806119e25750600d546001600160a01b031633145b611a1f5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b6013805460018181019092557f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b039093166001600160a01b031990931683179055600091825260146020526040909120805460ff19169091179055565b6000818152600260205260408120546001600160a01b031680610a085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161099f565b60006001600160a01b038216611b8f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161099f565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b03163314611c055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099f565b611c0f6000612ed4565b565b6000818152600260205260409020546060906001600160a01b0316611c6b5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b5d5cdd08195e1a5cdd60821b604482015260640161099f565b601260009054906101000a90046001600160a01b03166001600160a01b031663725fa09c6040518163ffffffff1660e01b815260040160006040518083038186803b158015611cb957600080fd5b505afa158015611ccd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a089190810190614295565b611d376040518060e001604052806000815260200160008152602001600081526020016000151581526020016060815260200160608152602001606081525090565b6000828152600260205260409020546001600160a01b0316611d8e5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b5d5cdd08195e1a5cdd60821b604482015260640161099f565b60115460405163197c355560e01b8152600481018490526001600160a01b039091169063197c35559060240160006040518083038186803b158015611dd257600080fd5b505afa158015611de6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e0e91908101906140a1565b610120015192915050565b6010546001600160a01b0316336001600160a01b03161480611e455750600d546001600160a01b031633145b611e825760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b6000600e555b80611e92600e5490565b101561149157611ea6600e80546001019055565b611e88565b606060018054610a1d90613de8565b6010546001600160a01b0316336001600160a01b03161480611ee65750600d546001600160a01b031633145b611f235760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b60005b601354811015611fca576014600060138381548110611f4757611f4761427f565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff1615611fb8576014600060138381548110611f8b57611f8b61427f565b60009182526020808320909101546001600160a01b031683528201929092526040019020805460ff191690555b80611fc2816142ca565b915050611f26565b50611fd76013600061373c565b60005b8151811015612044576013828281518110611ff757611ff761427f565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061203c816142ca565b915050611fda565b5060005b81518110156120ad576001601460008484815181106120695761206961427f565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806120a5816142ca565b915050612048565b5050565b6010546001600160a01b0316336001600160a01b031614806120dd5750600d546001600160a01b031633145b61211a5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b601180546001600160a01b0319166001600160a01b03831617905560408051436020820152600a91016040516020818303038152906040528051906020012060001c6121669190613e80565b6016556040516001600160a01b03821681527f6e1e740c0a936d02d70a8289b193c598908d94ba3b2dc60efbeece183ec3140c906020016109f2565b6001600160a01b0382163314156121fb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161099f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6010546001600160a01b0316336001600160a01b031614806122935750600d546001600160a01b031633145b6122d05760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b6017805460ff19168215159081179091556040519081527f8f7a913faf0f8b0c6a28c72de0f1931aad9e81e8f6ea3b73e185159559950237906020016109f2565b6010546001600160a01b0316336001600160a01b0316148061233d5750600d546001600160a01b031633145b61237a5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b600f80546001600160a01b0319166001600160a01b0383169081179091556040519081527fc0a55d29aab2534e16123c7af21cc636ba3c5f34f7d2885dc479b3f2b049d70f906020016109f2565b6010546001600160a01b0316336001600160a01b031614806123f45750600d546001600160a01b031633145b6124315760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b60178054821515620100000262ff0000199091161790556040517f6cee79bc3cf75bcfff040337779718773d202789b27662681efccf53d649e9d6906109f290831515815260200190565b6124863383612b83565b6124f85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161099f565b61250484848484612f26565b50505050565b6000818152600260205260409020546060906001600160a01b03166125645760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b5d5cdd08195e1a5cdd60821b604482015260640161099f565b60125460115460405163197c355560e01b8152600481018590526001600160a01b039283169263488616fb92869291169063197c35559060240160006040518083038186803b1580156125b657600080fd5b505afa1580156125ca573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125f291908101906140a1565b6040518363ffffffff1660e01b815260040161260f9291906142e5565b60006040518083038186803b158015611cb957600080fd5b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091818416917f0000000000000000000000000000000000000000000000000000000000000000169063c45527919060240160206040518083038186803b1580156126a857600080fd5b505afa1580156126bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126e09190613ede565b6001600160a01b031614156126f757506001610a08565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b6010546001600160a01b0316336001600160a01b031614806127545750600d546001600160a01b031633145b6127915760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b60158190556040518181527f38fbb1c8b109c430f0c030e7ed076cf5611a307773a4e8e365601e8f8bceaec6906020016109f2565b600d546000906001600160a01b031633146128235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099f565b6002600c5414156128765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161099f565b6002600c55611707612890600d546001600160a01b031690565b83612b69565b600d546001600160a01b031633146128f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099f565b6001600160a01b03811661296c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161099f565b61149181612ed4565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610a085750610a0882612fa4565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906129e882611a86565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612a3381612a2e600e5490565b612b69565b611491600e80546001019055565b600b5460ff1615612a945760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161099f565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612ac93390565b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff16612b385760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161099f565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612ac9565b6120ad82826040518060200160405280600081525061303f565b6000818152600260205260408120546001600160a01b0316612bfc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161099f565b6000612c0783611a86565b9050806001600160a01b0316846001600160a01b03161480612c425750836001600160a01b0316612c3784610aa0565b6001600160a01b0316145b80612c525750612c528185612627565b949350505050565b826001600160a01b0316612c6d82611a86565b6001600160a01b031614612ce95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161099f565b6001600160a01b038216612d645760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161099f565b612d6f8383836130bd565b612d7a6000826129b3565b6001600160a01b0383166000908152600360205260408120805460019290612da3908490613ec7565b90915550506001600160a01b0382166000908152600360205260408120805460019290612dd1908490613e52565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6010546001600160a01b0316336001600160a01b03161480612e5e5750600d546001600160a01b031633145b612e9b5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b612ea4816130c8565b6040518181527f8bb0e8d87ef33e1cabb621aa61fa4f55b273d0360e21eb194536a020c4a027a1906020016109f2565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612f31848484612c5a565b612f3d84848484613108565b6125045760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161099f565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061300757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a0857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a08565b6130498383613260565b6130566000848484613108565b610c625760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161099f565b610c628383836133ae565b6130d181613466565b6000818152600a6020526040902080546130ea90613de8565b159050611491576000818152600a602052604081206114919161375a565b60006001600160a01b0384163b1561325557604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061314c9033908990889088906004016142fe565b602060405180830381600087803b15801561316657600080fd5b505af1925050508015613196575060408051601f3d908101601f1916820190925261319391810190614330565b60015b61323b573d8080156131c4576040519150601f19603f3d011682016040523d82523d6000602084013e6131c9565b606091505b5080516132335760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161099f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c52565b506001949350505050565b6001600160a01b0382166132b65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161099f565b6000818152600260205260409020546001600160a01b03161561331b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161099f565b613327600083836130bd565b6001600160a01b0382166000908152600360205260408120805460019290613350908490613e52565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166134095761340481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61342c565b816001600160a01b0316836001600160a01b03161461342c5761342c838261350d565b6001600160a01b03821661344357610c62816135aa565b826001600160a01b0316826001600160a01b031614610c6257610c628282613659565b600061347182611a86565b905061347f816000846130bd565b61348a6000836129b3565b6001600160a01b03811660009081526003602052604081208054600192906134b3908490613ec7565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000600161351a84611b11565b6135249190613ec7565b600083815260076020526040902054909150808214613577576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906135bc90600190613ec7565b600083815260096020526040812054600880549394509092849081106135e4576135e461427f565b9060005260206000200154905080600883815481106136055761360561427f565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061363d5761363d61434d565b6001900381819060005260206000200160009055905550505050565b600061366483611b11565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180610160016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200161372a6040518060e001604052806000815260200160008152602001600081526020016000151581526020016060815260200160608152602001606081525090565b8152602001613737613794565b905290565b508054600082559060005260206000209081019061149191906137bb565b50805461376690613de8565b6000825580601f10613776575050565b601f01602090049060005260206000209081019061149191906137bb565b60405180606001604052806003905b60608152602001906001900390816137a35790505090565b5b808211156137d057600081556001016137bc565b5090565b6001600160a01b038116811461149157600080fd5b6000602082840312156137fb57600080fd5b8135612721816137d4565b6001600160e01b03198116811461149157600080fd5b60006020828403121561382e57600080fd5b813561272181613806565b60005b8381101561385457818101518382015260200161383c565b838111156125045750506000910152565b6000815180845261387d816020860160208601613839565b601f01601f19169290920160200192915050565b6020815260006127216020830184613865565b6000602082840312156138b657600080fd5b5035919050565b600080604083850312156138d057600080fd5b82356138db816137d4565b946020939093013593505050565b801515811461149157600080fd5b60006020828403121561390957600080fd5b8135612721816138e9565b8051825260208101516020830152604081015160408301526060810151151560608301526000608082015160e0608085015261395360e0850182613865565b905060a083015184820360a086015261396c8282613865565b91505060c083015184820360c08601526139868282613865565b95945050505050565b600082606081018360005b60038110156139c95783830387526139b3838351613865565b602097880197909350919091019060010161399a565b509095945050505050565b600061016082518185526139ea82860182613865565b91505060208301518482036020860152613a048282613865565b91505060408301518482036040860152613a1e8282613865565b91505060608301518482036060860152613a388282613865565b91505060808301518482036080860152613a528282613865565b91505060a083015184820360a0860152613a6c8282613865565b91505060c083015184820360c0860152613a868282613865565b91505060e083015184820360e0860152613aa08282613865565b9150506101008084015185830382870152613abb8382613865565b925050506101208084015185830382870152613ad78382613914565b925050506101408084015185830382870152613af3838261398f565b9695505050505050565b60208152600061272160208301846139d4565b600080600060608486031215613b2557600080fd5b8335613b30816137d4565b92506020840135613b40816137d4565b929592945050506040919091013590565b6020815260006127216020830184613914565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715613b9d57613b9d613b64565b60405290565b604051610160810167ffffffffffffffff81118282101715613b9d57613b9d613b64565b604051601f8201601f1916810167ffffffffffffffff81118282101715613bf057613bf0613b64565b604052919050565b60006020808385031215613c0b57600080fd5b823567ffffffffffffffff80821115613c2357600080fd5b818501915085601f830112613c3757600080fd5b813581811115613c4957613c49613b64565b8060051b9150613c5a848301613bc7565b8181529183018401918481019088841115613c7457600080fd5b938501935b83851015613c9e5784359250613c8e836137d4565b8282529385019390850190613c79565b98975050505050505050565b60008060408385031215613cbd57600080fd5b8235613cc8816137d4565b91506020830135613cd8816138e9565b809150509250929050565b600067ffffffffffffffff821115613cfd57613cfd613b64565b50601f01601f191660200190565b60008060008060808587031215613d2157600080fd5b8435613d2c816137d4565b93506020850135613d3c816137d4565b925060408501359150606085013567ffffffffffffffff811115613d5f57600080fd5b8501601f81018713613d7057600080fd5b8035613d83613d7e82613ce3565b613bc7565b818152886020838501011115613d9857600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215613dcd57600080fd5b8235613dd8816137d4565b91506020830135613cd8816137d4565b600181811c90821680613dfc57607f821691505b60208210811415613e1d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215613e3557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613e6557613e65613e3c565b500190565b634e487b7160e01b600052601260045260246000fd5b600082613e8f57613e8f613e6a565b500690565b6000816000190483118215151615613eae57613eae613e3c565b500290565b600082613ec257613ec2613e6a565b500490565b600082821015613ed957613ed9613e3c565b500390565b600060208284031215613ef057600080fd5b8151612721816137d4565b600082601f830112613f0c57600080fd5b8151613f1a613d7e82613ce3565b818152846020838601011115613f2f57600080fd5b612c52826020830160208701613839565b8051613f4b816138e9565b919050565b600060e08284031215613f6257600080fd5b613f6a613b7a565b9050815181526020820151602082015260408201516040820152613f9060608301613f40565b6060820152608082015167ffffffffffffffff80821115613fb057600080fd5b613fbc85838601613efb565b608084015260a0840151915080821115613fd557600080fd5b613fe185838601613efb565b60a084015260c0840151915080821115613ffa57600080fd5b5061400784828501613efb565b60c08301525092915050565b600082601f83011261402457600080fd5b6040516060810167ffffffffffffffff828210818311171561404857614048613b64565b81604052829150606085018681111561406057600080fd5b855b818110156140955780518381111561407a5760008081fd5b61408689828a01613efb565b85525060209384019301614062565b50929695505050505050565b6000602082840312156140b357600080fd5b815167ffffffffffffffff808211156140cb57600080fd5b9083019061016082860312156140e057600080fd5b6140e8613ba3565b8251828111156140f757600080fd5b61410387828601613efb565b82525060208301518281111561411857600080fd5b61412487828601613efb565b60208301525060408301518281111561413c57600080fd5b61414887828601613efb565b60408301525060608301518281111561416057600080fd5b61416c87828601613efb565b60608301525060808301518281111561418457600080fd5b61419087828601613efb565b60808301525060a0830151828111156141a857600080fd5b6141b487828601613efb565b60a08301525060c0830151828111156141cc57600080fd5b6141d887828601613efb565b60c08301525060e0830151828111156141f057600080fd5b6141fc87828601613efb565b60e083015250610100808401518381111561421657600080fd5b61422288828701613efb565b828401525050610120808401518381111561423c57600080fd5b61424888828701613f50565b828401525050610140808401518381111561426257600080fd5b61426e88828701614013565b918301919091525095945050505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156142a757600080fd5b815167ffffffffffffffff8111156142be57600080fd5b612c5284828501613efb565b60006000198214156142de576142de613e3c565b5060010190565b828152604060208201526000612c5260408301846139d4565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613af36080830184613865565b60006020828403121561434257600080fd5b815161272181613806565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ccb1f8998e8554b76676be6f0f2bcbd137ed88541866cd01b93e86b3c932f49f64736f6c63430008090033000000000000000000000000b7c980b5d84104b28d77b0885cb8c43a6dfa5355000000000000000000000000610f0d2d552882b8f01010396cbf58c9f72de2930000000000000000000000007c4fad970e51fbe5cfca2097c3aa559e3e0aeaf80000000000000000000000005219c11e18934aadb4dda41e3485bd79dae08f10000000000000000000000000b7c980b5d84104b28d77b0885cb8c43a6dfa5355
Deployed Bytecode
0x60806040526004361061031e5760003560e01c806370a08231116101a5578063a2f4bb50116100ec578063b88d4fde11610095578063e985e9c51161006f578063e985e9c5146108ba578063eddd0d9c146108da578063f19e75d4146108fa578063f2fde38b1461091a57600080fd5b8063b88d4fde1461085f578063b9485c321461087f578063c87b56dd1461089a57600080fd5b8063ac70cc75116100c6578063ac70cc75146107fc578063aef9bc8214610816578063b50cbd9f1461082b57600080fd5b8063a2f4bb501461079c578063a4b69593146107bc578063a94193c0146107dc57600080fd5b806395d89b411161014e578063a0b6e3af11610128578063a0b6e3af14610745578063a0d8a56e14610760578063a22cb4651461077c57600080fd5b806395d89b41146106f05780639bc4ff94146107055780639bd486c61461072557600080fd5b80637f7b13931161017f5780637f7b1393146106855780638bb5d9c3146106b25780638da5cb5b146106d257600080fd5b806370a0823114610630578063715018a6146106505780637a62b3401461066557600080fd5b80631aac2894116102695780634482ae9a116102125780635c975abb116101ec5780635c975abb146105da5780636352211e146105f25780636eff3cdf1461061257600080fd5b80634482ae9a1461057d5780634f6ccce71461059a5780635136f358146105ba57600080fd5b80632f745c59116102435780632f745c591461051d57806342842e0e1461053d57806342966c681461055d57600080fd5b80631aac2894146104c15780631f7bbae1146104dd57806323b872dd146104fd57600080fd5b80630f753e91116102cb57806318160ddd116102a557806318160ddd1461045f57806319779e2814610474578063197c35551461049457600080fd5b80630f753e91146104175780631249c58b1461043757806316c38b3c1461043f57600080fd5b8063081812fc116102fc578063081812fc1461039c578063095ea7b3146103d45780630d1b185d146103f457600080fd5b806301b9a3971461032357806301ffc9a71461034557806306fdde031461037a575b600080fd5b34801561032f57600080fd5b5061034361033e3660046137e9565b61093a565b005b34801561035157600080fd5b5061036561036036600461381c565b6109fd565b60405190151581526020015b60405180910390f35b34801561038657600080fd5b5061038f610a0e565b6040516103719190613891565b3480156103a857600080fd5b506103bc6103b73660046138a4565b610aa0565b6040516001600160a01b039091168152602001610371565b3480156103e057600080fd5b506103436103ef3660046138bd565b610b35565b34801561040057600080fd5b50610409610c67565b604051908152602001610371565b34801561042357600080fd5b506103436104323660046137e9565b610d02565b610409610db9565b34801561044b57600080fd5b5061034361045a3660046138f7565b61141a565b34801561046b57600080fd5b50600854610409565b34801561048057600080fd5b5061034361048f3660046138f7565b61149c565b3480156104a057600080fd5b506104b46104af3660046138a4565b61154e565b6040516103719190613afd565b3480156104cd57600080fd5b50610409661ff973cafa7fff1981565b3480156104e957600080fd5b506104096104f83660046138a4565b61162d565b34801561050957600080fd5b50610343610518366004613b10565b611743565b34801561052957600080fd5b506104096105383660046138bd565b6117cb565b34801561054957600080fd5b50610343610558366004613b10565b611873565b34801561056957600080fd5b506103436105783660046138a4565b61188e565b34801561058957600080fd5b50601754610100900460ff16610365565b3480156105a657600080fd5b506104096105b53660046138a4565b611912565b3480156105c657600080fd5b506103436105d53660046137e9565b6119b6565b3480156105e657600080fd5b50600b5460ff16610365565b3480156105fe57600080fd5b506103bc61060d3660046138a4565b611a86565b34801561061e57600080fd5b5060175462010000900460ff16610365565b34801561063c57600080fd5b5061040961064b3660046137e9565b611b11565b34801561065c57600080fd5b50610343611bab565b34801561067157600080fd5b5061038f6106803660046138a4565b611c11565b34801561069157600080fd5b506106a56106a03660046138a4565b611cf5565b6040516103719190613b51565b3480156106be57600080fd5b506103436106cd3660046138a4565b611e19565b3480156106de57600080fd5b50600d546001600160a01b03166103bc565b3480156106fc57600080fd5b5061038f611eab565b34801561071157600080fd5b50610343610720366004613bf8565b611eba565b34801561073157600080fd5b506103436107403660046137e9565b6120b1565b34801561075157600080fd5b50610409663ff2e795f5000081565b34801561076c57600080fd5b50610409663ff2e795f4ffff1981565b34801561078857600080fd5b50610343610797366004613caa565b6121a2565b3480156107a857600080fd5b506103436107b73660046138f7565b612267565b3480156107c857600080fd5b506103436107d73660046137e9565b612311565b3480156107e857600080fd5b506103436107f73660046138f7565b6123c8565b34801561080857600080fd5b50610409655af3107a400081565b34801561082257600080fd5b50601554610409565b34801561083757600080fd5b506103bc7f000000000000000000000000b7c980b5d84104b28d77b0885cb8c43a6dfa535581565b34801561086b57600080fd5b5061034361087a366004613d0b565b61247c565b34801561088b57600080fd5b50610409661ff973cafa800081565b3480156108a657600080fd5b5061038f6108b53660046138a4565b61250a565b3480156108c657600080fd5b506103656108d5366004613dba565b612627565b3480156108e657600080fd5b506103436108f53660046138a4565b612728565b34801561090657600080fd5b506104096109153660046138a4565b6127c6565b34801561092657600080fd5b506103436109353660046137e9565b612896565b6010546001600160a01b0316336001600160a01b031614806109665750600d546001600160a01b031633145b6109a85760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b60448201526064015b60405180910390fd5b601280546001600160a01b0319166001600160a01b0383169081179091556040519081527f6e66ab22238a5471005895947c8f57db923c2a9c9c73180eff80864c21295c1b906020015b60405180910390a150565b6000610a0882612975565b92915050565b606060008054610a1d90613de8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4990613de8565b8015610a965780601f10610a6b57610100808354040283529160200191610a96565b820191906000526020600020905b815481529060010190602001808311610a7957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b195760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161099f565b506000908152600460205260409020546001600160a01b031690565b6000610b4082611a86565b9050806001600160a01b0316836001600160a01b03161415610bca5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161099f565b336001600160a01b0382161480610be65750610be68133612627565b610c585760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161099f565b610c6283836129b3565b505050565b601154604080517f0d1b185d00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b031691630d1b185d916004808301926020929190829003018186803b158015610cc557600080fd5b505afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd9190613e23565b905090565b6010546001600160a01b0316336001600160a01b03161480610d2e5750600d546001600160a01b031633145b610d6b5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b601080546001600160a01b0319166001600160a01b0383169081179091556040519081527fbacd45cc8ada63864f7a9f3480bcf83a4cee8bb9af58eaa40b32b9f039124956906020016109f2565b6000610dc7600b5460ff1690565b15610e145760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161099f565b6002600c541415610e675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161099f565b6002600c55601554341015610ebe5760405162461bcd60e51b815260206004820152601460248201527f4d696e696d756d20666565207265717569726564000000000000000000000000604482015260640161099f565b610ee7610eca600e5490565b6000908152600260205260409020546001600160a01b0316151590565b15610f345760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20616c726561647920657869737473000000000000000000000000604482015260640161099f565b601160009054906101000a90046001600160a01b03166001600160a01b0316630d1b185d6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8257600080fd5b505afa158015610f96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fba9190613e23565b600e541061100a5760405162461bcd60e51b815260206004820152601360248201527f4e6f20737570706c7920617661696c61626c6500000000000000000000000000604482015260640161099f565b60175460ff1615611074573360009081526014602052604090205460ff166110745760405162461bcd60e51b815260206004820152601260248201527f4d696e74206e6f74207065726d69747465640000000000000000000000000000604482015260640161099f565b600061107f600e5490565b1180156110ab57506014601654611095600e5490565b61109f9190613e52565b6110a99190613e80565b155b80156110c4575060175460ff6101009091041615156001145b156110de576010546110de906001600160a01b0316612a21565b601554156113ab57601754349062010000900460ff16156113045760006103e86111098360fa613e94565b6111139190613eb3565b905060006111218284613ec7565b6011549091506000906001600160a01b031663adcd2940611141600e5490565b6040518263ffffffff1660e01b815260040161115f91815260200190565b60206040518083038186803b15801561117757600080fd5b505afa15801561118b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111af9190613ede565b600f546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611201576040519150601f19603f3d011682016040523d82523d6000602084013e611206565b606091505b50509050806112575760405162461bcd60e51b815260206004820152601260248201527f44414f206465706f736974206661696c65640000000000000000000000000000604482015260640161099f565b6000826001600160a01b03168560405160006040518083038185875af1925050503d80600081146112a4576040519150601f19603f3d011682016040523d82523d6000602084013e6112a9565b606091505b50509050806112fa5760405162461bcd60e51b815260206004820152601b60248201527f4e65696768626f72686f6f64206465706f736974206661696c65640000000000604482015260640161099f565b50505050506113a9565b600f546040516000916001600160a01b03169083908381818185875af1925050503d8060008114611351576040519150601f19603f3d011682016040523d82523d6000602084013e611356565b606091505b50509050806113a75760405162461bcd60e51b815260206004820152601260248201527f44414f206465706f736974206661696c65640000000000000000000000000000604482015260640161099f565b505b505b6113b433612a21565b7f9e54f6a45e7b311f3418d55268846484cfff4a9b737ecd127179d18469396a0060016113e0600e5490565b6113ea9190613ec7565b60405190815260200160405180910390a16001611406600e5490565b6114109190613ec7565b90506001600c5590565b6010546001600160a01b0316336001600160a01b031614806114465750600d546001600160a01b031633145b6114835760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b801561149457611491612a41565b50565b611491612ae6565b6010546001600160a01b0316336001600160a01b031614806114c85750600d546001600160a01b031633145b6115055760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b601780548215156101000261ff00199091161790556040517f80585b6bb14f170e6963473df6678471c8b223a1073f77c338ed55245a4830e7906109f290831515815260200190565b61155661369d565b6000828152600260205260409020546001600160a01b03166115ad5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b5d5cdd08195e1a5cdd60821b604482015260640161099f565b60115460405163197c355560e01b8152600481018490526001600160a01b039091169063197c35559060240160006040518083038186803b1580156115f157600080fd5b505afa158015611605573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a0891908101906140a1565b6010546000906001600160a01b0316336001600160a01b0316148061165c5750600d546001600160a01b031633145b6116995760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b6002600c5414156116ec5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161099f565b6002600c55601054611707906001600160a01b031683612b69565b6040518281527f9e54f6a45e7b311f3418d55268846484cfff4a9b737ecd127179d18469396a009060200160405180910390a1506001600c5590565b61174e335b82612b83565b6117c05760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161099f565b610c62838383612c5a565b60006117d683611b11565b821061184a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161099f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610c628383836040518060200160405280600081525061247c565b61189733611748565b6119095760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161099f565b61149181612e32565b600061191d60085490565b82106119915760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161099f565b600882815481106119a4576119a461427f565b90600052602060002001549050919050565b6010546001600160a01b0316336001600160a01b031614806119e25750600d546001600160a01b031633145b611a1f5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b6013805460018181019092557f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b039093166001600160a01b031990931683179055600091825260146020526040909120805460ff19169091179055565b6000818152600260205260408120546001600160a01b031680610a085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161099f565b60006001600160a01b038216611b8f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161099f565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b03163314611c055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099f565b611c0f6000612ed4565b565b6000818152600260205260409020546060906001600160a01b0316611c6b5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b5d5cdd08195e1a5cdd60821b604482015260640161099f565b601260009054906101000a90046001600160a01b03166001600160a01b031663725fa09c6040518163ffffffff1660e01b815260040160006040518083038186803b158015611cb957600080fd5b505afa158015611ccd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a089190810190614295565b611d376040518060e001604052806000815260200160008152602001600081526020016000151581526020016060815260200160608152602001606081525090565b6000828152600260205260409020546001600160a01b0316611d8e5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b5d5cdd08195e1a5cdd60821b604482015260640161099f565b60115460405163197c355560e01b8152600481018490526001600160a01b039091169063197c35559060240160006040518083038186803b158015611dd257600080fd5b505afa158015611de6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611e0e91908101906140a1565b610120015192915050565b6010546001600160a01b0316336001600160a01b03161480611e455750600d546001600160a01b031633145b611e825760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b6000600e555b80611e92600e5490565b101561149157611ea6600e80546001019055565b611e88565b606060018054610a1d90613de8565b6010546001600160a01b0316336001600160a01b03161480611ee65750600d546001600160a01b031633145b611f235760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b60005b601354811015611fca576014600060138381548110611f4757611f4761427f565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff1615611fb8576014600060138381548110611f8b57611f8b61427f565b60009182526020808320909101546001600160a01b031683528201929092526040019020805460ff191690555b80611fc2816142ca565b915050611f26565b50611fd76013600061373c565b60005b8151811015612044576013828281518110611ff757611ff761427f565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061203c816142ca565b915050611fda565b5060005b81518110156120ad576001601460008484815181106120695761206961427f565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806120a5816142ca565b915050612048565b5050565b6010546001600160a01b0316336001600160a01b031614806120dd5750600d546001600160a01b031633145b61211a5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b601180546001600160a01b0319166001600160a01b03831617905560408051436020820152600a91016040516020818303038152906040528051906020012060001c6121669190613e80565b6016556040516001600160a01b03821681527f6e1e740c0a936d02d70a8289b193c598908d94ba3b2dc60efbeece183ec3140c906020016109f2565b6001600160a01b0382163314156121fb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161099f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6010546001600160a01b0316336001600160a01b031614806122935750600d546001600160a01b031633145b6122d05760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b6017805460ff19168215159081179091556040519081527f8f7a913faf0f8b0c6a28c72de0f1931aad9e81e8f6ea3b73e185159559950237906020016109f2565b6010546001600160a01b0316336001600160a01b0316148061233d5750600d546001600160a01b031633145b61237a5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b600f80546001600160a01b0319166001600160a01b0383169081179091556040519081527fc0a55d29aab2534e16123c7af21cc636ba3c5f34f7d2885dc479b3f2b049d70f906020016109f2565b6010546001600160a01b0316336001600160a01b031614806123f45750600d546001600160a01b031633145b6124315760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b60178054821515620100000262ff0000199091161790556040517f6cee79bc3cf75bcfff040337779718773d202789b27662681efccf53d649e9d6906109f290831515815260200190565b6124863383612b83565b6124f85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161099f565b61250484848484612f26565b50505050565b6000818152600260205260409020546060906001600160a01b03166125645760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b5d5cdd08195e1a5cdd60821b604482015260640161099f565b60125460115460405163197c355560e01b8152600481018590526001600160a01b039283169263488616fb92869291169063197c35559060240160006040518083038186803b1580156125b657600080fd5b505afa1580156125ca573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526125f291908101906140a1565b6040518363ffffffff1660e01b815260040161260f9291906142e5565b60006040518083038186803b158015611cb957600080fd5b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091818416917f000000000000000000000000b7c980b5d84104b28d77b0885cb8c43a6dfa5355169063c45527919060240160206040518083038186803b1580156126a857600080fd5b505afa1580156126bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126e09190613ede565b6001600160a01b031614156126f757506001610a08565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b6010546001600160a01b0316336001600160a01b031614806127545750600d546001600160a01b031633145b6127915760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b60158190556040518181527f38fbb1c8b109c430f0c030e7ed076cf5611a307773a4e8e365601e8f8bceaec6906020016109f2565b600d546000906001600160a01b031633146128235760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099f565b6002600c5414156128765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161099f565b6002600c55611707612890600d546001600160a01b031690565b83612b69565b600d546001600160a01b031633146128f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099f565b6001600160a01b03811661296c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161099f565b61149181612ed4565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610a085750610a0882612fa4565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906129e882611a86565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b612a3381612a2e600e5490565b612b69565b611491600e80546001019055565b600b5460ff1615612a945760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161099f565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612ac93390565b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff16612b385760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161099f565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612ac9565b6120ad82826040518060200160405280600081525061303f565b6000818152600260205260408120546001600160a01b0316612bfc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161099f565b6000612c0783611a86565b9050806001600160a01b0316846001600160a01b03161480612c425750836001600160a01b0316612c3784610aa0565b6001600160a01b0316145b80612c525750612c528185612627565b949350505050565b826001600160a01b0316612c6d82611a86565b6001600160a01b031614612ce95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161099f565b6001600160a01b038216612d645760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161099f565b612d6f8383836130bd565b612d7a6000826129b3565b6001600160a01b0383166000908152600360205260408120805460019290612da3908490613ec7565b90915550506001600160a01b0382166000908152600360205260408120805460019290612dd1908490613e52565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6010546001600160a01b0316336001600160a01b03161480612e5e5750600d546001600160a01b031633145b612e9b5760405162461bcd60e51b815260206004820152600e60248201526d2737ba10309033b937bab73232b960911b604482015260640161099f565b612ea4816130c8565b6040518181527f8bb0e8d87ef33e1cabb621aa61fa4f55b273d0360e21eb194536a020c4a027a1906020016109f2565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612f31848484612c5a565b612f3d84848484613108565b6125045760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161099f565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061300757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a0857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a08565b6130498383613260565b6130566000848484613108565b610c625760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161099f565b610c628383836133ae565b6130d181613466565b6000818152600a6020526040902080546130ea90613de8565b159050611491576000818152600a602052604081206114919161375a565b60006001600160a01b0384163b1561325557604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061314c9033908990889088906004016142fe565b602060405180830381600087803b15801561316657600080fd5b505af1925050508015613196575060408051601f3d908101601f1916820190925261319391810190614330565b60015b61323b573d8080156131c4576040519150601f19603f3d011682016040523d82523d6000602084013e6131c9565b606091505b5080516132335760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161099f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612c52565b506001949350505050565b6001600160a01b0382166132b65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161099f565b6000818152600260205260409020546001600160a01b03161561331b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161099f565b613327600083836130bd565b6001600160a01b0382166000908152600360205260408120805460019290613350908490613e52565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166134095761340481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61342c565b816001600160a01b0316836001600160a01b03161461342c5761342c838261350d565b6001600160a01b03821661344357610c62816135aa565b826001600160a01b0316826001600160a01b031614610c6257610c628282613659565b600061347182611a86565b905061347f816000846130bd565b61348a6000836129b3565b6001600160a01b03811660009081526003602052604081208054600192906134b3908490613ec7565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000600161351a84611b11565b6135249190613ec7565b600083815260076020526040902054909150808214613577576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906135bc90600190613ec7565b600083815260096020526040812054600880549394509092849081106135e4576135e461427f565b9060005260206000200154905080600883815481106136055761360561427f565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061363d5761363d61434d565b6001900381819060005260206000200160009055905550505050565b600061366483611b11565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180610160016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200161372a6040518060e001604052806000815260200160008152602001600081526020016000151581526020016060815260200160608152602001606081525090565b8152602001613737613794565b905290565b508054600082559060005260206000209081019061149191906137bb565b50805461376690613de8565b6000825580601f10613776575050565b601f01602090049060005260206000209081019061149191906137bb565b60405180606001604052806003905b60608152602001906001900390816137a35790505090565b5b808211156137d057600081556001016137bc565b5090565b6001600160a01b038116811461149157600080fd5b6000602082840312156137fb57600080fd5b8135612721816137d4565b6001600160e01b03198116811461149157600080fd5b60006020828403121561382e57600080fd5b813561272181613806565b60005b8381101561385457818101518382015260200161383c565b838111156125045750506000910152565b6000815180845261387d816020860160208601613839565b601f01601f19169290920160200192915050565b6020815260006127216020830184613865565b6000602082840312156138b657600080fd5b5035919050565b600080604083850312156138d057600080fd5b82356138db816137d4565b946020939093013593505050565b801515811461149157600080fd5b60006020828403121561390957600080fd5b8135612721816138e9565b8051825260208101516020830152604081015160408301526060810151151560608301526000608082015160e0608085015261395360e0850182613865565b905060a083015184820360a086015261396c8282613865565b91505060c083015184820360c08601526139868282613865565b95945050505050565b600082606081018360005b60038110156139c95783830387526139b3838351613865565b602097880197909350919091019060010161399a565b509095945050505050565b600061016082518185526139ea82860182613865565b91505060208301518482036020860152613a048282613865565b91505060408301518482036040860152613a1e8282613865565b91505060608301518482036060860152613a388282613865565b91505060808301518482036080860152613a528282613865565b91505060a083015184820360a0860152613a6c8282613865565b91505060c083015184820360c0860152613a868282613865565b91505060e083015184820360e0860152613aa08282613865565b9150506101008084015185830382870152613abb8382613865565b925050506101208084015185830382870152613ad78382613914565b925050506101408084015185830382870152613af3838261398f565b9695505050505050565b60208152600061272160208301846139d4565b600080600060608486031215613b2557600080fd5b8335613b30816137d4565b92506020840135613b40816137d4565b929592945050506040919091013590565b6020815260006127216020830184613914565b634e487b7160e01b600052604160045260246000fd5b60405160e0810167ffffffffffffffff81118282101715613b9d57613b9d613b64565b60405290565b604051610160810167ffffffffffffffff81118282101715613b9d57613b9d613b64565b604051601f8201601f1916810167ffffffffffffffff81118282101715613bf057613bf0613b64565b604052919050565b60006020808385031215613c0b57600080fd5b823567ffffffffffffffff80821115613c2357600080fd5b818501915085601f830112613c3757600080fd5b813581811115613c4957613c49613b64565b8060051b9150613c5a848301613bc7565b8181529183018401918481019088841115613c7457600080fd5b938501935b83851015613c9e5784359250613c8e836137d4565b8282529385019390850190613c79565b98975050505050505050565b60008060408385031215613cbd57600080fd5b8235613cc8816137d4565b91506020830135613cd8816138e9565b809150509250929050565b600067ffffffffffffffff821115613cfd57613cfd613b64565b50601f01601f191660200190565b60008060008060808587031215613d2157600080fd5b8435613d2c816137d4565b93506020850135613d3c816137d4565b925060408501359150606085013567ffffffffffffffff811115613d5f57600080fd5b8501601f81018713613d7057600080fd5b8035613d83613d7e82613ce3565b613bc7565b818152886020838501011115613d9857600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215613dcd57600080fd5b8235613dd8816137d4565b91506020830135613cd8816137d4565b600181811c90821680613dfc57607f821691505b60208210811415613e1d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215613e3557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613e6557613e65613e3c565b500190565b634e487b7160e01b600052601260045260246000fd5b600082613e8f57613e8f613e6a565b500690565b6000816000190483118215151615613eae57613eae613e3c565b500290565b600082613ec257613ec2613e6a565b500490565b600082821015613ed957613ed9613e3c565b500390565b600060208284031215613ef057600080fd5b8151612721816137d4565b600082601f830112613f0c57600080fd5b8151613f1a613d7e82613ce3565b818152846020838601011115613f2f57600080fd5b612c52826020830160208701613839565b8051613f4b816138e9565b919050565b600060e08284031215613f6257600080fd5b613f6a613b7a565b9050815181526020820151602082015260408201516040820152613f9060608301613f40565b6060820152608082015167ffffffffffffffff80821115613fb057600080fd5b613fbc85838601613efb565b608084015260a0840151915080821115613fd557600080fd5b613fe185838601613efb565b60a084015260c0840151915080821115613ffa57600080fd5b5061400784828501613efb565b60c08301525092915050565b600082601f83011261402457600080fd5b6040516060810167ffffffffffffffff828210818311171561404857614048613b64565b81604052829150606085018681111561406057600080fd5b855b818110156140955780518381111561407a5760008081fd5b61408689828a01613efb565b85525060209384019301614062565b50929695505050505050565b6000602082840312156140b357600080fd5b815167ffffffffffffffff808211156140cb57600080fd5b9083019061016082860312156140e057600080fd5b6140e8613ba3565b8251828111156140f757600080fd5b61410387828601613efb565b82525060208301518281111561411857600080fd5b61412487828601613efb565b60208301525060408301518281111561413c57600080fd5b61414887828601613efb565b60408301525060608301518281111561416057600080fd5b61416c87828601613efb565b60608301525060808301518281111561418457600080fd5b61419087828601613efb565b60808301525060a0830151828111156141a857600080fd5b6141b487828601613efb565b60a08301525060c0830151828111156141cc57600080fd5b6141d887828601613efb565b60c08301525060e0830151828111156141f057600080fd5b6141fc87828601613efb565b60e083015250610100808401518381111561421657600080fd5b61422288828701613efb565b828401525050610120808401518381111561423c57600080fd5b61424888828701613f50565b828401525050610140808401518381111561426257600080fd5b61426e88828701614013565b918301919091525095945050505050565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156142a757600080fd5b815167ffffffffffffffff8111156142be57600080fd5b612c5284828501613efb565b60006000198214156142de576142de613e3c565b5060010190565b828152604060208201526000612c5260408301846139d4565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613af36080830184613865565b60006020828403121561434257600080fd5b815161272181613806565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ccb1f8998e8554b76676be6f0f2bcbd137ed88541866cd01b93e86b3c932f49f64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b7c980b5d84104b28d77b0885cb8c43a6dfa5355000000000000000000000000610f0d2d552882b8f01010396cbf58c9f72de2930000000000000000000000007c4fad970e51fbe5cfca2097c3aa559e3e0aeaf80000000000000000000000005219c11e18934aadb4dda41e3485bd79dae08f10000000000000000000000000b7c980b5d84104b28d77b0885cb8c43a6dfa5355
-----Decoded View---------------
Arg [0] : placesDAO (address): 0xB7C980B5D84104b28D77b0885cb8C43A6dfA5355
Arg [1] : grounders (address): 0x610f0d2D552882b8f01010396cbf58c9f72DE293
Arg [2] : placesDescriptor (address): 0x7C4fAd970E51fBE5CFCa2097C3AA559e3E0aEAf8
Arg [3] : placesProvider (address): 0x5219C11e18934AADB4DDa41E3485bD79DAE08F10
Arg [4] : _proxyAddress (address): 0xB7C980B5D84104b28D77b0885cb8C43A6dfA5355
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000b7c980b5d84104b28d77b0885cb8c43a6dfa5355
Arg [1] : 000000000000000000000000610f0d2d552882b8f01010396cbf58c9f72de293
Arg [2] : 0000000000000000000000007c4fad970e51fbe5cfca2097c3aa559e3e0aeaf8
Arg [3] : 0000000000000000000000005219c11e18934aadb4dda41e3485bd79dae08f10
Arg [4] : 000000000000000000000000b7c980b5d84104b28d77b0885cb8c43a6dfa5355
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.