Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
1220
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DeadiesTombNFT
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; import "ERC721Enumerable.sol"; import "Ownable.sol"; import "ERC721AOwnersExplicit.sol"; import "ERC721APausable.sol"; import "ERC721AQueryable.sol"; import "ReentrancyGuard.sol"; contract DeadiesTombNFT is Ownable, ERC721AOwnersExplicit, ERC721APausable, ERC721AQueryable, ReentrancyGuard { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; string public defaultURI; uint256 public revealedProgress = 0; uint256 public generalCost = 0.005 ether; uint256 public maxFreeSupply = 3000; uint256 public maxSupply = 10000; uint256 public mintPerAddressLimit = 3; uint256 public reserved = 200; address public owner1 = 0x5E2448CE7bfAebE840e6E6dd2600c0aa9D88f4F7; address public owner2 = 0xAE175b64cE7C4Df5cf3e07bb28Bcbaea847F3683; address public owner3 = 0xEE1899fa49A8B7924C1129c3bF5F421Af4097691; constructor( string memory _name, string memory _symbol, string memory _initBaseURI, string memory _initNotRevealedUri ) ERC721A(_name, _symbol) { setBaseURI(_initBaseURI); setDefaultURI(_initNotRevealedUri); _safeMint(owner1, 1); _safeMint(owner2, 1); _safeMint(owner3, 1); } function _beforeTokenTransfers( address from, address to, uint256 tokenId, uint256 quantity) internal override(ERC721A, ERC721APausable) { super._beforeTokenTransfers(from, to, tokenId, quantity); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function GeneralMint(uint256 _amount) public payable whenNotPaused nonReentrant { require(_amount > 0, "need to mint at least 1 NFT"); uint256 supply = totalSupply(); require(supply + _amount <= maxSupply - reserved, "max supply exceeded"); uint256 mintedCount = numberMinted(msg.sender); //check if there's a mint per address limit require(mintedCount + _amount <= mintPerAddressLimit, "max mint per address exceeded"); if(mintedCount == 0 && supply <= maxFreeSupply) { require(msg.value >= generalCost * (_amount - 1), "insufficient funds"); } else { require(msg.value >= generalCost * _amount, "insufficient funds"); } _safeMint(msg.sender, _amount); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function totalMinted() public view returns (uint256) { return _totalMinted(); } function getOwnershipData(uint256 tokenId) public view returns (TokenOwnership memory) { return _ownershipOf(tokenId); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); if (bytes(currentBaseURI).length > 0 && tokenId <= revealedProgress) { return string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)); } else { return string(abi.encodePacked(defaultURI, tokenId.toString(), baseExtension)); } } //ONLY OWNER function burn(uint256 tokenId) public virtual onlyOwner{ _burn(tokenId, true); } function togglePause() external onlyOwner { if (paused()) { _unpause(); } else { _pause(); } } //mint _amount amount of LIFE for to an address function giveAway(address _to, uint256 _amount) external onlyOwner { require(_amount > 0, "need to mint at least 1 NFT"); require(_amount <= reserved, "Exceeds reserved supply"); uint256 supply = totalSupply(); _safeMint(_to, _amount); reserved -= _amount; } function givewayForAll(address[] memory _to) external onlyOwner { require(_to.length > 0, "need to mint at least 1 NFT"); require(_to.length <= reserved, "Exceeds reserved supply"); uint256 supply = totalSupply(); for (uint256 i = 0; i < _to.length; i++) { _safeMint(_to[i], 1); } reserved -= _to.length; } function setRevealedProgress(uint256 _set) public onlyOwner { revealedProgress = _set; } function setMaxSupply(uint256 _set) public onlyOwner { maxSupply = _set; } function setMaxFreeSupply(uint256 _set) public onlyOwner { maxFreeSupply = _set; } function setCost(uint256 _set) public onlyOwner { generalCost = _set; } function setBaseURI(string memory _set) public onlyOwner { baseURI = _set; } function setBaseExtension(string memory _set) public onlyOwner { baseExtension = _set; } function setDefaultURI(string memory _set) public onlyOwner { defaultURI = _set; } function setMintPerAddressLimit(uint256 _limit) public onlyOwner { mintPerAddressLimit = _limit; } function withdrawAll() external onlyOwner { uint256 amount = address(this).balance / 3; require(amount > 0); _widthdraw(owner1, amount); _widthdraw(owner2, amount); _widthdraw(owner3, amount); } function _widthdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); require(success, "Transfer failed."); } function setDeadiesTombOwner(address _set1, address _set2, address _set3) public onlyOwner { owner1 = _set1; owner2 = _set2; owner3 = _set3; } function setOwnersExplicit(uint256 quantity) external onlyOwner { _setOwnersExplicit(quantity); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "ERC721.sol"; import "IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "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 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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) (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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (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 v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "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 "ERC721A.sol"; error AllOwnershipsHaveBeenSet(); error QuantityMustBeNonZero(); error NoTokensMintedYet(); abstract contract ERC721AOwnersExplicit is ERC721A { uint256 public nextOwnerToExplicitlySet; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { if (quantity == 0) revert QuantityMustBeNonZero(); if (_currentIndex == _startTokenId()) revert NoTokensMintedYet(); uint256 _nextOwnerToExplicitlySet = nextOwnerToExplicitlySet; if (_nextOwnerToExplicitlySet == 0) { _nextOwnerToExplicitlySet = _startTokenId(); } if (_nextOwnerToExplicitlySet >= _currentIndex) revert AllOwnershipsHaveBeenSet(); // Index underflow is impossible. // Counter or index overflow is incredibly unrealistic. unchecked { uint256 endIndex = _nextOwnerToExplicitlySet + quantity - 1; // Set the end index to be the last token index if (endIndex + 1 > _currentIndex) { endIndex = _currentIndex - 1; } for (uint256 i = _nextOwnerToExplicitlySet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0) && !_ownerships[i].burned) { TokenOwnership memory ownership = _ownershipOf(i); _ownerships[i].addr = ownership.addr; _ownerships[i].startTimestamp = ownership.startTimestamp; } } nextOwnerToExplicitlySet = endIndex + 1; } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { 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) { 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) { 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 { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.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; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.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; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "ERC721A.sol"; import "Pausable.sol"; error ContractPaused(); /** * @dev ERC721A token with pausable token transfers, minting and burning. * * Based off of OpenZeppelin's ERC721Pausable extension. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721APausable is ERC721A, Pausable { /** * @dev See {ERC721A-_beforeTokenTransfers}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { super._beforeTokenTransfers(from, to, startTokenId, quantity); if (paused()) revert ContractPaused(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "ERC721A.sol"; error InvalidQueryRange(); /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllOwnershipsHaveBeenSet","type":"error"},{"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":"ContractPaused","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoTokensMintedYet","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"QuantityMustBeNonZero","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":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"GeneralMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generalCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"}],"name":"givewayForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreeSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPerAddressLimit","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":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner3","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealedProgress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_set","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_set","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_set","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_set1","type":"address"},{"internalType":"address","name":"_set2","type":"address"},{"internalType":"address","name":"_set3","type":"address"}],"name":"setDeadiesTombOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_set","type":"string"}],"name":"setDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_set","type":"uint256"}],"name":"setMaxFreeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_set","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMintPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_set","type":"uint256"}],"name":"setRevealedProgress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526005608081905264173539b7b760d91b60a09081526200002891600d91906200061a565b506000600f556611c37937e08000601055610bb8601155612710601255600360135560c8601455601580546001600160a01b0319908116735e2448ce7bfaebe840e6e6dd2600c0aa9d88f4f71790915560168054821673ae175b64ce7c4df5cf3e07bb28bcbaea847f36831790556017805490911673ee1899fa49a8b7924c1129c3bf5f421af4097691179055348015620000c257600080fd5b5060405162003b6438038062003b64833981016040819052620000e59162000796565b8383620000f2336200019d565b8151620001079060039060208501906200061a565b5080516200011d9060049060208401906200061a565b50506001808055600a805460ff19169055600b55506200013d82620001ed565b620001488162000255565b60155462000161906001600160a01b03166001620002b5565b6016546200017a906001600160a01b03166001620002b5565b60175462000193906001600160a01b03166001620002b5565b5050505062000915565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146200023c5760405162461bcd60e51b8152602060048201819052602482015260008051602062003b2483398151915260448201526064015b60405180910390fd5b80516200025190600c9060208401906200061a565b5050565b6000546001600160a01b03163314620002a05760405162461bcd60e51b8152602060048201819052602482015260008051602062003b24833981519152604482015260640162000233565b80516200025190600e9060208401906200061a565b62000251828260405180602001604052806000815250620002d760201b60201c565b620002e68383836001620002eb565b505050565b6001546001600160a01b0385166200031557604051622e076360e81b815260040160405180910390fd5b83620003345760405163b562e8dd60e01b815260040160405180910390fd5b620003436000868387620004bd565b6001600160a01b038516600081815260066020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015620003fc5750620003fc876001600160a01b0316620004dc60201b62001c081760201c565b156200047c575b60405182906001600160a01b0389169060009060008051602062003b44833981519152908290a460018201916200044090600090899088620004eb565b6200045e576040516368d2bf6b60e11b815260040160405180910390fd5b80821415620004035782600154146200047657600080fd5b620004b2565b5b6040516001830192906001600160a01b0389169060009060008051602062003b44833981519152908290a4808214156200047d575b506001555050505050565b620004d684848484620005dc60201b62001c171760201c565b50505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290620005229033908990889088906004016200084f565b6020604051808303816000875af192505050801562000560575060408051601f3d908101601f191682019092526200055d91810190620008a5565b60015b620005bf573d80801562000591576040519150601f19603f3d011682016040523d82523d6000602084013e62000596565b606091505b508051620005b7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b620005f584848484620004d660201b6200141c1760201c565b600a5460ff1615620004d65760405163ab35696f60e01b815260040160405180910390fd5b8280546200062890620008d8565b90600052602060002090601f0160209004810192826200064c576000855562000697565b82601f106200066757805160ff191683800117855562000697565b8280016001018555821562000697579182015b82811115620006975782518255916020019190600101906200067a565b50620006a5929150620006a9565b5090565b5b80821115620006a55760008155600101620006aa565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620006f3578181015183820152602001620006d9565b83811115620004d65750506000910152565b600082601f8301126200071757600080fd5b81516001600160401b0380821115620007345762000734620006c0565b604051601f8301601f19908116603f011681019082821181831017156200075f576200075f620006c0565b816040528381528660208588010111156200077957600080fd5b6200078c846020830160208901620006d6565b9695505050505050565b60008060008060808587031215620007ad57600080fd5b84516001600160401b0380821115620007c557600080fd5b620007d38883890162000705565b95506020870151915080821115620007ea57600080fd5b620007f88883890162000705565b945060408701519150808211156200080f57600080fd5b6200081d8883890162000705565b935060608701519150808211156200083457600080fd5b50620008438782880162000705565b91505092959194509250565b600060018060a01b0380871683528086166020840152508360408301526080606083015282518060808401526200088e8160a0850160208701620006d6565b601f01601f19169190910160a00195945050505050565b600060208284031215620008b857600080fd5b81516001600160e01b031981168114620008d157600080fd5b9392505050565b600181811c90821680620008ed57607f821691505b602082108114156200090f57634e487b7160e01b600052602260045260246000fd5b50919050565b6131ff80620009256000396000f3fe6080604052600436106103355760003560e01c8063853828b6116101ab578063c87b56dd116100f7578063da3ef23f11610095578063f2fde38b1161006f578063f2fde38b14610940578063f8d9ecf114610960578063fdc759d114610973578063fe60d12c1461099357600080fd5b8063da3ef23f146108e0578063dc33e68114610900578063e985e9c51461092057600080fd5b8063d5abeb01116100d1578063d5abeb011461087e578063d7224ba014610894578063d8b240e1146108aa578063da1b9e08146108c057600080fd5b8063c87b56dd1461081e578063ca8001441461083e578063d33cbf131461085e57600080fd5b8063a2309ff811610164578063b88d4fde1161013e578063b88d4fde146107b4578063c23dc68f146107d4578063c4ae3168146107f4578063c66828621461080957600080fd5b8063a2309ff81461075f578063b521fdb814610774578063b6f36dcf1461079457600080fd5b8063853828b6146106aa5780638da5cb5b146106bf5780639231ab2a146106dd57806395d89b411461070a57806399a2557a1461071f578063a22cb4651461073f57600080fd5b806352709725116102855780636f8b44b01161022357806373688914116101fd578063736889141461063157806375dc983d146106515780637bd82416146106675780638462151c1461067d57600080fd5b80636f8b44b0146105dc57806370a08231146105fc578063715018a61461061c57600080fd5b80635bbb21771161025f5780635bbb2177146105625780635c975abb1461058f5780636352211e146105a75780636c0360eb146105c757600080fd5b8063527097251461050257806355f804b3146105225780635b28fd911461054257600080fd5b806323b872dd116102f257806342842e0e116102cc57806342842e0e1461048c57806342966c68146104ac57806344a0d68a146104cc57806347513334146104ec57600080fd5b806323b872dd146104375780632d20fb60146104575780633a367a671461047757600080fd5b806301ffc9a71461033a57806306fdde031461036f578063081812fc14610391578063095ea7b3146103c957806318160ddd146103eb57806320496e4b14610417575b600080fd5b34801561034657600080fd5b5061035a610355366004612955565b6109a9565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b506103846109fb565b60405161036691906129ca565b34801561039d57600080fd5b506103b16103ac3660046129dd565b610a8d565b6040516001600160a01b039091168152602001610366565b3480156103d557600080fd5b506103e96103e4366004612a12565b610ad1565b005b3480156103f757600080fd5b50610409600254600154036000190190565b604051908152602001610366565b34801561042357600080fd5b506103e9610432366004612a3c565b610b5f565b34801561044357600080fd5b506103e9610452366004612a7f565b610bd1565b34801561046357600080fd5b506103e96104723660046129dd565b610bdc565b34801561048357600080fd5b50610384610c12565b34801561049857600080fd5b506103e96104a7366004612a7f565b610ca0565b3480156104b857600080fd5b506103e96104c73660046129dd565b610cbb565b3480156104d857600080fd5b506103e96104e73660046129dd565b610cf0565b3480156104f857600080fd5b5061040960115481565b34801561050e57600080fd5b506016546103b1906001600160a01b031681565b34801561052e57600080fd5b506103e961053d366004612b58565b610d1f565b34801561054e57600080fd5b506103e961055d3660046129dd565b610d60565b34801561056e57600080fd5b5061058261057d366004612bc3565b610d8f565b6040516103669190612c58565b34801561059b57600080fd5b50600a5460ff1661035a565b3480156105b357600080fd5b506103b16105c23660046129dd565b610e55565b3480156105d357600080fd5b50610384610e67565b3480156105e857600080fd5b506103e96105f73660046129dd565b610e74565b34801561060857600080fd5b50610409610617366004612cc2565b610ea3565b34801561062857600080fd5b506103e9610ef1565b34801561063d57600080fd5b506015546103b1906001600160a01b031681565b34801561065d57600080fd5b5061040960135481565b34801561067357600080fd5b50610409600f5481565b34801561068957600080fd5b5061069d610698366004612cc2565b610f27565b6040516103669190612cdd565b3480156106b657600080fd5b506103e9611074565b3480156106cb57600080fd5b506000546001600160a01b03166103b1565b3480156106e957600080fd5b506106fd6106f83660046129dd565b6110fc565b6040516103669190612d15565b34801561071657600080fd5b50610384611122565b34801561072b57600080fd5b5061069d61073a366004612d4a565b611131565b34801561074b57600080fd5b506103e961075a366004612d7d565b6112f8565b34801561076b57600080fd5b5061040961138e565b34801561078057600080fd5b506103e961078f3660046129dd565b6113a2565b3480156107a057600080fd5b506017546103b1906001600160a01b031681565b3480156107c057600080fd5b506103e96107cf366004612db9565b6113d1565b3480156107e057600080fd5b506106fd6107ef3660046129dd565b611422565b34801561080057600080fd5b506103e96114dc565b34801561081557600080fd5b50610384611521565b34801561082a57600080fd5b506103846108393660046129dd565b61152e565b34801561084a57600080fd5b506103e9610859366004612a12565b61161b565b34801561086a57600080fd5b506103e9610879366004612e34565b6116ec565b34801561088a57600080fd5b5061040960125481565b3480156108a057600080fd5b5061040960095481565b3480156108b657600080fd5b5061040960105481565b3480156108cc57600080fd5b506103e96108db366004612b58565b6117f8565b3480156108ec57600080fd5b506103e96108fb366004612b58565b611835565b34801561090c57600080fd5b5061040961091b366004612cc2565b611872565b34801561092c57600080fd5b5061035a61093b366004612ec0565b6118a0565b34801561094c57600080fd5b506103e961095b366004612cc2565b6118ce565b6103e961096e3660046129dd565b611966565b34801561097f57600080fd5b506103e961098e3660046129dd565b611bd9565b34801561099f57600080fd5b5061040960145481565b60006001600160e01b031982166380ac58cd60e01b14806109da57506001600160e01b03198216635b5e139f60e01b145b806109f557506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610a0a90612ef3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690612ef3565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b5050505050905090565b6000610a9882611c3b565b610ab5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610adc82610e55565b9050806001600160a01b0316836001600160a01b03161415610b115760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b315750610b2f81336118a0565b155b15610b4f576040516367d9dca160e11b815260040160405180910390fd5b610b5a838383611c74565b505050565b6000546001600160a01b03163314610b925760405162461bcd60e51b8152600401610b8990612f28565b60405180910390fd5b601580546001600160a01b039485166001600160a01b031991821617909155601680549385169382169390931790925560178054919093169116179055565b610b5a838383611cd0565b6000546001600160a01b03163314610c065760405162461bcd60e51b8152600401610b8990612f28565b610c0f81611eb9565b50565b600e8054610c1f90612ef3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4b90612ef3565b8015610c985780601f10610c6d57610100808354040283529160200191610c98565b820191906000526020600020905b815481529060010190602001808311610c7b57829003601f168201915b505050505081565b610b5a838383604051806020016040528060008152506113d1565b6000546001600160a01b03163314610ce55760405162461bcd60e51b8152600401610b8990612f28565b610c0f816001611ff3565b6000546001600160a01b03163314610d1a5760405162461bcd60e51b8152600401610b8990612f28565b601055565b6000546001600160a01b03163314610d495760405162461bcd60e51b8152600401610b8990612f28565b8051610d5c90600c9060208401906128a6565b5050565b6000546001600160a01b03163314610d8a5760405162461bcd60e51b8152600401610b8990612f28565b601155565b80516060906000816001600160401b03811115610dae57610dae612abb565b604051908082528060200260200182016040528015610df957816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610dcc5790505b50905060005b828114610e4d57610e28858281518110610e1b57610e1b612f5d565b6020026020010151611422565b828281518110610e3a57610e3a612f5d565b6020908102919091010152600101610dff565b509392505050565b6000610e60826121b5565b5192915050565b600c8054610c1f90612ef3565b6000546001600160a01b03163314610e9e5760405162461bcd60e51b8152600401610b8990612f28565b601255565b60006001600160a01b038216610ecc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03163314610f1b5760405162461bcd60e51b8152600401610b8990612f28565b610f2560006122dc565b565b60606000806000610f3785610ea3565b90506000816001600160401b03811115610f5357610f53612abb565b604051908082528060200260200182016040528015610f7c578160200160208202803683370190505b509050610fa2604080516060810182526000808252602082018190529181019190915290565b60015b83861461106857600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252925061100b57611060565b81516001600160a01b03161561102057815194505b876001600160a01b0316856001600160a01b03161415611060578083878060010198508151811061105357611053612f5d565b6020026020010181815250505b600101610fa5565b50909695505050505050565b6000546001600160a01b0316331461109e5760405162461bcd60e51b8152600401610b8990612f28565b60006110ab600347612f9f565b9050600081116110ba57600080fd5b6015546110d0906001600160a01b03168261232c565b6016546110e6906001600160a01b03168261232c565b601754610c0f906001600160a01b03168261232c565b60408051606081018252600080825260208201819052918101919091526109f5826121b5565b606060048054610a0a90612ef3565b606081831061115357604051631960ccad60e11b815260040160405180910390fd5b6001805460009185101561116657600194505b80841115611172578093505b600061117d87610ea3565b90508486101561119c5785850381811015611196578091505b506111a0565b5060005b6000816001600160401b038111156111ba576111ba612abb565b6040519080825280602002602001820160405280156111e3578160200160208202803683370190505b509050816111f65793506112f192505050565b600061120188611422565b905060008160400151611212575080515b885b8881141580156112245750848714155b156112e557600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529350611288576112dd565b82516001600160a01b03161561129d57825191505b8a6001600160a01b0316826001600160a01b031614156112dd57808488806001019950815181106112d0576112d0612f5d565b6020026020010181815250505b600101611214565b50505092835250909150505b9392505050565b6001600160a01b0382163314156113225760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061139d6001546000190190565b905090565b6000546001600160a01b031633146113cc5760405162461bcd60e51b8152600401610b8990612f28565b600f55565b6113dc848484611cd0565b6001600160a01b0383163b151580156113fe57506113fc848484846123c2565b155b1561141c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061146857506001548310155b156114735792915050565b50600082815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906114d35792915050565b6112f1836121b5565b6000546001600160a01b031633146115065760405162461bcd60e51b8152600401610b8990612f28565b600a5460ff161561151957610f256124ab565b610f2561253e565b600d8054610c1f90612ef3565b606061153982611c3b565b61159d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b89565b60006115a76125b9565b9050600081511180156115bc5750600f548311155b156115f657806115cb846125c8565b600d6040516020016115df9392919061304d565b604051602081830303815290604052915050919050565b600e611601846125c8565b600d6040516020016115df9392919061307f565b50919050565b6000546001600160a01b031633146116455760405162461bcd60e51b8152600401610b8990612f28565b600081116116655760405162461bcd60e51b8152600401610b899061309b565b6014548111156116b15760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610b89565b60006116c4600254600154036000190190565b90506116d083836126c5565b81601460008282546116e291906130d2565b9091555050505050565b6000546001600160a01b031633146117165760405162461bcd60e51b8152600401610b8990612f28565b60008151116117375760405162461bcd60e51b8152600401610b899061309b565b601454815111156117845760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610b89565b6000611797600254600154036000190190565b905060005b82518110156117db576117c98382815181106117ba576117ba612f5d565b602002602001015160016126c5565b806117d3816130e9565b91505061179c565b508151601460008282546117ef91906130d2565b90915550505050565b6000546001600160a01b031633146118225760405162461bcd60e51b8152600401610b8990612f28565b8051610d5c90600e9060208401906128a6565b6000546001600160a01b0316331461185f5760405162461bcd60e51b8152600401610b8990612f28565b8051610d5c90600d9060208401906128a6565b6001600160a01b038116600090815260066020526040812054600160401b90046001600160401b03166109f5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b031633146118f85760405162461bcd60e51b8152600401610b8990612f28565b6001600160a01b03811661195d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b89565b610c0f816122dc565b600a5460ff16156119ac5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b89565b6002600b5414156119ff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b89565b6002600b5580611a215760405162461bcd60e51b8152600401610b899061309b565b6000611a34600254600154036000190190565b9050601454601254611a4691906130d2565b611a508383613104565b1115611a945760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610b89565b6000611a9f33611872565b601354909150611aaf8483613104565b1115611afd5760405162461bcd60e51b815260206004820152601d60248201527f6d6178206d696e742070657220616464726573732065786365656465640000006044820152606401610b89565b80158015611b0d57506011548211155b15611b7357611b1d6001846130d2565b601054611b2a919061311c565b341015611b6e5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610b89565b611bc5565b82601054611b81919061311c565b341015611bc55760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610b89565b611bcf33846126c5565b50506001600b5550565b6000546001600160a01b03163314611c035760405162461bcd60e51b8152600401610b8990612f28565b601355565b6001600160a01b03163b151590565b600a5460ff161561141c5760405163ab35696f60e01b815260040160405180910390fd5b600081600111158015611c4f575060015482105b80156109f5575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611cdb826121b5565b9050836001600160a01b031681600001516001600160a01b031614611d125760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611d305750611d3085336118a0565b80611d4b575033611d4084610a8d565b6001600160a01b0316145b905080611d6b57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611d9257604051633a954ecd60e21b815260040160405180910390fd5b611d9f85858560016126df565b611dab60008487611c74565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611e7f576001548214611e7f57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206131aa83398151915260405160405180910390a45b5050505050565b80611ed7576040516356be441560e01b815260040160405180910390fd5b600180541415611efa5760405163c0367cab60e01b815260040160405180910390fd5b60095480611f06575060015b6001548110611f28576040516370e89b1b60e01b815260040160405180910390fd5b6001548282016000198101911015611f435750600154600019015b815b818111611fe8576000818152600560205260409020546001600160a01b0316158015611f875750600081815260056020526040902054600160e01b900460ff16155b15611fe0576000611f97826121b5565b80516000848152600560209081526040909120805491909301516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055505b600101611f45565b506001016009555050565b6000611ffe836121b5565b80519091508215612064576000336001600160a01b0383161480612027575061202782336118a0565b8061204257503361203786610a8d565b6001600160a01b0316145b90508061206257604051632ce44b5f60e11b815260040160405180910390fd5b505b6120728160008660016126df565b61207e60008583611c74565b6001600160a01b0380821660008181526006602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526005909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661217c57600154821461217c57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206131aa833981519152908390a450506002805460010190555050565b604080516060810182526000808252602082018190529181019190915281806001111580156121e5575060015481105b156122c357600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906122c15780516001600160a01b031615612258579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156122bc579392505050565b612258565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612379576040519150601f19603f3d011682016040523d82523d6000602084013e61237e565b606091505b5050905080610b5a5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610b89565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906123f790339089908890889060040161313b565b6020604051808303816000875af1925050508015612432575060408051601f3d908101601f1916820190925261242f91810190613178565b60015b61248d573d808015612460576040519150601f19603f3d011682016040523d82523d6000602084013e612465565b606091505b508051612485576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600a5460ff166124f45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b89565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff16156125845760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b89565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125213390565b6060600c8054610a0a90612ef3565b6060816125ec5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126165780612600816130e9565b915061260f9050600a83612f9f565b91506125f0565b6000816001600160401b0381111561263057612630612abb565b6040519080825280601f01601f19166020018201604052801561265a576020820181803683370190505b5090505b84156124a35761266f6001836130d2565b915061267c600a86613195565b612687906030613104565b60f81b81838151811061269c5761269c612f5d565b60200101906001600160f81b031916908160001a9053506126be600a86612f9f565b945061265e565b610d5c8282604051806020016040528060008152506126eb565b61141c84848484611c17565b610b5a838383600180546001600160a01b03851661271b57604051622e076360e81b815260040160405180910390fd5b836127395760405163b562e8dd60e01b815260040160405180910390fd5b61274660008683876126df565b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156127f257506001600160a01b0387163b15155b15612869575b60405182906001600160a01b038916906000906000805160206131aa833981519152908290a461283160008884806001019550886123c2565b61284e576040516368d2bf6b60e11b815260040160405180910390fd5b808214156127f857826001541461286457600080fd5b61289d565b5b6040516001830192906001600160a01b038916906000906000805160206131aa833981519152908290a48082141561286a575b50600155611eb2565b8280546128b290612ef3565b90600052602060002090601f0160209004810192826128d4576000855561291a565b82601f106128ed57805160ff191683800117855561291a565b8280016001018555821561291a579182015b8281111561291a5782518255916020019190600101906128ff565b5061292692915061292a565b5090565b5b80821115612926576000815560010161292b565b6001600160e01b031981168114610c0f57600080fd5b60006020828403121561296757600080fd5b81356112f18161293f565b60005b8381101561298d578181015183820152602001612975565b8381111561141c5750506000910152565b600081518084526129b6816020860160208601612972565b601f01601f19169290920160200192915050565b6020815260006112f1602083018461299e565b6000602082840312156129ef57600080fd5b5035919050565b80356001600160a01b0381168114612a0d57600080fd5b919050565b60008060408385031215612a2557600080fd5b612a2e836129f6565b946020939093013593505050565b600080600060608486031215612a5157600080fd5b612a5a846129f6565b9250612a68602085016129f6565b9150612a76604085016129f6565b90509250925092565b600080600060608486031215612a9457600080fd5b612a9d846129f6565b9250612aab602085016129f6565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612af957612af9612abb565b604052919050565b60006001600160401b03831115612b1a57612b1a612abb565b612b2d601f8401601f1916602001612ad1565b9050828152838383011115612b4157600080fd5b828260208301376000602084830101529392505050565b600060208284031215612b6a57600080fd5b81356001600160401b03811115612b8057600080fd5b8201601f81018413612b9157600080fd5b6124a384823560208401612b01565b60006001600160401b03821115612bb957612bb9612abb565b5060051b60200190565b60006020808385031215612bd657600080fd5b82356001600160401b03811115612bec57600080fd5b8301601f81018513612bfd57600080fd5b8035612c10612c0b82612ba0565b612ad1565b81815260059190911b82018301908381019087831115612c2f57600080fd5b928401925b82841015612c4d57833582529284019290840190612c34565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561106857612caf83855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101612c74565b600060208284031215612cd457600080fd5b6112f1826129f6565b6020808252825182820181905260009190848201906040850190845b8181101561106857835183529284019291840191600101612cf9565b81516001600160a01b031681526020808301516001600160401b031690820152604080830151151590820152606081016109f5565b600080600060608486031215612d5f57600080fd5b612d68846129f6565b95602085013595506040909401359392505050565b60008060408385031215612d9057600080fd5b612d99836129f6565b915060208301358015158114612dae57600080fd5b809150509250929050565b60008060008060808587031215612dcf57600080fd5b612dd8856129f6565b9350612de6602086016129f6565b92506040850135915060608501356001600160401b03811115612e0857600080fd5b8501601f81018713612e1957600080fd5b612e2887823560208401612b01565b91505092959194509250565b60006020808385031215612e4757600080fd5b82356001600160401b03811115612e5d57600080fd5b8301601f81018513612e6e57600080fd5b8035612e7c612c0b82612ba0565b81815260059190911b82018301908381019087831115612e9b57600080fd5b928401925b82841015612c4d57612eb1846129f6565b82529284019290840190612ea0565b60008060408385031215612ed357600080fd5b612edc836129f6565b9150612eea602084016129f6565b90509250929050565b600181811c90821680612f0757607f821691505b6020821081141561161557634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082612fae57612fae612f73565b500490565b8054600090600181811c9080831680612fcd57607f831692505b6020808410821415612fef57634e487b7160e01b600052602260045260246000fd5b818015613003576001811461301457613041565b60ff19861689528489019650613041565b60008881526020902060005b868110156130395781548b820152908501908301613020565b505084890196505b50505050505092915050565b6000845161305f818460208901612972565b845190830190613073818360208901612972565b612c4d81830186612fb3565b600061308b8286612fb3565b8451613073818360208901612972565b6020808252601b908201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604082015260600190565b6000828210156130e4576130e4612f89565b500390565b60006000198214156130fd576130fd612f89565b5060010190565b6000821982111561311757613117612f89565b500190565b600081600019048311821515161561313657613136612f89565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061316e9083018461299e565b9695505050505050565b60006020828403121561318a57600080fd5b81516112f18161293f565b6000826131a4576131a4612f73565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220fd1fc7405716406b57c3d8ca5c7e73957b020177ad032b10ca633443a45aff1d64736f6c634300080b00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000b64656164696573746f6d620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006444541444945000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d6532414e5a3663694c516d784a5467676d66686b37555a394568377a434d353265704569445858486262724c2f000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103355760003560e01c8063853828b6116101ab578063c87b56dd116100f7578063da3ef23f11610095578063f2fde38b1161006f578063f2fde38b14610940578063f8d9ecf114610960578063fdc759d114610973578063fe60d12c1461099357600080fd5b8063da3ef23f146108e0578063dc33e68114610900578063e985e9c51461092057600080fd5b8063d5abeb01116100d1578063d5abeb011461087e578063d7224ba014610894578063d8b240e1146108aa578063da1b9e08146108c057600080fd5b8063c87b56dd1461081e578063ca8001441461083e578063d33cbf131461085e57600080fd5b8063a2309ff811610164578063b88d4fde1161013e578063b88d4fde146107b4578063c23dc68f146107d4578063c4ae3168146107f4578063c66828621461080957600080fd5b8063a2309ff81461075f578063b521fdb814610774578063b6f36dcf1461079457600080fd5b8063853828b6146106aa5780638da5cb5b146106bf5780639231ab2a146106dd57806395d89b411461070a57806399a2557a1461071f578063a22cb4651461073f57600080fd5b806352709725116102855780636f8b44b01161022357806373688914116101fd578063736889141461063157806375dc983d146106515780637bd82416146106675780638462151c1461067d57600080fd5b80636f8b44b0146105dc57806370a08231146105fc578063715018a61461061c57600080fd5b80635bbb21771161025f5780635bbb2177146105625780635c975abb1461058f5780636352211e146105a75780636c0360eb146105c757600080fd5b8063527097251461050257806355f804b3146105225780635b28fd911461054257600080fd5b806323b872dd116102f257806342842e0e116102cc57806342842e0e1461048c57806342966c68146104ac57806344a0d68a146104cc57806347513334146104ec57600080fd5b806323b872dd146104375780632d20fb60146104575780633a367a671461047757600080fd5b806301ffc9a71461033a57806306fdde031461036f578063081812fc14610391578063095ea7b3146103c957806318160ddd146103eb57806320496e4b14610417575b600080fd5b34801561034657600080fd5b5061035a610355366004612955565b6109a9565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b506103846109fb565b60405161036691906129ca565b34801561039d57600080fd5b506103b16103ac3660046129dd565b610a8d565b6040516001600160a01b039091168152602001610366565b3480156103d557600080fd5b506103e96103e4366004612a12565b610ad1565b005b3480156103f757600080fd5b50610409600254600154036000190190565b604051908152602001610366565b34801561042357600080fd5b506103e9610432366004612a3c565b610b5f565b34801561044357600080fd5b506103e9610452366004612a7f565b610bd1565b34801561046357600080fd5b506103e96104723660046129dd565b610bdc565b34801561048357600080fd5b50610384610c12565b34801561049857600080fd5b506103e96104a7366004612a7f565b610ca0565b3480156104b857600080fd5b506103e96104c73660046129dd565b610cbb565b3480156104d857600080fd5b506103e96104e73660046129dd565b610cf0565b3480156104f857600080fd5b5061040960115481565b34801561050e57600080fd5b506016546103b1906001600160a01b031681565b34801561052e57600080fd5b506103e961053d366004612b58565b610d1f565b34801561054e57600080fd5b506103e961055d3660046129dd565b610d60565b34801561056e57600080fd5b5061058261057d366004612bc3565b610d8f565b6040516103669190612c58565b34801561059b57600080fd5b50600a5460ff1661035a565b3480156105b357600080fd5b506103b16105c23660046129dd565b610e55565b3480156105d357600080fd5b50610384610e67565b3480156105e857600080fd5b506103e96105f73660046129dd565b610e74565b34801561060857600080fd5b50610409610617366004612cc2565b610ea3565b34801561062857600080fd5b506103e9610ef1565b34801561063d57600080fd5b506015546103b1906001600160a01b031681565b34801561065d57600080fd5b5061040960135481565b34801561067357600080fd5b50610409600f5481565b34801561068957600080fd5b5061069d610698366004612cc2565b610f27565b6040516103669190612cdd565b3480156106b657600080fd5b506103e9611074565b3480156106cb57600080fd5b506000546001600160a01b03166103b1565b3480156106e957600080fd5b506106fd6106f83660046129dd565b6110fc565b6040516103669190612d15565b34801561071657600080fd5b50610384611122565b34801561072b57600080fd5b5061069d61073a366004612d4a565b611131565b34801561074b57600080fd5b506103e961075a366004612d7d565b6112f8565b34801561076b57600080fd5b5061040961138e565b34801561078057600080fd5b506103e961078f3660046129dd565b6113a2565b3480156107a057600080fd5b506017546103b1906001600160a01b031681565b3480156107c057600080fd5b506103e96107cf366004612db9565b6113d1565b3480156107e057600080fd5b506106fd6107ef3660046129dd565b611422565b34801561080057600080fd5b506103e96114dc565b34801561081557600080fd5b50610384611521565b34801561082a57600080fd5b506103846108393660046129dd565b61152e565b34801561084a57600080fd5b506103e9610859366004612a12565b61161b565b34801561086a57600080fd5b506103e9610879366004612e34565b6116ec565b34801561088a57600080fd5b5061040960125481565b3480156108a057600080fd5b5061040960095481565b3480156108b657600080fd5b5061040960105481565b3480156108cc57600080fd5b506103e96108db366004612b58565b6117f8565b3480156108ec57600080fd5b506103e96108fb366004612b58565b611835565b34801561090c57600080fd5b5061040961091b366004612cc2565b611872565b34801561092c57600080fd5b5061035a61093b366004612ec0565b6118a0565b34801561094c57600080fd5b506103e961095b366004612cc2565b6118ce565b6103e961096e3660046129dd565b611966565b34801561097f57600080fd5b506103e961098e3660046129dd565b611bd9565b34801561099f57600080fd5b5061040960145481565b60006001600160e01b031982166380ac58cd60e01b14806109da57506001600160e01b03198216635b5e139f60e01b145b806109f557506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610a0a90612ef3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690612ef3565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b5050505050905090565b6000610a9882611c3b565b610ab5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610adc82610e55565b9050806001600160a01b0316836001600160a01b03161415610b115760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b315750610b2f81336118a0565b155b15610b4f576040516367d9dca160e11b815260040160405180910390fd5b610b5a838383611c74565b505050565b6000546001600160a01b03163314610b925760405162461bcd60e51b8152600401610b8990612f28565b60405180910390fd5b601580546001600160a01b039485166001600160a01b031991821617909155601680549385169382169390931790925560178054919093169116179055565b610b5a838383611cd0565b6000546001600160a01b03163314610c065760405162461bcd60e51b8152600401610b8990612f28565b610c0f81611eb9565b50565b600e8054610c1f90612ef3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4b90612ef3565b8015610c985780601f10610c6d57610100808354040283529160200191610c98565b820191906000526020600020905b815481529060010190602001808311610c7b57829003601f168201915b505050505081565b610b5a838383604051806020016040528060008152506113d1565b6000546001600160a01b03163314610ce55760405162461bcd60e51b8152600401610b8990612f28565b610c0f816001611ff3565b6000546001600160a01b03163314610d1a5760405162461bcd60e51b8152600401610b8990612f28565b601055565b6000546001600160a01b03163314610d495760405162461bcd60e51b8152600401610b8990612f28565b8051610d5c90600c9060208401906128a6565b5050565b6000546001600160a01b03163314610d8a5760405162461bcd60e51b8152600401610b8990612f28565b601155565b80516060906000816001600160401b03811115610dae57610dae612abb565b604051908082528060200260200182016040528015610df957816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610dcc5790505b50905060005b828114610e4d57610e28858281518110610e1b57610e1b612f5d565b6020026020010151611422565b828281518110610e3a57610e3a612f5d565b6020908102919091010152600101610dff565b509392505050565b6000610e60826121b5565b5192915050565b600c8054610c1f90612ef3565b6000546001600160a01b03163314610e9e5760405162461bcd60e51b8152600401610b8990612f28565b601255565b60006001600160a01b038216610ecc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03163314610f1b5760405162461bcd60e51b8152600401610b8990612f28565b610f2560006122dc565b565b60606000806000610f3785610ea3565b90506000816001600160401b03811115610f5357610f53612abb565b604051908082528060200260200182016040528015610f7c578160200160208202803683370190505b509050610fa2604080516060810182526000808252602082018190529181019190915290565b60015b83861461106857600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252925061100b57611060565b81516001600160a01b03161561102057815194505b876001600160a01b0316856001600160a01b03161415611060578083878060010198508151811061105357611053612f5d565b6020026020010181815250505b600101610fa5565b50909695505050505050565b6000546001600160a01b0316331461109e5760405162461bcd60e51b8152600401610b8990612f28565b60006110ab600347612f9f565b9050600081116110ba57600080fd5b6015546110d0906001600160a01b03168261232c565b6016546110e6906001600160a01b03168261232c565b601754610c0f906001600160a01b03168261232c565b60408051606081018252600080825260208201819052918101919091526109f5826121b5565b606060048054610a0a90612ef3565b606081831061115357604051631960ccad60e11b815260040160405180910390fd5b6001805460009185101561116657600194505b80841115611172578093505b600061117d87610ea3565b90508486101561119c5785850381811015611196578091505b506111a0565b5060005b6000816001600160401b038111156111ba576111ba612abb565b6040519080825280602002602001820160405280156111e3578160200160208202803683370190505b509050816111f65793506112f192505050565b600061120188611422565b905060008160400151611212575080515b885b8881141580156112245750848714155b156112e557600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529350611288576112dd565b82516001600160a01b03161561129d57825191505b8a6001600160a01b0316826001600160a01b031614156112dd57808488806001019950815181106112d0576112d0612f5d565b6020026020010181815250505b600101611214565b50505092835250909150505b9392505050565b6001600160a01b0382163314156113225760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061139d6001546000190190565b905090565b6000546001600160a01b031633146113cc5760405162461bcd60e51b8152600401610b8990612f28565b600f55565b6113dc848484611cd0565b6001600160a01b0383163b151580156113fe57506113fc848484846123c2565b155b1561141c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061146857506001548310155b156114735792915050565b50600082815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906114d35792915050565b6112f1836121b5565b6000546001600160a01b031633146115065760405162461bcd60e51b8152600401610b8990612f28565b600a5460ff161561151957610f256124ab565b610f2561253e565b600d8054610c1f90612ef3565b606061153982611c3b565b61159d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b89565b60006115a76125b9565b9050600081511180156115bc5750600f548311155b156115f657806115cb846125c8565b600d6040516020016115df9392919061304d565b604051602081830303815290604052915050919050565b600e611601846125c8565b600d6040516020016115df9392919061307f565b50919050565b6000546001600160a01b031633146116455760405162461bcd60e51b8152600401610b8990612f28565b600081116116655760405162461bcd60e51b8152600401610b899061309b565b6014548111156116b15760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610b89565b60006116c4600254600154036000190190565b90506116d083836126c5565b81601460008282546116e291906130d2565b9091555050505050565b6000546001600160a01b031633146117165760405162461bcd60e51b8152600401610b8990612f28565b60008151116117375760405162461bcd60e51b8152600401610b899061309b565b601454815111156117845760405162461bcd60e51b81526020600482015260176024820152764578636565647320726573657276656420737570706c7960481b6044820152606401610b89565b6000611797600254600154036000190190565b905060005b82518110156117db576117c98382815181106117ba576117ba612f5d565b602002602001015160016126c5565b806117d3816130e9565b91505061179c565b508151601460008282546117ef91906130d2565b90915550505050565b6000546001600160a01b031633146118225760405162461bcd60e51b8152600401610b8990612f28565b8051610d5c90600e9060208401906128a6565b6000546001600160a01b0316331461185f5760405162461bcd60e51b8152600401610b8990612f28565b8051610d5c90600d9060208401906128a6565b6001600160a01b038116600090815260066020526040812054600160401b90046001600160401b03166109f5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b031633146118f85760405162461bcd60e51b8152600401610b8990612f28565b6001600160a01b03811661195d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b89565b610c0f816122dc565b600a5460ff16156119ac5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b89565b6002600b5414156119ff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b89565b6002600b5580611a215760405162461bcd60e51b8152600401610b899061309b565b6000611a34600254600154036000190190565b9050601454601254611a4691906130d2565b611a508383613104565b1115611a945760405162461bcd60e51b81526020600482015260136024820152721b585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610b89565b6000611a9f33611872565b601354909150611aaf8483613104565b1115611afd5760405162461bcd60e51b815260206004820152601d60248201527f6d6178206d696e742070657220616464726573732065786365656465640000006044820152606401610b89565b80158015611b0d57506011548211155b15611b7357611b1d6001846130d2565b601054611b2a919061311c565b341015611b6e5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610b89565b611bc5565b82601054611b81919061311c565b341015611bc55760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610b89565b611bcf33846126c5565b50506001600b5550565b6000546001600160a01b03163314611c035760405162461bcd60e51b8152600401610b8990612f28565b601355565b6001600160a01b03163b151590565b600a5460ff161561141c5760405163ab35696f60e01b815260040160405180910390fd5b600081600111158015611c4f575060015482105b80156109f5575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611cdb826121b5565b9050836001600160a01b031681600001516001600160a01b031614611d125760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611d305750611d3085336118a0565b80611d4b575033611d4084610a8d565b6001600160a01b0316145b905080611d6b57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611d9257604051633a954ecd60e21b815260040160405180910390fd5b611d9f85858560016126df565b611dab60008487611c74565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611e7f576001548214611e7f57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206131aa83398151915260405160405180910390a45b5050505050565b80611ed7576040516356be441560e01b815260040160405180910390fd5b600180541415611efa5760405163c0367cab60e01b815260040160405180910390fd5b60095480611f06575060015b6001548110611f28576040516370e89b1b60e01b815260040160405180910390fd5b6001548282016000198101911015611f435750600154600019015b815b818111611fe8576000818152600560205260409020546001600160a01b0316158015611f875750600081815260056020526040902054600160e01b900460ff16155b15611fe0576000611f97826121b5565b80516000848152600560209081526040909120805491909301516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055505b600101611f45565b506001016009555050565b6000611ffe836121b5565b80519091508215612064576000336001600160a01b0383161480612027575061202782336118a0565b8061204257503361203786610a8d565b6001600160a01b0316145b90508061206257604051632ce44b5f60e11b815260040160405180910390fd5b505b6120728160008660016126df565b61207e60008583611c74565b6001600160a01b0380821660008181526006602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526005909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661217c57600154821461217c57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206131aa833981519152908390a450506002805460010190555050565b604080516060810182526000808252602082018190529181019190915281806001111580156121e5575060015481105b156122c357600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906122c15780516001600160a01b031615612258579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156122bc579392505050565b612258565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612379576040519150601f19603f3d011682016040523d82523d6000602084013e61237e565b606091505b5050905080610b5a5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610b89565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906123f790339089908890889060040161313b565b6020604051808303816000875af1925050508015612432575060408051601f3d908101601f1916820190925261242f91810190613178565b60015b61248d573d808015612460576040519150601f19603f3d011682016040523d82523d6000602084013e612465565b606091505b508051612485576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600a5460ff166124f45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b89565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff16156125845760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b89565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125213390565b6060600c8054610a0a90612ef3565b6060816125ec5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126165780612600816130e9565b915061260f9050600a83612f9f565b91506125f0565b6000816001600160401b0381111561263057612630612abb565b6040519080825280601f01601f19166020018201604052801561265a576020820181803683370190505b5090505b84156124a35761266f6001836130d2565b915061267c600a86613195565b612687906030613104565b60f81b81838151811061269c5761269c612f5d565b60200101906001600160f81b031916908160001a9053506126be600a86612f9f565b945061265e565b610d5c8282604051806020016040528060008152506126eb565b61141c84848484611c17565b610b5a838383600180546001600160a01b03851661271b57604051622e076360e81b815260040160405180910390fd5b836127395760405163b562e8dd60e01b815260040160405180910390fd5b61274660008683876126df565b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156127f257506001600160a01b0387163b15155b15612869575b60405182906001600160a01b038916906000906000805160206131aa833981519152908290a461283160008884806001019550886123c2565b61284e576040516368d2bf6b60e11b815260040160405180910390fd5b808214156127f857826001541461286457600080fd5b61289d565b5b6040516001830192906001600160a01b038916906000906000805160206131aa833981519152908290a48082141561286a575b50600155611eb2565b8280546128b290612ef3565b90600052602060002090601f0160209004810192826128d4576000855561291a565b82601f106128ed57805160ff191683800117855561291a565b8280016001018555821561291a579182015b8281111561291a5782518255916020019190600101906128ff565b5061292692915061292a565b5090565b5b80821115612926576000815560010161292b565b6001600160e01b031981168114610c0f57600080fd5b60006020828403121561296757600080fd5b81356112f18161293f565b60005b8381101561298d578181015183820152602001612975565b8381111561141c5750506000910152565b600081518084526129b6816020860160208601612972565b601f01601f19169290920160200192915050565b6020815260006112f1602083018461299e565b6000602082840312156129ef57600080fd5b5035919050565b80356001600160a01b0381168114612a0d57600080fd5b919050565b60008060408385031215612a2557600080fd5b612a2e836129f6565b946020939093013593505050565b600080600060608486031215612a5157600080fd5b612a5a846129f6565b9250612a68602085016129f6565b9150612a76604085016129f6565b90509250925092565b600080600060608486031215612a9457600080fd5b612a9d846129f6565b9250612aab602085016129f6565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612af957612af9612abb565b604052919050565b60006001600160401b03831115612b1a57612b1a612abb565b612b2d601f8401601f1916602001612ad1565b9050828152838383011115612b4157600080fd5b828260208301376000602084830101529392505050565b600060208284031215612b6a57600080fd5b81356001600160401b03811115612b8057600080fd5b8201601f81018413612b9157600080fd5b6124a384823560208401612b01565b60006001600160401b03821115612bb957612bb9612abb565b5060051b60200190565b60006020808385031215612bd657600080fd5b82356001600160401b03811115612bec57600080fd5b8301601f81018513612bfd57600080fd5b8035612c10612c0b82612ba0565b612ad1565b81815260059190911b82018301908381019087831115612c2f57600080fd5b928401925b82841015612c4d57833582529284019290840190612c34565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561106857612caf83855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101612c74565b600060208284031215612cd457600080fd5b6112f1826129f6565b6020808252825182820181905260009190848201906040850190845b8181101561106857835183529284019291840191600101612cf9565b81516001600160a01b031681526020808301516001600160401b031690820152604080830151151590820152606081016109f5565b600080600060608486031215612d5f57600080fd5b612d68846129f6565b95602085013595506040909401359392505050565b60008060408385031215612d9057600080fd5b612d99836129f6565b915060208301358015158114612dae57600080fd5b809150509250929050565b60008060008060808587031215612dcf57600080fd5b612dd8856129f6565b9350612de6602086016129f6565b92506040850135915060608501356001600160401b03811115612e0857600080fd5b8501601f81018713612e1957600080fd5b612e2887823560208401612b01565b91505092959194509250565b60006020808385031215612e4757600080fd5b82356001600160401b03811115612e5d57600080fd5b8301601f81018513612e6e57600080fd5b8035612e7c612c0b82612ba0565b81815260059190911b82018301908381019087831115612e9b57600080fd5b928401925b82841015612c4d57612eb1846129f6565b82529284019290840190612ea0565b60008060408385031215612ed357600080fd5b612edc836129f6565b9150612eea602084016129f6565b90509250929050565b600181811c90821680612f0757607f821691505b6020821081141561161557634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082612fae57612fae612f73565b500490565b8054600090600181811c9080831680612fcd57607f831692505b6020808410821415612fef57634e487b7160e01b600052602260045260246000fd5b818015613003576001811461301457613041565b60ff19861689528489019650613041565b60008881526020902060005b868110156130395781548b820152908501908301613020565b505084890196505b50505050505092915050565b6000845161305f818460208901612972565b845190830190613073818360208901612972565b612c4d81830186612fb3565b600061308b8286612fb3565b8451613073818360208901612972565b6020808252601b908201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604082015260600190565b6000828210156130e4576130e4612f89565b500390565b60006000198214156130fd576130fd612f89565b5060010190565b6000821982111561311757613117612f89565b500190565b600081600019048311821515161561313657613136612f89565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061316e9083018461299e565b9695505050505050565b60006020828403121561318a57600080fd5b81516112f18161293f565b6000826131a4576131a4612f73565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220fd1fc7405716406b57c3d8ca5c7e73957b020177ad032b10ca633443a45aff1d64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000b64656164696573746f6d620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006444541444945000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d6532414e5a3663694c516d784a5467676d66686b37555a394568377a434d353265704569445858486262724c2f000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): deadiestomb
Arg [1] : _symbol (string): DEADIE
Arg [2] : _initBaseURI (string):
Arg [3] : _initNotRevealedUri (string): https://gateway.pinata.cloud/ipfs/Qme2ANZ6ciLQmxJTggmfhk7UZ9Eh7zCM52epEiDXXHbbrL/
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 64656164696573746f6d62000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 4445414449450000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [11] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [12] : 732f516d6532414e5a3663694c516d784a5467676d66686b37555a394568377a
Arg [13] : 434d353265704569445858486262724c2f000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.