Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 3,546 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 21426370 | 6 days ago | IN | 0 ETH | 0.000774 | ||||
Set Approval For... | 21106579 | 50 days ago | IN | 0 ETH | 0.00009381 | ||||
Set Approval For... | 20654241 | 113 days ago | IN | 0 ETH | 0.00004895 | ||||
Transfer From | 20380044 | 152 days ago | IN | 0 ETH | 0.00016169 | ||||
Set Approval For... | 20165587 | 182 days ago | IN | 0 ETH | 0.00015008 | ||||
Set Approval For... | 20079550 | 194 days ago | IN | 0 ETH | 0.00026217 | ||||
Set Approval For... | 20079549 | 194 days ago | IN | 0 ETH | 0.00025745 | ||||
Set Approval For... | 19786917 | 235 days ago | IN | 0 ETH | 0.00013328 | ||||
Set Approval For... | 19724011 | 243 days ago | IN | 0 ETH | 0.0002451 | ||||
Set Approval For... | 19127053 | 327 days ago | IN | 0 ETH | 0.0013659 | ||||
Set Approval For... | 19104177 | 330 days ago | IN | 0 ETH | 0.0005588 | ||||
Set Approval For... | 19008796 | 344 days ago | IN | 0 ETH | 0.00083412 | ||||
Set Approval For... | 18881431 | 362 days ago | IN | 0 ETH | 0.00050502 | ||||
Set Approval For... | 18875678 | 362 days ago | IN | 0 ETH | 0.00085858 | ||||
Set Approval For... | 18875558 | 362 days ago | IN | 0 ETH | 0.00081288 | ||||
Set Approval For... | 18874931 | 362 days ago | IN | 0 ETH | 0.00046556 | ||||
Set Approval For... | 18874929 | 362 days ago | IN | 0 ETH | 0.00047153 | ||||
Set Approval For... | 18854288 | 365 days ago | IN | 0 ETH | 0.00055159 | ||||
Set Approval For... | 18440987 | 423 days ago | IN | 0 ETH | 0.00089246 | ||||
Set Approval For... | 18369006 | 433 days ago | IN | 0 ETH | 0.00030458 | ||||
Set Approval For... | 18325687 | 439 days ago | IN | 0 ETH | 0.00030794 | ||||
Set Approval For... | 18322699 | 440 days ago | IN | 0 ETH | 0.00034241 | ||||
Set Approval For... | 18259673 | 449 days ago | IN | 0 ETH | 0.00044153 | ||||
Set Approval For... | 18257866 | 449 days ago | IN | 0 ETH | 0.00030946 | ||||
Set Approval For... | 18153328 | 464 days ago | IN | 0 ETH | 0.0002135 |
Latest 9 internal transactions
Advanced mode:
Loading...
Loading
Contract Name:
HaloNFT
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC721A.sol"; import "./INFT.sol"; contract HaloNFT is ERC721A, Ownable, INFT { /// @dev Library using Strings for uint256; /// @dev Event event PurchaseEvent(address purchaseWallet, uint256 nftID, uint256 purchaseTimestamp); //////////////////////////////////////////// /// @dev All constant defination //////////////////////////////////////////// uint256 public INVENTORY = 5050; uint256 private W_PRICE; uint256 private N_PRICE; uint256 private MINT_LIMIT = 1; /// @dev public variable for business //////////////////////////////////////////// uint256 private _private_sell_start = 1650207737; uint256 private _public_sell_start = 0; bool private _is_revealed = false; string private _base_uri = ""; string private _blindbox_uri = "https://ipfs.halonft.art/halo/token/"; address private SIGNER = 0x7828570E9e8c468a213Dabb6C37dDAAdb5eF5F38; /// functions //////////////////////////////////////////////////////////////////////// /// Override function _baseURI() internal view override returns (string memory) { return _base_uri; } /// NFT Related //////////////////////////////////////////////////////////////////////// constructor() ERC721A("HALO NFT", "HALO") { } function purchaseWhitelist(uint256 amount, bytes memory sign) external payable { purchaseWhitelistValidator(msg.sender, sign, amount); mintTo(msg.sender, amount); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if (!_is_revealed) { return bytes(_blindbox_uri).length > 0 ? string(abi.encodePacked(_blindbox_uri, tokenId.toString(), ".json")) : ""; } string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : ""; } /// @dev check if we have storage for the purchase function isEnough(uint256 amount) private view returns (bool enough) { uint256 solded = totalSupply(); uint256 afterPurchased = solded + amount; enough = true; require(afterPurchased <= INVENTORY, "Max limit"); } function querySellType() public view returns (uint256) { if (_public_sell_start > 0) { return 2; } if (block.timestamp > _private_sell_start ) { return 1; } return 0; } function purchaseWhitelistValidator(address purchaseUser, bytes memory sign, uint256 amount) private { // basic validate require(_private_sell_start > 0, "Not start selling yet(1)"); require(block.timestamp >= _private_sell_start, "Not start selling yet(2)"); require(_public_sell_start == 0, "Private sale is over"); require(amount >= 1, "at least purchase 1"); require((_numberMinted(purchaseUser) + amount) <= MINT_LIMIT, "purchase over limit"); require(msg.value >= (W_PRICE * amount), "insufficient value"); require(verify(purchaseUser, sign), "this sign is not valid"); } /// @dev external method to verify the owner of the token function isOwner(uint256 nftID, address owner) external view returns(bool isNFTOwner) { address tokenOwner = ownerOf(nftID); isNFTOwner = (tokenOwner == owner); } function mintedNunber(address addr) external override view returns(uint256) { return _numberMinted(addr); } /// @dev show all purchased nfts by Arrays /// @return tokens nftID array function listMyNFT(address owner) external view returns (uint256[] memory tokens) { uint256 owned = balanceOf(owner); tokens = new uint256[](owned); uint256 start = 0; for (uint i=0; i<totalSupply(); i++) { if (ownerOf(i) == owner) { tokens[start] = i; start ++; } } } function purchaseValidator(address purchaseUser, uint256 amount) private { // basic validate require(_public_sell_start > 0, "Not start selling yet(21)"); require(amount >= 1, "at least purchase 1"); require(purchaseUser != address(0), "invalid address"); require(msg.value >= (N_PRICE * amount), "insufficient value"); } /// @dev user doing purchase /// @param amount how many function purchaseNFT(uint256 amount) external payable { address purchaseUser = msg.sender; purchaseValidator(purchaseUser, amount); mintTo(purchaseUser, amount); } /// @dev mint function function mintTo(address purchaseUser, uint256 amount) private { isEnough(amount); _safeMint(purchaseUser, amount); } function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return super.supportsInterface(interfaceId); } /// Admin Functions ////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////// function batchMint(address wallet, uint amount) external onlyOwner { mintTo(wallet, amount); } function setBaseData(bool isRevealed, string memory uri) external onlyOwner { _base_uri = uri; _is_revealed = isRevealed; } function setReveal(bool reveal_) external onlyOwner { _is_revealed = reveal_; } function withdrawETH(address wallet) external onlyOwner { payable(wallet).transfer(address(this).balance); } function withdrawTo(address wallet, uint256 amount) external onlyOwner { payable(wallet).transfer(amount); } function updateBlindboxURI(string memory url) external onlyOwner { _blindbox_uri = url; } function updatePriceW(uint256 price_) external onlyOwner { W_PRICE = price_; } function updatePriceN(uint256 price_) external onlyOwner { N_PRICE = price_; } function updateMintLimit(uint256 limit_) external onlyOwner { MINT_LIMIT = limit_; } function updatePrivateSale(uint256 time_) external onlyOwner { _private_sell_start = time_; } function updatePublicSale(uint256 time_) external onlyOwner { _public_sell_start = time_; } function updateSigner(address signer_) external onlyOwner { SIGNER = signer_; } function updateInventory(uint256 inventory_) external onlyOwner { INVENTORY = inventory_; } function parameters() external view returns (uint256 inventory, uint256 privatePrice, uint256 publicPrice, uint256 mintLimit, uint256 privateStart, uint256 publicStart, uint256 sellType) { inventory = INVENTORY; privatePrice = W_PRICE; publicPrice = N_PRICE; mintLimit = MINT_LIMIT; privateStart = _private_sell_start; publicStart = _public_sell_start; sellType = querySellType(); } function verify(address _user, bytes memory _signatures) public view returns (bool) { bytes32 message = keccak256(abi.encodePacked(_user, address(this))); bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", message)); address[] memory signList = recoverAddresses(hash, _signatures); return signList[0] == SIGNER; } function recoverAddresses(bytes32 _hash, bytes memory _signatures) internal pure returns (address[] memory addresses) { uint8 v; bytes32 r; bytes32 s; uint count = _countSignatures(_signatures); addresses = new address[](count); for (uint i = 0; i < count; i++) { (v, r, s) = _parseSignature(_signatures, i); addresses[i] = ecrecover(_hash, v, r, s); } } function _parseSignature(bytes memory _signatures, uint _pos) internal pure returns (uint8 v, bytes32 r, bytes32 s) { uint offset = _pos * 65; assembly { r := mload(add(_signatures, add(32, offset))) s := mload(add(_signatures, add(64, offset))) v := and(mload(add(_signatures, add(65, offset))), 0xff) } if (v < 27) v += 27; require(v == 27 || v == 28); } function _countSignatures(bytes memory _signatures) internal pure returns (uint) { return _signatures.length % 65 == 0 ? _signatures.length / 65 : 0; } }
// 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 // 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 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_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @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 (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 (!_checkOnERC721Received(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 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; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _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 address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @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 pragma solidity ^0.8.0; interface INFT { function mintedNunber(address addr) external returns(uint256); }
// 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 (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 (last updated v4.5.0) (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); /** * @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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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/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": 1000000 }, "metadata": { "bytecodeHash": "none" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"MintedQueryForZeroAddress","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":false,"internalType":"address","name":"purchaseWallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"nftID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"purchaseTimestamp","type":"uint256"}],"name":"PurchaseEvent","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":"INVENTORY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"isNFTOwner","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"listMyNFT","outputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"mintedNunber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parameters","outputs":[{"internalType":"uint256","name":"inventory","type":"uint256"},{"internalType":"uint256","name":"privatePrice","type":"uint256"},{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint256","name":"mintLimit","type":"uint256"},{"internalType":"uint256","name":"privateStart","type":"uint256"},{"internalType":"uint256","name":"publicStart","type":"uint256"},{"internalType":"uint256","name":"sellType","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"purchaseNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"purchaseWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"querySellType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isRevealed","type":"bool"},{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"reveal_","type":"bool"}],"name":"setReveal","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"updateBlindboxURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"inventory_","type":"uint256"}],"name":"updateInventory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit_","type":"uint256"}],"name":"updateMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"updatePriceN","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price_","type":"uint256"}],"name":"updatePriceW","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time_","type":"uint256"}],"name":"updatePrivateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time_","type":"uint256"}],"name":"updatePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes","name":"_signatures","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6113ba6009556001600c5563625c2bf9600d556000600e819055600f805460ff1916905560a0604081905260808290526200003e91601091906200017f565b50604051806060016040528060248152602001620039966024913980516200006f916011916020909101906200017f565b50601280546001600160a01b031916737828570e9e8c468a213dabb6c37ddaadb5ef5f38179055348015620000a357600080fd5b50604080518082018252600881526712105313c813919560c21b60208083019182528351808501909452600484526348414c4f60e01b908401528151919291620000f0916002916200017f565b508051620001069060039060208401906200017f565b505050620001236200011d6200012960201b60201c565b6200012d565b62000262565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200018d9062000225565b90600052602060002090601f016020900481019282620001b15760008555620001fc565b82601f10620001cc57805160ff1916838001178555620001fc565b82800160010185558215620001fc579182015b82811115620001fc578251825591602001919060010190620001df565b506200020a9291506200020e565b5090565b5b808211156200020a57600081556001016200020f565b600181811c908216806200023a57607f821691505b602082108114156200025c57634e487b7160e01b600052602260045260246000fd5b50919050565b61372480620002726000396000f3fe6080604052600436106102a05760003560e01c8063690d83201161016e578063a7ecd37e116100cb578063d23212f31161007f578063e01d55c511610064578063e01d55c514610763578063e985e9c514610783578063f2fde38b146107d957600080fd5b8063d23212f31461072d578063de5d547e1461074d57600080fd5b8063c231e109116100b0578063c231e109146106d8578063c6a00d88146106f8578063c87b56dd1461070d57600080fd5b8063a7ecd37e14610698578063b88d4fde146106b857600080fd5b80638a316ea31161012257806395d89b411161010757806395d89b4114610643578063987cb9b014610658578063a22cb4651461067857600080fd5b80638a316ea3146105f85780638da5cb5b1461061857600080fd5b8063715018a611610153578063715018a61461058657806376a967581461059b57806389035730146105ae57600080fd5b8063690d83201461054657806370a082311461056657600080fd5b806323b872dd1161021c57806343508b05116101d05780634a41d1ac116101b55780634a41d1ac146104e65780635a5d096c146105065780636352211e1461052657600080fd5b806343508b05146104a657806345d8e888146104c657600080fd5b80632e1ea10d116102015780632e1ea10d146104395780633f14e8d51461045957806342842e0e1461048657600080fd5b806323b872dd146103f95780632a3f300c1461041957600080fd5b8063150bde03116102735780631f2833cc116102585780631f2833cc146103995780632012afc7146103b9578063205c2878146103d957600080fd5b8063150bde031461036357806318160ddd1461037657600080fd5b806301ffc9a7146102a557806306fdde03146102da578063081812fc146102fc578063095ea7b314610341575b600080fd5b3480156102b157600080fd5b506102c56102c0366004613178565b6107f9565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102ef61080a565b6040516102d191906134a8565b34801561030857600080fd5b5061031c6103173660046131e7565b61089c565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102d1565b34801561034d57600080fd5b5061036161035c366004613117565b610906565b005b6103616103713660046131e7565b6109ed565b34801561038257600080fd5b50600154600054035b6040519081526020016102d1565b3480156103a557600080fd5b5061038b6103b4366004612fad565b610a06565b3480156103c557600080fd5b506103616103d43660046131e7565b610a11565b3480156103e557600080fd5b506103616103f4366004613117565b610a9c565b34801561040557600080fd5b50610361610414366004612ffb565b610b60565b34801561042557600080fd5b50610361610434366004613141565b610b6b565b34801561044557600080fd5b506103616104543660046131b2565b610c1d565b34801561046557600080fd5b50610479610474366004612fad565b610cb1565b6040516102d19190613464565b34801561049257600080fd5b506103616104a1366004612ffb565b610d99565b3480156104b257600080fd5b506103616104c1366004613117565b610db4565b3480156104d257600080fd5b506103616104e13660046131e7565b610e3f565b3480156104f257600080fd5b506102c56105013660046130c9565b610ec5565b34801561051257600080fd5b506102c5610521366004613200565b610fdb565b34801561053257600080fd5b5061031c6105413660046131e7565b61100c565b34801561055257600080fd5b50610361610561366004612fad565b61101e565b34801561057257600080fd5b5061038b610581366004612fad565b6110e1565b34801561059257600080fd5b50610361611163565b6103616105a9366004613223565b6111f0565b3480156105ba57600080fd5b506105c3611205565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016102d1565b34801561060457600080fd5b5061036161061336600461315c565b61122c565b34801561062457600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff1661031c565b34801561064f57600080fd5b506102ef6112f3565b34801561066457600080fd5b506103616106733660046131e7565b611302565b34801561068457600080fd5b5061036161069336600461309f565b611388565b3480156106a457600080fd5b506103616106b3366004612fad565b61146f565b3480156106c457600080fd5b506103616106d3366004613037565b611537565b3480156106e457600080fd5b506103616106f33660046131e7565b61158a565b34801561070457600080fd5b5061038b611610565b34801561071957600080fd5b506102ef6107283660046131e7565b611637565b34801561073957600080fd5b506103616107483660046131e7565b611790565b34801561075957600080fd5b5061038b60095481565b34801561076f57600080fd5b5061036161077e3660046131e7565b611816565b34801561078f57600080fd5b506102c561079e366004612fc8565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107e557600080fd5b506103616107f4366004612fad565b61189c565b6000610804826119cc565b92915050565b6060600280546108199061358c565b80601f01602080910402602001604051908101604052809291908181526020018280546108459061358c565b80156108925780601f1061086757610100808354040283529160200191610892565b820191906000526020600020905b81548152906001019060200180831161087557829003601f168201915b5050505050905090565b60006108a782611aaf565b6108dd576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006109118261100c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610979576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff8216148015906109a657506109a4813361079e565b155b156109dd576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109e8838383611af3565b505050565b336109f88183611b74565b610a028183611d3f565b5050565b600061080482611d53565b60085473ffffffffffffffffffffffffffffffffffffffff163314610a97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b55565b60085473ffffffffffffffffffffffffffffffffffffffff163314610b1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156109e8573d6000803e3d6000fd5b6109e8838383611de1565b60085473ffffffffffffffffffffffffffffffffffffffff163314610bec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60085473ffffffffffffffffffffffffffffffffffffffff163314610c9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b8051610a02906011906020840190612e30565b60606000610cbe836110e1565b90508067ffffffffffffffff811115610cd957610cd96136ba565b604051908082528060200260200182016040528015610d02578160200160208202803683370190505b5091506000805b60015460005403811015610d91578473ffffffffffffffffffffffffffffffffffffffff16610d378261100c565b73ffffffffffffffffffffffffffffffffffffffff161415610d7f5780848381518110610d6657610d6661368b565b602090810291909101015281610d7b816135e0565b9250505b80610d89816135e0565b915050610d09565b505050919050565b6109e883838360405180602001604052806000815250611537565b60085473ffffffffffffffffffffffffffffffffffffffff163314610e35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b610a028282611d3f565b60085473ffffffffffffffffffffffffffffffffffffffff163314610ec0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600a55565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084811b8216602084015230901b1660348201526000908190604801604051602081830303815290604052805190602001209050600081604051602001610f5d91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6040516020818303038152906040528051906020012090506000610f81828661214c565b601254815191925073ffffffffffffffffffffffffffffffffffffffff16908290600090610fb157610fb161368b565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614935050505092915050565b600080610fe78461100c565b73ffffffffffffffffffffffffffffffffffffffff9081169316929092149392505050565b600061101782612272565b5192915050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461109f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b60405173ffffffffffffffffffffffffffffffffffffffff8216904780156108fc02916000818181858888f19350505050158015610a02573d6000803e3d6000fd5b600073ffffffffffffffffffffffffffffffffffffffff8216611130576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b60085473ffffffffffffffffffffffffffffffffffffffff1633146111e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b6111ee600061243f565b565b6111fb3382846124b6565b610a023383611d3f565b600954600a54600b54600c54600d54600e546000611221611610565b905090919293949596565b60085473ffffffffffffffffffffffffffffffffffffffff1633146112ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b80516112c0906010906020840190612e30565b5050600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6060600380546108199061358c565b60085473ffffffffffffffffffffffffffffffffffffffff163314611383576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600e55565b73ffffffffffffffffffffffffffffffffffffffff82163314156113d8576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146114f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b601280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b611542848484611de1565b61154e848484846127c9565b611584576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461160b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600d55565b600e54600090156116215750600290565b600d544211156116315750600190565b50600090565b606061164282611aaf565b6116ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a8e565b600f5460ff16611734576000601180546116e79061358c565b9050116117035760405180602001604052806000815250610804565b601161170e83612973565b60405160200161171f929190613311565b60405160208183030381529060405292915050565b600061173e612aa5565b9050600081511161175e5760405180602001604052806000815250611789565b8061176884612973565b6040516020016117799291906132ba565b6040516020818303038152906040525b9392505050565b60085473ffffffffffffffffffffffffffffffffffffffff163314611811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600955565b60085473ffffffffffffffffffffffffffffffffffffffff163314611897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600c55565b60085473ffffffffffffffffffffffffffffffffffffffff16331461191d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b73ffffffffffffffffffffffffffffffffffffffff81166119c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a8e565b6119c98161243f565b50565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611a5f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061080457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610804565b60008054821080156108045750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000600e5411611be0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4e6f742073746172742073656c6c696e672079657428323129000000000000006044820152606401610a8e565b6001811015611c4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6174206c656173742070757263686173652031000000000000000000000000006044820152606401610a8e565b73ffffffffffffffffffffffffffffffffffffffff8216611cc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c6964206164647265737300000000000000000000000000000000006044820152606401610a8e565b80600b54611cd6919061350c565b341015610a02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f696e73756666696369656e742076616c756500000000000000000000000000006044820152606401610a8e565b611d4881612ab4565b50610a028282612b4b565b600073ffffffffffffffffffffffffffffffffffffffff8216611da2576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205468010000000000000000900467ffffffffffffffff1690565b6000611dec82612272565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611e3457508151611e34903361079e565b80611e5c575033611e448461089c565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611e95576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611efe576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416611f4b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f5b6000848460000151611af3565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff0000000000000000000000000000000000000000000000000000000016909417740100000000000000000000000000000000000000004290921691909102179092559086018083529120549091166120e8576000548110156120e8578251600082815260046020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b606060008060008061215d86612b65565b90508067ffffffffffffffff811115612178576121786136ba565b6040519080825280602002602001820160405280156121a1578160200160208202803683370190505b50945060005b81811015612267576121b98782612b8f565b6040805160008152602081018083528d905260ff8516918101919091526060810183905260808101829052929750909550935060019060a0016020604051602081039080840390855afa158015612214573d6000803e3d6000fd5b505050602060405103518682815181106122305761223061368b565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101528061225f816135e0565b9150506121a7565b505050505092915050565b604080516060810182526000808252602082018190529181018290529054829081101561240d576000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061240b57805173ffffffffffffffffffffffffffffffffffffffff161561234c579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612406579392505050565b61234c565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600d5411612522576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4e6f742073746172742073656c6c696e672079657428312900000000000000006044820152606401610a8e565b600d5442101561258e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4e6f742073746172742073656c6c696e672079657428322900000000000000006044820152606401610a8e565b600e54156125f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f507269766174652073616c65206973206f7665720000000000000000000000006044820152606401610a8e565b6001811015612663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6174206c656173742070757263686173652031000000000000000000000000006044820152606401610a8e565b600c548161267085611d53565b61267a91906134bb565b11156126e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f7075726368617365206f766572206c696d6974000000000000000000000000006044820152606401610a8e565b80600a546126f0919061350c565b341015612759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f696e73756666696369656e742076616c756500000000000000000000000000006044820152606401610a8e565b6127638383610ec5565b6109e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f74686973207369676e206973206e6f742076616c6964000000000000000000006044820152606401610a8e565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612967576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061284090339089908890889060040161341b565b602060405180830381600087803b15801561285a57600080fd5b505af19250505080156128a8575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526128a591810190613195565b60015b61291c573d8080156128d6576040519150601f19603f3d011682016040523d82523d6000602084013e6128db565b606091505b508051612914576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061296b565b5060015b949350505050565b6060816129b357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129dd57806129c7816135e0565b91506129d69050600a836134f8565b91506129b7565b60008167ffffffffffffffff8111156129f8576129f86136ba565b6040519080825280601f01601f191660200182016040528015612a22576020820181803683370190505b5090505b841561296b57612a37600183613549565b9150612a44600a86613619565b612a4f9060306134bb565b60f81b818381518110612a6457612a6461368b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a9e600a866134f8565b9450612a26565b6060601080546108199061358c565b600080612ac46001546000540390565b90506000612ad284836134bb565b905060019250600954811115612b44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d6178206c696d697400000000000000000000000000000000000000000000006044820152606401610a8e565b5050919050565b610a02828260405180602001604052806000815250612bfa565b600060418251612b759190613619565b15612b81576000610804565b6041825161080491906134f8565b6000808080612b9f85604161350c565b8681016020810151604082015160419092015160ff169650945092509050601b841015612bd457612bd1601b856134d3565b93505b8360ff16601b1480612be957508360ff16601c145b612bf257600080fd5b509250925092565b6109e8838383600160005473ffffffffffffffffffffffffffffffffffffffff8516612c52576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612c89576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c018116909202179091558584526004909252822080547fffffffff00000000000000000000000000000000000000000000000000000000169093177401000000000000000000000000000000000000000042909216919091021790915581905b85811015612e2757604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612de45750612de260008884886127c9565b155b15612e1b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60019182019101612d80565b50600055612145565b828054612e3c9061358c565b90600052602060002090601f016020900481019282612e5e5760008555612ea4565b82601f10612e7757805160ff1916838001178555612ea4565b82800160010185558215612ea4579182015b82811115612ea4578251825591602001919060010190612e89565b50612eb0929150612eb4565b5090565b5b80821115612eb05760008155600101612eb5565b803573ffffffffffffffffffffffffffffffffffffffff81168114612eed57600080fd5b919050565b80358015158114612eed57600080fd5b600082601f830112612f1357600080fd5b813567ffffffffffffffff80821115612f2e57612f2e6136ba565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612f7457612f746136ba565b81604052838152866020858801011115612f8d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215612fbf57600080fd5b61178982612ec9565b60008060408385031215612fdb57600080fd5b612fe483612ec9565b9150612ff260208401612ec9565b90509250929050565b60008060006060848603121561301057600080fd5b61301984612ec9565b925061302760208501612ec9565b9150604084013590509250925092565b6000806000806080858703121561304d57600080fd5b61305685612ec9565b935061306460208601612ec9565b925060408501359150606085013567ffffffffffffffff81111561308757600080fd5b61309387828801612f02565b91505092959194509250565b600080604083850312156130b257600080fd5b6130bb83612ec9565b9150612ff260208401612ef2565b600080604083850312156130dc57600080fd5b6130e583612ec9565b9150602083013567ffffffffffffffff81111561310157600080fd5b61310d85828601612f02565b9150509250929050565b6000806040838503121561312a57600080fd5b61313383612ec9565b946020939093013593505050565b60006020828403121561315357600080fd5b61178982612ef2565b6000806040838503121561316f57600080fd5b6130e583612ef2565b60006020828403121561318a57600080fd5b8135611789816136e9565b6000602082840312156131a757600080fd5b8151611789816136e9565b6000602082840312156131c457600080fd5b813567ffffffffffffffff8111156131db57600080fd5b61296b84828501612f02565b6000602082840312156131f957600080fd5b5035919050565b6000806040838503121561321357600080fd5b82359150612ff260208401612ec9565b6000806040838503121561323657600080fd5b82359150602083013567ffffffffffffffff81111561310157600080fd5b6000815180845261326c816020860160208601613560565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081516132b0818560208601613560565b9290920192915050565b600083516132cc818460208801613560565b8351908301906132e0818360208801613560565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600080845481600182811c91508083168061332d57607f831692505b6020808410821415613366577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b81801561337a57600181146133a9576133d6565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506133d6565b60008b81526020902060005b868110156133ce5781548b8201529085019083016133b5565b505084890196505b5050505050506134126133e9828661329e565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261345a6080830184613254565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561349c57835183529284019291840191600101613480565b50909695505050505050565b6020815260006117896020830184613254565b600082198211156134ce576134ce61362d565b500190565b600060ff821660ff84168060ff038211156134f0576134f061362d565b019392505050565b6000826135075761350761365c565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135445761354461362d565b500290565b60008282101561355b5761355b61362d565b500390565b60005b8381101561357b578181015183820152602001613563565b838111156115845750506000910152565b600181811c908216806135a057607f821691505b602082108114156135da577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156136125761361261362d565b5060010190565b6000826136285761362861365c565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146119c957600080fdfea164736f6c6343000807000a68747470733a2f2f697066732e68616c6f6e66742e6172742f68616c6f2f746f6b656e2f
Deployed Bytecode
0x6080604052600436106102a05760003560e01c8063690d83201161016e578063a7ecd37e116100cb578063d23212f31161007f578063e01d55c511610064578063e01d55c514610763578063e985e9c514610783578063f2fde38b146107d957600080fd5b8063d23212f31461072d578063de5d547e1461074d57600080fd5b8063c231e109116100b0578063c231e109146106d8578063c6a00d88146106f8578063c87b56dd1461070d57600080fd5b8063a7ecd37e14610698578063b88d4fde146106b857600080fd5b80638a316ea31161012257806395d89b411161010757806395d89b4114610643578063987cb9b014610658578063a22cb4651461067857600080fd5b80638a316ea3146105f85780638da5cb5b1461061857600080fd5b8063715018a611610153578063715018a61461058657806376a967581461059b57806389035730146105ae57600080fd5b8063690d83201461054657806370a082311461056657600080fd5b806323b872dd1161021c57806343508b05116101d05780634a41d1ac116101b55780634a41d1ac146104e65780635a5d096c146105065780636352211e1461052657600080fd5b806343508b05146104a657806345d8e888146104c657600080fd5b80632e1ea10d116102015780632e1ea10d146104395780633f14e8d51461045957806342842e0e1461048657600080fd5b806323b872dd146103f95780632a3f300c1461041957600080fd5b8063150bde03116102735780631f2833cc116102585780631f2833cc146103995780632012afc7146103b9578063205c2878146103d957600080fd5b8063150bde031461036357806318160ddd1461037657600080fd5b806301ffc9a7146102a557806306fdde03146102da578063081812fc146102fc578063095ea7b314610341575b600080fd5b3480156102b157600080fd5b506102c56102c0366004613178565b6107f9565b60405190151581526020015b60405180910390f35b3480156102e657600080fd5b506102ef61080a565b6040516102d191906134a8565b34801561030857600080fd5b5061031c6103173660046131e7565b61089c565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102d1565b34801561034d57600080fd5b5061036161035c366004613117565b610906565b005b6103616103713660046131e7565b6109ed565b34801561038257600080fd5b50600154600054035b6040519081526020016102d1565b3480156103a557600080fd5b5061038b6103b4366004612fad565b610a06565b3480156103c557600080fd5b506103616103d43660046131e7565b610a11565b3480156103e557600080fd5b506103616103f4366004613117565b610a9c565b34801561040557600080fd5b50610361610414366004612ffb565b610b60565b34801561042557600080fd5b50610361610434366004613141565b610b6b565b34801561044557600080fd5b506103616104543660046131b2565b610c1d565b34801561046557600080fd5b50610479610474366004612fad565b610cb1565b6040516102d19190613464565b34801561049257600080fd5b506103616104a1366004612ffb565b610d99565b3480156104b257600080fd5b506103616104c1366004613117565b610db4565b3480156104d257600080fd5b506103616104e13660046131e7565b610e3f565b3480156104f257600080fd5b506102c56105013660046130c9565b610ec5565b34801561051257600080fd5b506102c5610521366004613200565b610fdb565b34801561053257600080fd5b5061031c6105413660046131e7565b61100c565b34801561055257600080fd5b50610361610561366004612fad565b61101e565b34801561057257600080fd5b5061038b610581366004612fad565b6110e1565b34801561059257600080fd5b50610361611163565b6103616105a9366004613223565b6111f0565b3480156105ba57600080fd5b506105c3611205565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016102d1565b34801561060457600080fd5b5061036161061336600461315c565b61122c565b34801561062457600080fd5b5060085473ffffffffffffffffffffffffffffffffffffffff1661031c565b34801561064f57600080fd5b506102ef6112f3565b34801561066457600080fd5b506103616106733660046131e7565b611302565b34801561068457600080fd5b5061036161069336600461309f565b611388565b3480156106a457600080fd5b506103616106b3366004612fad565b61146f565b3480156106c457600080fd5b506103616106d3366004613037565b611537565b3480156106e457600080fd5b506103616106f33660046131e7565b61158a565b34801561070457600080fd5b5061038b611610565b34801561071957600080fd5b506102ef6107283660046131e7565b611637565b34801561073957600080fd5b506103616107483660046131e7565b611790565b34801561075957600080fd5b5061038b60095481565b34801561076f57600080fd5b5061036161077e3660046131e7565b611816565b34801561078f57600080fd5b506102c561079e366004612fc8565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107e557600080fd5b506103616107f4366004612fad565b61189c565b6000610804826119cc565b92915050565b6060600280546108199061358c565b80601f01602080910402602001604051908101604052809291908181526020018280546108459061358c565b80156108925780601f1061086757610100808354040283529160200191610892565b820191906000526020600020905b81548152906001019060200180831161087557829003601f168201915b5050505050905090565b60006108a782611aaf565b6108dd576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006109118261100c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610979576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff8216148015906109a657506109a4813361079e565b155b156109dd576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109e8838383611af3565b505050565b336109f88183611b74565b610a028183611d3f565b5050565b600061080482611d53565b60085473ffffffffffffffffffffffffffffffffffffffff163314610a97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600b55565b60085473ffffffffffffffffffffffffffffffffffffffff163314610b1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b60405173ffffffffffffffffffffffffffffffffffffffff83169082156108fc029083906000818181858888f193505050501580156109e8573d6000803e3d6000fd5b6109e8838383611de1565b60085473ffffffffffffffffffffffffffffffffffffffff163314610bec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60085473ffffffffffffffffffffffffffffffffffffffff163314610c9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b8051610a02906011906020840190612e30565b60606000610cbe836110e1565b90508067ffffffffffffffff811115610cd957610cd96136ba565b604051908082528060200260200182016040528015610d02578160200160208202803683370190505b5091506000805b60015460005403811015610d91578473ffffffffffffffffffffffffffffffffffffffff16610d378261100c565b73ffffffffffffffffffffffffffffffffffffffff161415610d7f5780848381518110610d6657610d6661368b565b602090810291909101015281610d7b816135e0565b9250505b80610d89816135e0565b915050610d09565b505050919050565b6109e883838360405180602001604052806000815250611537565b60085473ffffffffffffffffffffffffffffffffffffffff163314610e35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b610a028282611d3f565b60085473ffffffffffffffffffffffffffffffffffffffff163314610ec0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600a55565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084811b8216602084015230901b1660348201526000908190604801604051602081830303815290604052805190602001209050600081604051602001610f5d91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6040516020818303038152906040528051906020012090506000610f81828661214c565b601254815191925073ffffffffffffffffffffffffffffffffffffffff16908290600090610fb157610fb161368b565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614935050505092915050565b600080610fe78461100c565b73ffffffffffffffffffffffffffffffffffffffff9081169316929092149392505050565b600061101782612272565b5192915050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461109f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b60405173ffffffffffffffffffffffffffffffffffffffff8216904780156108fc02916000818181858888f19350505050158015610a02573d6000803e3d6000fd5b600073ffffffffffffffffffffffffffffffffffffffff8216611130576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b60085473ffffffffffffffffffffffffffffffffffffffff1633146111e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b6111ee600061243f565b565b6111fb3382846124b6565b610a023383611d3f565b600954600a54600b54600c54600d54600e546000611221611610565b905090919293949596565b60085473ffffffffffffffffffffffffffffffffffffffff1633146112ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b80516112c0906010906020840190612e30565b5050600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6060600380546108199061358c565b60085473ffffffffffffffffffffffffffffffffffffffff163314611383576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600e55565b73ffffffffffffffffffffffffffffffffffffffff82163314156113d8576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60085473ffffffffffffffffffffffffffffffffffffffff1633146114f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b601280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b611542848484611de1565b61154e848484846127c9565b611584576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60085473ffffffffffffffffffffffffffffffffffffffff16331461160b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600d55565b600e54600090156116215750600290565b600d544211156116315750600190565b50600090565b606061164282611aaf565b6116ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a8e565b600f5460ff16611734576000601180546116e79061358c565b9050116117035760405180602001604052806000815250610804565b601161170e83612973565b60405160200161171f929190613311565b60405160208183030381529060405292915050565b600061173e612aa5565b9050600081511161175e5760405180602001604052806000815250611789565b8061176884612973565b6040516020016117799291906132ba565b6040516020818303038152906040525b9392505050565b60085473ffffffffffffffffffffffffffffffffffffffff163314611811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600955565b60085473ffffffffffffffffffffffffffffffffffffffff163314611897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b600c55565b60085473ffffffffffffffffffffffffffffffffffffffff16331461191d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a8e565b73ffffffffffffffffffffffffffffffffffffffff81166119c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a8e565b6119c98161243f565b50565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611a5f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061080457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610804565b60008054821080156108045750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000600e5411611be0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4e6f742073746172742073656c6c696e672079657428323129000000000000006044820152606401610a8e565b6001811015611c4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6174206c656173742070757263686173652031000000000000000000000000006044820152606401610a8e565b73ffffffffffffffffffffffffffffffffffffffff8216611cc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f696e76616c6964206164647265737300000000000000000000000000000000006044820152606401610a8e565b80600b54611cd6919061350c565b341015610a02576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f696e73756666696369656e742076616c756500000000000000000000000000006044820152606401610a8e565b611d4881612ab4565b50610a028282612b4b565b600073ffffffffffffffffffffffffffffffffffffffff8216611da2576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205468010000000000000000900467ffffffffffffffff1690565b6000611dec82612272565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611e3457508151611e34903361079e565b80611e5c575033611e448461089c565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611e95576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611efe576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416611f4b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f5b6000848460000151611af3565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff0000000000000000000000000000000000000000000000000000000016909417740100000000000000000000000000000000000000004290921691909102179092559086018083529120549091166120e8576000548110156120e8578251600082815260046020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b606060008060008061215d86612b65565b90508067ffffffffffffffff811115612178576121786136ba565b6040519080825280602002602001820160405280156121a1578160200160208202803683370190505b50945060005b81811015612267576121b98782612b8f565b6040805160008152602081018083528d905260ff8516918101919091526060810183905260808101829052929750909550935060019060a0016020604051602081039080840390855afa158015612214573d6000803e3d6000fd5b505050602060405103518682815181106122305761223061368b565b73ffffffffffffffffffffffffffffffffffffffff909216602092830291909101909101528061225f816135e0565b9150506121a7565b505050505092915050565b604080516060810182526000808252602082018190529181018290529054829081101561240d576000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061240b57805173ffffffffffffffffffffffffffffffffffffffff161561234c579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600460209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215612406579392505050565b61234c565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600d5411612522576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4e6f742073746172742073656c6c696e672079657428312900000000000000006044820152606401610a8e565b600d5442101561258e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4e6f742073746172742073656c6c696e672079657428322900000000000000006044820152606401610a8e565b600e54156125f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f507269766174652073616c65206973206f7665720000000000000000000000006044820152606401610a8e565b6001811015612663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f6174206c656173742070757263686173652031000000000000000000000000006044820152606401610a8e565b600c548161267085611d53565b61267a91906134bb565b11156126e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f7075726368617365206f766572206c696d6974000000000000000000000000006044820152606401610a8e565b80600a546126f0919061350c565b341015612759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f696e73756666696369656e742076616c756500000000000000000000000000006044820152606401610a8e565b6127638383610ec5565b6109e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f74686973207369676e206973206e6f742076616c6964000000000000000000006044820152606401610a8e565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612967576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061284090339089908890889060040161341b565b602060405180830381600087803b15801561285a57600080fd5b505af19250505080156128a8575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526128a591810190613195565b60015b61291c573d8080156128d6576040519150601f19603f3d011682016040523d82523d6000602084013e6128db565b606091505b508051612914576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061296b565b5060015b949350505050565b6060816129b357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129dd57806129c7816135e0565b91506129d69050600a836134f8565b91506129b7565b60008167ffffffffffffffff8111156129f8576129f86136ba565b6040519080825280601f01601f191660200182016040528015612a22576020820181803683370190505b5090505b841561296b57612a37600183613549565b9150612a44600a86613619565b612a4f9060306134bb565b60f81b818381518110612a6457612a6461368b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a9e600a866134f8565b9450612a26565b6060601080546108199061358c565b600080612ac46001546000540390565b90506000612ad284836134bb565b905060019250600954811115612b44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4d6178206c696d697400000000000000000000000000000000000000000000006044820152606401610a8e565b5050919050565b610a02828260405180602001604052806000815250612bfa565b600060418251612b759190613619565b15612b81576000610804565b6041825161080491906134f8565b6000808080612b9f85604161350c565b8681016020810151604082015160419092015160ff169650945092509050601b841015612bd457612bd1601b856134d3565b93505b8360ff16601b1480612be957508360ff16601c145b612bf257600080fd5b509250925092565b6109e8838383600160005473ffffffffffffffffffffffffffffffffffffffff8516612c52576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612c89576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c018116909202179091558584526004909252822080547fffffffff00000000000000000000000000000000000000000000000000000000169093177401000000000000000000000000000000000000000042909216919091021790915581905b85811015612e2757604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612de45750612de260008884886127c9565b155b15612e1b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60019182019101612d80565b50600055612145565b828054612e3c9061358c565b90600052602060002090601f016020900481019282612e5e5760008555612ea4565b82601f10612e7757805160ff1916838001178555612ea4565b82800160010185558215612ea4579182015b82811115612ea4578251825591602001919060010190612e89565b50612eb0929150612eb4565b5090565b5b80821115612eb05760008155600101612eb5565b803573ffffffffffffffffffffffffffffffffffffffff81168114612eed57600080fd5b919050565b80358015158114612eed57600080fd5b600082601f830112612f1357600080fd5b813567ffffffffffffffff80821115612f2e57612f2e6136ba565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612f7457612f746136ba565b81604052838152866020858801011115612f8d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600060208284031215612fbf57600080fd5b61178982612ec9565b60008060408385031215612fdb57600080fd5b612fe483612ec9565b9150612ff260208401612ec9565b90509250929050565b60008060006060848603121561301057600080fd5b61301984612ec9565b925061302760208501612ec9565b9150604084013590509250925092565b6000806000806080858703121561304d57600080fd5b61305685612ec9565b935061306460208601612ec9565b925060408501359150606085013567ffffffffffffffff81111561308757600080fd5b61309387828801612f02565b91505092959194509250565b600080604083850312156130b257600080fd5b6130bb83612ec9565b9150612ff260208401612ef2565b600080604083850312156130dc57600080fd5b6130e583612ec9565b9150602083013567ffffffffffffffff81111561310157600080fd5b61310d85828601612f02565b9150509250929050565b6000806040838503121561312a57600080fd5b61313383612ec9565b946020939093013593505050565b60006020828403121561315357600080fd5b61178982612ef2565b6000806040838503121561316f57600080fd5b6130e583612ef2565b60006020828403121561318a57600080fd5b8135611789816136e9565b6000602082840312156131a757600080fd5b8151611789816136e9565b6000602082840312156131c457600080fd5b813567ffffffffffffffff8111156131db57600080fd5b61296b84828501612f02565b6000602082840312156131f957600080fd5b5035919050565b6000806040838503121561321357600080fd5b82359150612ff260208401612ec9565b6000806040838503121561323657600080fd5b82359150602083013567ffffffffffffffff81111561310157600080fd5b6000815180845261326c816020860160208601613560565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081516132b0818560208601613560565b9290920192915050565b600083516132cc818460208801613560565b8351908301906132e0818360208801613560565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600080845481600182811c91508083168061332d57607f831692505b6020808410821415613366577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b81801561337a57600181146133a9576133d6565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506133d6565b60008b81526020902060005b868110156133ce5781548b8201529085019083016133b5565b505084890196505b5050505050506134126133e9828661329e565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261345a6080830184613254565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561349c57835183529284019291840191600101613480565b50909695505050505050565b6020815260006117896020830184613254565b600082198211156134ce576134ce61362d565b500190565b600060ff821660ff84168060ff038211156134f0576134f061362d565b019392505050565b6000826135075761350761365c565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135445761354461362d565b500290565b60008282101561355b5761355b61362d565b500390565b60005b8381101561357b578181015183820152602001613563565b838111156115845750506000910152565b600181811c908216806135a057607f821691505b602082108114156135da577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156136125761361261362d565b5060010190565b6000826136285761362861365c565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146119c957600080fdfea164736f6c6343000807000a
Loading...
Loading
Loading...
Loading
OVERVIEW
The HALO label realizes the value in interoperation with the real world through the original economic system and brand effect. Users have a channel of roles to step into the metaverse by holding HALO virtual characters. The character model is not only a static picture but repr...Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.