Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
888 CAB
Holders
359
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CABLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CollectABall
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; 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/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract CollectABall is ERC721, ERC721Enumerable, Ownable { using Strings for uint256; using Counters for Counters.Counter; // Constants uint256 public constant MAX_COLLECTION_SIZE = 10000; uint256 public constant MINT_PRICE = 0.08 ether; uint256 public constant MAX_MINT_QUANTITY = 5; address private constant ARTIST_WALLET = 0x113Aed406B5f22190726F9C8B51d50e74569A98D; address private constant DEV_WALLET = 0x291f158F42794Db959867528403cdb382DbECfA3; address private constant FOUNDER_WALLET = 0xd04a78A2cF122e7bC7F96Bf90FB984000436CFCd; // string public baseURI; bool public publicSaleStarted = false; bool public presaleStarted = false; uint256 public reservedBalls = 100; // Private mapping(address => bool) private _presaleWhiteList; mapping(address => uint) private _presaleMintedCount; Counters.Counter private _tokenIdCounter; Counters.Counter private _reservedBallsClaimed; string private baseURI; event BaseURIChanged(string baseURI); constructor() ERC721("Collect-A-Ball NFT", "CAB") { } // Modifiers modifier publicSaleIsLive() { require(publicSaleStarted, "Public sale has not started"); _; } modifier presaleIsLive() { require(presaleStarted, "Presale has not started or Presale is over"); _; } function isOwner() public view returns(bool) { return owner() == msg.sender; } // Mint function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function mint(address _to, uint256 _quantity) public payable publicSaleIsLive { uint256 supply = totalSupply(); require(_to != address(0), "Invalid addresss"); require(supply < MAX_COLLECTION_SIZE, "Sold Out"); require(_quantity > 0, "Need to mint at least one!"); require(_quantity <= MAX_MINT_QUANTITY, "More than the max allowed in one transaction"); require(supply + _quantity <= MAX_COLLECTION_SIZE, "Minting would exceed max supply"); require(msg.value == MINT_PRICE * _quantity, "Incorrect amount of ETH sent"); for (uint256 i = 0; i < _quantity; i++) { _tokenIdCounter.increment(); _safeMint(_to, _tokenIdCounter.current()); } } // MARK: Presale function mintPreSale(uint256 _quantity) public payable presaleIsLive { require(_presaleWhiteList[msg.sender], "You're are not eligible for Presale"); require(_presaleMintedCount[msg.sender] <= MAX_MINT_QUANTITY, "Exceeded max mint limit for presale"); require(_presaleMintedCount[msg.sender]+_quantity <= MAX_MINT_QUANTITY, "Minting would exceed presale mint limit. Please decrease quantity"); require(totalSupply() <= MAX_COLLECTION_SIZE, "Collection Sold Out"); require(_quantity > 0, "Need to mint at least one!"); require(_quantity <= MAX_MINT_QUANTITY, "Cannot mint more than max"); require(totalSupply() + _quantity <= MAX_COLLECTION_SIZE, "Minting would exceed max supply, please decrease quantity"); require(_quantity*MINT_PRICE == msg.value, "Incorrect amount of ETH sent"); uint count = _presaleMintedCount[msg.sender]; _presaleMintedCount[msg.sender] = _quantity + count; for (uint256 i = 0; i < _quantity; i++) { _tokenIdCounter.increment(); _safeMint(msg.sender, _tokenIdCounter.current()); } } function checkPresaleEligibility(address addr) public view returns (bool) { return _presaleWhiteList[addr]; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, "/", tokenId.toString(), ".json")) : ""; } // MARK: onlyOwner function setBaseURI(string memory _uri) public onlyOwner { baseURI = _uri; } function addToPresaleWhitelist(address[] memory addresses) public onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { require(addresses[i] != address(0)); _presaleWhiteList[addresses[i]] = true; } } function removeFromWhitelist(address[] memory addresses) public onlyOwner { for(uint256 i = 0; i < addresses.length; i++) { _presaleWhiteList[addresses[i]] = false; } } function claimReserved(address addr, uint256 _quantity) public onlyOwner { require(_tokenIdCounter.current() < MAX_COLLECTION_SIZE, "Collection has sold out"); require(_quantity + _tokenIdCounter.current() < MAX_COLLECTION_SIZE, "Minting would exceed 10,000, please decrease your quantity"); require(_reservedBallsClaimed.current() < reservedBalls, "Already minted all of the reserved balls"); require(_quantity + _reservedBallsClaimed.current() <= reservedBalls, "Minting would exceed the limit of reserved balls. Please decrease quantity."); for(uint256 i = 0; i < _quantity; i++) { _tokenIdCounter.increment(); _mint(addr, _tokenIdCounter.current()); _reservedBallsClaimed.increment(); } } function togglePresaleStarted() public onlyOwner { presaleStarted = !presaleStarted; } function togglePublicSaleStarted() public onlyOwner { publicSaleStarted = !publicSaleStarted; } function contractBalance() public view onlyOwner returns(uint256) { return address(this).balance; } function withdrawAll() public onlyOwner { uint256 balance = contractBalance(); require(balance > 0, "The balance is 0"); _withdraw(DEV_WALLET, (balance * 15)/100); _withdraw(ARTIST_WALLET, (balance * 10)/100); _withdraw(FOUNDER_WALLET, contractBalance()); } function _withdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call { value: _amount}(""); require(success, "failed with withdraw"); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// 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; 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": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"string","name":"baseURI","type":"string"}],"name":"BaseURIChanged","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_COLLECTION_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addToPresaleWhitelist","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":"address","name":"addr","type":"address"}],"name":"checkPresaleEligibility","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"claimReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractBalance","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":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintPreSale","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":"presaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedBalls","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":"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":"string","name":"_uri","type":"string"}],"name":"setBaseURI","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":[],"name":"togglePresaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a805461ffff60a01b191690556064600b553480156200002457600080fd5b50604080518082018252601281527110dbdb1b1958dd0b504b50985b1b0813919560721b60208083019182528351808501909452600384526221a0a160e91b9084015281519192916200007a9160009162000109565b5080516200009090600190602084019062000109565b505050620000ad620000a7620000b360201b60201c565b620000b7565b620001ec565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011790620001af565b90600052602060002090601f0160209004810192826200013b576000855562000186565b82601f106200015657805160ff191683800117855562000186565b8280016001018555821562000186579182015b828111156200018657825182559160200191906001019062000169565b506200019492915062000198565b5090565b5b8082111562000194576000815560010162000199565b600281046001821680620001c457607f821691505b60208210811415620001e657634e487b7160e01b600052602260045260246000fd5b50919050565b612ede80620001fc6000396000f3fe60806040526004361061021a5760003560e01c806370a0823111610123578063a22cb465116100ab578063c002d23d1161006f578063c002d23d146105aa578063c87b56dd146105bf578063e985e9c5146105df578063ed1fc2a2146105ff578063f2fde38b146106145761021a565b8063a22cb46514610522578063a2e9147714610542578063a425e25714610557578063b88d4fde14610577578063b9884772146105975761021a565b80638b7afe2e116100f25780638b7afe2e146104ae5780638da5cb5b146104c35780638e07484c146104d85780638f32d59b146104f857806395d89b411461050d5761021a565b806370a082311461044f57806371273bb71461046f578063715018a614610484578063853828b6146104995761021a565b80632f814575116101a657806347a9fd921161017557806347a9fd92146103ba5780634f6ccce7146103cf578063548db174146103ef57806355f804b31461040f5780636352211e1461042f5761021a565b80632f8145751461035d5780634035cc6c1461037257806340c10f191461038757806342842e0e1461039a5761021a565b8063095ea7b3116101ed578063095ea7b3146102b957806318160ddd146102db5780631b5757f2146102fd57806323b872dd1461031d5780632f745c591461033d5761021a565b806301ffc9a71461021f57806304549d6f1461025557806306fdde031461026a578063081812fc1461028c575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046121ad565b610634565b60405161024c9190612311565b60405180910390f35b34801561026157600080fd5b5061023f610647565b34801561027657600080fd5b5061027f610657565b60405161024c919061231c565b34801561029857600080fd5b506102ac6102a736600461222b565b6106e9565b60405161024c91906122c0565b3480156102c557600080fd5b506102d96102d43660046120d6565b610735565b005b3480156102e757600080fd5b506102f06107cd565b60405161024c9190612d25565b34801561030957600080fd5b506102d96103183660046120d6565b6107d3565b34801561032957600080fd5b506102d9610338366004611fe8565b610913565b34801561034957600080fd5b506102f06103583660046120d6565b61094b565b34801561036957600080fd5b506102d961099d565b34801561037e57600080fd5b506102f06109fd565b6102d96103953660046120d6565b610a03565b3480156103a657600080fd5b506102d96103b5366004611fe8565b610b5b565b3480156103c657600080fd5b506102f0610b76565b3480156103db57600080fd5b506102f06103ea36600461222b565b610b7c565b3480156103fb57600080fd5b506102d961040a3660046120ff565b610bd7565b34801561041b57600080fd5b506102d961042a3660046121e5565b610c90565b34801561043b57600080fd5b506102ac61044a36600461222b565b610ce2565b34801561045b57600080fd5b506102f061046a366004611f9c565b610d17565b34801561047b57600080fd5b506102f0610d5b565b34801561049057600080fd5b506102d9610d60565b3480156104a557600080fd5b506102d9610dab565b3480156104ba57600080fd5b506102f0610e92565b3480156104cf57600080fd5b506102ac610ed8565b3480156104e457600080fd5b506102d96104f33660046120ff565b610ee7565b34801561050457600080fd5b5061023f610fe3565b34801561051957600080fd5b5061027f610ffd565b34801561052e57600080fd5b506102d961053d36600461209c565b61100c565b34801561054e57600080fd5b5061023f6110da565b34801561056357600080fd5b5061023f610572366004611f9c565b6110ea565b34801561058357600080fd5b506102d9610592366004612023565b611108565b6102d96105a536600461222b565b611141565b3480156105b657600080fd5b506102f0611333565b3480156105cb57600080fd5b5061027f6105da36600461222b565b61133f565b3480156105eb57600080fd5b5061023f6105fa366004611fb6565b6113c2565b34801561060b57600080fd5b506102d96113f0565b34801561062057600080fd5b506102d961062f366004611f9c565b611450565b600061063f826114be565b90505b919050565b600a54600160a81b900460ff1681565b60606000805461066690612de6565b80601f016020809104026020016040519081016040528092919081815260200182805461069290612de6565b80156106df5780601f106106b4576101008083540402835291602001916106df565b820191906000526020600020905b8154815290600101906020018083116106c257829003601f168201915b5050505050905090565b60006106f4826114e3565b6107195760405162461bcd60e51b815260040161071090612a22565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061074082610ce2565b9050806001600160a01b0316836001600160a01b031614156107745760405162461bcd60e51b815260040161071090612b9f565b806001600160a01b0316610786611500565b6001600160a01b031614806107a257506107a2816105fa611500565b6107be5760405162461bcd60e51b815260040161071090612847565b6107c88383611504565b505050565b60085490565b6107db611500565b6001600160a01b03166107ec610ed8565b6001600160a01b0316146108125760405162461bcd60e51b815260040161071090612ad5565b61271061081f600e611572565b1061083c5760405162461bcd60e51b8152600401610710906123a0565b612710610849600e611572565b6108539083612d58565b106108705760405162461bcd60e51b81526004016107109061271d565b600b5461087d600f611572565b1061089a5760405162461bcd60e51b815260040161071090612937565b600b546108a7600f611572565b6108b19083612d58565b11156108cf5760405162461bcd60e51b81526004016107109061232f565b60005b818110156107c8576108e4600e611576565b6108f7836108f2600e611572565b61157f565b610901600f611576565b8061090b81612e21565b9150506108d2565b61092461091e611500565b8261165e565b6109405760405162461bcd60e51b815260040161071090612c23565b6107c88383836116e3565b600061095683610d17565b82106109745760405162461bcd60e51b81526004016107109061249c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109a5611500565b6001600160a01b03166109b6610ed8565b6001600160a01b0316146109dc5760405162461bcd60e51b815260040161071090612ad5565b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b61271081565b600a54600160a01b900460ff16610a2c5760405162461bcd60e51b8152600401610710906126a2565b6000610a366107cd565b90506001600160a01b038316610a5e5760405162461bcd60e51b815260040161071090612404565b6127108110610a7f5760405162461bcd60e51b81526004016107109061257c565b60008211610a9f5760405162461bcd60e51b815260040161071090612c74565b6005821115610ac05760405162461bcd60e51b815260040161071090612b53565b612710610acd8383612d58565b1115610aeb5760405162461bcd60e51b81526004016107109061297f565b610afd8267011c37937e080000612d84565b3414610b1b5760405162461bcd60e51b81526004016107109061242e565b60005b82811015610b5557610b30600e611576565b610b4384610b3e600e611572565b611810565b80610b4d81612e21565b915050610b1e565b50505050565b6107c883838360405180602001604052806000815250611108565b600b5481565b6000610b866107cd565b8210610ba45760405162461bcd60e51b815260040161071090612cab565b60088281548110610bc557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610bdf611500565b6001600160a01b0316610bf0610ed8565b6001600160a01b031614610c165760405162461bcd60e51b815260040161071090612ad5565b60005b8151811015610c8c576000600c6000848481518110610c4857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610c8481612e21565b915050610c19565b5050565b610c98611500565b6001600160a01b0316610ca9610ed8565b6001600160a01b031614610ccf5760405162461bcd60e51b815260040161071090612ad5565b8051610c8c906010906020840190611e94565b6000818152600260205260408120546001600160a01b03168061063f5760405162461bcd60e51b8152600401610710906128ee565b60006001600160a01b038216610d3f5760405162461bcd60e51b8152600401610710906128a4565b506001600160a01b031660009081526003602052604090205490565b600581565b610d68611500565b6001600160a01b0316610d79610ed8565b6001600160a01b031614610d9f5760405162461bcd60e51b815260040161071090612ad5565b610da9600061182a565b565b610db3611500565b6001600160a01b0316610dc4610ed8565b6001600160a01b031614610dea5760405162461bcd60e51b815260040161071090612ad5565b6000610df4610e92565b905060008111610e165760405162461bcd60e51b815260040161071090612678565b610e4a73291f158f42794db959867528403cdb382dbecfa36064610e3b84600f612d84565b610e459190612d70565b61187c565b610e6f73113aed406b5f22190726f9c8b51d50e74569a98d6064610e3b84600a612d84565b610e8f73d04a78a2cf122e7bc7f96bf90fb984000436cfcd610e45610e92565b50565b6000610e9c611500565b6001600160a01b0316610ead610ed8565b6001600160a01b031614610ed35760405162461bcd60e51b815260040161071090612ad5565b504790565b600a546001600160a01b031690565b610eef611500565b6001600160a01b0316610f00610ed8565b6001600160a01b031614610f265760405162461bcd60e51b815260040161071090612ad5565b60005b8151811015610c8c5760006001600160a01b0316828281518110610f5d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610f7957600080fd5b6001600c6000848481518110610f9f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610fdb81612e21565b915050610f29565b600033610fee610ed8565b6001600160a01b031614905090565b60606001805461066690612de6565b611014611500565b6001600160a01b0316826001600160a01b031614156110455760405162461bcd60e51b81526004016107109061277a565b8060056000611052611500565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611096611500565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516110ce9190612311565b60405180910390a35050565b600a54600160a01b900460ff1681565b6001600160a01b03166000908152600c602052604090205460ff1690565b611119611113611500565b8361165e565b6111355760405162461bcd60e51b815260040161071090612c23565b610b55848484846118f8565b600a54600160a81b900460ff1661116a5760405162461bcd60e51b8152600401610710906127fd565b336000908152600c602052604090205460ff166111995760405162461bcd60e51b815260040161071090612539565b336000908152600d6020526040902054600510156111c95760405162461bcd60e51b815260040161071090612be0565b336000908152600d60205260409020546005906111e7908390612d58565b11156112055760405162461bcd60e51b815260040161071090612a6e565b6127106112106107cd565b111561122e5760405162461bcd60e51b8152600401610710906123d7565b6000811161124e5760405162461bcd60e51b815260040161071090612c74565b600581111561126f5760405162461bcd60e51b8152600401610710906129b6565b6127108161127b6107cd565b6112859190612d58565b11156112a35760405162461bcd60e51b81526004016107109061261b565b346112b667011c37937e08000083612d84565b146112d35760405162461bcd60e51b81526004016107109061242e565b336000908152600d60205260409020546112ed8183612d58565b336000908152600d60205260408120919091555b828110156107c857611313600e611576565b61132133610b3e600e611572565b8061132b81612e21565b915050611301565b67011c37937e08000081565b606061134a826114e3565b6113665760405162461bcd60e51b815260040161071090612465565b600061137061192b565b9050600081511161139057604051806020016040528060008152506113bb565b8061139a8461193a565b6040516020016113ab92919061226f565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6113f8611500565b6001600160a01b0316611409610ed8565b6001600160a01b03161461142f5760405162461bcd60e51b815260040161071090612ad5565b600a805460ff60a81b198116600160a81b9182900460ff1615909102179055565b611458611500565b6001600160a01b0316611469610ed8565b6001600160a01b03161461148f5760405162461bcd60e51b815260040161071090612ad5565b6001600160a01b0381166114b55760405162461bcd60e51b81526004016107109061259e565b610e8f8161182a565b60006001600160e01b0319821663780e9d6360e01b148061063f575061063f82611a55565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061153982610ce2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5490565b80546001019055565b6001600160a01b0382166115a55760405162461bcd60e51b8152600401610710906129ed565b6115ae816114e3565b156115cb5760405162461bcd60e51b8152600401610710906125e4565b6115d760008383611a95565b6001600160a01b0382166000908152600360205260408120805460019290611600908490612d58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611669826114e3565b6116855760405162461bcd60e51b8152600401610710906127b1565b600061169083610ce2565b9050806001600160a01b0316846001600160a01b031614806116cb5750836001600160a01b03166116c0846106e9565b6001600160a01b0316145b806116db57506116db81856113c2565b949350505050565b826001600160a01b03166116f682610ce2565b6001600160a01b03161461171c5760405162461bcd60e51b815260040161071090612b0a565b6001600160a01b0382166117425760405162461bcd60e51b8152600401610710906126d9565b61174d838383611a95565b611758600082611504565b6001600160a01b0383166000908152600360205260408120805460019290611781908490612da3565b90915550506001600160a01b03821660009081526003602052604081208054600192906117af908490612d58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610c8c828260405180602001604052806000815250611aa0565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b031682604051611895906122bd565b60006040518083038185875af1925050503d80600081146118d2576040519150601f19603f3d011682016040523d82523d6000602084013e6118d7565b606091505b50509050806107c85760405162461bcd60e51b815260040161071090612cf7565b6119038484846116e3565b61190f84848484611ad3565b610b555760405162461bcd60e51b8152600401610710906124e7565b60606010805461066690612de6565b60608161195f57506040805180820190915260018152600360fc1b6020820152610642565b8160005b8115611989578061197381612e21565b91506119829050600a83612d70565b9150611963565b60008167ffffffffffffffff8111156119b257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119dc576020820181803683370190505b5090505b84156116db576119f1600183612da3565b91506119fe600a86612e3c565b611a09906030612d58565b60f81b818381518110611a2c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a4e600a86612d70565b94506119e0565b60006001600160e01b031982166380ac58cd60e01b1480611a8657506001600160e01b03198216635b5e139f60e01b145b8061063f575061063f82611bee565b6107c8838383611c07565b611aaa838361157f565b611ab76000848484611ad3565b6107c85760405162461bcd60e51b8152600401610710906124e7565b6000611ae7846001600160a01b0316611c90565b15611be357836001600160a01b031663150b7a02611b03611500565b8786866040518563ffffffff1660e01b8152600401611b2594939291906122d4565b602060405180830381600087803b158015611b3f57600080fd5b505af1925050508015611b6f575060408051601f3d908101601f19168201909252611b6c918101906121c9565b60015b611bc9573d808015611b9d576040519150601f19603f3d011682016040523d82523d6000602084013e611ba2565b606091505b508051611bc15760405162461bcd60e51b8152600401610710906124e7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116db565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b611c128383836107c8565b6001600160a01b038316611c2e57611c2981611c96565b611c51565b816001600160a01b0316836001600160a01b031614611c5157611c518382611cda565b6001600160a01b038216611c6d57611c6881611d77565b6107c8565b826001600160a01b0316826001600160a01b0316146107c8576107c88282611e50565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611ce784610d17565b611cf19190612da3565b600083815260076020526040902054909150808214611d44576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611d8990600190612da3565b60008381526009602052604081205460088054939450909284908110611dbf57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611dee57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611e3457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611e5b83610d17565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054611ea090612de6565b90600052602060002090601f016020900481019282611ec25760008555611f08565b82601f10611edb57805160ff1916838001178555611f08565b82800160010185558215611f08579182015b82811115611f08578251825591602001919060010190611eed565b50611f14929150611f18565b5090565b5b80821115611f145760008155600101611f19565b600067ffffffffffffffff831115611f4757611f47612e7c565b611f5a601f8401601f1916602001612d2e565b9050828152838383011115611f6e57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461064257600080fd5b600060208284031215611fad578081fd5b6113bb82611f85565b60008060408385031215611fc8578081fd5b611fd183611f85565b9150611fdf60208401611f85565b90509250929050565b600080600060608486031215611ffc578081fd5b61200584611f85565b925061201360208501611f85565b9150604084013590509250925092565b60008060008060808587031215612038578081fd5b61204185611f85565b935061204f60208601611f85565b925060408501359150606085013567ffffffffffffffff811115612071578182fd5b8501601f81018713612081578182fd5b61209087823560208401611f2d565b91505092959194509250565b600080604083850312156120ae578182fd5b6120b783611f85565b9150602083013580151581146120cb578182fd5b809150509250929050565b600080604083850312156120e8578182fd5b6120f183611f85565b946020939093013593505050565b60006020808385031215612111578182fd5b823567ffffffffffffffff80821115612128578384fd5b818501915085601f83011261213b578384fd5b81358181111561214d5761214d612e7c565b838102915061215d848301612d2e565b8181528481019084860184860187018a1015612177578788fd5b8795505b838610156121a05761218c81611f85565b83526001959095019491860191860161217b565b5098975050505050505050565b6000602082840312156121be578081fd5b81356113bb81612e92565b6000602082840312156121da578081fd5b81516113bb81612e92565b6000602082840312156121f6578081fd5b813567ffffffffffffffff81111561220c578182fd5b8201601f8101841361221c578182fd5b6116db84823560208401611f2d565b60006020828403121561223c578081fd5b5035919050565b6000815180845261225b816020860160208601612dba565b601f01601f19169290920160200192915050565b60008351612281818460208801612dba565b602f60f81b908301908152835161229f816001840160208801612dba565b64173539b7b760d91b60019290910191820152600601949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061230790830184612243565b9695505050505050565b901515815260200190565b6000602082526113bb6020830184612243565b6020808252604b908201527f4d696e74696e6720776f756c642065786365656420746865206c696d6974206f60408201527f662072657365727665642062616c6c732e20506c65617365206465637265617360608201526a329038bab0b73a34ba3c9760a91b608082015260a00190565b60208082526017908201527f436f6c6c656374696f6e2068617320736f6c64206f7574000000000000000000604082015260600190565b60208082526013908201527210dbdb1b1958dd1a5bdb8814dbdb190813dd5d606a1b604082015260600190565b60208082526010908201526f496e76616c696420616464726573737360801b604082015260600190565b6020808252601c908201527f496e636f727265637420616d6f756e74206f66204554482073656e7400000000604082015260600190565b6020808252601f908201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526023908201527f596f7527726520617265206e6f7420656c696769626c6520666f722050726573604082015262616c6560e81b606082015260800190565b60208082526008908201526714dbdb190813dd5d60c21b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526039908201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c792c60408201527f20706c65617365206465637265617365207175616e7469747900000000000000606082015260800190565b60208082526010908201526f05468652062616c616e636520697320360841b604082015260600190565b6020808252601b908201527f5075626c69632073616c6520686173206e6f7420737461727465640000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252603a908201527f4d696e74696e6720776f756c64206578636565642031302c3030302c20706c6560408201527f61736520646563726561736520796f7572207175616e74697479000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602a908201527f50726573616c6520686173206e6f742073746172746564206f7220507265736160408201526936329034b99037bb32b960b11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526028908201527f416c7265616479206d696e74656420616c6c206f66207468652072657365727660408201526765642062616c6c7360c01b606082015260800190565b6020808252601f908201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900604082015260600190565b60208082526019908201527f43616e6e6f74206d696e74206d6f7265207468616e206d617800000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526041908201527f4d696e74696e6720776f756c64206578636565642070726573616c65206d696e60408201527f74206c696d69742e20506c65617365206465637265617365207175616e7469746060820152607960f81b608082015260a00190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602c908201527f4d6f7265207468616e20746865206d617820616c6c6f77656420696e206f6e6560408201526b103a3930b739b0b1ba34b7b760a11b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526023908201527f4578636565646564206d6178206d696e74206c696d697420666f722070726573604082015262616c6560e81b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601a908201527f4e65656420746f206d696e74206174206c65617374206f6e6521000000000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601490820152736661696c6564207769746820776974686472617760601b604082015260600190565b90815260200190565b60405181810167ffffffffffffffff81118282101715612d5057612d50612e7c565b604052919050565b60008219821115612d6b57612d6b612e50565b500190565b600082612d7f57612d7f612e66565b500490565b6000816000190483118215151615612d9e57612d9e612e50565b500290565b600082821015612db557612db5612e50565b500390565b60005b83811015612dd5578181015183820152602001612dbd565b83811115610b555750506000910152565b600281046001821680612dfa57607f821691505b60208210811415612e1b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612e3557612e35612e50565b5060010190565b600082612e4b57612e4b612e66565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e8f57600080fdfea26469706673582212202d8af7441a72cfe81c7743a00162722846eca34dc2cd548712e3a29df6eadcf264736f6c63430008000033
Deployed Bytecode
0x60806040526004361061021a5760003560e01c806370a0823111610123578063a22cb465116100ab578063c002d23d1161006f578063c002d23d146105aa578063c87b56dd146105bf578063e985e9c5146105df578063ed1fc2a2146105ff578063f2fde38b146106145761021a565b8063a22cb46514610522578063a2e9147714610542578063a425e25714610557578063b88d4fde14610577578063b9884772146105975761021a565b80638b7afe2e116100f25780638b7afe2e146104ae5780638da5cb5b146104c35780638e07484c146104d85780638f32d59b146104f857806395d89b411461050d5761021a565b806370a082311461044f57806371273bb71461046f578063715018a614610484578063853828b6146104995761021a565b80632f814575116101a657806347a9fd921161017557806347a9fd92146103ba5780634f6ccce7146103cf578063548db174146103ef57806355f804b31461040f5780636352211e1461042f5761021a565b80632f8145751461035d5780634035cc6c1461037257806340c10f191461038757806342842e0e1461039a5761021a565b8063095ea7b3116101ed578063095ea7b3146102b957806318160ddd146102db5780631b5757f2146102fd57806323b872dd1461031d5780632f745c591461033d5761021a565b806301ffc9a71461021f57806304549d6f1461025557806306fdde031461026a578063081812fc1461028c575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046121ad565b610634565b60405161024c9190612311565b60405180910390f35b34801561026157600080fd5b5061023f610647565b34801561027657600080fd5b5061027f610657565b60405161024c919061231c565b34801561029857600080fd5b506102ac6102a736600461222b565b6106e9565b60405161024c91906122c0565b3480156102c557600080fd5b506102d96102d43660046120d6565b610735565b005b3480156102e757600080fd5b506102f06107cd565b60405161024c9190612d25565b34801561030957600080fd5b506102d96103183660046120d6565b6107d3565b34801561032957600080fd5b506102d9610338366004611fe8565b610913565b34801561034957600080fd5b506102f06103583660046120d6565b61094b565b34801561036957600080fd5b506102d961099d565b34801561037e57600080fd5b506102f06109fd565b6102d96103953660046120d6565b610a03565b3480156103a657600080fd5b506102d96103b5366004611fe8565b610b5b565b3480156103c657600080fd5b506102f0610b76565b3480156103db57600080fd5b506102f06103ea36600461222b565b610b7c565b3480156103fb57600080fd5b506102d961040a3660046120ff565b610bd7565b34801561041b57600080fd5b506102d961042a3660046121e5565b610c90565b34801561043b57600080fd5b506102ac61044a36600461222b565b610ce2565b34801561045b57600080fd5b506102f061046a366004611f9c565b610d17565b34801561047b57600080fd5b506102f0610d5b565b34801561049057600080fd5b506102d9610d60565b3480156104a557600080fd5b506102d9610dab565b3480156104ba57600080fd5b506102f0610e92565b3480156104cf57600080fd5b506102ac610ed8565b3480156104e457600080fd5b506102d96104f33660046120ff565b610ee7565b34801561050457600080fd5b5061023f610fe3565b34801561051957600080fd5b5061027f610ffd565b34801561052e57600080fd5b506102d961053d36600461209c565b61100c565b34801561054e57600080fd5b5061023f6110da565b34801561056357600080fd5b5061023f610572366004611f9c565b6110ea565b34801561058357600080fd5b506102d9610592366004612023565b611108565b6102d96105a536600461222b565b611141565b3480156105b657600080fd5b506102f0611333565b3480156105cb57600080fd5b5061027f6105da36600461222b565b61133f565b3480156105eb57600080fd5b5061023f6105fa366004611fb6565b6113c2565b34801561060b57600080fd5b506102d96113f0565b34801561062057600080fd5b506102d961062f366004611f9c565b611450565b600061063f826114be565b90505b919050565b600a54600160a81b900460ff1681565b60606000805461066690612de6565b80601f016020809104026020016040519081016040528092919081815260200182805461069290612de6565b80156106df5780601f106106b4576101008083540402835291602001916106df565b820191906000526020600020905b8154815290600101906020018083116106c257829003601f168201915b5050505050905090565b60006106f4826114e3565b6107195760405162461bcd60e51b815260040161071090612a22565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061074082610ce2565b9050806001600160a01b0316836001600160a01b031614156107745760405162461bcd60e51b815260040161071090612b9f565b806001600160a01b0316610786611500565b6001600160a01b031614806107a257506107a2816105fa611500565b6107be5760405162461bcd60e51b815260040161071090612847565b6107c88383611504565b505050565b60085490565b6107db611500565b6001600160a01b03166107ec610ed8565b6001600160a01b0316146108125760405162461bcd60e51b815260040161071090612ad5565b61271061081f600e611572565b1061083c5760405162461bcd60e51b8152600401610710906123a0565b612710610849600e611572565b6108539083612d58565b106108705760405162461bcd60e51b81526004016107109061271d565b600b5461087d600f611572565b1061089a5760405162461bcd60e51b815260040161071090612937565b600b546108a7600f611572565b6108b19083612d58565b11156108cf5760405162461bcd60e51b81526004016107109061232f565b60005b818110156107c8576108e4600e611576565b6108f7836108f2600e611572565b61157f565b610901600f611576565b8061090b81612e21565b9150506108d2565b61092461091e611500565b8261165e565b6109405760405162461bcd60e51b815260040161071090612c23565b6107c88383836116e3565b600061095683610d17565b82106109745760405162461bcd60e51b81526004016107109061249c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109a5611500565b6001600160a01b03166109b6610ed8565b6001600160a01b0316146109dc5760405162461bcd60e51b815260040161071090612ad5565b600a805460ff60a01b198116600160a01b9182900460ff1615909102179055565b61271081565b600a54600160a01b900460ff16610a2c5760405162461bcd60e51b8152600401610710906126a2565b6000610a366107cd565b90506001600160a01b038316610a5e5760405162461bcd60e51b815260040161071090612404565b6127108110610a7f5760405162461bcd60e51b81526004016107109061257c565b60008211610a9f5760405162461bcd60e51b815260040161071090612c74565b6005821115610ac05760405162461bcd60e51b815260040161071090612b53565b612710610acd8383612d58565b1115610aeb5760405162461bcd60e51b81526004016107109061297f565b610afd8267011c37937e080000612d84565b3414610b1b5760405162461bcd60e51b81526004016107109061242e565b60005b82811015610b5557610b30600e611576565b610b4384610b3e600e611572565b611810565b80610b4d81612e21565b915050610b1e565b50505050565b6107c883838360405180602001604052806000815250611108565b600b5481565b6000610b866107cd565b8210610ba45760405162461bcd60e51b815260040161071090612cab565b60088281548110610bc557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b610bdf611500565b6001600160a01b0316610bf0610ed8565b6001600160a01b031614610c165760405162461bcd60e51b815260040161071090612ad5565b60005b8151811015610c8c576000600c6000848481518110610c4857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610c8481612e21565b915050610c19565b5050565b610c98611500565b6001600160a01b0316610ca9610ed8565b6001600160a01b031614610ccf5760405162461bcd60e51b815260040161071090612ad5565b8051610c8c906010906020840190611e94565b6000818152600260205260408120546001600160a01b03168061063f5760405162461bcd60e51b8152600401610710906128ee565b60006001600160a01b038216610d3f5760405162461bcd60e51b8152600401610710906128a4565b506001600160a01b031660009081526003602052604090205490565b600581565b610d68611500565b6001600160a01b0316610d79610ed8565b6001600160a01b031614610d9f5760405162461bcd60e51b815260040161071090612ad5565b610da9600061182a565b565b610db3611500565b6001600160a01b0316610dc4610ed8565b6001600160a01b031614610dea5760405162461bcd60e51b815260040161071090612ad5565b6000610df4610e92565b905060008111610e165760405162461bcd60e51b815260040161071090612678565b610e4a73291f158f42794db959867528403cdb382dbecfa36064610e3b84600f612d84565b610e459190612d70565b61187c565b610e6f73113aed406b5f22190726f9c8b51d50e74569a98d6064610e3b84600a612d84565b610e8f73d04a78a2cf122e7bc7f96bf90fb984000436cfcd610e45610e92565b50565b6000610e9c611500565b6001600160a01b0316610ead610ed8565b6001600160a01b031614610ed35760405162461bcd60e51b815260040161071090612ad5565b504790565b600a546001600160a01b031690565b610eef611500565b6001600160a01b0316610f00610ed8565b6001600160a01b031614610f265760405162461bcd60e51b815260040161071090612ad5565b60005b8151811015610c8c5760006001600160a01b0316828281518110610f5d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610f7957600080fd5b6001600c6000848481518110610f9f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610fdb81612e21565b915050610f29565b600033610fee610ed8565b6001600160a01b031614905090565b60606001805461066690612de6565b611014611500565b6001600160a01b0316826001600160a01b031614156110455760405162461bcd60e51b81526004016107109061277a565b8060056000611052611500565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611096611500565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516110ce9190612311565b60405180910390a35050565b600a54600160a01b900460ff1681565b6001600160a01b03166000908152600c602052604090205460ff1690565b611119611113611500565b8361165e565b6111355760405162461bcd60e51b815260040161071090612c23565b610b55848484846118f8565b600a54600160a81b900460ff1661116a5760405162461bcd60e51b8152600401610710906127fd565b336000908152600c602052604090205460ff166111995760405162461bcd60e51b815260040161071090612539565b336000908152600d6020526040902054600510156111c95760405162461bcd60e51b815260040161071090612be0565b336000908152600d60205260409020546005906111e7908390612d58565b11156112055760405162461bcd60e51b815260040161071090612a6e565b6127106112106107cd565b111561122e5760405162461bcd60e51b8152600401610710906123d7565b6000811161124e5760405162461bcd60e51b815260040161071090612c74565b600581111561126f5760405162461bcd60e51b8152600401610710906129b6565b6127108161127b6107cd565b6112859190612d58565b11156112a35760405162461bcd60e51b81526004016107109061261b565b346112b667011c37937e08000083612d84565b146112d35760405162461bcd60e51b81526004016107109061242e565b336000908152600d60205260409020546112ed8183612d58565b336000908152600d60205260408120919091555b828110156107c857611313600e611576565b61132133610b3e600e611572565b8061132b81612e21565b915050611301565b67011c37937e08000081565b606061134a826114e3565b6113665760405162461bcd60e51b815260040161071090612465565b600061137061192b565b9050600081511161139057604051806020016040528060008152506113bb565b8061139a8461193a565b6040516020016113ab92919061226f565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6113f8611500565b6001600160a01b0316611409610ed8565b6001600160a01b03161461142f5760405162461bcd60e51b815260040161071090612ad5565b600a805460ff60a81b198116600160a81b9182900460ff1615909102179055565b611458611500565b6001600160a01b0316611469610ed8565b6001600160a01b03161461148f5760405162461bcd60e51b815260040161071090612ad5565b6001600160a01b0381166114b55760405162461bcd60e51b81526004016107109061259e565b610e8f8161182a565b60006001600160e01b0319821663780e9d6360e01b148061063f575061063f82611a55565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061153982610ce2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5490565b80546001019055565b6001600160a01b0382166115a55760405162461bcd60e51b8152600401610710906129ed565b6115ae816114e3565b156115cb5760405162461bcd60e51b8152600401610710906125e4565b6115d760008383611a95565b6001600160a01b0382166000908152600360205260408120805460019290611600908490612d58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611669826114e3565b6116855760405162461bcd60e51b8152600401610710906127b1565b600061169083610ce2565b9050806001600160a01b0316846001600160a01b031614806116cb5750836001600160a01b03166116c0846106e9565b6001600160a01b0316145b806116db57506116db81856113c2565b949350505050565b826001600160a01b03166116f682610ce2565b6001600160a01b03161461171c5760405162461bcd60e51b815260040161071090612b0a565b6001600160a01b0382166117425760405162461bcd60e51b8152600401610710906126d9565b61174d838383611a95565b611758600082611504565b6001600160a01b0383166000908152600360205260408120805460019290611781908490612da3565b90915550506001600160a01b03821660009081526003602052604081208054600192906117af908490612d58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610c8c828260405180602001604052806000815250611aa0565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b031682604051611895906122bd565b60006040518083038185875af1925050503d80600081146118d2576040519150601f19603f3d011682016040523d82523d6000602084013e6118d7565b606091505b50509050806107c85760405162461bcd60e51b815260040161071090612cf7565b6119038484846116e3565b61190f84848484611ad3565b610b555760405162461bcd60e51b8152600401610710906124e7565b60606010805461066690612de6565b60608161195f57506040805180820190915260018152600360fc1b6020820152610642565b8160005b8115611989578061197381612e21565b91506119829050600a83612d70565b9150611963565b60008167ffffffffffffffff8111156119b257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119dc576020820181803683370190505b5090505b84156116db576119f1600183612da3565b91506119fe600a86612e3c565b611a09906030612d58565b60f81b818381518110611a2c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a4e600a86612d70565b94506119e0565b60006001600160e01b031982166380ac58cd60e01b1480611a8657506001600160e01b03198216635b5e139f60e01b145b8061063f575061063f82611bee565b6107c8838383611c07565b611aaa838361157f565b611ab76000848484611ad3565b6107c85760405162461bcd60e51b8152600401610710906124e7565b6000611ae7846001600160a01b0316611c90565b15611be357836001600160a01b031663150b7a02611b03611500565b8786866040518563ffffffff1660e01b8152600401611b2594939291906122d4565b602060405180830381600087803b158015611b3f57600080fd5b505af1925050508015611b6f575060408051601f3d908101601f19168201909252611b6c918101906121c9565b60015b611bc9573d808015611b9d576040519150601f19603f3d011682016040523d82523d6000602084013e611ba2565b606091505b508051611bc15760405162461bcd60e51b8152600401610710906124e7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116db565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b611c128383836107c8565b6001600160a01b038316611c2e57611c2981611c96565b611c51565b816001600160a01b0316836001600160a01b031614611c5157611c518382611cda565b6001600160a01b038216611c6d57611c6881611d77565b6107c8565b826001600160a01b0316826001600160a01b0316146107c8576107c88282611e50565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611ce784610d17565b611cf19190612da3565b600083815260076020526040902054909150808214611d44576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611d8990600190612da3565b60008381526009602052604081205460088054939450909284908110611dbf57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611dee57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611e3457634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611e5b83610d17565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054611ea090612de6565b90600052602060002090601f016020900481019282611ec25760008555611f08565b82601f10611edb57805160ff1916838001178555611f08565b82800160010185558215611f08579182015b82811115611f08578251825591602001919060010190611eed565b50611f14929150611f18565b5090565b5b80821115611f145760008155600101611f19565b600067ffffffffffffffff831115611f4757611f47612e7c565b611f5a601f8401601f1916602001612d2e565b9050828152838383011115611f6e57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461064257600080fd5b600060208284031215611fad578081fd5b6113bb82611f85565b60008060408385031215611fc8578081fd5b611fd183611f85565b9150611fdf60208401611f85565b90509250929050565b600080600060608486031215611ffc578081fd5b61200584611f85565b925061201360208501611f85565b9150604084013590509250925092565b60008060008060808587031215612038578081fd5b61204185611f85565b935061204f60208601611f85565b925060408501359150606085013567ffffffffffffffff811115612071578182fd5b8501601f81018713612081578182fd5b61209087823560208401611f2d565b91505092959194509250565b600080604083850312156120ae578182fd5b6120b783611f85565b9150602083013580151581146120cb578182fd5b809150509250929050565b600080604083850312156120e8578182fd5b6120f183611f85565b946020939093013593505050565b60006020808385031215612111578182fd5b823567ffffffffffffffff80821115612128578384fd5b818501915085601f83011261213b578384fd5b81358181111561214d5761214d612e7c565b838102915061215d848301612d2e565b8181528481019084860184860187018a1015612177578788fd5b8795505b838610156121a05761218c81611f85565b83526001959095019491860191860161217b565b5098975050505050505050565b6000602082840312156121be578081fd5b81356113bb81612e92565b6000602082840312156121da578081fd5b81516113bb81612e92565b6000602082840312156121f6578081fd5b813567ffffffffffffffff81111561220c578182fd5b8201601f8101841361221c578182fd5b6116db84823560208401611f2d565b60006020828403121561223c578081fd5b5035919050565b6000815180845261225b816020860160208601612dba565b601f01601f19169290920160200192915050565b60008351612281818460208801612dba565b602f60f81b908301908152835161229f816001840160208801612dba565b64173539b7b760d91b60019290910191820152600601949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061230790830184612243565b9695505050505050565b901515815260200190565b6000602082526113bb6020830184612243565b6020808252604b908201527f4d696e74696e6720776f756c642065786365656420746865206c696d6974206f60408201527f662072657365727665642062616c6c732e20506c65617365206465637265617360608201526a329038bab0b73a34ba3c9760a91b608082015260a00190565b60208082526017908201527f436f6c6c656374696f6e2068617320736f6c64206f7574000000000000000000604082015260600190565b60208082526013908201527210dbdb1b1958dd1a5bdb8814dbdb190813dd5d606a1b604082015260600190565b60208082526010908201526f496e76616c696420616464726573737360801b604082015260600190565b6020808252601c908201527f496e636f727265637420616d6f756e74206f66204554482073656e7400000000604082015260600190565b6020808252601f908201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526023908201527f596f7527726520617265206e6f7420656c696769626c6520666f722050726573604082015262616c6560e81b606082015260800190565b60208082526008908201526714dbdb190813dd5d60c21b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526039908201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c792c60408201527f20706c65617365206465637265617365207175616e7469747900000000000000606082015260800190565b60208082526010908201526f05468652062616c616e636520697320360841b604082015260600190565b6020808252601b908201527f5075626c69632073616c6520686173206e6f7420737461727465640000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252603a908201527f4d696e74696e6720776f756c64206578636565642031302c3030302c20706c6560408201527f61736520646563726561736520796f7572207175616e74697479000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602a908201527f50726573616c6520686173206e6f742073746172746564206f7220507265736160408201526936329034b99037bb32b960b11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526028908201527f416c7265616479206d696e74656420616c6c206f66207468652072657365727660408201526765642062616c6c7360c01b606082015260800190565b6020808252601f908201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900604082015260600190565b60208082526019908201527f43616e6e6f74206d696e74206d6f7265207468616e206d617800000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526041908201527f4d696e74696e6720776f756c64206578636565642070726573616c65206d696e60408201527f74206c696d69742e20506c65617365206465637265617365207175616e7469746060820152607960f81b608082015260a00190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602c908201527f4d6f7265207468616e20746865206d617820616c6c6f77656420696e206f6e6560408201526b103a3930b739b0b1ba34b7b760a11b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526023908201527f4578636565646564206d6178206d696e74206c696d697420666f722070726573604082015262616c6560e81b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601a908201527f4e65656420746f206d696e74206174206c65617374206f6e6521000000000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601490820152736661696c6564207769746820776974686472617760601b604082015260600190565b90815260200190565b60405181810167ffffffffffffffff81118282101715612d5057612d50612e7c565b604052919050565b60008219821115612d6b57612d6b612e50565b500190565b600082612d7f57612d7f612e66565b500490565b6000816000190483118215151615612d9e57612d9e612e50565b500290565b600082821015612db557612db5612e50565b500390565b60005b83811015612dd5578181015183820152602001612dbd565b83811115610b555750506000910152565b600281046001821680612dfa57607f821691505b60208210811415612e1b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612e3557612e35612e50565b5060010190565b600082612e4b57612e4b612e66565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e8f57600080fdfea26469706673582212202d8af7441a72cfe81c7743a00162722846eca34dc2cd548712e3a29df6eadcf264736f6c63430008000033
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.