ERC-721
Overview
Max Total Supply
4,133 LOSTBODY
Holders
996
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 LOSTBODYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LostBody
Compiler Version
v0.8.7+commit.e28d00a7
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; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; interface IBayc { function ownerOf(uint256 tokenId) external view returns (address owner); } contract LostBody is ERC721A, Ownable { using Strings for uint256; enum EPublicMintStatus { CLOSED, PUBLIC_MINT } struct reversemint { address reverseaddress; uint256 mintquantity; } string public baseTokenURI; string public defaultTokenURI; string private _suffix = ".json"; uint256 public maxSupply = 8624; uint256 public publicSalePrice = 0.0066 ether; address public proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; address public Bayc = 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D; mapping(uint256 => bool) public oldlostbodymint; mapping(uint256 => bool) public baycholderinfo; mapping(address => bool) public mintinfo; uint256[] public baycholdermintinfo; uint256 public baycHolderMintQuantity; uint256 public hasMintQuantityByPublic; uint256 public reverseMintQuantity; uint256 public totalFree=2000; EPublicMintStatus public publicMintStatus; constructor( string memory _baseTokenURI ) ERC721A("Find Your LostBody", "LOSTBODY") { baseTokenURI = _baseTokenURI; } modifier callerIsUser() { require(tx.origin == msg.sender, "Must from real wallet address"); _; } function findlostbody_public(uint256 _quantity) external callerIsUser payable { require(publicMintStatus==EPublicMintStatus.PUBLIC_MINT, "Public sale closed"); require(hasMintQuantityByPublic + _quantity <= 7070, "Exceed supply"); require(_quantity <= 4, "Max per TX reached."); require(!mintinfo[msg.sender], "The address mint has been completed"); uint256 _remainFreeQuantity = 0; if (totalFree>hasMintQuantityByPublic){ _remainFreeQuantity=totalFree-hasMintQuantityByPublic; } uint256 _needPayPrice = 0; if (_quantity>_remainFreeQuantity){ _needPayPrice = (_quantity-_remainFreeQuantity)*publicSalePrice; } require(msg.value >= _needPayPrice, "Ether is not enough"); hasMintQuantityByPublic+=_quantity; mintinfo[msg.sender]= true; _safeMint(msg.sender, _quantity); } function findlostbody_baycmint(uint256 _tokenid) external callerIsUser payable { require(publicMintStatus==EPublicMintStatus.PUBLIC_MINT, "Baycholder sale closed"); require(baycHolderMintQuantity <= 24 , "Exceed supply"); require(!oldlostbodymint[_tokenid], "The bayc mint has been completed"); address baycowner = IBayc(Bayc).ownerOf(_tokenid); require(baycowner==msg.sender, "This address is not the holder of this token"); oldlostbodymint[_tokenid]= true; baycHolderMintQuantity += 1; baycholdermintinfo.push(_tokenid); _safeMint(msg.sender, 1); } function findlostbody_oldlostbodymint(uint256[] memory _tokenids) external callerIsUser payable { require(publicMintStatus==EPublicMintStatus.PUBLIC_MINT, "Baycholder sale closed"); for (uint i=0;i<_tokenids.length;i++){ address oldowner = IBayc(0x655c6Af94919E0aeE453A35D1565244A52f33bf1).ownerOf(_tokenids[i]); require(!oldlostbodymint[_tokenids[i]], "The Old lostbody replacement has been completed"); require(oldowner==msg.sender, "The address is not the holder of this token"); oldlostbodymint[_tokenids[i]]= true; } uint _quantity = _tokenids.length; _safeMint(msg.sender, _quantity); } function findlostbody_reversemint(reversemint[] memory _reversemintinfos) external callerIsUser payable { require(publicMintStatus==EPublicMintStatus.PUBLIC_MINT, "Baycholder sale closed"); for (uint256 i=0;i<_reversemintinfos.length;i++){ require(reverseMintQuantity+_reversemintinfos[i].mintquantity <= 340 , "Exceed supply"); reverseMintQuantity+=_reversemintinfos[i].mintquantity; _safeMint(_reversemintinfos[i].reverseaddress, _reversemintinfos[i].mintquantity); } } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: Nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, tokenId.toString(), _suffix ) ) : defaultTokenURI; } function _baseURI() internal view override returns (string memory) { return baseTokenURI; } function setBaseURI(string calldata _baseTokenURI) external onlyOwner { baseTokenURI = _baseTokenURI; } function setDefaultURI(string calldata _defaultURI) external onlyOwner { defaultTokenURI = _defaultURI; } function setPublicMintStatus(uint256 status)external onlyOwner{ publicMintStatus = EPublicMintStatus(status); } function setPublicPrice(uint256 mintprice)external onlyOwner{ publicSalePrice = mintprice; } function setPublicFree(uint256 freemint)external onlyOwner{ totalFree = freemint; } function withdrawMoney() external onlyOwner { (bool success,) = msg.sender.call{value : address(this).balance}(""); require(success, "Transfer failed."); } function isApprovedForAll(address owner, address operator) public view override returns (bool) { ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); return proxyRegistryAddress == operator || address(proxyRegistry.proxies(owner)) == operator || super.isApprovedForAll(owner, operator); } } contract OwnableDelegateProxy {} /** * Used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users */ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev See {IERC721Enumerable-totalSupply}. * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { if (owner == address(0)) revert AuxQueryForZeroAddress(); return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { if (owner == address(0)) revert AuxQueryForZeroAddress(); _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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 override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _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 { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @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 { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) 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) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { 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)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "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":"_baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"Bayc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baycHolderMintQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"baycholderinfo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"baycholdermintinfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenid","type":"uint256"}],"name":"findlostbody_baycmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenids","type":"uint256[]"}],"name":"findlostbody_oldlostbodymint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"findlostbody_public","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"reverseaddress","type":"address"},{"internalType":"uint256","name":"mintquantity","type":"uint256"}],"internalType":"struct LostBody.reversemint[]","name":"_reversemintinfos","type":"tuple[]"}],"name":"findlostbody_reversemint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasMintQuantityByPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintinfo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"oldlostbodymint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintStatus","outputs":[{"internalType":"enum LostBody.EPublicMintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reverseMintQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_defaultURI","type":"string"}],"name":"setDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"freemint","type":"uint256"}],"name":"setPublicFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"status","type":"uint256"}],"name":"setPublicMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintprice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526005608081905264173539b7b760d91b60a09081526200002891600b9190620001a9565b506121b0600c55661772aa3f848000600d55600e80546001600160a01b031990811673a5409ec958c83c3f309868babaca7c86dcb077c117909155600f805490911673bc4ca0eda7647a8ab7c2061c2e118a18a936f13d1790556107d06017553480156200009557600080fd5b5060405162002cb138038062002cb1833981016040819052620000b8916200024f565b604080518082018252601281527146696e6420596f7572204c6f7374426f647960701b6020808301918252835180850190945260088452674c4f5354424f445960c01b9084015281519192916200011291600291620001a9565b50805162000128906003906020840190620001a9565b505060008055506200013a3362000157565b80516200014f906009906020840190620001a9565b50506200037e565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b7906200032b565b90600052602060002090601f016020900481019282620001db576000855562000226565b82601f10620001f657805160ff191683800117855562000226565b8280016001018555821562000226579182015b828111156200022657825182559160200191906001019062000209565b506200023492915062000238565b5090565b5b8082111562000234576000815560010162000239565b600060208083850312156200026357600080fd5b82516001600160401b03808211156200027b57600080fd5b818501915085601f8301126200029057600080fd5b815181811115620002a557620002a562000368565b604051601f8201601f19908116603f01168101908382118183101715620002d057620002d062000368565b816040528281528886848701011115620002e957600080fd5b600093505b828410156200030d5784840186015181850187015292850192620002ee565b828411156200031f5760008684830101525b98975050505050505050565b600181811c908216806200034057607f821691505b602082108114156200036257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612923806200038e6000396000f3fe6080604052600436106102515760003560e01c80638da5cb5b11610139578063c6275255116100b6578063d5abeb011161007a578063d5abeb01146106ac578063da1b9e08146106c2578063e85b9fef146106e2578063e985e9c514610702578063f2fde38b14610722578063f86f0b4a1461074257600080fd5b8063c627525514610621578063c87b56dd14610641578063cbb95f3614610661578063cd7c032614610677578063d547cfb71461069757600080fd5b8063a5892e10116100fd578063a5892e10146105a6578063a7a2740a146105b9578063ac446002146105cc578063ae3aab3b146105e1578063b88d4fde1461060157600080fd5b80638da5cb5b1461052857806395d89b4114610546578063963bfe121461055b5780639b6860c814610570578063a22cb4651461058657600080fd5b8063333e44e6116101d25780636352211e116101965780636352211e1461046357806366eaa7a014610483578063690efce1146104a357806370a08231146104d3578063715018a6146104f3578063887844611461050857600080fd5b8063333e44e6146103ca57806333849252146103e057806342842e0e146103f357806355f804b3146104135780636334728f1461043357600080fd5b806318160ddd1161021957806318160ddd1461033757806319f51df61461035a57806323b872dd1461036d578063262023701461038d578063284873c0146103b457600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e5578063102f9b2514610307575b600080fd5b34801561026257600080fd5b506102766102713660046123f2565b610758565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a06107aa565b604051610282919061260b565b3480156102b957600080fd5b506102cd6102c836600461249d565b61083c565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b50610305610300366004612267565b610880565b005b34801561031357600080fd5b506102766103223660046120bd565b60126020526000908152604090205460ff1681565b34801561034357600080fd5b50600154600054035b604051908152602001610282565b61030561036836600461249d565b61090e565b34801561037957600080fd5b50610305610388366004612130565b610b53565b34801561039957600080fd5b506018546103a79060ff1681565b60405161028291906125e3565b3480156103c057600080fd5b5061034c60145481565b3480156103d657600080fd5b5061034c60175481565b6103056103ee36600461235b565b610b5e565b3480156103ff57600080fd5b5061030561040e366004612130565b610dd9565b34801561041f57600080fd5b5061030561042e36600461242c565b610df4565b34801561043f57600080fd5b5061027661044e36600461249d565b60106020526000908152604090205460ff1681565b34801561046f57600080fd5b506102cd61047e36600461249d565b610e2a565b34801561048f57600080fd5b5061030561049e36600461249d565b610e3c565b3480156104af57600080fd5b506102766104be36600461249d565b60116020526000908152604090205460ff1681565b3480156104df57600080fd5b5061034c6104ee3660046120bd565b610e6b565b3480156104ff57600080fd5b50610305610eb9565b34801561051457600080fd5b5061034c61052336600461249d565b610eef565b34801561053457600080fd5b506008546001600160a01b03166102cd565b34801561055257600080fd5b506102a0610f10565b34801561056757600080fd5b506102a0610f1f565b34801561057c57600080fd5b5061034c600d5481565b34801561059257600080fd5b506103056105a1366004612234565b610fad565b6103056105b436600461249d565b611043565b6103056105c7366004612293565b611265565b3480156105d857600080fd5b5061030561139e565b3480156105ed57600080fd5b506103056105fc36600461249d565b611456565b34801561060d57600080fd5b5061030561061c366004612171565b6114b5565b34801561062d57600080fd5b5061030561063c36600461249d565b611506565b34801561064d57600080fd5b506102a061065c36600461249d565b611535565b34801561066d57600080fd5b5061034c60155481565b34801561068357600080fd5b50600e546102cd906001600160a01b031681565b3480156106a357600080fd5b506102a0611670565b3480156106b857600080fd5b5061034c600c5481565b3480156106ce57600080fd5b506103056106dd36600461242c565b61167d565b3480156106ee57600080fd5b50600f546102cd906001600160a01b031681565b34801561070e57600080fd5b5061027661071d3660046120f7565b6116b3565b34801561072e57600080fd5b5061030561073d3660046120bd565b611790565b34801561074e57600080fd5b5061034c60165481565b60006001600160e01b031982166380ac58cd60e01b148061078957506001600160e01b03198216635b5e139f60e01b145b806107a457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546107b9906127ea565b80601f01602080910402602001604051908101604052809291908181526020018280546107e5906127ea565b80156108325780601f1061080757610100808354040283529160200191610832565b820191906000526020600020905b81548152906001019060200180831161081557829003601f168201915b5050505050905090565b600061084782611828565b610864576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061088b82610e2a565b9050806001600160a01b0316836001600160a01b031614156108c05760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906108e057506108de81336116b3565b155b156108fe576040516367d9dca160e11b815260040160405180910390fd5b610909838383611853565b505050565b3233146109365760405162461bcd60e51b815260040161092d9061264e565b60405180910390fd5b600160185460ff16600181111561094f5761094f612880565b1461096c5760405162461bcd60e51b815260040161092d9061261e565b6018601454111561098f5760405162461bcd60e51b815260040161092d906126ba565b60008181526010602052604090205460ff16156109ee5760405162461bcd60e51b815260206004820181905260248201527f5468652062617963206d696e7420686173206265656e20636f6d706c65746564604482015260640161092d565b600f546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e9060240160206040518083038186803b158015610a3357600080fd5b505afa158015610a47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6b91906120da565b90506001600160a01b0381163314610ada5760405162461bcd60e51b815260206004820152602c60248201527f546869732061646472657373206973206e6f742074686520686f6c646572206f60448201526b33103a3434b9903a37b5b2b760a11b606482015260840161092d565b6000828152601060205260408120805460ff191660019081179091556014805491929091610b0990849061275c565b909155505060138054600181810183556000929092527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09001839055610b4f9033906118af565b5050565b6109098383836118c9565b323314610b7d5760405162461bcd60e51b815260040161092d9061264e565b600160185460ff166001811115610b9657610b96612880565b14610bb35760405162461bcd60e51b815260040161092d9061261e565b60005b8151811015610dcc57600073655c6af94919e0aee453a35d1565244a52f33bf16001600160a01b0316636352211e848481518110610bf657610bf6612896565b60200260200101516040518263ffffffff1660e01b8152600401610c1c91815260200190565b60206040518083038186803b158015610c3457600080fd5b505afa158015610c48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6c91906120da565b905060106000848481518110610c8457610c84612896565b60209081029190910181015182528101919091526040016000205460ff1615610d075760405162461bcd60e51b815260206004820152602f60248201527f546865204f6c64206c6f7374626f6479207265706c6163656d656e742068617360448201526e081899595b8818dbdb5c1b195d1959608a1b606482015260840161092d565b6001600160a01b0381163314610d735760405162461bcd60e51b815260206004820152602b60248201527f5468652061646472657373206973206e6f742074686520686f6c646572206f6660448201526a103a3434b9903a37b5b2b760a91b606482015260840161092d565b600160106000858581518110610d8b57610d8b612896565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550508080610dc490612825565b915050610bb6565b508051610b4f33826118af565b610909838383604051806020016040528060008152506114b5565b6008546001600160a01b03163314610e1e5760405162461bcd60e51b815260040161092d90612685565b61090960098383612024565b6000610e3582611add565b5192915050565b6008546001600160a01b03163314610e665760405162461bcd60e51b815260040161092d90612685565b601755565b60006001600160a01b038216610e94576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610ee35760405162461bcd60e51b815260040161092d90612685565b610eed6000611bf7565b565b60138181548110610eff57600080fd5b600091825260209091200154905081565b6060600380546107b9906127ea565b600a8054610f2c906127ea565b80601f0160208091040260200160405190810160405280929190818152602001828054610f58906127ea565b8015610fa55780601f10610f7a57610100808354040283529160200191610fa5565b820191906000526020600020905b815481529060010190602001808311610f8857829003601f168201915b505050505081565b6001600160a01b038216331415610fd75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3233146110625760405162461bcd60e51b815260040161092d9061264e565b600160185460ff16600181111561107b5761107b612880565b146110bd5760405162461bcd60e51b8152602060048201526012602482015271141d589b1a58c81cd85b194818db1bdcd95960721b604482015260640161092d565b611b9e816015546110ce919061275c565b11156110ec5760405162461bcd60e51b815260040161092d906126ba565b60048111156111335760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b604482015260640161092d565b3360009081526012602052604090205460ff161561119f5760405162461bcd60e51b815260206004820152602360248201527f5468652061646472657373206d696e7420686173206265656e20636f6d706c656044820152621d195960ea1b606482015260840161092d565b600060155460175411156111c0576015546017546111bd91906127a7565b90505b6000818311156111e457600d546111d783856127a7565b6111e19190612788565b90505b8034101561122a5760405162461bcd60e51b815260206004820152601360248201527208ae8d0cae440d2e640dcdee840cadcdeeaced606b1b604482015260640161092d565b826015600082825461123c919061275c565b9091555050336000818152601260205260409020805460ff1916600117905561090990846118af565b3233146112845760405162461bcd60e51b815260040161092d9061264e565b600160185460ff16600181111561129d5761129d612880565b146112ba5760405162461bcd60e51b815260040161092d9061261e565b60005b8151811015610b4f576101548282815181106112db576112db612896565b6020026020010151602001516016546112f4919061275c565b11156113125760405162461bcd60e51b815260040161092d906126ba565b81818151811061132457611324612896565b60200260200101516020015160166000828254611341919061275c565b9250508190555061138c82828151811061135d5761135d612896565b60200260200101516000015183838151811061137b5761137b612896565b6020026020010151602001516118af565b8061139681612825565b9150506112bd565b6008546001600160a01b031633146113c85760405162461bcd60e51b815260040161092d90612685565b604051600090339047908381818185875af1925050503d806000811461140a576040519150601f19603f3d011682016040523d82523d6000602084013e61140f565b606091505b50509050806114535760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161092d565b50565b6008546001600160a01b031633146114805760405162461bcd60e51b815260040161092d90612685565b80600181111561149257611492612880565b6018805460ff1916600183818111156114ad576114ad612880565b021790555050565b6114c08484846118c9565b6001600160a01b0383163b151580156114e257506114e084848484611c49565b155b15611500576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146115305760405162461bcd60e51b815260040161092d90612685565b600d55565b606061154082611828565b6115965760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b606482015260840161092d565b60006115a0611d40565b9050600081511161163b57600a80546115b8906127ea565b80601f01602080910402602001604051908101604052809291908181526020018280546115e4906127ea565b80156116315780601f1061160657610100808354040283529160200191611631565b820191906000526020600020905b81548152906001019060200180831161161457829003601f168201915b5050505050611669565b8061164584611d4f565b600b604051602001611659939291906124e2565b6040516020818303038152906040525b9392505050565b60098054610f2c906127ea565b6008546001600160a01b031633146116a75760405162461bcd60e51b815260040161092d90612685565b610909600a8383612024565b600e546000906001600160a01b03908116908316811480611758575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561171557600080fd5b505afa158015611729573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174d91906120da565b6001600160a01b0316145b8061178857506001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146117ba5760405162461bcd60e51b815260040161092d90612685565b6001600160a01b03811661181f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092d565b61145381611bf7565b60008054821080156107a4575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b4f828260405180602001604052806000815250611e4c565b60006118d482611add565b80519091506000906001600160a01b0316336001600160a01b031614806119025750815161190290336116b3565b8061191d5750336119128461083c565b6001600160a01b0316145b90508061193d57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146119725760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661199957604051633a954ecd60e21b815260040160405180910390fd5b6119a96000848460000151611853565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611a9357600054811015611a9357825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281600054811015611bde57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611bdc5780516001600160a01b031615611b73579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611bd7579392505050565b611b73565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c7e9033908990889088906004016125a6565b602060405180830381600087803b158015611c9857600080fd5b505af1925050508015611cc8575060408051601f3d908101601f19168201909252611cc59181019061240f565b60015b611d23573d808015611cf6576040519150601f19603f3d011682016040523d82523d6000602084013e611cfb565b606091505b508051611d1b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600980546107b9906127ea565b606081611d735750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d9d5780611d8781612825565b9150611d969050600a83612774565b9150611d77565b6000816001600160401b03811115611db757611db76128ac565b6040519080825280601f01601f191660200182016040528015611de1576020820181803683370190505b5090505b841561178857611df66001836127a7565b9150611e03600a86612840565b611e0e90603061275c565b60f81b818381518110611e2357611e23612896565b60200101906001600160f81b031916908160001a905350611e45600a86612774565b9450611de5565b61090983838360016000546001600160a01b038516611e7d57604051622e076360e81b815260040160405180910390fd5b83611e9b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611f4c57506001600160a01b0387163b15155b15611fd5575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611f9d6000888480600101955088611c49565b611fba576040516368d2bf6b60e11b815260040160405180910390fd5b80821415611f52578260005414611fd057600080fd5b61201b565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611fd6575b50600055611ad6565b828054612030906127ea565b90600052602060002090601f0160209004810192826120525760008555612098565b82601f1061206b5782800160ff19823516178555612098565b82800160010185558215612098579182015b8281111561209857823582559160200191906001019061207d565b506120a49291506120a8565b5090565b5b808211156120a457600081556001016120a9565b6000602082840312156120cf57600080fd5b8135611669816128c2565b6000602082840312156120ec57600080fd5b8151611669816128c2565b6000806040838503121561210a57600080fd5b8235612115816128c2565b91506020830135612125816128c2565b809150509250929050565b60008060006060848603121561214557600080fd5b8335612150816128c2565b92506020840135612160816128c2565b929592945050506040919091013590565b6000806000806080858703121561218757600080fd5b8435612192816128c2565b93506020858101356121a3816128c2565b93506040860135925060608601356001600160401b03808211156121c657600080fd5b818801915088601f8301126121da57600080fd5b8135818111156121ec576121ec6128ac565b6121fe601f8201601f19168501612709565b9150808252898482850101111561221457600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561224757600080fd5b8235612252816128c2565b91506020830135801515811461212557600080fd5b6000806040838503121561227a57600080fd5b8235612285816128c2565b946020939093013593505050565b600060208083850312156122a657600080fd5b82356001600160401b038111156122bc57600080fd5b8301601f810185136122cd57600080fd5b80356122e06122db82612739565b612709565b80828252848201915084840188868560061b870101111561230057600080fd5b60009450845b8481101561234d57604080838c03121561231e578687fd5b6123266126e1565b8335612331816128c2565b8152838901358982015285529387019390910190600101612306565b509098975050505050505050565b6000602080838503121561236e57600080fd5b82356001600160401b0381111561238457600080fd5b8301601f8101851361239557600080fd5b80356123a36122db82612739565b80828252848201915084840188868560051b87010111156123c357600080fd5b600094505b838510156123e65780358352600194909401939185019185016123c8565b50979650505050505050565b60006020828403121561240457600080fd5b8135611669816128d7565b60006020828403121561242157600080fd5b8151611669816128d7565b6000806020838503121561243f57600080fd5b82356001600160401b038082111561245657600080fd5b818501915085601f83011261246a57600080fd5b81358181111561247957600080fd5b86602082850101111561248b57600080fd5b60209290920196919550909350505050565b6000602082840312156124af57600080fd5b5035919050565b600081518084526124ce8160208601602086016127be565b601f01601f19169290920160200192915050565b6000845160206124f58285838a016127be565b8551918401916125088184848a016127be565b8554920191600090600181811c908083168061252557607f831692505b85831081141561254357634e487b7160e01b85526022600452602485fd5b808015612557576001811461256857612595565b60ff19851688528388019550612595565b60008b81526020902060005b8581101561258d5781548a820152908401908801612574565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125d9908301846124b6565b9695505050505050565b602081016002831061260557634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061166960208301846124b6565b60208082526016908201527510985e58da1bdb19195c881cd85b194818db1bdcd95960521b604082015260600190565b6020808252601d908201527f4d7573742066726f6d207265616c2077616c6c65742061646472657373000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c45786365656420737570706c7960981b604082015260600190565b604080519081016001600160401b0381118282101715612703576127036128ac565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612731576127316128ac565b604052919050565b60006001600160401b03821115612752576127526128ac565b5060051b60200190565b6000821982111561276f5761276f612854565b500190565b6000826127835761278361286a565b500490565b60008160001904831182151516156127a2576127a2612854565b500290565b6000828210156127b9576127b9612854565b500390565b60005b838110156127d95781810151838201526020016127c1565b838111156115005750506000910152565b600181811c908216806127fe57607f821691505b6020821081141561281f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561283957612839612854565b5060010190565b60008261284f5761284f61286a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461145357600080fd5b6001600160e01b03198116811461145357600080fdfea2646970667358221220694d636ab14f6685856f65a777f8f0fc2cfd092f7cf0b8e5d662ebbdfaf76c1d64736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569687437646b736b70666165786a736e35797a68637a766f7577686e3477737370757168376869726e6265726c74626161707965652f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102515760003560e01c80638da5cb5b11610139578063c6275255116100b6578063d5abeb011161007a578063d5abeb01146106ac578063da1b9e08146106c2578063e85b9fef146106e2578063e985e9c514610702578063f2fde38b14610722578063f86f0b4a1461074257600080fd5b8063c627525514610621578063c87b56dd14610641578063cbb95f3614610661578063cd7c032614610677578063d547cfb71461069757600080fd5b8063a5892e10116100fd578063a5892e10146105a6578063a7a2740a146105b9578063ac446002146105cc578063ae3aab3b146105e1578063b88d4fde1461060157600080fd5b80638da5cb5b1461052857806395d89b4114610546578063963bfe121461055b5780639b6860c814610570578063a22cb4651461058657600080fd5b8063333e44e6116101d25780636352211e116101965780636352211e1461046357806366eaa7a014610483578063690efce1146104a357806370a08231146104d3578063715018a6146104f3578063887844611461050857600080fd5b8063333e44e6146103ca57806333849252146103e057806342842e0e146103f357806355f804b3146104135780636334728f1461043357600080fd5b806318160ddd1161021957806318160ddd1461033757806319f51df61461035a57806323b872dd1461036d578063262023701461038d578063284873c0146103b457600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e5578063102f9b2514610307575b600080fd5b34801561026257600080fd5b506102766102713660046123f2565b610758565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a06107aa565b604051610282919061260b565b3480156102b957600080fd5b506102cd6102c836600461249d565b61083c565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b50610305610300366004612267565b610880565b005b34801561031357600080fd5b506102766103223660046120bd565b60126020526000908152604090205460ff1681565b34801561034357600080fd5b50600154600054035b604051908152602001610282565b61030561036836600461249d565b61090e565b34801561037957600080fd5b50610305610388366004612130565b610b53565b34801561039957600080fd5b506018546103a79060ff1681565b60405161028291906125e3565b3480156103c057600080fd5b5061034c60145481565b3480156103d657600080fd5b5061034c60175481565b6103056103ee36600461235b565b610b5e565b3480156103ff57600080fd5b5061030561040e366004612130565b610dd9565b34801561041f57600080fd5b5061030561042e36600461242c565b610df4565b34801561043f57600080fd5b5061027661044e36600461249d565b60106020526000908152604090205460ff1681565b34801561046f57600080fd5b506102cd61047e36600461249d565b610e2a565b34801561048f57600080fd5b5061030561049e36600461249d565b610e3c565b3480156104af57600080fd5b506102766104be36600461249d565b60116020526000908152604090205460ff1681565b3480156104df57600080fd5b5061034c6104ee3660046120bd565b610e6b565b3480156104ff57600080fd5b50610305610eb9565b34801561051457600080fd5b5061034c61052336600461249d565b610eef565b34801561053457600080fd5b506008546001600160a01b03166102cd565b34801561055257600080fd5b506102a0610f10565b34801561056757600080fd5b506102a0610f1f565b34801561057c57600080fd5b5061034c600d5481565b34801561059257600080fd5b506103056105a1366004612234565b610fad565b6103056105b436600461249d565b611043565b6103056105c7366004612293565b611265565b3480156105d857600080fd5b5061030561139e565b3480156105ed57600080fd5b506103056105fc36600461249d565b611456565b34801561060d57600080fd5b5061030561061c366004612171565b6114b5565b34801561062d57600080fd5b5061030561063c36600461249d565b611506565b34801561064d57600080fd5b506102a061065c36600461249d565b611535565b34801561066d57600080fd5b5061034c60155481565b34801561068357600080fd5b50600e546102cd906001600160a01b031681565b3480156106a357600080fd5b506102a0611670565b3480156106b857600080fd5b5061034c600c5481565b3480156106ce57600080fd5b506103056106dd36600461242c565b61167d565b3480156106ee57600080fd5b50600f546102cd906001600160a01b031681565b34801561070e57600080fd5b5061027661071d3660046120f7565b6116b3565b34801561072e57600080fd5b5061030561073d3660046120bd565b611790565b34801561074e57600080fd5b5061034c60165481565b60006001600160e01b031982166380ac58cd60e01b148061078957506001600160e01b03198216635b5e139f60e01b145b806107a457506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546107b9906127ea565b80601f01602080910402602001604051908101604052809291908181526020018280546107e5906127ea565b80156108325780601f1061080757610100808354040283529160200191610832565b820191906000526020600020905b81548152906001019060200180831161081557829003601f168201915b5050505050905090565b600061084782611828565b610864576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061088b82610e2a565b9050806001600160a01b0316836001600160a01b031614156108c05760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906108e057506108de81336116b3565b155b156108fe576040516367d9dca160e11b815260040160405180910390fd5b610909838383611853565b505050565b3233146109365760405162461bcd60e51b815260040161092d9061264e565b60405180910390fd5b600160185460ff16600181111561094f5761094f612880565b1461096c5760405162461bcd60e51b815260040161092d9061261e565b6018601454111561098f5760405162461bcd60e51b815260040161092d906126ba565b60008181526010602052604090205460ff16156109ee5760405162461bcd60e51b815260206004820181905260248201527f5468652062617963206d696e7420686173206265656e20636f6d706c65746564604482015260640161092d565b600f546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e9060240160206040518083038186803b158015610a3357600080fd5b505afa158015610a47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6b91906120da565b90506001600160a01b0381163314610ada5760405162461bcd60e51b815260206004820152602c60248201527f546869732061646472657373206973206e6f742074686520686f6c646572206f60448201526b33103a3434b9903a37b5b2b760a11b606482015260840161092d565b6000828152601060205260408120805460ff191660019081179091556014805491929091610b0990849061275c565b909155505060138054600181810183556000929092527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09001839055610b4f9033906118af565b5050565b6109098383836118c9565b323314610b7d5760405162461bcd60e51b815260040161092d9061264e565b600160185460ff166001811115610b9657610b96612880565b14610bb35760405162461bcd60e51b815260040161092d9061261e565b60005b8151811015610dcc57600073655c6af94919e0aee453a35d1565244a52f33bf16001600160a01b0316636352211e848481518110610bf657610bf6612896565b60200260200101516040518263ffffffff1660e01b8152600401610c1c91815260200190565b60206040518083038186803b158015610c3457600080fd5b505afa158015610c48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6c91906120da565b905060106000848481518110610c8457610c84612896565b60209081029190910181015182528101919091526040016000205460ff1615610d075760405162461bcd60e51b815260206004820152602f60248201527f546865204f6c64206c6f7374626f6479207265706c6163656d656e742068617360448201526e081899595b8818dbdb5c1b195d1959608a1b606482015260840161092d565b6001600160a01b0381163314610d735760405162461bcd60e51b815260206004820152602b60248201527f5468652061646472657373206973206e6f742074686520686f6c646572206f6660448201526a103a3434b9903a37b5b2b760a91b606482015260840161092d565b600160106000858581518110610d8b57610d8b612896565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550508080610dc490612825565b915050610bb6565b508051610b4f33826118af565b610909838383604051806020016040528060008152506114b5565b6008546001600160a01b03163314610e1e5760405162461bcd60e51b815260040161092d90612685565b61090960098383612024565b6000610e3582611add565b5192915050565b6008546001600160a01b03163314610e665760405162461bcd60e51b815260040161092d90612685565b601755565b60006001600160a01b038216610e94576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610ee35760405162461bcd60e51b815260040161092d90612685565b610eed6000611bf7565b565b60138181548110610eff57600080fd5b600091825260209091200154905081565b6060600380546107b9906127ea565b600a8054610f2c906127ea565b80601f0160208091040260200160405190810160405280929190818152602001828054610f58906127ea565b8015610fa55780601f10610f7a57610100808354040283529160200191610fa5565b820191906000526020600020905b815481529060010190602001808311610f8857829003601f168201915b505050505081565b6001600160a01b038216331415610fd75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3233146110625760405162461bcd60e51b815260040161092d9061264e565b600160185460ff16600181111561107b5761107b612880565b146110bd5760405162461bcd60e51b8152602060048201526012602482015271141d589b1a58c81cd85b194818db1bdcd95960721b604482015260640161092d565b611b9e816015546110ce919061275c565b11156110ec5760405162461bcd60e51b815260040161092d906126ba565b60048111156111335760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b604482015260640161092d565b3360009081526012602052604090205460ff161561119f5760405162461bcd60e51b815260206004820152602360248201527f5468652061646472657373206d696e7420686173206265656e20636f6d706c656044820152621d195960ea1b606482015260840161092d565b600060155460175411156111c0576015546017546111bd91906127a7565b90505b6000818311156111e457600d546111d783856127a7565b6111e19190612788565b90505b8034101561122a5760405162461bcd60e51b815260206004820152601360248201527208ae8d0cae440d2e640dcdee840cadcdeeaced606b1b604482015260640161092d565b826015600082825461123c919061275c565b9091555050336000818152601260205260409020805460ff1916600117905561090990846118af565b3233146112845760405162461bcd60e51b815260040161092d9061264e565b600160185460ff16600181111561129d5761129d612880565b146112ba5760405162461bcd60e51b815260040161092d9061261e565b60005b8151811015610b4f576101548282815181106112db576112db612896565b6020026020010151602001516016546112f4919061275c565b11156113125760405162461bcd60e51b815260040161092d906126ba565b81818151811061132457611324612896565b60200260200101516020015160166000828254611341919061275c565b9250508190555061138c82828151811061135d5761135d612896565b60200260200101516000015183838151811061137b5761137b612896565b6020026020010151602001516118af565b8061139681612825565b9150506112bd565b6008546001600160a01b031633146113c85760405162461bcd60e51b815260040161092d90612685565b604051600090339047908381818185875af1925050503d806000811461140a576040519150601f19603f3d011682016040523d82523d6000602084013e61140f565b606091505b50509050806114535760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161092d565b50565b6008546001600160a01b031633146114805760405162461bcd60e51b815260040161092d90612685565b80600181111561149257611492612880565b6018805460ff1916600183818111156114ad576114ad612880565b021790555050565b6114c08484846118c9565b6001600160a01b0383163b151580156114e257506114e084848484611c49565b155b15611500576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146115305760405162461bcd60e51b815260040161092d90612685565b600d55565b606061154082611828565b6115965760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b606482015260840161092d565b60006115a0611d40565b9050600081511161163b57600a80546115b8906127ea565b80601f01602080910402602001604051908101604052809291908181526020018280546115e4906127ea565b80156116315780601f1061160657610100808354040283529160200191611631565b820191906000526020600020905b81548152906001019060200180831161161457829003601f168201915b5050505050611669565b8061164584611d4f565b600b604051602001611659939291906124e2565b6040516020818303038152906040525b9392505050565b60098054610f2c906127ea565b6008546001600160a01b031633146116a75760405162461bcd60e51b815260040161092d90612685565b610909600a8383612024565b600e546000906001600160a01b03908116908316811480611758575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561171557600080fd5b505afa158015611729573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174d91906120da565b6001600160a01b0316145b8061178857506001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146117ba5760405162461bcd60e51b815260040161092d90612685565b6001600160a01b03811661181f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092d565b61145381611bf7565b60008054821080156107a4575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b4f828260405180602001604052806000815250611e4c565b60006118d482611add565b80519091506000906001600160a01b0316336001600160a01b031614806119025750815161190290336116b3565b8061191d5750336119128461083c565b6001600160a01b0316145b90508061193d57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146119725760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661199957604051633a954ecd60e21b815260040160405180910390fd5b6119a96000848460000151611853565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116611a9357600054811015611a9357825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281600054811015611bde57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611bdc5780516001600160a01b031615611b73579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611bd7579392505050565b611b73565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c7e9033908990889088906004016125a6565b602060405180830381600087803b158015611c9857600080fd5b505af1925050508015611cc8575060408051601f3d908101601f19168201909252611cc59181019061240f565b60015b611d23573d808015611cf6576040519150601f19603f3d011682016040523d82523d6000602084013e611cfb565b606091505b508051611d1b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600980546107b9906127ea565b606081611d735750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d9d5780611d8781612825565b9150611d969050600a83612774565b9150611d77565b6000816001600160401b03811115611db757611db76128ac565b6040519080825280601f01601f191660200182016040528015611de1576020820181803683370190505b5090505b841561178857611df66001836127a7565b9150611e03600a86612840565b611e0e90603061275c565b60f81b818381518110611e2357611e23612896565b60200101906001600160f81b031916908160001a905350611e45600a86612774565b9450611de5565b61090983838360016000546001600160a01b038516611e7d57604051622e076360e81b815260040160405180910390fd5b83611e9b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611f4c57506001600160a01b0387163b15155b15611fd5575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611f9d6000888480600101955088611c49565b611fba576040516368d2bf6b60e11b815260040160405180910390fd5b80821415611f52578260005414611fd057600080fd5b61201b565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611fd6575b50600055611ad6565b828054612030906127ea565b90600052602060002090601f0160209004810192826120525760008555612098565b82601f1061206b5782800160ff19823516178555612098565b82800160010185558215612098579182015b8281111561209857823582559160200191906001019061207d565b506120a49291506120a8565b5090565b5b808211156120a457600081556001016120a9565b6000602082840312156120cf57600080fd5b8135611669816128c2565b6000602082840312156120ec57600080fd5b8151611669816128c2565b6000806040838503121561210a57600080fd5b8235612115816128c2565b91506020830135612125816128c2565b809150509250929050565b60008060006060848603121561214557600080fd5b8335612150816128c2565b92506020840135612160816128c2565b929592945050506040919091013590565b6000806000806080858703121561218757600080fd5b8435612192816128c2565b93506020858101356121a3816128c2565b93506040860135925060608601356001600160401b03808211156121c657600080fd5b818801915088601f8301126121da57600080fd5b8135818111156121ec576121ec6128ac565b6121fe601f8201601f19168501612709565b9150808252898482850101111561221457600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561224757600080fd5b8235612252816128c2565b91506020830135801515811461212557600080fd5b6000806040838503121561227a57600080fd5b8235612285816128c2565b946020939093013593505050565b600060208083850312156122a657600080fd5b82356001600160401b038111156122bc57600080fd5b8301601f810185136122cd57600080fd5b80356122e06122db82612739565b612709565b80828252848201915084840188868560061b870101111561230057600080fd5b60009450845b8481101561234d57604080838c03121561231e578687fd5b6123266126e1565b8335612331816128c2565b8152838901358982015285529387019390910190600101612306565b509098975050505050505050565b6000602080838503121561236e57600080fd5b82356001600160401b0381111561238457600080fd5b8301601f8101851361239557600080fd5b80356123a36122db82612739565b80828252848201915084840188868560051b87010111156123c357600080fd5b600094505b838510156123e65780358352600194909401939185019185016123c8565b50979650505050505050565b60006020828403121561240457600080fd5b8135611669816128d7565b60006020828403121561242157600080fd5b8151611669816128d7565b6000806020838503121561243f57600080fd5b82356001600160401b038082111561245657600080fd5b818501915085601f83011261246a57600080fd5b81358181111561247957600080fd5b86602082850101111561248b57600080fd5b60209290920196919550909350505050565b6000602082840312156124af57600080fd5b5035919050565b600081518084526124ce8160208601602086016127be565b601f01601f19169290920160200192915050565b6000845160206124f58285838a016127be565b8551918401916125088184848a016127be565b8554920191600090600181811c908083168061252557607f831692505b85831081141561254357634e487b7160e01b85526022600452602485fd5b808015612557576001811461256857612595565b60ff19851688528388019550612595565b60008b81526020902060005b8581101561258d5781548a820152908401908801612574565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125d9908301846124b6565b9695505050505050565b602081016002831061260557634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061166960208301846124b6565b60208082526016908201527510985e58da1bdb19195c881cd85b194818db1bdcd95960521b604082015260600190565b6020808252601d908201527f4d7573742066726f6d207265616c2077616c6c65742061646472657373000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600d908201526c45786365656420737570706c7960981b604082015260600190565b604080519081016001600160401b0381118282101715612703576127036128ac565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612731576127316128ac565b604052919050565b60006001600160401b03821115612752576127526128ac565b5060051b60200190565b6000821982111561276f5761276f612854565b500190565b6000826127835761278361286a565b500490565b60008160001904831182151516156127a2576127a2612854565b500290565b6000828210156127b9576127b9612854565b500390565b60005b838110156127d95781810151838201526020016127c1565b838111156115005750506000910152565b600181811c908216806127fe57607f821691505b6020821081141561281f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561283957612839612854565b5060010190565b60008261284f5761284f61286a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461145357600080fd5b6001600160e01b03198116811461145357600080fdfea2646970667358221220694d636ab14f6685856f65a777f8f0fc2cfd092f7cf0b8e5d662ebbdfaf76c1d64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569687437646b736b70666165786a736e35797a68637a766f7577686e3477737370757168376869726e6265726c74626161707965652f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseTokenURI (string): ipfs://bafybeiht7dkskpfaexjsn5yzhczvouwhn4wsspuqh7hirnberltbaapyee/
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [2] : 697066733a2f2f62616679626569687437646b736b70666165786a736e35797a
Arg [3] : 68637a766f7577686e3477737370757168376869726e6265726c746261617079
Arg [4] : 65652f0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.