ERC-721
Overview
Max Total Supply
0 SKY
Holders
154
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 SKYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Skies
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-18 */ /* _____/\\\\\\\\\\\____/\\\________/\\\__/\\\\\\\\\\\__/\\\\\\\\\\\\\\\_____/\\\\\\\\\\\___ ___/\\\/////////\\\_\/\\\_____/\\\//__\/////\\\///__\/\\\///////////____/\\\/////////\\\_ __\//\\\______\///__\/\\\__/\\\//_________\/\\\_____\/\\\______________\//\\\______\///__ ___\////\\\_________\/\\\\\\//\\\_________\/\\\_____\/\\\\\\\\\\\_______\////\\\_________ ______\////\\\______\/\\\//_\//\\\________\/\\\_____\/\\\///////___________\////\\\______ _________\////\\\___\/\\\____\//\\\_______\/\\\_____\/\\\_____________________\////\\\___ __/\\\______\//\\\__\/\\\_____\//\\\______\/\\\_____\/\\\______________/\\\______\//\\\__ _\///\\\\\\\\\\\/___\/\\\______\//\\\__/\\\\\\\\\\\_\/\\\\\\\\\\\\\\\_\///\\\\\\\\\\\/___ ___\///////////_____\///________\///__\///////////__\///////////////____\///////////_____ by tries.eth */ //SPDX-License-Identifier: MIT pragma solidity ^0.8.12; // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @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); } /** * @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; } // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.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); } // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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); } } } } // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) /** * @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); } /** * Edited from OpenZeppelin's implementation * Returns hex string without leading 0x * @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(6); bytes memory buffer = new bytes(2 * length); // buffer[0] = "0"; // buffer[1] = "0"; for (uint256 i = 2 * length; i > 0; --i) { // if (i >= 0) { // buffer[i] = // returnData = string.concat(returnData, toString(i - 1)); buffer[i - 1] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; // } } // require(value == 0, "Strings: hex length insufficient"); // return returnData; return string(buffer); } } // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.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; } } /** * @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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // OpenZeppelin Contracts v4.4.1 (access/Ownable.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() { _transferOwnership(_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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } error PublicSaleNotOpen(); error NotEnoughSkiesRemaining(); error IncorrectPayment(); error TokenDoesNotExist(); error InvalidLatitude(); error InvalidLongitude(); interface ISkyRenderer { function renderSky( uint256 tokenId, string calldata locationName, int256 latitude, int256 longitude ) external pure returns (string memory); } struct SkyMetadata { string locationName; int256 latitude; int256 longitude; } contract Skies is ERC721, Ownable, ReentrancyGuard { uint256 public constant MAX_SKIES = 5000; uint256 public constant MAX_SKIES_PER_TRANSACTION = 4; uint256 public constant PUBLIC_SALE_PRICE = 0.04 ether; ISkyRenderer public renderer; bool public isPublicSaleActive; uint256 public totalSkies; // 0 - 5000 // Mapping from token ID to metadata for each token mapping(uint256 => SkyMetadata) internal skyMetadata; // ======== ======== // ======= MODIFIERS ======= // ======== ======== modifier publicSaleActive() { if (!isPublicSaleActive) { revert PublicSaleNotOpen(); } _; } modifier canMintSkies(uint256 numberOfSkiesToMint) { if (totalSkies + numberOfSkiesToMint > MAX_SKIES) { revert NotEnoughSkiesRemaining(); } _; } modifier isCorrectPayment(uint256 numberOfSkiesToMint) { if ( (owner() != msg.sender && // allow owner to bypass mint price (PUBLIC_SALE_PRICE * numberOfSkiesToMint != msg.value)) || numberOfSkiesToMint > MAX_SKIES_PER_TRANSACTION ) { revert IncorrectPayment(); } _; } constructor() ERC721("Skies", "SKY") {} // ======== ======== // ======= MINT ======= // ======== ======== function mint(SkyMetadata[] calldata tokensMetadata) external payable nonReentrant isCorrectPayment(tokensMetadata.length) publicSaleActive canMintSkies(tokensMetadata.length) { uint256 tokenId; for (uint256 i = 0; i < tokensMetadata.length; ) { tokenId = totalSkies + i; SkyMetadata memory currentTokenMetadata = tokensMetadata[i]; if ( currentTokenMetadata.latitude > 6600 || currentTokenMetadata.latitude < -6600 ) { revert InvalidLatitude(); } else if ( currentTokenMetadata.longitude > 18000 || currentTokenMetadata.longitude < -18000 ) { revert InvalidLongitude(); } _safeMint(msg.sender, tokenId); // Set metadata for this token skyMetadata[tokenId] = SkyMetadata( currentTokenMetadata.locationName, currentTokenMetadata.latitude, currentTokenMetadata.longitude ); unchecked { ++i; } } totalSkies += tokensMetadata.length; } // ======== ======== // ======= READ-ONLY ======= // ======== ======== function lastTokenId() external view returns (uint256) { return totalSkies > 0 ? totalSkies - 1 : 0; } // ======== ======== // ======= OWNER ======= // ======== ======== function setIsPublicSaleActive(bool _isPublicSaleActive) external onlyOwner { isPublicSaleActive = _isPublicSaleActive; } function setRenderer(address rendererAddress) public onlyOwner { renderer = ISkyRenderer(rendererAddress); } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawTokens(IERC20 token) public onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } // ======== ======== // ======= OVERRIDE ======= // ======== ======== /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (tokenId >= totalSkies) { revert TokenDoesNotExist(); } return renderer.renderSky( tokenId, skyMetadata[tokenId].locationName, skyMetadata[tokenId].latitude, skyMetadata[tokenId].longitude ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"IncorrectPayment","type":"error"},{"inputs":[],"name":"InvalidLatitude","type":"error"},{"inputs":[],"name":"InvalidLongitude","type":"error"},{"inputs":[],"name":"NotEnoughSkiesRemaining","type":"error"},{"inputs":[],"name":"PublicSaleNotOpen","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SKIES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SKIES_PER_TRANSACTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"locationName","type":"string"},{"internalType":"int256","name":"latitude","type":"int256"},{"internalType":"int256","name":"longitude","type":"int256"}],"internalType":"struct SkyMetadata[]","name":"tokensMetadata","type":"tuple[]"}],"name":"mint","outputs":[],"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":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract ISkyRenderer","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":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rendererAddress","type":"address"}],"name":"setRenderer","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSkies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040805180820182526005815264536b69657360d81b602080830191825283518085019094526003845262534b5960e81b9084015281519192916200005a91600091620000ee565b50805162000070906001906020840190620000ee565b5050506200008d620000876200009860201b60201c565b6200009c565b6001600755620001d1565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000fc9062000194565b90600052602060002090601f0160209004810192826200012057600085556200016b565b82601f106200013b57805160ff19168380011785556200016b565b828001600101855582156200016b579182015b828111156200016b5782518255916020019190600101906200014e565b50620001799291506200017d565b5090565b5b808211156200017957600081556001016200017e565b600181811c90821680620001a957607f821691505b60208210811415620001cb57634e487b7160e01b600052602260045260246000fd5b50919050565b611ecc80620001e16000396000f3fe6080604052600436106101b75760003560e01c80636086d2d0116100ec57806395d89b411161008a578063c87b56dd11610064578063c87b56dd146104a8578063e985e9c5146104c8578063f2fde38b14610511578063f84ddf0b1461053157600080fd5b806395d89b4114610453578063a22cb46514610468578063b88d4fde1461048857600080fd5b806370a08231116100c657806370a08231146103e0578063715018a6146104005780638ada6b0f146104155780638da5cb5b1461043557600080fd5b80636086d2d0146103975780636352211e146103ad578063656c24b6146103cd57600080fd5b806323b872dd1161015957806342842e0e1161013357806342842e0e1461032157806349df728c14610341578063516c6d5a1461036157806356d3163d1461037757600080fd5b806323b872dd146102cc57806328cad13d146102ec5780633ccfd60b1461030c57600080fd5b8063081812fc11610195578063081812fc1461023c578063095ea7b3146102745780631bbd014a146102965780631e84c413146102ab57600080fd5b806301ffc9a7146101bc57806306fdde03146101f157806307e89ec014610213575b600080fd5b3480156101c857600080fd5b506101dc6101d736600461171b565b610546565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b50610206610598565b6040516101e89190611797565b34801561021f57600080fd5b5061022e668e1bc9bf04000081565b6040519081526020016101e8565b34801561024857600080fd5b5061025c6102573660046117aa565b61062a565b6040516001600160a01b0390911681526020016101e8565b34801561028057600080fd5b5061029461028f3660046117d8565b6106c4565b005b3480156102a257600080fd5b5061022e600481565b3480156102b757600080fd5b506008546101dc90600160a01b900460ff1681565b3480156102d857600080fd5b506102946102e7366004611804565b6107da565b3480156102f857600080fd5b50610294610307366004611853565b61080b565b34801561031857600080fd5b50610294610853565b34801561032d57600080fd5b5061029461033c366004611804565b6108b0565b34801561034d57600080fd5b5061029461035c366004611870565b6108cb565b34801561036d57600080fd5b5061022e60095481565b34801561038357600080fd5b50610294610392366004611870565b6109d4565b3480156103a357600080fd5b5061022e61138881565b3480156103b957600080fd5b5061025c6103c83660046117aa565b610a20565b6102946103db36600461188d565b610a97565b3480156103ec57600080fd5b5061022e6103fb366004611870565b610d04565b34801561040c57600080fd5b50610294610d8b565b34801561042157600080fd5b5060085461025c906001600160a01b031681565b34801561044157600080fd5b506006546001600160a01b031661025c565b34801561045f57600080fd5b50610206610dc1565b34801561047457600080fd5b50610294610483366004611902565b610dd0565b34801561049457600080fd5b506102946104a33660046119e8565b610ddb565b3480156104b457600080fd5b506102066104c33660046117aa565b610e13565b3480156104d457600080fd5b506101dc6104e3366004611a68565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561051d57600080fd5b5061029461052c366004611870565b610eca565b34801561053d57600080fd5b5061022e610f65565b60006001600160e01b031982166380ac58cd60e01b148061057757506001600160e01b03198216635b5e139f60e01b145b8061059257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546105a790611a96565b80601f01602080910402602001604051908101604052809291908181526020018280546105d390611a96565b80156106205780601f106105f557610100808354040283529160200191610620565b820191906000526020600020905b81548152906001019060200180831161060357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106a85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106cf82610a20565b9050806001600160a01b0316836001600160a01b0316141561073d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161069f565b336001600160a01b0382161480610759575061075981336104e3565b6107cb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161069f565b6107d58383610f8a565b505050565b6107e43382610ff8565b6108005760405162461bcd60e51b815260040161069f90611ad1565b6107d58383836110ef565b6006546001600160a01b031633146108355760405162461bcd60e51b815260040161069f90611b22565b60088054911515600160a01b0260ff60a01b19909216919091179055565b6006546001600160a01b0316331461087d5760405162461bcd60e51b815260040161069f90611b22565b6040514790339082156108fc029083906000818181858888f193505050501580156108ac573d6000803e3d6000fd5b5050565b6107d583838360405180602001604052806000815250610ddb565b6006546001600160a01b031633146108f55760405162461bcd60e51b815260040161069f90611b22565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561093c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109609190611b57565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d59190611b70565b6006546001600160a01b031633146109fe5760405162461bcd60e51b815260040161069f90611b22565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316806105925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161069f565b60026007541415610aea5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161069f565b60026007558033610b036006546001600160a01b031690565b6001600160a01b031614158015610b2a575034610b2782668e1bc9bf040000611ba3565b14155b80610b355750600481115b15610b535760405163569e8c1160e01b815260040160405180910390fd5b600854600160a01b900460ff16610b7d576040516363a2de0f60e01b815260040160405180910390fd5b600954829061138890610b91908390611bc2565b1115610bb05760405163e7d2239b60e01b815260040160405180910390fd5b6000805b84811015610cdd5780600954610bca9190611bc2565b91506000868683818110610be057610be0611bda565b9050602002810190610bf29190611bf0565b610bfb90611c10565b90506119c881602001511380610c1757506119c7198160200151125b15610c355760405163c2df0dc560e01b815260040160405180910390fd5b61465081604001511380610c4f575061464f198160400151125b15610c6d5760405163016cb17f60e71b815260040160405180910390fd5b610c77338461128b565b60408051606081018252825181526020808401518183015283830151828401526000868152600a8252929092208151805192939192610cb9928492019061166c565b50602082015181600101556040820151816002015590505081600101915050610bb4565b508484905060096000828254610cf39190611bc2565b909155505060016007555050505050565b60006001600160a01b038216610d6f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161069f565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610db55760405162461bcd60e51b815260040161069f90611b22565b610dbf60006112a5565b565b6060600180546105a790611a96565b6108ac3383836112f7565b610de53383610ff8565b610e015760405162461bcd60e51b815260040161069f90611ad1565b610e0d848484846113c6565b50505050565b60606009548210610e375760405163677510db60e11b815260040160405180910390fd5b6008546000838152600a602052604090819020600181015460028201549251638401c87560e01b81526001600160a01b0390941693638401c87593610e859388939092909190600401611c9c565b600060405180830381865afa158015610ea2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105929190810190611d5c565b6006546001600160a01b03163314610ef45760405162461bcd60e51b815260040161069f90611b22565b6001600160a01b038116610f595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161069f565b610f62816112a5565b50565b60008060095411610f765750600090565b6001600954610f859190611dd3565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610fbf82610a20565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166110715760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161069f565b600061107c83610a20565b9050806001600160a01b0316846001600160a01b031614806110b75750836001600160a01b03166110ac8461062a565b6001600160a01b0316145b806110e757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661110282610a20565b6001600160a01b0316146111665760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161069f565b6001600160a01b0382166111c85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161069f565b6111d3600082610f8a565b6001600160a01b03831660009081526003602052604081208054600192906111fc908490611dd3565b90915550506001600160a01b038216600090815260036020526040812080546001929061122a908490611bc2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6108ac8282604051806020016040528060008152506113f9565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156113595760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161069f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113d18484846110ef565b6113dd8484848461142c565b610e0d5760405162461bcd60e51b815260040161069f90611dea565b611403838361152a565b611410600084848461142c565b6107d55760405162461bcd60e51b815260040161069f90611dea565b60006001600160a01b0384163b1561151f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611470903390899088908890600401611e3c565b6020604051808303816000875af19250505080156114ab575060408051601f3d908101601f191682019092526114a891810190611e79565b60015b611505573d8080156114d9576040519150601f19603f3d011682016040523d82523d6000602084013e6114de565b606091505b5080516114fd5760405162461bcd60e51b815260040161069f90611dea565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110e7565b506001949350505050565b6001600160a01b0382166115805760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161069f565b6000818152600260205260409020546001600160a01b0316156115e55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161069f565b6001600160a01b038216600090815260036020526040812080546001929061160e908490611bc2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461167890611a96565b90600052602060002090601f01602090048101928261169a57600085556116e0565b82601f106116b357805160ff19168380011785556116e0565b828001600101855582156116e0579182015b828111156116e05782518255916020019190600101906116c5565b506116ec9291506116f0565b5090565b5b808211156116ec57600081556001016116f1565b6001600160e01b031981168114610f6257600080fd5b60006020828403121561172d57600080fd5b813561173881611705565b9392505050565b60005b8381101561175a578181015183820152602001611742565b83811115610e0d5750506000910152565b6000815180845261178381602086016020860161173f565b601f01601f19169290920160200192915050565b602081526000611738602083018461176b565b6000602082840312156117bc57600080fd5b5035919050565b6001600160a01b0381168114610f6257600080fd5b600080604083850312156117eb57600080fd5b82356117f6816117c3565b946020939093013593505050565b60008060006060848603121561181957600080fd5b8335611824816117c3565b92506020840135611834816117c3565b929592945050506040919091013590565b8015158114610f6257600080fd5b60006020828403121561186557600080fd5b813561173881611845565b60006020828403121561188257600080fd5b8135611738816117c3565b600080602083850312156118a057600080fd5b823567ffffffffffffffff808211156118b857600080fd5b818501915085601f8301126118cc57600080fd5b8135818111156118db57600080fd5b8660208260051b85010111156118f057600080fd5b60209290920196919550909350505050565b6000806040838503121561191557600080fd5b8235611920816117c3565b9150602083013561193081611845565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561197a5761197a61193b565b604052919050565b600067ffffffffffffffff82111561199c5761199c61193b565b50601f01601f191660200190565b60006119bd6119b884611982565b611951565b90508281528383830111156119d157600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156119fe57600080fd5b8435611a09816117c3565b93506020850135611a19816117c3565b925060408501359150606085013567ffffffffffffffff811115611a3c57600080fd5b8501601f81018713611a4d57600080fd5b611a5c878235602084016119aa565b91505092959194509250565b60008060408385031215611a7b57600080fd5b8235611a86816117c3565b91506020830135611930816117c3565b600181811c90821680611aaa57607f821691505b60208210811415611acb57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611b6957600080fd5b5051919050565b600060208284031215611b8257600080fd5b815161173881611845565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611bbd57611bbd611b8d565b500290565b60008219821115611bd557611bd5611b8d565b500190565b634e487b7160e01b600052603260045260246000fd5b60008235605e19833603018112611c0657600080fd5b9190910192915050565b600060608236031215611c2257600080fd5b6040516060810167ffffffffffffffff8282108183111715611c4657611c4661193b565b816040528435915080821115611c5b57600080fd5b50830136601f820112611c6d57600080fd5b611c7c368235602084016119aa565b825250602083013560208201526040830135604082015280915050919050565b848152600060206080818401526000865481600182811c915080831680611cc457607f831692505b858310811415611ce257634e487b7160e01b85526022600452602485fd5b6080880183905260a08801818015611d015760018114611d1257611d3d565b60ff19861682528782019650611d3d565b60008d81526020902060005b86811015611d3757815484820152908501908901611d1e565b83019750505b5050505050604085019690965260609093019390935250949350505050565b600060208284031215611d6e57600080fd5b815167ffffffffffffffff811115611d8557600080fd5b8201601f81018413611d9657600080fd5b8051611da46119b882611982565b818152856020838501011115611db957600080fd5b611dca82602083016020860161173f565b95945050505050565b600082821015611de557611de5611b8d565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e6f9083018461176b565b9695505050505050565b600060208284031215611e8b57600080fd5b81516117388161170556fea26469706673582212203e18b15a4e5ca0c4194f539fb1c1f9d0bdaaeb5c78b9e54352662cbd79b2b11b64736f6c634300080c0033
Deployed Bytecode
0x6080604052600436106101b75760003560e01c80636086d2d0116100ec57806395d89b411161008a578063c87b56dd11610064578063c87b56dd146104a8578063e985e9c5146104c8578063f2fde38b14610511578063f84ddf0b1461053157600080fd5b806395d89b4114610453578063a22cb46514610468578063b88d4fde1461048857600080fd5b806370a08231116100c657806370a08231146103e0578063715018a6146104005780638ada6b0f146104155780638da5cb5b1461043557600080fd5b80636086d2d0146103975780636352211e146103ad578063656c24b6146103cd57600080fd5b806323b872dd1161015957806342842e0e1161013357806342842e0e1461032157806349df728c14610341578063516c6d5a1461036157806356d3163d1461037757600080fd5b806323b872dd146102cc57806328cad13d146102ec5780633ccfd60b1461030c57600080fd5b8063081812fc11610195578063081812fc1461023c578063095ea7b3146102745780631bbd014a146102965780631e84c413146102ab57600080fd5b806301ffc9a7146101bc57806306fdde03146101f157806307e89ec014610213575b600080fd5b3480156101c857600080fd5b506101dc6101d736600461171b565b610546565b60405190151581526020015b60405180910390f35b3480156101fd57600080fd5b50610206610598565b6040516101e89190611797565b34801561021f57600080fd5b5061022e668e1bc9bf04000081565b6040519081526020016101e8565b34801561024857600080fd5b5061025c6102573660046117aa565b61062a565b6040516001600160a01b0390911681526020016101e8565b34801561028057600080fd5b5061029461028f3660046117d8565b6106c4565b005b3480156102a257600080fd5b5061022e600481565b3480156102b757600080fd5b506008546101dc90600160a01b900460ff1681565b3480156102d857600080fd5b506102946102e7366004611804565b6107da565b3480156102f857600080fd5b50610294610307366004611853565b61080b565b34801561031857600080fd5b50610294610853565b34801561032d57600080fd5b5061029461033c366004611804565b6108b0565b34801561034d57600080fd5b5061029461035c366004611870565b6108cb565b34801561036d57600080fd5b5061022e60095481565b34801561038357600080fd5b50610294610392366004611870565b6109d4565b3480156103a357600080fd5b5061022e61138881565b3480156103b957600080fd5b5061025c6103c83660046117aa565b610a20565b6102946103db36600461188d565b610a97565b3480156103ec57600080fd5b5061022e6103fb366004611870565b610d04565b34801561040c57600080fd5b50610294610d8b565b34801561042157600080fd5b5060085461025c906001600160a01b031681565b34801561044157600080fd5b506006546001600160a01b031661025c565b34801561045f57600080fd5b50610206610dc1565b34801561047457600080fd5b50610294610483366004611902565b610dd0565b34801561049457600080fd5b506102946104a33660046119e8565b610ddb565b3480156104b457600080fd5b506102066104c33660046117aa565b610e13565b3480156104d457600080fd5b506101dc6104e3366004611a68565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561051d57600080fd5b5061029461052c366004611870565b610eca565b34801561053d57600080fd5b5061022e610f65565b60006001600160e01b031982166380ac58cd60e01b148061057757506001600160e01b03198216635b5e139f60e01b145b8061059257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546105a790611a96565b80601f01602080910402602001604051908101604052809291908181526020018280546105d390611a96565b80156106205780601f106105f557610100808354040283529160200191610620565b820191906000526020600020905b81548152906001019060200180831161060357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106a85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106cf82610a20565b9050806001600160a01b0316836001600160a01b0316141561073d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161069f565b336001600160a01b0382161480610759575061075981336104e3565b6107cb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161069f565b6107d58383610f8a565b505050565b6107e43382610ff8565b6108005760405162461bcd60e51b815260040161069f90611ad1565b6107d58383836110ef565b6006546001600160a01b031633146108355760405162461bcd60e51b815260040161069f90611b22565b60088054911515600160a01b0260ff60a01b19909216919091179055565b6006546001600160a01b0316331461087d5760405162461bcd60e51b815260040161069f90611b22565b6040514790339082156108fc029083906000818181858888f193505050501580156108ac573d6000803e3d6000fd5b5050565b6107d583838360405180602001604052806000815250610ddb565b6006546001600160a01b031633146108f55760405162461bcd60e51b815260040161069f90611b22565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561093c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109609190611b57565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d59190611b70565b6006546001600160a01b031633146109fe5760405162461bcd60e51b815260040161069f90611b22565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316806105925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161069f565b60026007541415610aea5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161069f565b60026007558033610b036006546001600160a01b031690565b6001600160a01b031614158015610b2a575034610b2782668e1bc9bf040000611ba3565b14155b80610b355750600481115b15610b535760405163569e8c1160e01b815260040160405180910390fd5b600854600160a01b900460ff16610b7d576040516363a2de0f60e01b815260040160405180910390fd5b600954829061138890610b91908390611bc2565b1115610bb05760405163e7d2239b60e01b815260040160405180910390fd5b6000805b84811015610cdd5780600954610bca9190611bc2565b91506000868683818110610be057610be0611bda565b9050602002810190610bf29190611bf0565b610bfb90611c10565b90506119c881602001511380610c1757506119c7198160200151125b15610c355760405163c2df0dc560e01b815260040160405180910390fd5b61465081604001511380610c4f575061464f198160400151125b15610c6d5760405163016cb17f60e71b815260040160405180910390fd5b610c77338461128b565b60408051606081018252825181526020808401518183015283830151828401526000868152600a8252929092208151805192939192610cb9928492019061166c565b50602082015181600101556040820151816002015590505081600101915050610bb4565b508484905060096000828254610cf39190611bc2565b909155505060016007555050505050565b60006001600160a01b038216610d6f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161069f565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610db55760405162461bcd60e51b815260040161069f90611b22565b610dbf60006112a5565b565b6060600180546105a790611a96565b6108ac3383836112f7565b610de53383610ff8565b610e015760405162461bcd60e51b815260040161069f90611ad1565b610e0d848484846113c6565b50505050565b60606009548210610e375760405163677510db60e11b815260040160405180910390fd5b6008546000838152600a602052604090819020600181015460028201549251638401c87560e01b81526001600160a01b0390941693638401c87593610e859388939092909190600401611c9c565b600060405180830381865afa158015610ea2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105929190810190611d5c565b6006546001600160a01b03163314610ef45760405162461bcd60e51b815260040161069f90611b22565b6001600160a01b038116610f595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161069f565b610f62816112a5565b50565b60008060095411610f765750600090565b6001600954610f859190611dd3565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610fbf82610a20565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166110715760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161069f565b600061107c83610a20565b9050806001600160a01b0316846001600160a01b031614806110b75750836001600160a01b03166110ac8461062a565b6001600160a01b0316145b806110e757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661110282610a20565b6001600160a01b0316146111665760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161069f565b6001600160a01b0382166111c85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161069f565b6111d3600082610f8a565b6001600160a01b03831660009081526003602052604081208054600192906111fc908490611dd3565b90915550506001600160a01b038216600090815260036020526040812080546001929061122a908490611bc2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6108ac8282604051806020016040528060008152506113f9565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156113595760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161069f565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113d18484846110ef565b6113dd8484848461142c565b610e0d5760405162461bcd60e51b815260040161069f90611dea565b611403838361152a565b611410600084848461142c565b6107d55760405162461bcd60e51b815260040161069f90611dea565b60006001600160a01b0384163b1561151f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611470903390899088908890600401611e3c565b6020604051808303816000875af19250505080156114ab575060408051601f3d908101601f191682019092526114a891810190611e79565b60015b611505573d8080156114d9576040519150601f19603f3d011682016040523d82523d6000602084013e6114de565b606091505b5080516114fd5760405162461bcd60e51b815260040161069f90611dea565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110e7565b506001949350505050565b6001600160a01b0382166115805760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161069f565b6000818152600260205260409020546001600160a01b0316156115e55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161069f565b6001600160a01b038216600090815260036020526040812080546001929061160e908490611bc2565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461167890611a96565b90600052602060002090601f01602090048101928261169a57600085556116e0565b82601f106116b357805160ff19168380011785556116e0565b828001600101855582156116e0579182015b828111156116e05782518255916020019190600101906116c5565b506116ec9291506116f0565b5090565b5b808211156116ec57600081556001016116f1565b6001600160e01b031981168114610f6257600080fd5b60006020828403121561172d57600080fd5b813561173881611705565b9392505050565b60005b8381101561175a578181015183820152602001611742565b83811115610e0d5750506000910152565b6000815180845261178381602086016020860161173f565b601f01601f19169290920160200192915050565b602081526000611738602083018461176b565b6000602082840312156117bc57600080fd5b5035919050565b6001600160a01b0381168114610f6257600080fd5b600080604083850312156117eb57600080fd5b82356117f6816117c3565b946020939093013593505050565b60008060006060848603121561181957600080fd5b8335611824816117c3565b92506020840135611834816117c3565b929592945050506040919091013590565b8015158114610f6257600080fd5b60006020828403121561186557600080fd5b813561173881611845565b60006020828403121561188257600080fd5b8135611738816117c3565b600080602083850312156118a057600080fd5b823567ffffffffffffffff808211156118b857600080fd5b818501915085601f8301126118cc57600080fd5b8135818111156118db57600080fd5b8660208260051b85010111156118f057600080fd5b60209290920196919550909350505050565b6000806040838503121561191557600080fd5b8235611920816117c3565b9150602083013561193081611845565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561197a5761197a61193b565b604052919050565b600067ffffffffffffffff82111561199c5761199c61193b565b50601f01601f191660200190565b60006119bd6119b884611982565b611951565b90508281528383830111156119d157600080fd5b828260208301376000602084830101529392505050565b600080600080608085870312156119fe57600080fd5b8435611a09816117c3565b93506020850135611a19816117c3565b925060408501359150606085013567ffffffffffffffff811115611a3c57600080fd5b8501601f81018713611a4d57600080fd5b611a5c878235602084016119aa565b91505092959194509250565b60008060408385031215611a7b57600080fd5b8235611a86816117c3565b91506020830135611930816117c3565b600181811c90821680611aaa57607f821691505b60208210811415611acb57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611b6957600080fd5b5051919050565b600060208284031215611b8257600080fd5b815161173881611845565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611bbd57611bbd611b8d565b500290565b60008219821115611bd557611bd5611b8d565b500190565b634e487b7160e01b600052603260045260246000fd5b60008235605e19833603018112611c0657600080fd5b9190910192915050565b600060608236031215611c2257600080fd5b6040516060810167ffffffffffffffff8282108183111715611c4657611c4661193b565b816040528435915080821115611c5b57600080fd5b50830136601f820112611c6d57600080fd5b611c7c368235602084016119aa565b825250602083013560208201526040830135604082015280915050919050565b848152600060206080818401526000865481600182811c915080831680611cc457607f831692505b858310811415611ce257634e487b7160e01b85526022600452602485fd5b6080880183905260a08801818015611d015760018114611d1257611d3d565b60ff19861682528782019650611d3d565b60008d81526020902060005b86811015611d3757815484820152908501908901611d1e565b83019750505b5050505050604085019690965260609093019390935250949350505050565b600060208284031215611d6e57600080fd5b815167ffffffffffffffff811115611d8557600080fd5b8201601f81018413611d9657600080fd5b8051611da46119b882611982565b818152856020838501011115611db957600080fd5b611dca82602083016020860161173f565b95945050505050565b600082821015611de557611de5611b8d565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e6f9083018461176b565b9695505050505050565b600060208284031215611e8b57600080fd5b81516117388161170556fea26469706673582212203e18b15a4e5ca0c4194f539fb1c1f9d0bdaaeb5c78b9e54352662cbd79b2b11b64736f6c634300080c0033
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.