Feature Tip: Add private address tag to any address under My Name Tag !
NFT
Overview
TokenID
485
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Lostgirl
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; // Imports import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./ERC721EnumerableNameable.sol"; import "./LOSTToken.sol"; import "./LostboyNFT.sol"; contract Lostgirl is ERC721EnumerableNameable { // Constants uint256 private constant MAX_LOSTGIRLS = 10000; // Public bool public claimingEnabled = false; bool public tokenEnabled = false; mapping(address => uint256) public claims; // Private bytes32 private snapshotMerkle = ""; string private baseURI = ""; // External LostboyNFT public lostboyNFT; LOSTToken public lostToken; constructor(string memory _name, string memory _symbol, string memory _uri, address lostboyAddress) ERC721EnumerableNameable (_name, _symbol) { baseURI = _uri; lostboyNFT = LostboyNFT(lostboyAddress); } // Owner function toggleClaim () public onlyOwner { claimingEnabled = !claimingEnabled; } function toggleToken () public onlyOwner { tokenEnabled = !tokenEnabled; } function setSnapshotRoot (bytes32 _merkle) public onlyOwner { snapshotMerkle = _merkle; } function updateLOSTAddress (address _newAddress) public onlyOwner { lostToken = LOSTToken (_newAddress); } function updateNameChangePrice(uint256 _price) public onlyOwner { nameChangePrice = _price; } function updateBioChangePrice(uint256 _price) public onlyOwner { bioChangePrice = _price; } function setBaseURI (string memory _uri) public onlyOwner { baseURI = _uri; } function ownerCollect (uint256 _numLostgirls) public onlyOwner { for (uint256 i = 0; i < _numLostgirls; i++) { uint256 currentIdx = totalSupply (); if (currentIdx < MAX_LOSTGIRLS) { _safeMint (msg.sender, currentIdx); } } } // Public function claim (uint256 _numLostgirls, uint256 _merkleIndex, uint256 _maxAmount, bytes32[] calldata _merkleProof) public { require (claimingEnabled, "Claiming not open yet."); require (totalSupply () + _numLostgirls <= MAX_LOSTGIRLS, "Exceeding supply limit."); bytes32 dataHash = keccak256(abi.encodePacked(_merkleIndex, msg.sender, _maxAmount)); require( MerkleProof.verify(_merkleProof, snapshotMerkle, dataHash), "Invalid merkle proof !" ); require (claims[msg.sender] + _numLostgirls <= _maxAmount, "More than eligible for."); require (claims[msg.sender] + _numLostgirls <= lostboyNFT.balanceOf(msg.sender), "Not enough lostboys in wallet."); for (uint256 i = 0; i < _numLostgirls; i++) { uint256 currentIdx = totalSupply (); if (currentIdx < MAX_LOSTGIRLS) { _safeMint (msg.sender, currentIdx); } } claims[msg.sender] = claims[msg.sender] + _numLostgirls; } // Nameable function changeName(uint256 _tokenId, string memory _newName) public override { require(tokenEnabled, "Token not available yet."); lostToken.burn(msg.sender, nameChangePrice); super.changeName(_tokenId, _newName); } function changeBio(uint256 _tokenId, string memory _newBio) public override { require(tokenEnabled, "Token not available yet."); lostToken.burn(msg.sender, bioChangePrice); super.changeBio(_tokenId, _newBio); } // Override function _baseURI() internal view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract ERC721EnumerableNameable is ERC721Enumerable, Ownable { uint256 public nameChangePrice = 500 ether; uint256 public bioChangePrice = 500 ether; mapping (uint256 => string) private _tokenName; mapping (string => bool) private _nameReserved; mapping (uint256 => string) private _tokenBio; event NameChange (uint256 indexed tokenId, string newName); event BioChange (uint256 indexed tokenId, string bio); constructor(string memory _name, string memory _symbol) ERC721 (_name, _symbol) {} function changeName(uint256 tokenId, string memory newName) public virtual { address owner = ownerOf(tokenId); require(_msgSender() == owner, "You do not own this token."); require(validateName(newName) == true, "Invalid name."); require(sha256(bytes(newName)) != sha256(bytes(_tokenName[tokenId])), "New name is same as the current one."); require(isNameReserved(newName) == false, "Name already reserved."); // If already named, dereserve old name if (bytes(_tokenName[tokenId]).length > 0) { toggleReserveName(_tokenName[tokenId], false); } toggleReserveName(newName, true); _tokenName[tokenId] = newName; emit NameChange(tokenId, newName); } function changeBio(uint256 _tokenId, string memory _bio) public virtual { address owner = ownerOf(_tokenId); require(_msgSender() == owner, "You do not own this token."); _tokenBio[_tokenId] = _bio; emit BioChange(_tokenId, _bio); } function toggleReserveName(string memory str, bool isReserve) internal { _nameReserved[toLower(str)] = isReserve; } function tokenNameByIndex(uint256 index) public view returns (string memory) { return _tokenName[index]; } function tokenBioByIndex(uint256 index) public view returns (string memory) { return _tokenBio[index]; } function isNameReserved(string memory nameString) public view returns (bool) { return _nameReserved[toLower(nameString)]; } function validateName(string memory str) public pure returns (bool){ bytes memory b = bytes(str); if(b.length < 1) return false; if(b.length > 25) return false; if(b[0] == 0x20) return false; if (b[b.length - 1] == 0x20) return false; bytes1 lastChar = b[0]; for(uint i; i<b.length; i++){ bytes1 char = b[i]; if (char == 0x20 && lastChar == 0x20) return false; if( !(char >= 0x30 && char <= 0x39) && !(char >= 0x41 && char <= 0x5A) && !(char >= 0x61 && char <= 0x7A) && !(char == 0x20) ) return false; lastChar = char; } return true; } function toLower(string memory str) public pure returns (string memory){ bytes memory bStr = bytes(str); bytes memory bLower = new bytes(bStr.length); for (uint i = 0; i < bStr.length; i++) { if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) { bLower[i] = bytes1(uint8(bStr[i]) + 32); } else { bLower[i] = bStr[i]; } } return string(bLower); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface LOSTToken { function burn(address _from, uint256 _amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract LostboyNFT { function balanceOf(address owner) external view returns (uint256 balance) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"lostboyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"bio","type":"string"}],"name":"BioChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"bioChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newBio","type":"string"}],"name":"changeBio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numLostgirls","type":"uint256"},{"internalType":"uint256","name":"_merkleIndex","type":"uint256"},{"internalType":"uint256","name":"_maxAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lostToken","outputs":[{"internalType":"contract LOSTToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lostboyNFT","outputs":[{"internalType":"contract LostboyNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numLostgirls","type":"uint256"}],"name":"ownerCollect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkle","type":"bytes32"}],"name":"setSnapshotRoot","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":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"toggleClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenBioByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"updateBioChangePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"updateLOSTAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"updateNameChangePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
681b1ae4d6e2ef500000600b819055600c556010805461ffff191690556000601281905560a0604081905260808290526200003e916013919062000156565b503480156200004c57600080fd5b506040516200331b3803806200331b8339810160408190526200006f91620002c9565b8383818181600090805190602001906200008b92919062000156565b508051620000a190600190602084019062000156565b505050620000be620000b86200010060201b60201c565b62000104565b50508151620000d590601390602085019062000156565b50601480546001600160a01b0319166001600160a01b039290921691909117905550620003b9915050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000164906200037c565b90600052602060002090601f016020900481019282620001885760008555620001d3565b82601f10620001a357805160ff1916838001178555620001d3565b82800160010185558215620001d3579182015b82811115620001d3578251825591602001919060010190620001b6565b50620001e1929150620001e5565b5090565b5b80821115620001e15760008155600101620001e6565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200022457600080fd5b81516001600160401b0380821115620002415762000241620001fc565b604051601f8301601f19908116603f011681019082821181831017156200026c576200026c620001fc565b816040528381526020925086838588010111156200028957600080fd5b600091505b83821015620002ad57858201830151818301840152908201906200028e565b83821115620002bf5760008385830101525b9695505050505050565b60008060008060808587031215620002e057600080fd5b84516001600160401b0380821115620002f857600080fd5b620003068883890162000212565b955060208701519150808211156200031d57600080fd5b6200032b8883890162000212565b945060408701519150808211156200034257600080fd5b50620003518782880162000212565b606087015190935090506001600160a01b03811681146200037157600080fd5b939692955090935050565b600181811c908216806200039157607f821691505b60208210811415620003b357634e487b7160e01b600052602260045260246000fd5b50919050565b612f5280620003c96000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c80635d9d65c1116101465780639ffdb65a116100c3578063c6788bdd11610087578063c6788bdd14610505578063c87b56dd14610525578063d112974514610538578063e985e9c514610540578063ea25e1761461057c578063f2fde38b1461058f57600080fd5b80639ffdb65a146104a6578063a22cb465146104b9578063ae2852ef146104cc578063b88d4fde146104df578063c39cbef1146104f257600080fd5b80637b73be211161010a5780637b73be2114610454578063833b2014146104675780638da5cb5b1461047a5780639416b4231461048b57806395d89b411461049e57600080fd5b80635d9d65c1146104015780636352211e146104135780636d5224181461042657806370a0823114610439578063715018a61461044c57600080fd5b806323b872dd116101df5780634f6ccce7116101a35780634f6ccce71461039a57806351620572146103ad5780635209f537146103c057806354cf35ed146103c857806355f804b3146103db57806359f2f897146103ee57600080fd5b806323b872dd146103455780632f745c591461035857806342842e0e1461036b57806345ca77381461037e5780634d4265281461038757600080fd5b80630e141a9b116102265780630e141a9b146102f35780630ebe8847146103005780631041217f1461031757806315b56d101461032a57806318160ddd1461033d57600080fd5b806301ffc9a71461026357806306fdde031461028b578063081812fc146102a0578063095ea7b3146102cb5780630de1d215146102e0575b600080fd5b6102766102713660046127df565b6105a2565b60405190151581526020015b60405180910390f35b6102936105b3565b6040516102829190612854565b6102b36102ae366004612867565b610645565b6040516001600160a01b039091168152602001610282565b6102de6102d936600461289c565b6106df565b005b6102de6102ee366004612867565b6107f5565b6010546102769060ff1681565b610309600c5481565b604051908152602001610282565b6102de6103253660046128c6565b610862565b61027661033836600461298d565b6108ae565b600854610309565b6102de6103533660046129c2565b6108e1565b61030961036636600461289c565b610912565b6102de6103793660046129c2565b6109a8565b610309600b5481565b6102de6103953660046129fe565b6109c3565b6103096103a8366004612867565b610a87565b6102de6103bb366004612867565b610b1a565b6102de610b49565b6102de6103d6366004612867565b610b90565b6102de6103e936600461298d565b610bbf565b6102936103fc366004612867565b610bfc565b60105461027690610100900460ff1681565b6102b3610421366004612867565b610c9e565b610293610434366004612867565b610d15565b6103096104473660046128c6565b610d32565b6102de610db9565b6102de610462366004612867565b610def565b6015546102b3906001600160a01b031681565b600a546001600160a01b03166102b3565b61029361049936600461298d565b610e1e565b610293610f81565b6102766104b436600461298d565b610f90565b6102de6104c7366004612a45565b61119f565b6014546102b3906001600160a01b031681565b6102de6104ed366004612a81565b611264565b6102de6105003660046129fe565b61129c565b6103096105133660046128c6565b60116020526000908152604090205481565b610293610533366004612867565b611360565b6102de61143b565b61027661054e366004612afd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102de61058a366004612b30565b611479565b6102de61059d3660046128c6565b6117bb565b60006105ad82611856565b92915050565b6060600080546105c290612bc0565b80601f01602080910402602001604051908101604052809291908181526020018280546105ee90612bc0565b801561063b5780601f106106105761010080835404028352916020019161063b565b820191906000526020600020905b81548152906001019060200180831161061e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106c35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106ea82610c9e565b9050806001600160a01b0316836001600160a01b031614156107585760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106ba565b336001600160a01b03821614806107745750610774813361054e565b6107e65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106ba565b6107f0838361187b565b505050565b600a546001600160a01b0316331461081f5760405162461bcd60e51b81526004016106ba90612bfb565b60005b8181101561085e57600061083560085490565b905061271081101561084b5761084b33826118e9565b508061085681612c46565b915050610822565b5050565b600a546001600160a01b0316331461088c5760405162461bcd60e51b81526004016106ba90612bfb565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6000600e6108bb83610e1e565b6040516108c89190612c61565b9081526040519081900360200190205460ff1692915050565b6108eb3382611903565b6109075760405162461bcd60e51b81526004016106ba90612c7d565b6107f08383836119fa565b600061091d83610d32565b821061097f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106ba565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6107f083838360405180602001604052806000815250611264565b601054610100900460ff16610a155760405162461bcd60e51b81526020600482015260186024820152772a37b5b2b7103737ba1030bb30b4b630b13632903cb2ba1760411b60448201526064016106ba565b601554600c54604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015610a6557600080fd5b505af1158015610a79573d6000803e3d6000fd5b5050505061085e8282611ba5565b6000610a9260085490565b8210610af55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106ba565b60088281548110610b0857610b08612cce565b90600052602060002001549050919050565b600a546001600160a01b03163314610b445760405162461bcd60e51b81526004016106ba90612bfb565b601255565b600a546001600160a01b03163314610b735760405162461bcd60e51b81526004016106ba90612bfb565b6010805461ff001981166101009182900460ff1615909102179055565b600a546001600160a01b03163314610bba5760405162461bcd60e51b81526004016106ba90612bfb565b600c55565b600a546001600160a01b03163314610be95760405162461bcd60e51b81526004016106ba90612bfb565b805161085e906013906020840190612730565b6000818152600f60205260409020805460609190610c1990612bc0565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4590612bc0565b8015610c925780601f10610c6757610100808354040283529160200191610c92565b820191906000526020600020905b815481529060010190602001808311610c7557829003601f168201915b50505050509050919050565b6000818152600260205260408120546001600160a01b0316806105ad5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106ba565b6000818152600d60205260409020805460609190610c1990612bc0565b60006001600160a01b038216610d9d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106ba565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610de35760405162461bcd60e51b81526004016106ba90612bfb565b610ded6000611c67565b565b600a546001600160a01b03163314610e195760405162461bcd60e51b81526004016106ba90612bfb565b600b55565b606060008290506000815167ffffffffffffffff811115610e4157610e416128e1565b6040519080825280601f01601f191660200182016040528015610e6b576020820181803683370190505b50905060005b8251811015610f79576041838281518110610e8e57610e8e612cce565b016020015160f81c10801590610ebe5750605a838281518110610eb357610eb3612cce565b016020015160f81c11155b15610f2057828181518110610ed557610ed5612cce565b602001015160f81c60f81b60f81c6020610eef9190612ce4565b60f81b828281518110610f0457610f04612cce565b60200101906001600160f81b031916908160001a905350610f67565b828181518110610f3257610f32612cce565b602001015160f81c60f81b828281518110610f4f57610f4f612cce565b60200101906001600160f81b031916908160001a9053505b80610f7181612c46565b915050610e71565b509392505050565b6060600180546105c290612bc0565b600080829050600181511015610fa95750600092915050565b601981511115610fbc5750600092915050565b80600081518110610fcf57610fcf612cce565b6020910101516001600160f81b031916600160fd1b1415610ff35750600092915050565b80600182516110029190612d09565b8151811061101257611012612cce565b6020910101516001600160f81b031916600160fd1b14156110365750600092915050565b60008160008151811061104b5761104b612cce565b01602001516001600160f81b031916905060005b825181101561119457600083828151811061107c5761107c612cce565b01602001516001600160f81b0319169050600160fd1b811480156110ad5750600160fd1b6001600160f81b03198416145b156110be5750600095945050505050565b600360fc1b6001600160f81b03198216108015906110ea5750603960f81b6001600160f81b0319821611155b1580156111205750604160f81b6001600160f81b031982161080159061111e5750602d60f91b6001600160f81b0319821611155b155b80156111555750606160f81b6001600160f81b03198216108015906111535750603d60f91b6001600160f81b0319821611155b155b801561116f5750600160fd1b6001600160f81b0319821614155b156111805750600095945050505050565b91508061118c81612c46565b91505061105f565b506001949350505050565b6001600160a01b0382163314156111f85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106ba565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61126e3383611903565b61128a5760405162461bcd60e51b81526004016106ba90612c7d565b61129684848484611cb9565b50505050565b601054610100900460ff166112ee5760405162461bcd60e51b81526020600482015260186024820152772a37b5b2b7103737ba1030bb30b4b630b13632903cb2ba1760411b60448201526064016106ba565b601554600b54604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561133e57600080fd5b505af1158015611352573d6000803e3d6000fd5b5050505061085e8282611cec565b6000818152600260205260409020546060906001600160a01b03166113df5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106ba565b60006113e9612011565b905060008151116114095760405180602001604052806000815250611434565b8061141384612020565b604051602001611424929190612d20565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146114655760405162461bcd60e51b81526004016106ba90612bfb565b6010805460ff19811660ff90911615179055565b60105460ff166114c45760405162461bcd60e51b815260206004820152601660248201527521b630b4b6b4b733903737ba1037b832b7103cb2ba1760511b60448201526064016106ba565b612710856114d160085490565b6114db9190612d4f565b11156115295760405162461bcd60e51b815260206004820152601760248201527f457863656564696e6720737570706c79206c696d69742e00000000000000000060448201526064016106ba565b60408051602081018690526bffffffffffffffffffffffff193360601b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506115b483838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061211e565b6115f95760405162461bcd60e51b8152602060048201526016602482015275496e76616c6964206d65726b6c652070726f6f66202160501b60448201526064016106ba565b336000908152601160205260409020548490611616908890612d4f565b11156116645760405162461bcd60e51b815260206004820152601760248201527f4d6f7265207468616e20656c696769626c6520666f722e00000000000000000060448201526064016106ba565b6014546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156116a757600080fd5b505afa1580156116bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116df9190612d67565b336000908152601160205260409020546116fa908890612d4f565b11156117485760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f756768206c6f7374626f797320696e2077616c6c65742e000060448201526064016106ba565b60005b8681101561178757600061175e60085490565b90506127108110156117745761177433826118e9565b508061177f81612c46565b91505061174b565b50336000908152601160205260409020546117a3908790612d4f565b33600090815260116020526040902055505050505050565b600a546001600160a01b031633146117e55760405162461bcd60e51b81526004016106ba90612bfb565b6001600160a01b03811661184a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ba565b61185381611c67565b50565b60006001600160e01b0319821663780e9d6360e01b14806105ad57506105ad826121cd565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b082610c9e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61085e82826040518060200160405280600081525061221d565b6000818152600260205260408120546001600160a01b031661197c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106ba565b600061198783610c9e565b9050806001600160a01b0316846001600160a01b031614806119c25750836001600160a01b03166119b784610645565b6001600160a01b0316145b806119f257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611a0d82610c9e565b6001600160a01b031614611a755760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106ba565b6001600160a01b038216611ad75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106ba565b611ae2838383612250565b611aed60008261187b565b6001600160a01b0383166000908152600360205260408120805460019290611b16908490612d09565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b44908490612d4f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611bb083610c9e565b9050336001600160a01b03821614611c0a5760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f206e6f74206f776e207468697320746f6b656e2e00000000000060448201526064016106ba565b6000838152600f602090815260409091208351611c2992850190612730565b50827fbe3e2fc72ea4bd0d860e908b1ee27aa9856809e62a75bfc0cb7f04b5d791873d83604051611c5a9190612854565b60405180910390a2505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611cc48484846119fa565b611cd08484848461225b565b6112965760405162461bcd60e51b81526004016106ba90612d80565b6000611cf783610c9e565b9050336001600160a01b03821614611d515760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f206e6f74206f776e207468697320746f6b656e2e00000000000060448201526064016106ba565b611d5a82610f90565b1515600114611d9b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103730b6b29760991b60448201526064016106ba565b6000838152600d6020526040908190209051600291611db991612dd2565b602060405180830381855afa158015611dd6573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611df99190612d67565b600283604051611e099190612c61565b602060405180830381855afa158015611e26573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611e499190612d67565b1415611ea35760405162461bcd60e51b8152602060048201526024808201527f4e6577206e616d652069732073616d65206173207468652063757272656e742060448201526337b7329760e11b60648201526084016106ba565b611eac826108ae565b15611ef25760405162461bcd60e51b81526020600482015260166024820152752730b6b29030b63932b0b23c903932b9b2b93b32b21760511b60448201526064016106ba565b6000838152600d602052604081208054611f0b90612bc0565b90501115611fb6576000838152600d602052604090208054611fb69190611f3190612bc0565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5d90612bc0565b8015611faa5780601f10611f7f57610100808354040283529160200191611faa565b820191906000526020600020905b815481529060010190602001808311611f8d57829003601f168201915b5050505050600061235d565b611fc182600161235d565b6000838152600d602090815260409091208351611fe092850190612730565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b83604051611c5a9190612854565b6060601380546105c290612bc0565b6060816120445750506040805180820190915260018152600360fc1b602082015290565b8160005b811561206e578061205881612c46565b91506120679050600a83612e84565b9150612048565b60008167ffffffffffffffff811115612089576120896128e1565b6040519080825280601f01601f1916602001820160405280156120b3576020820181803683370190505b5090505b84156119f2576120c8600183612d09565b91506120d5600a86612e98565b6120e0906030612d4f565b60f81b8183815181106120f5576120f5612cce565b60200101906001600160f81b031916908160001a905350612117600a86612e84565b94506120b7565b600081815b85518110156121c257600086828151811061214057612140612cce565b602002602001015190508083116121825760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506121af565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806121ba81612c46565b915050612123565b509092149392505050565b60006001600160e01b031982166380ac58cd60e01b14806121fe57506001600160e01b03198216635b5e139f60e01b145b806105ad57506301ffc9a760e01b6001600160e01b03198316146105ad565b612227838361239a565b612234600084848461225b565b6107f05760405162461bcd60e51b81526004016106ba90612d80565b6107f08383836124e8565b60006001600160a01b0384163b1561119457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061229f903390899088908890600401612eac565b602060405180830381600087803b1580156122b957600080fd5b505af19250505080156122e9575060408051601f3d908101601f191682019092526122e691810190612ee9565b60015b612343573d808015612317576040519150601f19603f3d011682016040523d82523d6000602084013e61231c565b606091505b50805161233b5760405162461bcd60e51b81526004016106ba90612d80565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119f2565b80600e61236984610e1e565b6040516123769190612c61565b908152604051908190036020019020805491151560ff199092169190911790555050565b6001600160a01b0382166123f05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106ba565b6000818152600260205260409020546001600160a01b0316156124555760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106ba565b61246160008383612250565b6001600160a01b038216600090815260036020526040812080546001929061248a908490612d4f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166125435761253e81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612566565b816001600160a01b0316836001600160a01b0316146125665761256683826125a0565b6001600160a01b03821661257d576107f08161263d565b826001600160a01b0316826001600160a01b0316146107f0576107f082826126ec565b600060016125ad84610d32565b6125b79190612d09565b60008381526007602052604090205490915080821461260a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061264f90600190612d09565b6000838152600960205260408120546008805493945090928490811061267757612677612cce565b90600052602060002001549050806008838154811061269857612698612cce565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806126d0576126d0612f06565b6001900381819060005260206000200160009055905550505050565b60006126f783610d32565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461273c90612bc0565b90600052602060002090601f01602090048101928261275e57600085556127a4565b82601f1061277757805160ff19168380011785556127a4565b828001600101855582156127a4579182015b828111156127a4578251825591602001919060010190612789565b506127b09291506127b4565b5090565b5b808211156127b057600081556001016127b5565b6001600160e01b03198116811461185357600080fd5b6000602082840312156127f157600080fd5b8135611434816127c9565b60005b838110156128175781810151838201526020016127ff565b838111156112965750506000910152565b600081518084526128408160208601602086016127fc565b601f01601f19169290920160200192915050565b6020815260006114346020830184612828565b60006020828403121561287957600080fd5b5035919050565b80356001600160a01b038116811461289757600080fd5b919050565b600080604083850312156128af57600080fd5b6128b883612880565b946020939093013593505050565b6000602082840312156128d857600080fd5b61143482612880565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612912576129126128e1565b604051601f8501601f19908116603f0116810190828211818310171561293a5761293a6128e1565b8160405280935085815286868601111561295357600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261297e57600080fd5b611434838335602085016128f7565b60006020828403121561299f57600080fd5b813567ffffffffffffffff8111156129b657600080fd5b6119f28482850161296d565b6000806000606084860312156129d757600080fd5b6129e084612880565b92506129ee60208501612880565b9150604084013590509250925092565b60008060408385031215612a1157600080fd5b82359150602083013567ffffffffffffffff811115612a2f57600080fd5b612a3b8582860161296d565b9150509250929050565b60008060408385031215612a5857600080fd5b612a6183612880565b915060208301358015158114612a7657600080fd5b809150509250929050565b60008060008060808587031215612a9757600080fd5b612aa085612880565b9350612aae60208601612880565b925060408501359150606085013567ffffffffffffffff811115612ad157600080fd5b8501601f81018713612ae257600080fd5b612af1878235602084016128f7565b91505092959194509250565b60008060408385031215612b1057600080fd5b612b1983612880565b9150612b2760208401612880565b90509250929050565b600080600080600060808688031215612b4857600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115612b7557600080fd5b818801915088601f830112612b8957600080fd5b813581811115612b9857600080fd5b8960208260051b8501011115612bad57600080fd5b9699959850939650602001949392505050565b600181811c90821680612bd457607f821691505b60208210811415612bf557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c5a57612c5a612c30565b5060010190565b60008251612c738184602087016127fc565b9190910192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff03821115612d0157612d01612c30565b019392505050565b600082821015612d1b57612d1b612c30565b500390565b60008351612d328184602088016127fc565b835190830190612d468183602088016127fc565b01949350505050565b60008219821115612d6257612d62612c30565b500190565b600060208284031215612d7957600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600080835481600182811c915080831680612dee57607f831692505b6020808410821415612e0e57634e487b7160e01b86526022600452602486fd5b818015612e225760018114612e3357612e60565b60ff19861689528489019650612e60565b60008a81526020902060005b86811015612e585781548b820152908501908301612e3f565b505084890196505b509498975050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082612e9357612e93612e6e565b500490565b600082612ea757612ea7612e6e565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612edf90830184612828565b9695505050505050565b600060208284031215612efb57600080fd5b8151611434816127c9565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220bb2e48cd804b50dc5300601df4a8034cdedaa681d1ca2dbaa70e2ccd5f9a683264736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000c1a1e381389cb927f1d57511e144b644ef0c638500000000000000000000000000000000000000000000000000000000000000084c6f73746769726c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084c4f53544749524c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f6c6f7374626f792e696f2f00000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c80635d9d65c1116101465780639ffdb65a116100c3578063c6788bdd11610087578063c6788bdd14610505578063c87b56dd14610525578063d112974514610538578063e985e9c514610540578063ea25e1761461057c578063f2fde38b1461058f57600080fd5b80639ffdb65a146104a6578063a22cb465146104b9578063ae2852ef146104cc578063b88d4fde146104df578063c39cbef1146104f257600080fd5b80637b73be211161010a5780637b73be2114610454578063833b2014146104675780638da5cb5b1461047a5780639416b4231461048b57806395d89b411461049e57600080fd5b80635d9d65c1146104015780636352211e146104135780636d5224181461042657806370a0823114610439578063715018a61461044c57600080fd5b806323b872dd116101df5780634f6ccce7116101a35780634f6ccce71461039a57806351620572146103ad5780635209f537146103c057806354cf35ed146103c857806355f804b3146103db57806359f2f897146103ee57600080fd5b806323b872dd146103455780632f745c591461035857806342842e0e1461036b57806345ca77381461037e5780634d4265281461038757600080fd5b80630e141a9b116102265780630e141a9b146102f35780630ebe8847146103005780631041217f1461031757806315b56d101461032a57806318160ddd1461033d57600080fd5b806301ffc9a71461026357806306fdde031461028b578063081812fc146102a0578063095ea7b3146102cb5780630de1d215146102e0575b600080fd5b6102766102713660046127df565b6105a2565b60405190151581526020015b60405180910390f35b6102936105b3565b6040516102829190612854565b6102b36102ae366004612867565b610645565b6040516001600160a01b039091168152602001610282565b6102de6102d936600461289c565b6106df565b005b6102de6102ee366004612867565b6107f5565b6010546102769060ff1681565b610309600c5481565b604051908152602001610282565b6102de6103253660046128c6565b610862565b61027661033836600461298d565b6108ae565b600854610309565b6102de6103533660046129c2565b6108e1565b61030961036636600461289c565b610912565b6102de6103793660046129c2565b6109a8565b610309600b5481565b6102de6103953660046129fe565b6109c3565b6103096103a8366004612867565b610a87565b6102de6103bb366004612867565b610b1a565b6102de610b49565b6102de6103d6366004612867565b610b90565b6102de6103e936600461298d565b610bbf565b6102936103fc366004612867565b610bfc565b60105461027690610100900460ff1681565b6102b3610421366004612867565b610c9e565b610293610434366004612867565b610d15565b6103096104473660046128c6565b610d32565b6102de610db9565b6102de610462366004612867565b610def565b6015546102b3906001600160a01b031681565b600a546001600160a01b03166102b3565b61029361049936600461298d565b610e1e565b610293610f81565b6102766104b436600461298d565b610f90565b6102de6104c7366004612a45565b61119f565b6014546102b3906001600160a01b031681565b6102de6104ed366004612a81565b611264565b6102de6105003660046129fe565b61129c565b6103096105133660046128c6565b60116020526000908152604090205481565b610293610533366004612867565b611360565b6102de61143b565b61027661054e366004612afd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102de61058a366004612b30565b611479565b6102de61059d3660046128c6565b6117bb565b60006105ad82611856565b92915050565b6060600080546105c290612bc0565b80601f01602080910402602001604051908101604052809291908181526020018280546105ee90612bc0565b801561063b5780601f106106105761010080835404028352916020019161063b565b820191906000526020600020905b81548152906001019060200180831161061e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106c35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106ea82610c9e565b9050806001600160a01b0316836001600160a01b031614156107585760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106ba565b336001600160a01b03821614806107745750610774813361054e565b6107e65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106ba565b6107f0838361187b565b505050565b600a546001600160a01b0316331461081f5760405162461bcd60e51b81526004016106ba90612bfb565b60005b8181101561085e57600061083560085490565b905061271081101561084b5761084b33826118e9565b508061085681612c46565b915050610822565b5050565b600a546001600160a01b0316331461088c5760405162461bcd60e51b81526004016106ba90612bfb565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6000600e6108bb83610e1e565b6040516108c89190612c61565b9081526040519081900360200190205460ff1692915050565b6108eb3382611903565b6109075760405162461bcd60e51b81526004016106ba90612c7d565b6107f08383836119fa565b600061091d83610d32565b821061097f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016106ba565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6107f083838360405180602001604052806000815250611264565b601054610100900460ff16610a155760405162461bcd60e51b81526020600482015260186024820152772a37b5b2b7103737ba1030bb30b4b630b13632903cb2ba1760411b60448201526064016106ba565b601554600c54604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015610a6557600080fd5b505af1158015610a79573d6000803e3d6000fd5b5050505061085e8282611ba5565b6000610a9260085490565b8210610af55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016106ba565b60088281548110610b0857610b08612cce565b90600052602060002001549050919050565b600a546001600160a01b03163314610b445760405162461bcd60e51b81526004016106ba90612bfb565b601255565b600a546001600160a01b03163314610b735760405162461bcd60e51b81526004016106ba90612bfb565b6010805461ff001981166101009182900460ff1615909102179055565b600a546001600160a01b03163314610bba5760405162461bcd60e51b81526004016106ba90612bfb565b600c55565b600a546001600160a01b03163314610be95760405162461bcd60e51b81526004016106ba90612bfb565b805161085e906013906020840190612730565b6000818152600f60205260409020805460609190610c1990612bc0565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4590612bc0565b8015610c925780601f10610c6757610100808354040283529160200191610c92565b820191906000526020600020905b815481529060010190602001808311610c7557829003601f168201915b50505050509050919050565b6000818152600260205260408120546001600160a01b0316806105ad5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106ba565b6000818152600d60205260409020805460609190610c1990612bc0565b60006001600160a01b038216610d9d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106ba565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610de35760405162461bcd60e51b81526004016106ba90612bfb565b610ded6000611c67565b565b600a546001600160a01b03163314610e195760405162461bcd60e51b81526004016106ba90612bfb565b600b55565b606060008290506000815167ffffffffffffffff811115610e4157610e416128e1565b6040519080825280601f01601f191660200182016040528015610e6b576020820181803683370190505b50905060005b8251811015610f79576041838281518110610e8e57610e8e612cce565b016020015160f81c10801590610ebe5750605a838281518110610eb357610eb3612cce565b016020015160f81c11155b15610f2057828181518110610ed557610ed5612cce565b602001015160f81c60f81b60f81c6020610eef9190612ce4565b60f81b828281518110610f0457610f04612cce565b60200101906001600160f81b031916908160001a905350610f67565b828181518110610f3257610f32612cce565b602001015160f81c60f81b828281518110610f4f57610f4f612cce565b60200101906001600160f81b031916908160001a9053505b80610f7181612c46565b915050610e71565b509392505050565b6060600180546105c290612bc0565b600080829050600181511015610fa95750600092915050565b601981511115610fbc5750600092915050565b80600081518110610fcf57610fcf612cce565b6020910101516001600160f81b031916600160fd1b1415610ff35750600092915050565b80600182516110029190612d09565b8151811061101257611012612cce565b6020910101516001600160f81b031916600160fd1b14156110365750600092915050565b60008160008151811061104b5761104b612cce565b01602001516001600160f81b031916905060005b825181101561119457600083828151811061107c5761107c612cce565b01602001516001600160f81b0319169050600160fd1b811480156110ad5750600160fd1b6001600160f81b03198416145b156110be5750600095945050505050565b600360fc1b6001600160f81b03198216108015906110ea5750603960f81b6001600160f81b0319821611155b1580156111205750604160f81b6001600160f81b031982161080159061111e5750602d60f91b6001600160f81b0319821611155b155b80156111555750606160f81b6001600160f81b03198216108015906111535750603d60f91b6001600160f81b0319821611155b155b801561116f5750600160fd1b6001600160f81b0319821614155b156111805750600095945050505050565b91508061118c81612c46565b91505061105f565b506001949350505050565b6001600160a01b0382163314156111f85760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106ba565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61126e3383611903565b61128a5760405162461bcd60e51b81526004016106ba90612c7d565b61129684848484611cb9565b50505050565b601054610100900460ff166112ee5760405162461bcd60e51b81526020600482015260186024820152772a37b5b2b7103737ba1030bb30b4b630b13632903cb2ba1760411b60448201526064016106ba565b601554600b54604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561133e57600080fd5b505af1158015611352573d6000803e3d6000fd5b5050505061085e8282611cec565b6000818152600260205260409020546060906001600160a01b03166113df5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106ba565b60006113e9612011565b905060008151116114095760405180602001604052806000815250611434565b8061141384612020565b604051602001611424929190612d20565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146114655760405162461bcd60e51b81526004016106ba90612bfb565b6010805460ff19811660ff90911615179055565b60105460ff166114c45760405162461bcd60e51b815260206004820152601660248201527521b630b4b6b4b733903737ba1037b832b7103cb2ba1760511b60448201526064016106ba565b612710856114d160085490565b6114db9190612d4f565b11156115295760405162461bcd60e51b815260206004820152601760248201527f457863656564696e6720737570706c79206c696d69742e00000000000000000060448201526064016106ba565b60408051602081018690526bffffffffffffffffffffffff193360601b1691810191909152605481018490526000906074016040516020818303038152906040528051906020012090506115b483838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061211e565b6115f95760405162461bcd60e51b8152602060048201526016602482015275496e76616c6964206d65726b6c652070726f6f66202160501b60448201526064016106ba565b336000908152601160205260409020548490611616908890612d4f565b11156116645760405162461bcd60e51b815260206004820152601760248201527f4d6f7265207468616e20656c696769626c6520666f722e00000000000000000060448201526064016106ba565b6014546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156116a757600080fd5b505afa1580156116bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116df9190612d67565b336000908152601160205260409020546116fa908890612d4f565b11156117485760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f756768206c6f7374626f797320696e2077616c6c65742e000060448201526064016106ba565b60005b8681101561178757600061175e60085490565b90506127108110156117745761177433826118e9565b508061177f81612c46565b91505061174b565b50336000908152601160205260409020546117a3908790612d4f565b33600090815260116020526040902055505050505050565b600a546001600160a01b031633146117e55760405162461bcd60e51b81526004016106ba90612bfb565b6001600160a01b03811661184a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ba565b61185381611c67565b50565b60006001600160e01b0319821663780e9d6360e01b14806105ad57506105ad826121cd565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b082610c9e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61085e82826040518060200160405280600081525061221d565b6000818152600260205260408120546001600160a01b031661197c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106ba565b600061198783610c9e565b9050806001600160a01b0316846001600160a01b031614806119c25750836001600160a01b03166119b784610645565b6001600160a01b0316145b806119f257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611a0d82610c9e565b6001600160a01b031614611a755760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106ba565b6001600160a01b038216611ad75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106ba565b611ae2838383612250565b611aed60008261187b565b6001600160a01b0383166000908152600360205260408120805460019290611b16908490612d09565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b44908490612d4f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611bb083610c9e565b9050336001600160a01b03821614611c0a5760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f206e6f74206f776e207468697320746f6b656e2e00000000000060448201526064016106ba565b6000838152600f602090815260409091208351611c2992850190612730565b50827fbe3e2fc72ea4bd0d860e908b1ee27aa9856809e62a75bfc0cb7f04b5d791873d83604051611c5a9190612854565b60405180910390a2505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611cc48484846119fa565b611cd08484848461225b565b6112965760405162461bcd60e51b81526004016106ba90612d80565b6000611cf783610c9e565b9050336001600160a01b03821614611d515760405162461bcd60e51b815260206004820152601a60248201527f596f7520646f206e6f74206f776e207468697320746f6b656e2e00000000000060448201526064016106ba565b611d5a82610f90565b1515600114611d9b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103730b6b29760991b60448201526064016106ba565b6000838152600d6020526040908190209051600291611db991612dd2565b602060405180830381855afa158015611dd6573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611df99190612d67565b600283604051611e099190612c61565b602060405180830381855afa158015611e26573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611e499190612d67565b1415611ea35760405162461bcd60e51b8152602060048201526024808201527f4e6577206e616d652069732073616d65206173207468652063757272656e742060448201526337b7329760e11b60648201526084016106ba565b611eac826108ae565b15611ef25760405162461bcd60e51b81526020600482015260166024820152752730b6b29030b63932b0b23c903932b9b2b93b32b21760511b60448201526064016106ba565b6000838152600d602052604081208054611f0b90612bc0565b90501115611fb6576000838152600d602052604090208054611fb69190611f3190612bc0565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5d90612bc0565b8015611faa5780601f10611f7f57610100808354040283529160200191611faa565b820191906000526020600020905b815481529060010190602001808311611f8d57829003601f168201915b5050505050600061235d565b611fc182600161235d565b6000838152600d602090815260409091208351611fe092850190612730565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b83604051611c5a9190612854565b6060601380546105c290612bc0565b6060816120445750506040805180820190915260018152600360fc1b602082015290565b8160005b811561206e578061205881612c46565b91506120679050600a83612e84565b9150612048565b60008167ffffffffffffffff811115612089576120896128e1565b6040519080825280601f01601f1916602001820160405280156120b3576020820181803683370190505b5090505b84156119f2576120c8600183612d09565b91506120d5600a86612e98565b6120e0906030612d4f565b60f81b8183815181106120f5576120f5612cce565b60200101906001600160f81b031916908160001a905350612117600a86612e84565b94506120b7565b600081815b85518110156121c257600086828151811061214057612140612cce565b602002602001015190508083116121825760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506121af565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806121ba81612c46565b915050612123565b509092149392505050565b60006001600160e01b031982166380ac58cd60e01b14806121fe57506001600160e01b03198216635b5e139f60e01b145b806105ad57506301ffc9a760e01b6001600160e01b03198316146105ad565b612227838361239a565b612234600084848461225b565b6107f05760405162461bcd60e51b81526004016106ba90612d80565b6107f08383836124e8565b60006001600160a01b0384163b1561119457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061229f903390899088908890600401612eac565b602060405180830381600087803b1580156122b957600080fd5b505af19250505080156122e9575060408051601f3d908101601f191682019092526122e691810190612ee9565b60015b612343573d808015612317576040519150601f19603f3d011682016040523d82523d6000602084013e61231c565b606091505b50805161233b5760405162461bcd60e51b81526004016106ba90612d80565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119f2565b80600e61236984610e1e565b6040516123769190612c61565b908152604051908190036020019020805491151560ff199092169190911790555050565b6001600160a01b0382166123f05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106ba565b6000818152600260205260409020546001600160a01b0316156124555760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106ba565b61246160008383612250565b6001600160a01b038216600090815260036020526040812080546001929061248a908490612d4f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166125435761253e81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612566565b816001600160a01b0316836001600160a01b0316146125665761256683826125a0565b6001600160a01b03821661257d576107f08161263d565b826001600160a01b0316826001600160a01b0316146107f0576107f082826126ec565b600060016125ad84610d32565b6125b79190612d09565b60008381526007602052604090205490915080821461260a576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061264f90600190612d09565b6000838152600960205260408120546008805493945090928490811061267757612677612cce565b90600052602060002001549050806008838154811061269857612698612cce565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806126d0576126d0612f06565b6001900381819060005260206000200160009055905550505050565b60006126f783610d32565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461273c90612bc0565b90600052602060002090601f01602090048101928261275e57600085556127a4565b82601f1061277757805160ff19168380011785556127a4565b828001600101855582156127a4579182015b828111156127a4578251825591602001919060010190612789565b506127b09291506127b4565b5090565b5b808211156127b057600081556001016127b5565b6001600160e01b03198116811461185357600080fd5b6000602082840312156127f157600080fd5b8135611434816127c9565b60005b838110156128175781810151838201526020016127ff565b838111156112965750506000910152565b600081518084526128408160208601602086016127fc565b601f01601f19169290920160200192915050565b6020815260006114346020830184612828565b60006020828403121561287957600080fd5b5035919050565b80356001600160a01b038116811461289757600080fd5b919050565b600080604083850312156128af57600080fd5b6128b883612880565b946020939093013593505050565b6000602082840312156128d857600080fd5b61143482612880565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612912576129126128e1565b604051601f8501601f19908116603f0116810190828211818310171561293a5761293a6128e1565b8160405280935085815286868601111561295357600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261297e57600080fd5b611434838335602085016128f7565b60006020828403121561299f57600080fd5b813567ffffffffffffffff8111156129b657600080fd5b6119f28482850161296d565b6000806000606084860312156129d757600080fd5b6129e084612880565b92506129ee60208501612880565b9150604084013590509250925092565b60008060408385031215612a1157600080fd5b82359150602083013567ffffffffffffffff811115612a2f57600080fd5b612a3b8582860161296d565b9150509250929050565b60008060408385031215612a5857600080fd5b612a6183612880565b915060208301358015158114612a7657600080fd5b809150509250929050565b60008060008060808587031215612a9757600080fd5b612aa085612880565b9350612aae60208601612880565b925060408501359150606085013567ffffffffffffffff811115612ad157600080fd5b8501601f81018713612ae257600080fd5b612af1878235602084016128f7565b91505092959194509250565b60008060408385031215612b1057600080fd5b612b1983612880565b9150612b2760208401612880565b90509250929050565b600080600080600060808688031215612b4857600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115612b7557600080fd5b818801915088601f830112612b8957600080fd5b813581811115612b9857600080fd5b8960208260051b8501011115612bad57600080fd5b9699959850939650602001949392505050565b600181811c90821680612bd457607f821691505b60208210811415612bf557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c5a57612c5a612c30565b5060010190565b60008251612c738184602087016127fc565b9190910192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff03821115612d0157612d01612c30565b019392505050565b600082821015612d1b57612d1b612c30565b500390565b60008351612d328184602088016127fc565b835190830190612d468183602088016127fc565b01949350505050565b60008219821115612d6257612d62612c30565b500190565b600060208284031215612d7957600080fd5b5051919050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600080835481600182811c915080831680612dee57607f831692505b6020808410821415612e0e57634e487b7160e01b86526022600452602486fd5b818015612e225760018114612e3357612e60565b60ff19861689528489019650612e60565b60008a81526020902060005b86811015612e585781548b820152908501908301612e3f565b505084890196505b509498975050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082612e9357612e93612e6e565b500490565b600082612ea757612ea7612e6e565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612edf90830184612828565b9695505050505050565b600060208284031215612efb57600080fd5b8151611434816127c9565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220bb2e48cd804b50dc5300601df4a8034cdedaa681d1ca2dbaa70e2ccd5f9a683264736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000c1a1e381389cb927f1d57511e144b644ef0c638500000000000000000000000000000000000000000000000000000000000000084c6f73746769726c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084c4f53544749524c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f6c6f7374626f792e696f2f00000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Lostgirl
Arg [1] : _symbol (string): LOSTGIRL
Arg [2] : _uri (string): https://lostboy.io/
Arg [3] : lostboyAddress (address): 0xc1a1E381389cb927f1d57511E144B644Ef0c6385
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 000000000000000000000000c1a1e381389cb927f1d57511e144b644ef0c6385
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 4c6f73746769726c000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [7] : 4c4f53544749524c000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [9] : 68747470733a2f2f6c6f7374626f792e696f2f00000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.