ERC-721
NFT
Overview
Max Total Supply
3,021 LFT
Holders
615
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LFT
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contract LFT is Ownable, ERC721Enumerable { using Strings for uint256; event SaleStatusChanged(bool _from, bool _to); event MintPriceChanged(uint256 _from, uint256 _to); event TokensAvailableToSellChanged(uint256 _from, uint256 _to); event Reveal(); uint256 private constant MAX_TOKENS = 10000; uint256 private constant MAX_TIER1_TOKENS_PERCENT = 5; uint256 private constant MAX_TIER1_TOKENS = (MAX_TOKENS / 100) * MAX_TIER1_TOKENS_PERCENT; // 500 uint256 private constant MAX_TIER2_TOKENS = MAX_TOKENS - MAX_TIER1_TOKENS; // 9500 uint256 private constant MAX_TIER1_DROP_CHANCE = 5; //percents //we save tier1 tokens here mapping(uint256 => bool) private _tier1Tokens; uint256 private _tier1TokensCount; //we change this value for sales waves uint256 private _tokensAvailableToSell; uint256 private _tokensAvailablePerMint; uint256 private _tokenPrice; bool private _isSaleActive; bool private _isRevealed = false; string private _tokenBaseURI; string private _contractMetadataURI; constructor( bool saleStatus, uint256 tokenPrice, uint256 tokensAvailableToSell, uint256 tokensAvailablePerMint, string memory baseURI, string memory contractMetadataURI ) ERC721("Legionfarm Celebrities Collection", "LFT") { _isSaleActive = saleStatus; _tokenPrice = tokenPrice; _tokensAvailableToSell = tokensAvailableToSell; _tokensAvailablePerMint = tokensAvailablePerMint; _tokenBaseURI = baseURI; _contractMetadataURI = contractMetadataURI; } ////////////// variables /////////////// function setTokensAvailableToSell(uint256 tokensAvailableToSell) external onlyOwner { require(tokensAvailableToSell <= MAX_TOKENS, "Cannot be more than 10000"); uint256 tokensAvailableToSellOld = _tokensAvailableToSell; _tokensAvailableToSell = tokensAvailableToSell; emit TokensAvailableToSellChanged(tokensAvailableToSellOld, tokensAvailableToSell); } function getTokensAvailableToSell() external view returns (uint256) { return _tokensAvailableToSell; } function setTokensAvailablePerMint(uint256 tokensAvailablePerMint) external onlyOwner { _tokensAvailablePerMint = tokensAvailablePerMint; } function getTokensAvailablePerMint() external view returns (uint256) { return _tokensAvailablePerMint; } function setSaleStatus(bool saleStatus) external onlyOwner { bool isSaleActiveOld = _isSaleActive; _isSaleActive = saleStatus; emit SaleStatusChanged(isSaleActiveOld, saleStatus); } function getSaleStatus() external view returns (bool) { return _isSaleActive; } function setPrice(uint256 newPrice) external onlyOwner { uint256 oldPrice = _tokenPrice; _tokenPrice = newPrice; emit MintPriceChanged(oldPrice, newPrice); } function getPrice() external view returns (uint256) { return _tokenPrice; } function _baseURI() internal view override returns (string memory) { return _tokenBaseURI; } function setBaseURI(string memory newBaseURI) external onlyOwner { _tokenBaseURI = newBaseURI; } function setContractMetadataURI(string memory metadataURI) external onlyOwner { _contractMetadataURI = metadataURI; } function getTier1TokensCount() public view returns (uint256) { return _tier1TokensCount; } function getTier2TokensCount() public view returns (uint256) { if (!_isRevealed) { return 0; } return totalSupply() - getTier1TokensCount(); } ///////////// logic //////////////////// function contractURI() external view returns (string memory) { return _contractMetadataURI; } function getTokenTier(uint256 tokenId) external view returns (uint256) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if (!_isRevealed) { return 0; } if (_tier1Tokens[tokenId]) { return 1; } return 2; } function mint(uint256 count) external payable { uint256 totalSupplyCount = totalSupply(); uint256 tokensAvailableToSell = _tokensAvailableToSell; require(_isSaleActive, "Sale is not active"); require(count <= _tokensAvailablePerMint, string(abi.encodePacked("Count available to mint: ", _tokensAvailablePerMint.toString()))); require(msg.value == (_tokenPrice * count), "Incorrect ETH amount"); require((totalSupplyCount + count) <= tokensAvailableToSell, "Cannot mint more tokens"); bool isRevealed = _isRevealed; bool isFullSupply; bool onlyTier1Left; bool tier1Changed = false; uint256 tier1TokensCount; uint256 tier2TokensCount; if (isRevealed) { tier1TokensCount = _tier1TokensCount; isFullSupply = tokensAvailableToSell == MAX_TOKENS; tier2TokensCount = totalSupplyCount - tier1TokensCount; } for (uint256 i = 0; i < count; i++) { totalSupplyCount++; uint256 newItemId = totalSupplyCount; _safeMint(msg.sender, newItemId); if (isRevealed && tier1TokensCount < MAX_TIER1_TOKENS) { onlyTier1Left = isFullSupply && (MAX_TIER2_TOKENS == tier2TokensCount); if (onlyTier1Left || calculateTokenTier(newItemId * (i + 1)) == 1) { _tier1Tokens[newItemId] = true; tier1Changed = true; tier1TokensCount++; } else { tier2TokensCount++; } } } if (tier1Changed) { _tier1TokensCount = tier1TokensCount; } } function mintOwner(uint256 count, uint256 seed) external onlyOwner { uint256 totalSupplyCount = totalSupply(); uint256 tokensAvailableToSell = _tokensAvailableToSell; require((totalSupplyCount + count) <= _tokensAvailableToSell, "Cannot mint more tokens"); bool isRevealed = _isRevealed; bool isFullSupply; bool onlyTier1Left; bool tier1Changed = false; uint256 tier1TokensCount; uint256 tier2TokensCount; if (isRevealed) { tier1TokensCount = _tier1TokensCount; isFullSupply = tokensAvailableToSell == MAX_TOKENS; tier2TokensCount = totalSupplyCount - tier1TokensCount; } for (uint256 i = 0; i < count; i++) { totalSupplyCount++; uint256 newItemId = totalSupplyCount; _safeMint(msg.sender, newItemId); if (isRevealed && tier1TokensCount < MAX_TIER1_TOKENS) { onlyTier1Left = isFullSupply && (MAX_TIER2_TOKENS == tier2TokensCount); if (onlyTier1Left || calculateTokenTier(seed * (i + 1)) == 1) { _tier1Tokens[newItemId] = true; tier1Changed = true; tier1TokensCount++; } else { tier2TokensCount++; } } } if (tier1Changed) { _tier1TokensCount = tier1TokensCount; } } function calculateTokenTier(uint256 seed) internal view returns (uint256) { uint256 randomChance = getRandom(seed, 100) + 1; if (randomChance <= MAX_TIER1_DROP_CHANCE) { return 1; } else { return 2; } } //Reveal step 1. To set tiers for minted boxes function setTokenTierBunch(uint256 limit, uint256 seed) external onlyOwner { require(!_isRevealed, "Already revealed"); _isSaleActive = false; uint256 tier1TokensCount = getTier1TokensCount(); uint256 totalSupplyCount = totalSupply(); uint256 totalTier1ToSetCount = (totalSupplyCount * MAX_TIER1_TOKENS_PERCENT) / 100; //cannot be more than 5% of total supply for current sale wave uint256 iterLimit = totalTier1ToSetCount - tier1TokensCount; iterLimit = limit > iterLimit ? iterLimit : limit; if (iterLimit == 0) { return; } uint256 randomTokenId; for (uint256 i = 0; i < iterLimit; i++) { do { randomTokenId = getRandom(seed * (i + 1) + randomTokenId, totalSupplyCount) + 1; } while (_tier1Tokens[randomTokenId] == true); _tier1Tokens[randomTokenId] = true; tier1TokensCount++; } _tier1TokensCount = tier1TokensCount; } //Reveal step 2. After setTokenTierBunch. To set collection "Revealed" function setRevealDone() external onlyOwner { require(!_isRevealed, "Already revealed"); _isRevealed = true; _isSaleActive = true; emit Reveal(); } //zero-based pseudo random function getRandom(uint256 seed, uint256 modulus) internal view returns (uint256) { uint256 randomHash = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, seed, block.difficulty))) % modulus; return randomHash; } function withdraw() external onlyOwner { address _owner = owner(); address payable _owner_payable = payable(_owner); _owner_payable.transfer(address(this).balance); } function getTier1TokenIds(uint256 offset, uint256 limit) external view returns (uint256[] memory) { uint256 totalSupplyCount = totalSupply(); uint256 maxLimit = getMaxLimit(totalSupplyCount, offset, limit); uint256[] memory resMap = new uint256[](maxLimit); if (maxLimit == 0) { return resMap; } uint256 counter = 0; for (uint256 i = 0; i < maxLimit; i++) { if (_tier1Tokens[i + offset + 1] == true) { resMap[counter] = i + offset + 1; counter++; } } uint256[] memory res = new uint256[](counter); for (uint256 i = 0; i < counter; i++) { res[i] = resMap[i]; } return res; } function getTokenAddressMap(uint256 offset, uint256 limit) external view returns (uint256[] memory, address[] memory) { uint256 totalSupplyCount = totalSupply(); uint256 maxLimit = getMaxLimit(totalSupplyCount, offset, limit); address[] memory addresses = new address[](maxLimit); uint256[] memory tokenIds = new uint256[](maxLimit); uint256 counter = 0; for (uint256 i = 0; i < maxLimit; i++) { addresses[counter] = ownerOf(i + offset + 1); tokenIds[counter] = i + offset + 1; counter++; } return (tokenIds, addresses); } function getTokenListByAddress(address owner, uint256 offset, uint256 limit) external view returns (uint256[] memory) { uint256 addressTokensCount = balanceOf(owner); uint256 maxLimit = getMaxLimit(addressTokensCount, offset, limit); uint256[] memory res = new uint256[](maxLimit); if (maxLimit == 0) { return res; } uint256 counter = 0; for (uint256 i = 0; i < maxLimit; i++) { uint256 tokenId = tokenOfOwnerByIndex(owner, i + offset); res[counter] = tokenId; counter++; } return res; } function tier1balanceOf(address owner, uint256 offset, uint256 limit) external view returns (uint256) { uint256 addressTokensCount = balanceOf(owner); uint256 maxLimit = getMaxLimit(addressTokensCount, offset, limit); uint256 res = 0; for (uint256 i = 0; i < maxLimit; i++) { uint256 tokenId = tokenOfOwnerByIndex(owner, i + offset); if (_tier1Tokens[tokenId] == true) { res++; } } return res; } function tier2balanceOf(address owner, uint256 offset, uint256 limit) external view returns (uint256) { uint256 addressTokensCount = balanceOf(owner); uint256 maxLimit = getMaxLimit(addressTokensCount, offset, limit); uint256 res = 0; for (uint256 i = 0; i < maxLimit; i++) { uint256 tokenId = tokenOfOwnerByIndex(owner, i + offset); if (_tier1Tokens[tokenId] == false) { res++; } } return res; } function getMaxLimit(uint256 total, uint256 offset, uint256 limit) internal pure returns (uint256) { uint256 maxLimit; if (total >= (offset + limit)) { maxLimit = limit; } else if (offset > total) { maxLimit = 0; } else { maxLimit = total - offset; } return maxLimit; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bool","name":"saleStatus","type":"bool"},{"internalType":"uint256","name":"tokenPrice","type":"uint256"},{"internalType":"uint256","name":"tokensAvailableToSell","type":"uint256"},{"internalType":"uint256","name":"tokensAvailablePerMint","type":"uint256"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"contractMetadataURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_from","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_to","type":"uint256"}],"name":"MintPriceChanged","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":[],"name":"Reveal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_from","type":"bool"},{"indexed":false,"internalType":"bool","name":"_to","type":"bool"}],"name":"SaleStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_from","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_to","type":"uint256"}],"name":"TokensAvailableToSellChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getTier1TokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTier1TokensCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTier2TokensCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getTokenAddressMap","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getTokenListByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensAvailablePerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensAvailableToSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metadataURI","type":"string"}],"name":"setContractMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRevealDone","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"saleStatus","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"setTokenTierBunch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensAvailablePerMint","type":"uint256"}],"name":"setTokensAvailablePerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensAvailableToSell","type":"uint256"}],"name":"setTokensAvailableToSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"tier1balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"tier2balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526010805461ff00191690553480156200001c57600080fd5b506040516200347d3803806200347d8339810160408190526200003f91620002c4565b6040518060600160405280602181526020016200345c6021913960408051808201909152600381526213119560ea1b60208201526200007e3362000101565b81516200009390600190602085019062000151565b508051620000a990600290602084019062000151565b50506010805460ff191688151517905550600f859055600d849055600e8390558151620000de90601190602085019062000151565b508051620000f490601290602084019062000151565b50505050505050620003a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200015f9062000364565b90600052602060002090601f016020900481019282620001835760008555620001ce565b82601f106200019e57805160ff1916838001178555620001ce565b82800160010185558215620001ce579182015b82811115620001ce578251825591602001919060010190620001b1565b50620001dc929150620001e0565b5090565b5b80821115620001dc5760008155600101620001e1565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021f57600080fd5b81516001600160401b03808211156200023c576200023c620001f7565b604051601f8301601f19908116603f01168101908282118183101715620002675762000267620001f7565b816040528381526020925086838588010111156200028457600080fd5b600091505b83821015620002a8578582018301518183018401529082019062000289565b83821115620002ba5760008385830101525b9695505050505050565b60008060008060008060c08789031215620002de57600080fd5b86518015158114620002ef57600080fd5b6020880151604089015160608a015160808b0151939950919750955093506001600160401b03808211156200032357600080fd5b620003318a838b016200020d565b935060a08901519150808211156200034857600080fd5b506200035789828a016200020d565b9150509295509295509295565b600181811c908216806200037957607f821691505b602082108114156200039b57634e487b7160e01b600052602260045260246000fd5b50919050565b6130ab80620003b16000396000f3fe60806040526004361061025c5760003560e01c806370a0823111610144578063a22cb465116100b6578063ca69eb8b1161007a578063ca69eb8b146106dd578063d897833e146106fd578063e8a3d4851461071d578063e985e9c514610732578063ed2c1c691461077b578063f2fde38b1461079057600080fd5b8063a22cb46514610648578063b5325c1514610668578063b88d4fde1461067d578063c26b265f1461069d578063c87b56dd146106bd57600080fd5b80638da5cb5b116101085780638da5cb5b146105ad57806391b7f5ed146105cb57806395d89b41146105eb57806398d5fdca14610600578063a0712d6814610615578063a201fc501461062857600080fd5b806370a082311461052b578063715018a61461054b5780637924f333146105605780637af3934b146105755780638c3c4b341461059557600080fd5b80632f745c59116101dd5780634f6ccce7116101a15780634f6ccce71461045e57806352dcffe01461047e57806355f804b31461049e5780635f655cef146104be5780636352211e146104de57806364f216b3146104fe57600080fd5b80632f745c59146103d45780633ccfd60b146103f45780633ff324b91461040957806342842e0e1461041e5780634b30ebe91461043e57600080fd5b80630be7c9ac116102245780630be7c9ac146103325780631482df261461035157806318160ddd1461037157806319aeb3551461038657806323b872dd146103b457600080fd5b806301ffc9a71461026157806302db8f001461029657806306fdde03146102b8578063081812fc146102da578063095ea7b314610312575b600080fd5b34801561026d57600080fd5b5061028161027c366004612955565b6107b0565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102b66102b1366004612972565b6107db565b005b3480156102c457600080fd5b506102cd6108a6565b60405161028d91906129e3565b3480156102e657600080fd5b506102fa6102f5366004612972565b610938565b6040516001600160a01b03909116815260200161028d565b34801561031e57600080fd5b506102b661032d366004612a12565b6109cd565b34801561033e57600080fd5b50600e545b60405190815260200161028d565b34801561035d57600080fd5b506102b661036c366004612a3c565b610ae3565b34801561037d57600080fd5b50600954610343565b34801561039257600080fd5b506103a66103a1366004612a3c565b610cb7565b60405161028d929190612a99565b3480156103c057600080fd5b506102b66103cf366004612aec565b610e14565b3480156103e057600080fd5b506103436103ef366004612a12565b610e45565b34801561040057600080fd5b506102b6610edb565b34801561041557600080fd5b50610343610f4c565b34801561042a57600080fd5b506102b6610439366004612aec565b610f79565b34801561044a57600080fd5b506102b6610459366004612a3c565b610f94565b34801561046a57600080fd5b50610343610479366004612972565b61111c565b34801561048a57600080fd5b506102b6610499366004612972565b6111af565b3480156104aa57600080fd5b506102b66104b9366004612bb4565b6111de565b3480156104ca57600080fd5b506103436104d9366004612bfd565b61121b565b3480156104ea57600080fd5b506102fa6104f9366004612972565b6112a1565b34801561050a57600080fd5b5061051e610519366004612bfd565b611318565b60405161028d9190612c30565b34801561053757600080fd5b50610343610546366004612c43565b6113f6565b34801561055757600080fd5b506102b661147d565b34801561056c57600080fd5b50600d54610343565b34801561058157600080fd5b50610343610590366004612bfd565b6114b3565b3480156105a157600080fd5b5060105460ff16610281565b3480156105b957600080fd5b506000546001600160a01b03166102fa565b3480156105d757600080fd5b506102b66105e6366004612972565b611526565b3480156105f757600080fd5b506102cd61158e565b34801561060c57600080fd5b50600f54610343565b6102b6610623366004612972565b61159d565b34801561063457600080fd5b506102b6610643366004612bb4565b61182b565b34801561065457600080fd5b506102b6610663366004612c6e565b611868565b34801561067457600080fd5b50600c54610343565b34801561068957600080fd5b506102b6610698366004612ca1565b611873565b3480156106a957600080fd5b506103436106b8366004612972565b6118ab565b3480156106c957600080fd5b506102cd6106d8366004612972565b61191d565b3480156106e957600080fd5b5061051e6106f8366004612a3c565b6119af565b34801561070957600080fd5b506102b6610718366004612d1d565b611b60565b34801561072957600080fd5b506102cd611bd9565b34801561073e57600080fd5b5061028161074d366004612d38565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561078757600080fd5b506102b6611be8565b34801561079c57600080fd5b506102b66107ab366004612c43565b611c97565b60006001600160e01b0319821663780e9d6360e01b14806107d557506107d582611d32565b92915050565b6000546001600160a01b0316331461080e5760405162461bcd60e51b815260040161080590612d62565b60405180910390fd5b6127108111156108605760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206265206d6f7265207468616e203130303030000000000000006044820152606401610805565b600d80549082905560408051828152602081018490527f27e9837c7540a0c03c2d0e6ce02fd29e604983dc78d390265e0594333e139fed91015b60405180910390a15050565b6060600180546108b590612d97565b80601f01602080910402602001604051908101604052809291908181526020018280546108e190612d97565b801561092e5780601f106109035761010080835404028352916020019161092e565b820191906000526020600020905b81548152906001019060200180831161091157829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109b15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610805565b506000908152600560205260409020546001600160a01b031690565b60006109d8826112a1565b9050806001600160a01b0316836001600160a01b03161415610a465760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610805565b336001600160a01b0382161480610a625750610a62813361074d565b610ad45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610805565b610ade8383611d82565b505050565b6000546001600160a01b03163314610b0d5760405162461bcd60e51b815260040161080590612d62565b6000610b1860095490565b600d5490915080610b298584612de2565b1115610b715760405162461bcd60e51b815260206004820152601760248201527643616e6e6f74206d696e74206d6f726520746f6b656e7360481b6044820152606401610805565b601054610100900460ff166000808080808515610ba157600c54612710881495509150610b9e8289612dfa565b90505b60005b8a811015610c9e5788610bb681612e11565b9950899050610bc53382611df0565b878015610be957506005610bdc6064612710612e42565b610be69190612e56565b84105b15610c8b57868015610c1e5750826005610c066064612710612e42565b610c109190612e56565b610c1c90612710612dfa565b145b95508580610c485750610c44610c35836001612de2565b610c3f908d612e56565b611e0a565b6001145b15610c7d576000818152600b60205260409020805460ff19166001908117909155945083610c7581612e11565b945050610c8b565b82610c8781612e11565b9350505b5080610c9681612e11565b915050610ba4565b508215610cab57600c8290555b50505050505050505050565b6060806000610cc560095490565b90506000610cd4828787611e45565b905060008167ffffffffffffffff811115610cf157610cf1612b28565b604051908082528060200260200182016040528015610d1a578160200160208202803683370190505b50905060008267ffffffffffffffff811115610d3857610d38612b28565b604051908082528060200260200182016040528015610d61578160200160208202803683370190505b5090506000805b84811015610e0457610d88610d7d8b83612de2565b6104f9906001612de2565b848381518110610d9a57610d9a612e75565b6001600160a01b0390921660209283029190910190910152610dbc8a82612de2565b610dc7906001612de2565b838381518110610dd957610dd9612e75565b602090810291909101015281610dee81612e11565b9250508080610dfc90612e11565b915050610d68565b5090989197509095505050505050565b610e1e3382611e84565b610e3a5760405162461bcd60e51b815260040161080590612e8b565b610ade838383611f77565b6000610e50836113f6565b8210610eb25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610805565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b03163314610f055760405162461bcd60e51b815260040161080590612d62565b600080546001600160a01b031660405190915081906001600160a01b038216904780156108fc02916000818181858888f19350505050158015610ade573d6000803e3d6000fd5b601054600090610100900460ff16610f645750600090565b600c54600954610f749190612dfa565b905090565b610ade83838360405180602001604052806000815250611873565b6000546001600160a01b03163314610fbe5760405162461bcd60e51b815260040161080590612d62565b601054610100900460ff16156110095760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610805565b6010805460ff19169055600061101e600c5490565b9050600061102b60095490565b90506000606461103c600584612e56565b6110469190612e42565b905060006110548483612dfa565b90508086116110635785611065565b805b90508061107457505050505050565b6000805b8281101561110c575b6110aa82611090836001612de2565b61109a908a612e56565b6110a49190612de2565b86612122565b6110b5906001612de2565b6000818152600b602052604090205490925060ff161515600114611081576000828152600b60205260409020805460ff19166001179055856110f681612e11565b965050808061110490612e11565b915050611078565b505050600c9290925550505b5050565b600061112760095490565b821061118a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610805565b6009828154811061119d5761119d612e75565b90600052602060002001549050919050565b6000546001600160a01b031633146111d95760405162461bcd60e51b815260040161080590612d62565b600e55565b6000546001600160a01b031633146112085760405162461bcd60e51b815260040161080590612d62565b80516111189060119060208401906128a6565b600080611227856113f6565b90506000611236828686611e45565b90506000805b82811015611294576000611254896103ef8a85612de2565b6000818152600b602052604090205490915060ff16151560011415611281578261127d81612e11565b9350505b508061128c81612e11565b91505061123c565b50925050505b9392505050565b6000818152600360205260408120546001600160a01b0316806107d55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610805565b60606000611325856113f6565b90506000611334828686611e45565b905060008167ffffffffffffffff81111561135157611351612b28565b60405190808252806020026020018201604052801561137a578160200160208202803683370190505b5090508161138c57925061129a915050565b6000805b838110156113e95760006113a88a6103ef8b85612de2565b9050808484815181106113bd576113bd612e75565b6020908102919091010152826113d281612e11565b9350505080806113e190612e11565b915050611390565b5090979650505050505050565b60006001600160a01b0382166114615760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610805565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146114a75760405162461bcd60e51b815260040161080590612d62565b6114b16000612180565b565b6000806114bf856113f6565b905060006114ce828686611e45565b90506000805b828110156112945760006114ec896103ef8a85612de2565b6000818152600b602052604090205490915060ff16611513578261150f81612e11565b9350505b508061151e81612e11565b9150506114d4565b6000546001600160a01b031633146115505760405162461bcd60e51b815260040161080590612d62565b600f80549082905560408051828152602081018490527f2063f24eb8e50478aa99484fcf0f591be5a95d83129c7388c3da4bd776655e7a910161089a565b6060600280546108b590612d97565b60006115a860095490565b600d546010549192509060ff166115f65760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610805565b600e54831115611607600e546121d0565b6040516020016116179190612edc565b604051602081830303815290604052906116445760405162461bcd60e51b815260040161080591906129e3565b5082600f546116539190612e56565b34146116985760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd0811551208185b5bdd5b9d60621b6044820152606401610805565b806116a38484612de2565b11156116eb5760405162461bcd60e51b815260206004820152601760248201527643616e6e6f74206d696e74206d6f726520746f6b656e7360481b6044820152606401610805565b601054610100900460ff16600080808080851561171b57600c546127108814955091506117188289612dfa565b90505b60005b89811015611813578861173081612e11565b995089905061173f3382611df0565b878015611763575060056117566064612710612e42565b6117609190612e56565b84105b156118005786801561179857508260056117806064612710612e42565b61178a9190612e56565b61179690612710612dfa565b145b955085806117bd57506117b96117af836001612de2565b610c3f9083612e56565b6001145b156117f2576000818152600b60205260409020805460ff191660019081179091559450836117ea81612e11565b945050611800565b826117fc81612e11565b9350505b508061180b81612e11565b91505061171e565b50821561182057600c8290555b505050505050505050565b6000546001600160a01b031633146118555760405162461bcd60e51b815260040161080590612d62565b80516111189060129060208401906128a6565b6111183383836122ce565b61187d3383611e84565b6118995760405162461bcd60e51b815260040161080590612e8b565b6118a58484848461239d565b50505050565b6000818152600360205260408120546001600160a01b03166118df5760405162461bcd60e51b815260040161080590612f21565b601054610100900460ff166118f657506000919050565b6000828152600b602052604090205460ff161561191557506001919050565b506002919050565b6000818152600360205260409020546060906001600160a01b03166119545760405162461bcd60e51b815260040161080590612f21565b600061195e6123d0565b9050600081511161197e576040518060200160405280600081525061129a565b80611988846121d0565b604051602001611999929190612f70565b6040516020818303038152906040529392505050565b606060006119bc60095490565b905060006119cb828686611e45565b905060008167ffffffffffffffff8111156119e8576119e8612b28565b604051908082528060200260200182016040528015611a11578160200160208202803683370190505b50905081611a235792506107d5915050565b6000805b83811015611ab857600b6000611a3d8a84612de2565b611a48906001612de2565b815260208101919091526040016000205460ff16151560011415611aa657611a708882612de2565b611a7b906001612de2565b838381518110611a8d57611a8d612e75565b602090810291909101015281611aa281612e11565b9250505b80611ab081612e11565b915050611a27565b5060008167ffffffffffffffff811115611ad457611ad4612b28565b604051908082528060200260200182016040528015611afd578160200160208202803683370190505b50905060005b82811015611b5457838181518110611b1d57611b1d612e75565b6020026020010151828281518110611b3757611b37612e75565b602090810291909101015280611b4c81612e11565b915050611b03565b50979650505050505050565b6000546001600160a01b03163314611b8a5760405162461bcd60e51b815260040161080590612d62565b6010805482151560ff19821681179092556040805160ff909216801515835260208301939093527f4e54378885815fe187a540ac58f879daccce4903b1c43d40bab9f68fb05698c7910161089a565b6060601280546108b590612d97565b6000546001600160a01b03163314611c125760405162461bcd60e51b815260040161080590612d62565b601054610100900460ff1615611c5d5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610805565b6010805461ffff19166101011790556040517f66b9f0d2f5af4125e8098bf5f1efc517ed46a70d8638734d186af310e2f8bc7590600090a1565b6000546001600160a01b03163314611cc15760405162461bcd60e51b815260040161080590612d62565b6001600160a01b038116611d265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610805565b611d2f81612180565b50565b60006001600160e01b031982166380ac58cd60e01b1480611d6357506001600160e01b03198216635b5e139f60e01b145b806107d557506301ffc9a760e01b6001600160e01b03198316146107d5565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611db7826112a1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6111188282604051806020016040528060008152506123df565b600080611e18836064612122565b611e23906001612de2565b905060058111611e365750600192915050565b50600292915050565b50919050565b600080611e528385612de2565b8510611e5f575081611e7c565b84841115611e6f57506000611e7c565b611e798486612dfa565b90505b949350505050565b6000818152600360205260408120546001600160a01b0316611efd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610805565b6000611f08836112a1565b9050806001600160a01b0316846001600160a01b03161480611f435750836001600160a01b0316611f3884610938565b6001600160a01b0316145b80611e7c57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff16611e7c565b826001600160a01b0316611f8a826112a1565b6001600160a01b031614611ff25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610805565b6001600160a01b0382166120545760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610805565b61205f838383612412565b61206a600082611d82565b6001600160a01b0383166000908152600460205260408120805460019290612093908490612dfa565b90915550506001600160a01b03821660009081526004602052604081208054600192906120c1908490612de2565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080514260208201526bffffffffffffffffffffffff193360601b169181019190915260548101839052446074820152600090819083906094016040516020818303038152906040528051906020012060001c611e7c9190612f9f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060816121f45750506040805180820190915260018152600360fc1b602082015290565b8160005b811561221e578061220881612e11565b91506122179050600a83612e42565b91506121f8565b60008167ffffffffffffffff81111561223957612239612b28565b6040519080825280601f01601f191660200182016040528015612263576020820181803683370190505b5090505b8415611e7c57612278600183612dfa565b9150612285600a86612f9f565b612290906030612de2565b60f81b8183815181106122a5576122a5612e75565b60200101906001600160f81b031916908160001a9053506122c7600a86612e42565b9450612267565b816001600160a01b0316836001600160a01b031614156123305760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610805565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6123a8848484611f77565b6123b4848484846124ca565b6118a55760405162461bcd60e51b815260040161080590612fb3565b6060601180546108b590612d97565b6123e983836125c8565b6123f660008484846124ca565b610ade5760405162461bcd60e51b815260040161080590612fb3565b6001600160a01b03831661246d5761246881600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612490565b816001600160a01b0316836001600160a01b031614612490576124908382612716565b6001600160a01b0382166124a757610ade816127b3565b826001600160a01b0316826001600160a01b031614610ade57610ade8282612862565b60006001600160a01b0384163b156125bd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061250e903390899088908890600401613005565b6020604051808303816000875af1925050508015612549575060408051601f3d908101601f1916820190925261254691810190613042565b60015b6125a3573d808015612577576040519150601f19603f3d011682016040523d82523d6000602084013e61257c565b606091505b50805161259b5760405162461bcd60e51b815260040161080590612fb3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e7c565b506001949350505050565b6001600160a01b03821661261e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610805565b6000818152600360205260409020546001600160a01b0316156126835760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610805565b61268f60008383612412565b6001600160a01b03821660009081526004602052604081208054600192906126b8908490612de2565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001612723846113f6565b61272d9190612dfa565b600083815260086020526040902054909150808214612780576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906127c590600190612dfa565b6000838152600a6020526040812054600980549394509092849081106127ed576127ed612e75565b90600052602060002001549050806009838154811061280e5761280e612e75565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806128465761284661305f565b6001900381819060005260206000200160009055905550505050565b600061286d836113f6565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8280546128b290612d97565b90600052602060002090601f0160209004810192826128d4576000855561291a565b82601f106128ed57805160ff191683800117855561291a565b8280016001018555821561291a579182015b8281111561291a5782518255916020019190600101906128ff565b5061292692915061292a565b5090565b5b80821115612926576000815560010161292b565b6001600160e01b031981168114611d2f57600080fd5b60006020828403121561296757600080fd5b813561129a8161293f565b60006020828403121561298457600080fd5b5035919050565b60005b838110156129a657818101518382015260200161298e565b838111156118a55750506000910152565b600081518084526129cf81602086016020860161298b565b601f01601f19169290920160200192915050565b60208152600061129a60208301846129b7565b80356001600160a01b0381168114612a0d57600080fd5b919050565b60008060408385031215612a2557600080fd5b612a2e836129f6565b946020939093013593505050565b60008060408385031215612a4f57600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015612a8e57815187529582019590820190600101612a72565b509495945050505050565b604081526000612aac6040830185612a5e565b82810360208481019190915284518083528582019282019060005b818110156113e95784516001600160a01b031683529383019391830191600101612ac7565b600080600060608486031215612b0157600080fd5b612b0a846129f6565b9250612b18602085016129f6565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612b5957612b59612b28565b604051601f8501601f19908116603f01168101908282118183101715612b8157612b81612b28565b81604052809350858152868686011115612b9a57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612bc657600080fd5b813567ffffffffffffffff811115612bdd57600080fd5b8201601f81018413612bee57600080fd5b611e7c84823560208401612b3e565b600080600060608486031215612c1257600080fd5b612c1b846129f6565b95602085013595506040909401359392505050565b60208152600061129a6020830184612a5e565b600060208284031215612c5557600080fd5b61129a826129f6565b80358015158114612a0d57600080fd5b60008060408385031215612c8157600080fd5b612c8a836129f6565b9150612c9860208401612c5e565b90509250929050565b60008060008060808587031215612cb757600080fd5b612cc0856129f6565b9350612cce602086016129f6565b925060408501359150606085013567ffffffffffffffff811115612cf157600080fd5b8501601f81018713612d0257600080fd5b612d1187823560208401612b3e565b91505092959194509250565b600060208284031215612d2f57600080fd5b61129a82612c5e565b60008060408385031215612d4b57600080fd5b612d54836129f6565b9150612c98602084016129f6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612dab57607f821691505b60208210811415611e3f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612df557612df5612dcc565b500190565b600082821015612e0c57612e0c612dcc565b500390565b6000600019821415612e2557612e25612dcc565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612e5157612e51612e2c565b500490565b6000816000190483118215151615612e7057612e70612dcc565b500290565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b7f436f756e7420617661696c61626c6520746f206d696e743a2000000000000000815260008251612f1481601985016020870161298b565b9190910160190192915050565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60008351612f8281846020880161298b565b835190830190612f9681836020880161298b565b01949350505050565b600082612fae57612fae612e2c565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613038908301846129b7565b9695505050505050565b60006020828403121561305457600080fd5b815161129a8161293f565b634e487b7160e01b600052603160045260246000fdfea26469706673582212202b1ca6005a0b90487c41d2ceda39946970032426f09d7bd55380f036615292b964736f6c634300080b00334c6567696f6e6661726d2043656c656272697469657320436f6c6c656374696f6e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000c7d713b49da0000000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f676174657761792e6c6567696f6e6661726d2e636f6d2f6e66742f6d657461646174612f6765743f69643d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f676174657761792e6c6567696f6e6661726d2e636f6d2f6e66742f6d657461646174612f6765742d636f6c6c656374696f6e000000000000
Deployed Bytecode
0x60806040526004361061025c5760003560e01c806370a0823111610144578063a22cb465116100b6578063ca69eb8b1161007a578063ca69eb8b146106dd578063d897833e146106fd578063e8a3d4851461071d578063e985e9c514610732578063ed2c1c691461077b578063f2fde38b1461079057600080fd5b8063a22cb46514610648578063b5325c1514610668578063b88d4fde1461067d578063c26b265f1461069d578063c87b56dd146106bd57600080fd5b80638da5cb5b116101085780638da5cb5b146105ad57806391b7f5ed146105cb57806395d89b41146105eb57806398d5fdca14610600578063a0712d6814610615578063a201fc501461062857600080fd5b806370a082311461052b578063715018a61461054b5780637924f333146105605780637af3934b146105755780638c3c4b341461059557600080fd5b80632f745c59116101dd5780634f6ccce7116101a15780634f6ccce71461045e57806352dcffe01461047e57806355f804b31461049e5780635f655cef146104be5780636352211e146104de57806364f216b3146104fe57600080fd5b80632f745c59146103d45780633ccfd60b146103f45780633ff324b91461040957806342842e0e1461041e5780634b30ebe91461043e57600080fd5b80630be7c9ac116102245780630be7c9ac146103325780631482df261461035157806318160ddd1461037157806319aeb3551461038657806323b872dd146103b457600080fd5b806301ffc9a71461026157806302db8f001461029657806306fdde03146102b8578063081812fc146102da578063095ea7b314610312575b600080fd5b34801561026d57600080fd5b5061028161027c366004612955565b6107b0565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102b66102b1366004612972565b6107db565b005b3480156102c457600080fd5b506102cd6108a6565b60405161028d91906129e3565b3480156102e657600080fd5b506102fa6102f5366004612972565b610938565b6040516001600160a01b03909116815260200161028d565b34801561031e57600080fd5b506102b661032d366004612a12565b6109cd565b34801561033e57600080fd5b50600e545b60405190815260200161028d565b34801561035d57600080fd5b506102b661036c366004612a3c565b610ae3565b34801561037d57600080fd5b50600954610343565b34801561039257600080fd5b506103a66103a1366004612a3c565b610cb7565b60405161028d929190612a99565b3480156103c057600080fd5b506102b66103cf366004612aec565b610e14565b3480156103e057600080fd5b506103436103ef366004612a12565b610e45565b34801561040057600080fd5b506102b6610edb565b34801561041557600080fd5b50610343610f4c565b34801561042a57600080fd5b506102b6610439366004612aec565b610f79565b34801561044a57600080fd5b506102b6610459366004612a3c565b610f94565b34801561046a57600080fd5b50610343610479366004612972565b61111c565b34801561048a57600080fd5b506102b6610499366004612972565b6111af565b3480156104aa57600080fd5b506102b66104b9366004612bb4565b6111de565b3480156104ca57600080fd5b506103436104d9366004612bfd565b61121b565b3480156104ea57600080fd5b506102fa6104f9366004612972565b6112a1565b34801561050a57600080fd5b5061051e610519366004612bfd565b611318565b60405161028d9190612c30565b34801561053757600080fd5b50610343610546366004612c43565b6113f6565b34801561055757600080fd5b506102b661147d565b34801561056c57600080fd5b50600d54610343565b34801561058157600080fd5b50610343610590366004612bfd565b6114b3565b3480156105a157600080fd5b5060105460ff16610281565b3480156105b957600080fd5b506000546001600160a01b03166102fa565b3480156105d757600080fd5b506102b66105e6366004612972565b611526565b3480156105f757600080fd5b506102cd61158e565b34801561060c57600080fd5b50600f54610343565b6102b6610623366004612972565b61159d565b34801561063457600080fd5b506102b6610643366004612bb4565b61182b565b34801561065457600080fd5b506102b6610663366004612c6e565b611868565b34801561067457600080fd5b50600c54610343565b34801561068957600080fd5b506102b6610698366004612ca1565b611873565b3480156106a957600080fd5b506103436106b8366004612972565b6118ab565b3480156106c957600080fd5b506102cd6106d8366004612972565b61191d565b3480156106e957600080fd5b5061051e6106f8366004612a3c565b6119af565b34801561070957600080fd5b506102b6610718366004612d1d565b611b60565b34801561072957600080fd5b506102cd611bd9565b34801561073e57600080fd5b5061028161074d366004612d38565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561078757600080fd5b506102b6611be8565b34801561079c57600080fd5b506102b66107ab366004612c43565b611c97565b60006001600160e01b0319821663780e9d6360e01b14806107d557506107d582611d32565b92915050565b6000546001600160a01b0316331461080e5760405162461bcd60e51b815260040161080590612d62565b60405180910390fd5b6127108111156108605760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206265206d6f7265207468616e203130303030000000000000006044820152606401610805565b600d80549082905560408051828152602081018490527f27e9837c7540a0c03c2d0e6ce02fd29e604983dc78d390265e0594333e139fed91015b60405180910390a15050565b6060600180546108b590612d97565b80601f01602080910402602001604051908101604052809291908181526020018280546108e190612d97565b801561092e5780601f106109035761010080835404028352916020019161092e565b820191906000526020600020905b81548152906001019060200180831161091157829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109b15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610805565b506000908152600560205260409020546001600160a01b031690565b60006109d8826112a1565b9050806001600160a01b0316836001600160a01b03161415610a465760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610805565b336001600160a01b0382161480610a625750610a62813361074d565b610ad45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610805565b610ade8383611d82565b505050565b6000546001600160a01b03163314610b0d5760405162461bcd60e51b815260040161080590612d62565b6000610b1860095490565b600d5490915080610b298584612de2565b1115610b715760405162461bcd60e51b815260206004820152601760248201527643616e6e6f74206d696e74206d6f726520746f6b656e7360481b6044820152606401610805565b601054610100900460ff166000808080808515610ba157600c54612710881495509150610b9e8289612dfa565b90505b60005b8a811015610c9e5788610bb681612e11565b9950899050610bc53382611df0565b878015610be957506005610bdc6064612710612e42565b610be69190612e56565b84105b15610c8b57868015610c1e5750826005610c066064612710612e42565b610c109190612e56565b610c1c90612710612dfa565b145b95508580610c485750610c44610c35836001612de2565b610c3f908d612e56565b611e0a565b6001145b15610c7d576000818152600b60205260409020805460ff19166001908117909155945083610c7581612e11565b945050610c8b565b82610c8781612e11565b9350505b5080610c9681612e11565b915050610ba4565b508215610cab57600c8290555b50505050505050505050565b6060806000610cc560095490565b90506000610cd4828787611e45565b905060008167ffffffffffffffff811115610cf157610cf1612b28565b604051908082528060200260200182016040528015610d1a578160200160208202803683370190505b50905060008267ffffffffffffffff811115610d3857610d38612b28565b604051908082528060200260200182016040528015610d61578160200160208202803683370190505b5090506000805b84811015610e0457610d88610d7d8b83612de2565b6104f9906001612de2565b848381518110610d9a57610d9a612e75565b6001600160a01b0390921660209283029190910190910152610dbc8a82612de2565b610dc7906001612de2565b838381518110610dd957610dd9612e75565b602090810291909101015281610dee81612e11565b9250508080610dfc90612e11565b915050610d68565b5090989197509095505050505050565b610e1e3382611e84565b610e3a5760405162461bcd60e51b815260040161080590612e8b565b610ade838383611f77565b6000610e50836113f6565b8210610eb25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610805565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b03163314610f055760405162461bcd60e51b815260040161080590612d62565b600080546001600160a01b031660405190915081906001600160a01b038216904780156108fc02916000818181858888f19350505050158015610ade573d6000803e3d6000fd5b601054600090610100900460ff16610f645750600090565b600c54600954610f749190612dfa565b905090565b610ade83838360405180602001604052806000815250611873565b6000546001600160a01b03163314610fbe5760405162461bcd60e51b815260040161080590612d62565b601054610100900460ff16156110095760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610805565b6010805460ff19169055600061101e600c5490565b9050600061102b60095490565b90506000606461103c600584612e56565b6110469190612e42565b905060006110548483612dfa565b90508086116110635785611065565b805b90508061107457505050505050565b6000805b8281101561110c575b6110aa82611090836001612de2565b61109a908a612e56565b6110a49190612de2565b86612122565b6110b5906001612de2565b6000818152600b602052604090205490925060ff161515600114611081576000828152600b60205260409020805460ff19166001179055856110f681612e11565b965050808061110490612e11565b915050611078565b505050600c9290925550505b5050565b600061112760095490565b821061118a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610805565b6009828154811061119d5761119d612e75565b90600052602060002001549050919050565b6000546001600160a01b031633146111d95760405162461bcd60e51b815260040161080590612d62565b600e55565b6000546001600160a01b031633146112085760405162461bcd60e51b815260040161080590612d62565b80516111189060119060208401906128a6565b600080611227856113f6565b90506000611236828686611e45565b90506000805b82811015611294576000611254896103ef8a85612de2565b6000818152600b602052604090205490915060ff16151560011415611281578261127d81612e11565b9350505b508061128c81612e11565b91505061123c565b50925050505b9392505050565b6000818152600360205260408120546001600160a01b0316806107d55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610805565b60606000611325856113f6565b90506000611334828686611e45565b905060008167ffffffffffffffff81111561135157611351612b28565b60405190808252806020026020018201604052801561137a578160200160208202803683370190505b5090508161138c57925061129a915050565b6000805b838110156113e95760006113a88a6103ef8b85612de2565b9050808484815181106113bd576113bd612e75565b6020908102919091010152826113d281612e11565b9350505080806113e190612e11565b915050611390565b5090979650505050505050565b60006001600160a01b0382166114615760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610805565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146114a75760405162461bcd60e51b815260040161080590612d62565b6114b16000612180565b565b6000806114bf856113f6565b905060006114ce828686611e45565b90506000805b828110156112945760006114ec896103ef8a85612de2565b6000818152600b602052604090205490915060ff16611513578261150f81612e11565b9350505b508061151e81612e11565b9150506114d4565b6000546001600160a01b031633146115505760405162461bcd60e51b815260040161080590612d62565b600f80549082905560408051828152602081018490527f2063f24eb8e50478aa99484fcf0f591be5a95d83129c7388c3da4bd776655e7a910161089a565b6060600280546108b590612d97565b60006115a860095490565b600d546010549192509060ff166115f65760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610805565b600e54831115611607600e546121d0565b6040516020016116179190612edc565b604051602081830303815290604052906116445760405162461bcd60e51b815260040161080591906129e3565b5082600f546116539190612e56565b34146116985760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd0811551208185b5bdd5b9d60621b6044820152606401610805565b806116a38484612de2565b11156116eb5760405162461bcd60e51b815260206004820152601760248201527643616e6e6f74206d696e74206d6f726520746f6b656e7360481b6044820152606401610805565b601054610100900460ff16600080808080851561171b57600c546127108814955091506117188289612dfa565b90505b60005b89811015611813578861173081612e11565b995089905061173f3382611df0565b878015611763575060056117566064612710612e42565b6117609190612e56565b84105b156118005786801561179857508260056117806064612710612e42565b61178a9190612e56565b61179690612710612dfa565b145b955085806117bd57506117b96117af836001612de2565b610c3f9083612e56565b6001145b156117f2576000818152600b60205260409020805460ff191660019081179091559450836117ea81612e11565b945050611800565b826117fc81612e11565b9350505b508061180b81612e11565b91505061171e565b50821561182057600c8290555b505050505050505050565b6000546001600160a01b031633146118555760405162461bcd60e51b815260040161080590612d62565b80516111189060129060208401906128a6565b6111183383836122ce565b61187d3383611e84565b6118995760405162461bcd60e51b815260040161080590612e8b565b6118a58484848461239d565b50505050565b6000818152600360205260408120546001600160a01b03166118df5760405162461bcd60e51b815260040161080590612f21565b601054610100900460ff166118f657506000919050565b6000828152600b602052604090205460ff161561191557506001919050565b506002919050565b6000818152600360205260409020546060906001600160a01b03166119545760405162461bcd60e51b815260040161080590612f21565b600061195e6123d0565b9050600081511161197e576040518060200160405280600081525061129a565b80611988846121d0565b604051602001611999929190612f70565b6040516020818303038152906040529392505050565b606060006119bc60095490565b905060006119cb828686611e45565b905060008167ffffffffffffffff8111156119e8576119e8612b28565b604051908082528060200260200182016040528015611a11578160200160208202803683370190505b50905081611a235792506107d5915050565b6000805b83811015611ab857600b6000611a3d8a84612de2565b611a48906001612de2565b815260208101919091526040016000205460ff16151560011415611aa657611a708882612de2565b611a7b906001612de2565b838381518110611a8d57611a8d612e75565b602090810291909101015281611aa281612e11565b9250505b80611ab081612e11565b915050611a27565b5060008167ffffffffffffffff811115611ad457611ad4612b28565b604051908082528060200260200182016040528015611afd578160200160208202803683370190505b50905060005b82811015611b5457838181518110611b1d57611b1d612e75565b6020026020010151828281518110611b3757611b37612e75565b602090810291909101015280611b4c81612e11565b915050611b03565b50979650505050505050565b6000546001600160a01b03163314611b8a5760405162461bcd60e51b815260040161080590612d62565b6010805482151560ff19821681179092556040805160ff909216801515835260208301939093527f4e54378885815fe187a540ac58f879daccce4903b1c43d40bab9f68fb05698c7910161089a565b6060601280546108b590612d97565b6000546001600160a01b03163314611c125760405162461bcd60e51b815260040161080590612d62565b601054610100900460ff1615611c5d5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481c995d99585b195960821b6044820152606401610805565b6010805461ffff19166101011790556040517f66b9f0d2f5af4125e8098bf5f1efc517ed46a70d8638734d186af310e2f8bc7590600090a1565b6000546001600160a01b03163314611cc15760405162461bcd60e51b815260040161080590612d62565b6001600160a01b038116611d265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610805565b611d2f81612180565b50565b60006001600160e01b031982166380ac58cd60e01b1480611d6357506001600160e01b03198216635b5e139f60e01b145b806107d557506301ffc9a760e01b6001600160e01b03198316146107d5565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611db7826112a1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6111188282604051806020016040528060008152506123df565b600080611e18836064612122565b611e23906001612de2565b905060058111611e365750600192915050565b50600292915050565b50919050565b600080611e528385612de2565b8510611e5f575081611e7c565b84841115611e6f57506000611e7c565b611e798486612dfa565b90505b949350505050565b6000818152600360205260408120546001600160a01b0316611efd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610805565b6000611f08836112a1565b9050806001600160a01b0316846001600160a01b03161480611f435750836001600160a01b0316611f3884610938565b6001600160a01b0316145b80611e7c57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff16611e7c565b826001600160a01b0316611f8a826112a1565b6001600160a01b031614611ff25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610805565b6001600160a01b0382166120545760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610805565b61205f838383612412565b61206a600082611d82565b6001600160a01b0383166000908152600460205260408120805460019290612093908490612dfa565b90915550506001600160a01b03821660009081526004602052604081208054600192906120c1908490612de2565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080514260208201526bffffffffffffffffffffffff193360601b169181019190915260548101839052446074820152600090819083906094016040516020818303038152906040528051906020012060001c611e7c9190612f9f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060816121f45750506040805180820190915260018152600360fc1b602082015290565b8160005b811561221e578061220881612e11565b91506122179050600a83612e42565b91506121f8565b60008167ffffffffffffffff81111561223957612239612b28565b6040519080825280601f01601f191660200182016040528015612263576020820181803683370190505b5090505b8415611e7c57612278600183612dfa565b9150612285600a86612f9f565b612290906030612de2565b60f81b8183815181106122a5576122a5612e75565b60200101906001600160f81b031916908160001a9053506122c7600a86612e42565b9450612267565b816001600160a01b0316836001600160a01b031614156123305760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610805565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6123a8848484611f77565b6123b4848484846124ca565b6118a55760405162461bcd60e51b815260040161080590612fb3565b6060601180546108b590612d97565b6123e983836125c8565b6123f660008484846124ca565b610ade5760405162461bcd60e51b815260040161080590612fb3565b6001600160a01b03831661246d5761246881600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612490565b816001600160a01b0316836001600160a01b031614612490576124908382612716565b6001600160a01b0382166124a757610ade816127b3565b826001600160a01b0316826001600160a01b031614610ade57610ade8282612862565b60006001600160a01b0384163b156125bd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061250e903390899088908890600401613005565b6020604051808303816000875af1925050508015612549575060408051601f3d908101601f1916820190925261254691810190613042565b60015b6125a3573d808015612577576040519150601f19603f3d011682016040523d82523d6000602084013e61257c565b606091505b50805161259b5760405162461bcd60e51b815260040161080590612fb3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e7c565b506001949350505050565b6001600160a01b03821661261e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610805565b6000818152600360205260409020546001600160a01b0316156126835760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610805565b61268f60008383612412565b6001600160a01b03821660009081526004602052604081208054600192906126b8908490612de2565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001612723846113f6565b61272d9190612dfa565b600083815260086020526040902054909150808214612780576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906127c590600190612dfa565b6000838152600a6020526040812054600980549394509092849081106127ed576127ed612e75565b90600052602060002001549050806009838154811061280e5761280e612e75565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806128465761284661305f565b6001900381819060005260206000200160009055905550505050565b600061286d836113f6565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b8280546128b290612d97565b90600052602060002090601f0160209004810192826128d4576000855561291a565b82601f106128ed57805160ff191683800117855561291a565b8280016001018555821561291a579182015b8281111561291a5782518255916020019190600101906128ff565b5061292692915061292a565b5090565b5b80821115612926576000815560010161292b565b6001600160e01b031981168114611d2f57600080fd5b60006020828403121561296757600080fd5b813561129a8161293f565b60006020828403121561298457600080fd5b5035919050565b60005b838110156129a657818101518382015260200161298e565b838111156118a55750506000910152565b600081518084526129cf81602086016020860161298b565b601f01601f19169290920160200192915050565b60208152600061129a60208301846129b7565b80356001600160a01b0381168114612a0d57600080fd5b919050565b60008060408385031215612a2557600080fd5b612a2e836129f6565b946020939093013593505050565b60008060408385031215612a4f57600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015612a8e57815187529582019590820190600101612a72565b509495945050505050565b604081526000612aac6040830185612a5e565b82810360208481019190915284518083528582019282019060005b818110156113e95784516001600160a01b031683529383019391830191600101612ac7565b600080600060608486031215612b0157600080fd5b612b0a846129f6565b9250612b18602085016129f6565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612b5957612b59612b28565b604051601f8501601f19908116603f01168101908282118183101715612b8157612b81612b28565b81604052809350858152868686011115612b9a57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612bc657600080fd5b813567ffffffffffffffff811115612bdd57600080fd5b8201601f81018413612bee57600080fd5b611e7c84823560208401612b3e565b600080600060608486031215612c1257600080fd5b612c1b846129f6565b95602085013595506040909401359392505050565b60208152600061129a6020830184612a5e565b600060208284031215612c5557600080fd5b61129a826129f6565b80358015158114612a0d57600080fd5b60008060408385031215612c8157600080fd5b612c8a836129f6565b9150612c9860208401612c5e565b90509250929050565b60008060008060808587031215612cb757600080fd5b612cc0856129f6565b9350612cce602086016129f6565b925060408501359150606085013567ffffffffffffffff811115612cf157600080fd5b8501601f81018713612d0257600080fd5b612d1187823560208401612b3e565b91505092959194509250565b600060208284031215612d2f57600080fd5b61129a82612c5e565b60008060408385031215612d4b57600080fd5b612d54836129f6565b9150612c98602084016129f6565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612dab57607f821691505b60208210811415611e3f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612df557612df5612dcc565b500190565b600082821015612e0c57612e0c612dcc565b500390565b6000600019821415612e2557612e25612dcc565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612e5157612e51612e2c565b500490565b6000816000190483118215151615612e7057612e70612dcc565b500290565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b7f436f756e7420617661696c61626c6520746f206d696e743a2000000000000000815260008251612f1481601985016020870161298b565b9190910160190192915050565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60008351612f8281846020880161298b565b835190830190612f9681836020880161298b565b01949350505050565b600082612fae57612fae612e2c565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613038908301846129b7565b9695505050505050565b60006020828403121561305457600080fd5b815161129a8161293f565b634e487b7160e01b600052603160045260246000fdfea26469706673582212202b1ca6005a0b90487c41d2ceda39946970032426f09d7bd55380f036615292b964736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000c7d713b49da0000000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f676174657761792e6c6567696f6e6661726d2e636f6d2f6e66742f6d657461646174612f6765743f69643d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f676174657761792e6c6567696f6e6661726d2e636f6d2f6e66742f6d657461646174612f6765742d636f6c6c656374696f6e000000000000
-----Decoded View---------------
Arg [0] : saleStatus (bool): True
Arg [1] : tokenPrice (uint256): 900000000000000000
Arg [2] : tokensAvailableToSell (uint256): 300
Arg [3] : tokensAvailablePerMint (uint256): 1
Arg [4] : baseURI (string): https://gateway.legionfarm.com/nft/metadata/get?id=
Arg [5] : contractMetadataURI (string): https://gateway.legionfarm.com/nft/metadata/get-collection
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [1] : 0000000000000000000000000000000000000000000000000c7d713b49da0000
Arg [2] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [7] : 68747470733a2f2f676174657761792e6c6567696f6e6661726d2e636f6d2f6e
Arg [8] : 66742f6d657461646174612f6765743f69643d00000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [10] : 68747470733a2f2f676174657761792e6c6567696f6e6661726d2e636f6d2f6e
Arg [11] : 66742f6d657461646174612f6765742d636f6c6c656374696f6e000000000000
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.