Contract Overview
[ Download CSV Export ]
Latest 8 internal transactions
[ Download CSV Export ]
Contract Name:
Daturians
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@/,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@((((#@@@@@@@@@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@&(((((((((((@///@(((@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@((@((((@@@@@@/@((((%@@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@%%##(((@@@@[email protected]@((((####@&,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@%%%%%##((####%####(%###@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@%%%%%%%%%%%%@@@@@%@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@%%%%%%@%%%%%@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%@/,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@%@,@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@#@#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@##/,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@#@(#%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@#&@@%&%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#@,%((@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@#@,%@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@#,,%@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@%,,%@@@,,,@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,,,,,,,,,,,((@,,#@..%@[email protected]#(((@,,,,,,,,,@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@...#@@[email protected]@((((@#[email protected]@%(@[email protected]((((((@.. .#%(((@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@....... .... ..,#%@@........................,(((@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.%@@%.*@@(....,(%@@@@@@@@@@@@@@@@@@@&((((((((((((((((@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@(((((((((((((((((((((((((((((((((((((%&@@@@@@@@@@@@@%@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@*********@@,,,,,[email protected]***************************** @@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@********@,,,,,[email protected] @#%@ @,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@**@**@#,,,,,[email protected] @@@@/ @@@@@/ @,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@*&@@,,,,,[email protected]@ @@@@@@/ (@@@@/ @@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@*@((,,,[email protected] [email protected]@@@@/ @@ @,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@((,(([email protected] @@% *@@/ ..... @,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,,(((.(([email protected] ........ @@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,,(,.((([email protected]* /@/@@@ @#@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@(,,.*([email protected]*** @@/@/ @%#(%@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,,((/[email protected]****** @@#((((@&,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@(((,[email protected]@@@******* @@@@@@@##((((((@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,,,,..,@@[email protected]@,,,@*************@%,,,@(##((@,,#&@((@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,,,,[email protected](,*(((@[email protected],,,,@**************%@@@@@((((@,,,#@((@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,,,,[email protected],,,,,(#@[email protected]***@@/**** @@****@@@(((@#@@(((@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,@,,,[email protected]%,,,(@[email protected]*, ******%@@@@@**** ***@@((((((#@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@,,,[email protected]@ @@@ @@@////&@//(@@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,&@@@@@,,,,,[email protected]@/////@@@ @ @@//@ @ @@///////////@@%///@,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@//////@@@@/@@,,@///////////(@@@/@///@@///////////////////@@//@,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,@///////////////////////////////////@////////////////////////@//@@,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,@//@@////////////////////////////////@////////////////////////@///@,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,@//@/////////////////////////////////@////////////////////////@///@,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,&@/@///////////////@//////////////////@@//@////////////////////////@,,,,,,,,,,,,,,,,,,,,,,,,,,, */ pragma solidity ^0.8.11; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Daturians is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; // 10 matic wl price uint256 public cost = 10.0 ether; // 8020 total supply uint256 public maxSupply = 8020; // total number of minted tokens uint256 public totalMinted; // total number of tokens issued for mint uint256 public totalIssued; // max mint amount per transaction 20 uint256 public maxMintAmount = 20; // wl limit is 5 uint256 public nftPerAddressLimit = 5; // owner's reserved supply 280 uint256 public maxOwnerSupply = 280; uint256 public ownerTotalMinted; // sale and wl handlers bool public publicSale = false; bool public whitelistedSale = false; address[] public whitelistedAddresses; mapping(address => uint256) public whitelistMintedBalance; // Mapping for stored token URIs mapping(uint256 => string) private _tokenURIs; // permanent URI event event PermanentURI(string _value, uint256 indexed _id); constructor( string memory _name, string memory _symbol, string memory _initBaseURI ) ERC721(_name, _symbol) { setBaseURI(_initBaseURI); } function issueForSale(uint256 number) external onlyOwner { require(number <= remainingSupplyToIssue(), "Not enough tokens remaining"); totalIssued += number; } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /* public sale required: publicSale enabled */ function mint(uint256 _mintAmount) public payable { require(publicSale, "Public sale is paused"); require(_mintAmount <= remainingIssuedUnsoldLeft(), "Not enough tokens left"); require(msg.value >= cost * _mintAmount, "Transaction value too low"); require(_mintAmount <= maxMintAmount, "Max mint amount per session exceeded"); _batchMint(_mintAmount); } /* whitelisted sale required: whitelistedSale enabled */ function whitelistedMint(uint256 _mintAmount) public payable { require(whitelistedSale, "Whitelist sale is paused"); require(isWhitelisted(msg.sender), "User not whitelisted"); require(_mintAmount > 0, "Min mint amount is 1"); require(_mintAmount <= maxMintAmount, "Max mint amount per session exceeded"); uint256 ownerMintedCount = whitelistMintedBalance[msg.sender]; require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "Max mint amount for this address exceeded"); require(msg.value >= cost * _mintAmount, "Insufficient funds"); require(_mintAmount <= remainingIssuedUnsoldLeft(), "Not enough tokens left"); whitelistMintedBalance[msg.sender] = ownerMintedCount + _mintAmount; _batchMint(_mintAmount); } /* owner minting func */ function ownerMint(uint256 _mintAmount) external onlyOwner { require(_mintAmount <= currentOwnerLeftSupply(), "Not enough owner reserved tokens left"); ownerTotalMinted += _mintAmount; _batchMint(_mintAmount); } /* check is a address is whitelisted */ function isWhitelisted(address _user) public view returns (bool) { for (uint i = 0; i < whitelistedAddresses.length; i++) { if (whitelistedAddresses[i] == _user) { return true; } } return false; } /* add addresses to WL */ function whitelistUsers(address[] calldata _users) public onlyOwner { delete whitelistedAddresses; whitelistedAddresses = _users; } /* batch mint function */ function _batchMint(uint number) private { uint lastTokenId = totalMinted; totalMinted += number; for (uint i = 1; i <= number; i++) { _safeMint(msg.sender, lastTokenId + i); } } /* how many tokens are left for owner */ function currentOwnerLeftSupply() public view returns (uint256) { return maxOwnerSupply - ownerTotalMinted; } /* number of tokens not minted */ function remainingSupply() external view returns (uint256) { return maxSupply - totalMinted; } /* No. tokens left for minting in current batch */ function remainingMintSupply() public view returns (uint256) { return maxSupply - totalMinted; } /* number of unissued tokens left */ function remainingSupplyToIssue() public view returns (uint256) { return maxSupply - ownerTotalMinted - totalIssued; } /* number of issued and not yet minted tokens */ function remainingIssuedUnsoldLeft() public view returns (uint256) { return totalIssued - (totalMinted - ownerTotalMinted); } /* owner address token info */ function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } /* return token URI */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "Token with this id does not exist" ); // Try to get the URI from storage string memory _tokenURI = _tokenURIs[tokenId]; // If a token URI has been set for this token, return that if (bytes(_tokenURI).length > 0) { return _tokenURI; } // Otherwise fall back to the not frozen tokenURI() string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } /* set a static tokenURI */ function setStaticTokenURI(uint256 tokenId, string memory newURI) external onlyOwner { // get the URI from storage string memory _tokenURI = _tokenURIs[tokenId]; // allow to set it only once require(bytes(_tokenURI).length == 0, "Token URI is already set"); _tokenURIs[tokenId] = newURI; // finally, emit permanentURI evt emit PermanentURI(newURI, tokenId); } /* enable whitelist sale */ function enableWhitelistedSale() external onlyOwner { whitelistedSale = true; } /* disable whitelist sale */ function disableWhitelistedSale() external onlyOwner { whitelistedSale = false; } /* enable public sale */ function enablePublicSale() external onlyOwner { publicSale = true; } /* disable public sale */ function disablePublicSale() external onlyOwner { publicSale = false; } function setNftPerAddressLimit(uint256 _limit) public onlyOwner { nftPerAddressLimit = _limit; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmount = _newmaxMintAmount; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } /* update base extension */ function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } // withdraw to owner's address function withdraw() external onlyOwner { uint balance = address(this).balance; payable(owner()).transfer(balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _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 (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 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentOwnerLeftSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disablePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableWhitelistedSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enablePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableWhitelistedSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"issueForSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOwnerSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingIssuedUnsoldLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingSupplyToIssue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newURI","type":"string"}],"name":"setStaticTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalIssued","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistedAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"whitelistedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistedSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c908051906020019062000051929190620002f0565b50678ac7230489e80000600d55611f54600e55601460115560056012556101186013556000601560006101000a81548160ff0219169083151502179055506000601560016101000a81548160ff021916908315150217905550348015620000b757600080fd5b50604051620060ae380380620060ae8339818101604052810190620000dd91906200053d565b82828160009080519060200190620000f7929190620002f0565b50806001908051906020019062000110929190620002f0565b50505062000133620001276200014d60201b60201c565b6200015560201b60201c565b62000144816200021b60201b60201c565b505050620006de565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200022b6200014d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000251620002c660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620002aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002a19062000657565b60405180910390fd5b80600b9080519060200190620002c2929190620002f0565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620002fe90620006a8565b90600052602060002090601f0160209004810192826200032257600085556200036e565b82601f106200033d57805160ff19168380011785556200036e565b828001600101855582156200036e579182015b828111156200036d57825182559160200191906001019062000350565b5b5090506200037d919062000381565b5090565b5b808211156200039c57600081600090555060010162000382565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200040982620003be565b810181811067ffffffffffffffff821117156200042b576200042a620003cf565b5b80604052505050565b600062000440620003a0565b90506200044e8282620003fe565b919050565b600067ffffffffffffffff821115620004715762000470620003cf565b5b6200047c82620003be565b9050602081019050919050565b60005b83811015620004a95780820151818401526020810190506200048c565b83811115620004b9576000848401525b50505050565b6000620004d6620004d08462000453565b62000434565b905082815260208101848484011115620004f557620004f4620003b9565b5b6200050284828562000489565b509392505050565b600082601f830112620005225762000521620003b4565b5b815162000534848260208601620004bf565b91505092915050565b600080600060608486031215620005595762000558620003aa565b5b600084015167ffffffffffffffff8111156200057a5762000579620003af565b5b62000588868287016200050a565b935050602084015167ffffffffffffffff811115620005ac57620005ab620003af565b5b620005ba868287016200050a565b925050604084015167ffffffffffffffff811115620005de57620005dd620003af565b5b620005ec868287016200050a565b9150509250925092565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006200063f602083620005f6565b91506200064c8262000607565b602082019050919050565b60006020820190508181036000830152620006728162000630565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006c157607f821691505b60208210811415620006d857620006d762000679565b5b50919050565b6159c080620006ee6000396000f3fe60806040526004361061036b5760003560e01c8063853d9d6f116101c6578063ba7d2c76116100f7578063e466735c11610095578063edec5f271161006f578063edec5f2714610c56578063f19e75d414610c7f578063f2fde38b14610ca8578063f5be319314610cd15761036b565b8063e466735c14610bd7578063e985e9c514610c02578063ec8db81714610c3f5761036b565b8063d0eb26b0116100d1578063d0eb26b014610b2f578063d5abeb0114610b58578063da0239a614610b83578063da3ef23f14610bae5761036b565b8063ba7d2c7614610a9c578063c668286214610ac7578063c87b56dd14610af25761036b565b8063a22cb46511610164578063b13e964c1161013e578063b13e964c146109f4578063b339f59b14610a1f578063b88d4fde14610a36578063ba4e5c4914610a5f5761036b565b8063a22cb46514610975578063a2309ff81461099e578063aeaa7cca146109c95761036b565b80638da5cb5b116101a05780638da5cb5b146108d857806395d89b4114610903578063a04e89631461092e578063a0712d68146109595761036b565b8063853d9d6f14610847578063868d618314610872578063898b1875146108af5761036b565b806333bc1c5c116102a057806355f804b31161023e5780636c19576c116102185780636c19576c146107ae57806370a08231146107ca578063715018a6146108075780637f00c7a61461081e5761036b565b806355f804b31461071d5780636352211e146107465780636c0360eb146107835761036b565b806342842e0e1161027a57806342842e0e14610651578063438b63001461067a57806344a0d68a146106b75780634f6ccce7146106e05761036b565b806333bc1c5c146105d25780633af32abf146105fd5780633ccfd60b1461063a5761036b565b806318160ddd1161030d57806323b872dd116102e757806323b872dd146105185780632793f3a3146105415780632effb94d1461056a5780632f745c59146105955761036b565b806318160ddd146104ab5780632316b4da146104d6578063239c70ae146104ed5761036b565b8063081812fc11610349578063081812fc14610403578063095ea7b314610440578063134735df1461046957806313faede6146104805761036b565b806301ffc9a71461037057806302784bc8146103ad57806306fdde03146103d8575b600080fd5b34801561037c57600080fd5b5061039760048036038101906103929190613da2565b610cfc565b6040516103a49190613dea565b60405180910390f35b3480156103b957600080fd5b506103c2610d76565b6040516103cf9190613e1e565b60405180910390f35b3480156103e457600080fd5b506103ed610d9a565b6040516103fa9190613ed2565b60405180910390f35b34801561040f57600080fd5b5061042a60048036038101906104259190613f20565b610e2c565b6040516104379190613f8e565b60405180910390f35b34801561044c57600080fd5b5061046760048036038101906104629190613fd5565b610eb1565b005b34801561047557600080fd5b5061047e610fc9565b005b34801561048c57600080fd5b50610495611062565b6040516104a29190613e1e565b60405180910390f35b3480156104b757600080fd5b506104c0611068565b6040516104cd9190613e1e565b60405180910390f35b3480156104e257600080fd5b506104eb611075565b005b3480156104f957600080fd5b5061050261110e565b60405161050f9190613e1e565b60405180910390f35b34801561052457600080fd5b5061053f600480360381019061053a9190614015565b611114565b005b34801561054d57600080fd5b506105686004803603810190610563919061419d565b611174565b005b34801561057657600080fd5b5061057f611339565b60405161058c9190613e1e565b60405180910390f35b3480156105a157600080fd5b506105bc60048036038101906105b79190613fd5565b61133f565b6040516105c99190613e1e565b60405180910390f35b3480156105de57600080fd5b506105e76113e4565b6040516105f49190613dea565b60405180910390f35b34801561060957600080fd5b50610624600480360381019061061f91906141f9565b6113f7565b6040516106319190613dea565b60405180910390f35b34801561064657600080fd5b5061064f6114a6565b005b34801561065d57600080fd5b5061067860048036038101906106739190614015565b611578565b005b34801561068657600080fd5b506106a1600480360381019061069c91906141f9565b611598565b6040516106ae91906142e4565b60405180910390f35b3480156106c357600080fd5b506106de60048036038101906106d99190613f20565b611646565b005b3480156106ec57600080fd5b5061070760048036038101906107029190613f20565b6116cc565b6040516107149190613e1e565b60405180910390f35b34801561072957600080fd5b50610744600480360381019061073f9190614306565b61173d565b005b34801561075257600080fd5b5061076d60048036038101906107689190613f20565b6117d3565b60405161077a9190613f8e565b60405180910390f35b34801561078f57600080fd5b50610798611885565b6040516107a59190613ed2565b60405180910390f35b6107c860048036038101906107c39190613f20565b611913565b005b3480156107d657600080fd5b506107f160048036038101906107ec91906141f9565b611bbc565b6040516107fe9190613e1e565b60405180910390f35b34801561081357600080fd5b5061081c611c74565b005b34801561082a57600080fd5b5061084560048036038101906108409190613f20565b611cfc565b005b34801561085357600080fd5b5061085c611d82565b6040516108699190613e1e565b60405180910390f35b34801561087e57600080fd5b50610899600480360381019061089491906141f9565b611da6565b6040516108a69190613e1e565b60405180910390f35b3480156108bb57600080fd5b506108d660048036038101906108d19190613f20565b611dbe565b005b3480156108e457600080fd5b506108ed611ea0565b6040516108fa9190613f8e565b60405180910390f35b34801561090f57600080fd5b50610918611eca565b6040516109259190613ed2565b60405180910390f35b34801561093a57600080fd5b50610943611f5c565b6040516109509190613e1e565b60405180910390f35b610973600480360381019061096e9190613f20565b611f73565b005b34801561098157600080fd5b5061099c6004803603810190610997919061437b565b6120ad565b005b3480156109aa57600080fd5b506109b36120c3565b6040516109c09190613e1e565b60405180910390f35b3480156109d557600080fd5b506109de6120c9565b6040516109eb9190613e1e565b60405180910390f35b348015610a0057600080fd5b50610a096120cf565b604051610a169190613dea565b60405180910390f35b348015610a2b57600080fd5b50610a346120e2565b005b348015610a4257600080fd5b50610a5d6004803603810190610a58919061445c565b61217b565b005b348015610a6b57600080fd5b50610a866004803603810190610a819190613f20565b6121dd565b604051610a939190613f8e565b60405180910390f35b348015610aa857600080fd5b50610ab161221c565b604051610abe9190613e1e565b60405180910390f35b348015610ad357600080fd5b50610adc612222565b604051610ae99190613ed2565b60405180910390f35b348015610afe57600080fd5b50610b196004803603810190610b149190613f20565b6122b0565b604051610b269190613ed2565b60405180910390f35b348015610b3b57600080fd5b50610b566004803603810190610b519190613f20565b61240f565b005b348015610b6457600080fd5b50610b6d612495565b604051610b7a9190613e1e565b60405180910390f35b348015610b8f57600080fd5b50610b9861249b565b604051610ba59190613e1e565b60405180910390f35b348015610bba57600080fd5b50610bd56004803603810190610bd09190614306565b6124b2565b005b348015610be357600080fd5b50610bec612548565b604051610bf99190613e1e565b60405180910390f35b348015610c0e57600080fd5b50610c296004803603810190610c2491906144df565b61255f565b604051610c369190613dea565b60405180910390f35b348015610c4b57600080fd5b50610c546125f3565b005b348015610c6257600080fd5b50610c7d6004803603810190610c78919061457f565b61268c565b005b348015610c8b57600080fd5b50610ca66004803603810190610ca19190613f20565b61272c565b005b348015610cb457600080fd5b50610ccf6004803603810190610cca91906141f9565b612817565b005b348015610cdd57600080fd5b50610ce661290f565b604051610cf39190613e1e565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d6f5750610d6e82612915565b5b9050919050565b6000601454600f54610d8891906145fb565b601054610d9591906145fb565b905090565b606060008054610da99061465e565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd59061465e565b8015610e225780601f10610df757610100808354040283529160200191610e22565b820191906000526020600020905b815481529060010190602001808311610e0557829003601f168201915b5050505050905090565b6000610e37826129f7565b610e76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6d90614702565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ebc826117d3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2490614794565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f4c612a63565b73ffffffffffffffffffffffffffffffffffffffff161480610f7b5750610f7a81610f75612a63565b61255f565b5b610fba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb190614826565b60405180910390fd5b610fc48383612a6b565b505050565b610fd1612a63565b73ffffffffffffffffffffffffffffffffffffffff16610fef611ea0565b73ffffffffffffffffffffffffffffffffffffffff1614611045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103c90614892565b60405180910390fd5b6000601560016101000a81548160ff021916908315150217905550565b600d5481565b6000600880549050905090565b61107d612a63565b73ffffffffffffffffffffffffffffffffffffffff1661109b611ea0565b73ffffffffffffffffffffffffffffffffffffffff16146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890614892565b60405180910390fd5b6001601560006101000a81548160ff021916908315150217905550565b60115481565b61112561111f612a63565b82612b24565b611164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115b90614924565b60405180910390fd5b61116f838383612c02565b505050565b61117c612a63565b73ffffffffffffffffffffffffffffffffffffffff1661119a611ea0565b73ffffffffffffffffffffffffffffffffffffffff16146111f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e790614892565b60405180910390fd5b60006018600084815260200190815260200160002080546112109061465e565b80601f016020809104026020016040519081016040528092919081815260200182805461123c9061465e565b80156112895780601f1061125e57610100808354040283529160200191611289565b820191906000526020600020905b81548152906001019060200180831161126c57829003601f168201915b5050505050905060008151146112d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cb90614990565b60405180910390fd5b816018600085815260200190815260200160002090805190602001906112fb929190613bd2565b50827fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b556572078360405161132c9190613ed2565b60405180910390a2505050565b60135481565b600061134a83611bbc565b821061138b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138290614a22565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601560009054906101000a900460ff1681565b600080600090505b60168054905081101561149b578273ffffffffffffffffffffffffffffffffffffffff166016828154811061143757611436614a42565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156114885760019150506114a1565b808061149390614a71565b9150506113ff565b50600090505b919050565b6114ae612a63565b73ffffffffffffffffffffffffffffffffffffffff166114cc611ea0565b73ffffffffffffffffffffffffffffffffffffffff1614611522576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151990614892565b60405180910390fd5b600047905061152f611ea0565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611574573d6000803e3d6000fd5b5050565b6115938383836040518060200160405280600081525061217b565b505050565b606060006115a583611bbc565b905060008167ffffffffffffffff8111156115c3576115c2614072565b5b6040519080825280602002602001820160405280156115f15781602001602082028036833780820191505090505b50905060005b8281101561163b57611609858261133f565b82828151811061161c5761161b614a42565b5b602002602001018181525050808061163390614a71565b9150506115f7565b508092505050919050565b61164e612a63565b73ffffffffffffffffffffffffffffffffffffffff1661166c611ea0565b73ffffffffffffffffffffffffffffffffffffffff16146116c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b990614892565b60405180910390fd5b80600d8190555050565b60006116d6611068565b8210611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e90614b2c565b60405180910390fd5b6008828154811061172b5761172a614a42565b5b90600052602060002001549050919050565b611745612a63565b73ffffffffffffffffffffffffffffffffffffffff16611763611ea0565b73ffffffffffffffffffffffffffffffffffffffff16146117b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b090614892565b60405180910390fd5b80600b90805190602001906117cf929190613bd2565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561187c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187390614bbe565b60405180910390fd5b80915050919050565b600b80546118929061465e565b80601f01602080910402602001604051908101604052809291908181526020018280546118be9061465e565b801561190b5780601f106118e05761010080835404028352916020019161190b565b820191906000526020600020905b8154815290600101906020018083116118ee57829003601f168201915b505050505081565b601560019054906101000a900460ff16611962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195990614c2a565b60405180910390fd5b61196b336113f7565b6119aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a190614c96565b60405180910390fd5b600081116119ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e490614d02565b60405180910390fd5b601154811115611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2990614d94565b60405180910390fd5b6000601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506012548282611a859190614db4565b1115611ac6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abd90614e7c565b60405180910390fd5b81600d54611ad49190614e9c565b341015611b16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0d90614f42565b60405180910390fd5b611b1e610d76565b821115611b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5790614fae565b60405180910390fd5b8181611b6c9190614db4565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611bb882612e69565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2490615040565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c7c612a63565b73ffffffffffffffffffffffffffffffffffffffff16611c9a611ea0565b73ffffffffffffffffffffffffffffffffffffffff1614611cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce790614892565b60405180910390fd5b611cfa6000612ec4565b565b611d04612a63565b73ffffffffffffffffffffffffffffffffffffffff16611d22611ea0565b73ffffffffffffffffffffffffffffffffffffffff1614611d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6f90614892565b60405180910390fd5b8060118190555050565b6000601054601454600e54611d9791906145fb565b611da191906145fb565b905090565b60176020528060005260406000206000915090505481565b611dc6612a63565b73ffffffffffffffffffffffffffffffffffffffff16611de4611ea0565b73ffffffffffffffffffffffffffffffffffffffff1614611e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3190614892565b60405180910390fd5b611e42611d82565b811115611e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7b906150ac565b60405180910390fd5b8060106000828254611e969190614db4565b9250508190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611ed99061465e565b80601f0160208091040260200160405190810160405280929190818152602001828054611f059061465e565b8015611f525780601f10611f2757610100808354040283529160200191611f52565b820191906000526020600020905b815481529060010190602001808311611f3557829003601f168201915b5050505050905090565b6000600f54600e54611f6e91906145fb565b905090565b601560009054906101000a900460ff16611fc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb990615118565b60405180910390fd5b611fca610d76565b81111561200c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200390614fae565b60405180910390fd5b80600d5461201a9190614e9c565b34101561205c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205390615184565b60405180910390fd5b6011548111156120a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209890614d94565b60405180910390fd5b6120aa81612e69565b50565b6120bf6120b8612a63565b8383612f8a565b5050565b600f5481565b60145481565b601560019054906101000a900460ff1681565b6120ea612a63565b73ffffffffffffffffffffffffffffffffffffffff16612108611ea0565b73ffffffffffffffffffffffffffffffffffffffff161461215e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215590614892565b60405180910390fd5b6001601560016101000a81548160ff021916908315150217905550565b61218c612186612a63565b83612b24565b6121cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c290614924565b60405180910390fd5b6121d7848484846130f7565b50505050565b601681815481106121ed57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60125481565b600c805461222f9061465e565b80601f016020809104026020016040519081016040528092919081815260200182805461225b9061465e565b80156122a85780601f1061227d576101008083540402835291602001916122a8565b820191906000526020600020905b81548152906001019060200180831161228b57829003601f168201915b505050505081565b60606122bb826129f7565b6122fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f190615216565b60405180910390fd5b600060186000848152602001908152602001600020805461231a9061465e565b80601f01602080910402602001604051908101604052809291908181526020018280546123469061465e565b80156123935780601f1061236857610100808354040283529160200191612393565b820191906000526020600020905b81548152906001019060200180831161237657829003601f168201915b505050505090506000815111156123ad578091505061240a565b60006123b7613153565b905060008151116123d75760405180602001604052806000815250612405565b806123e1856131e5565b600c6040516020016123f593929190615306565b6040516020818303038152906040525b925050505b919050565b612417612a63565b73ffffffffffffffffffffffffffffffffffffffff16612435611ea0565b73ffffffffffffffffffffffffffffffffffffffff161461248b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248290614892565b60405180910390fd5b8060128190555050565b600e5481565b6000600f54600e546124ad91906145fb565b905090565b6124ba612a63565b73ffffffffffffffffffffffffffffffffffffffff166124d8611ea0565b73ffffffffffffffffffffffffffffffffffffffff161461252e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252590614892565b60405180910390fd5b80600c9080519060200190612544929190613bd2565b5050565b600060145460135461255a91906145fb565b905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6125fb612a63565b73ffffffffffffffffffffffffffffffffffffffff16612619611ea0565b73ffffffffffffffffffffffffffffffffffffffff161461266f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266690614892565b60405180910390fd5b6000601560006101000a81548160ff021916908315150217905550565b612694612a63565b73ffffffffffffffffffffffffffffffffffffffff166126b2611ea0565b73ffffffffffffffffffffffffffffffffffffffff1614612708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ff90614892565b60405180910390fd5b601660006127169190613c58565b818160169190612727929190613c79565b505050565b612734612a63565b73ffffffffffffffffffffffffffffffffffffffff16612752611ea0565b73ffffffffffffffffffffffffffffffffffffffff16146127a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279f90614892565b60405180910390fd5b6127b0612548565b8111156127f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e9906153a9565b60405180910390fd5b80601460008282546128049190614db4565b9250508190555061281481612e69565b50565b61281f612a63565b73ffffffffffffffffffffffffffffffffffffffff1661283d611ea0565b73ffffffffffffffffffffffffffffffffffffffff1614612893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288a90614892565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612903576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128fa9061543b565b60405180910390fd5b61290c81612ec4565b50565b60105481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129e057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806129f057506129ef82613346565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612ade836117d3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b2f826129f7565b612b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b65906154cd565b60405180910390fd5b6000612b79836117d3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612be857508373ffffffffffffffffffffffffffffffffffffffff16612bd084610e2c565b73ffffffffffffffffffffffffffffffffffffffff16145b80612bf95750612bf8818561255f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612c22826117d3565b73ffffffffffffffffffffffffffffffffffffffff1614612c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6f9061555f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ce8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cdf906155f1565b60405180910390fd5b612cf38383836133b0565b612cfe600082612a6b565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d4e91906145fb565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612da59190614db4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e648383836134c4565b505050565b6000600f54905081600f6000828254612e829190614db4565b925050819055506000600190505b828111612ebf57612eac338284612ea79190614db4565b6134c9565b8080612eb790614a71565b915050612e90565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ff9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff09061565d565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130ea9190613dea565b60405180910390a3505050565b613102848484612c02565b61310e848484846134e7565b61314d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613144906156ef565b60405180910390fd5b50505050565b6060600b80546131629061465e565b80601f016020809104026020016040519081016040528092919081815260200182805461318e9061465e565b80156131db5780601f106131b0576101008083540402835291602001916131db565b820191906000526020600020905b8154815290600101906020018083116131be57829003601f168201915b5050505050905090565b6060600082141561322d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613341565b600082905060005b6000821461325f57808061324890614a71565b915050600a82613258919061573e565b9150613235565b60008167ffffffffffffffff81111561327b5761327a614072565b5b6040519080825280601f01601f1916602001820160405280156132ad5781602001600182028036833780820191505090505b5090505b6000851461333a576001826132c691906145fb565b9150600a856132d5919061576f565b60306132e19190614db4565b60f81b8183815181106132f7576132f6614a42565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613333919061573e565b94506132b1565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6133bb83838361366f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156133fe576133f981613674565b61343d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461343c5761343b83826136bd565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134805761347b8161382a565b6134bf565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146134be576134bd82826138fb565b5b5b505050565b505050565b6134e382826040518060200160405280600081525061397a565b5050565b60006135088473ffffffffffffffffffffffffffffffffffffffff166139d5565b15613662578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613531612a63565b8786866040518563ffffffff1660e01b815260040161355394939291906157f5565b6020604051808303816000875af192505050801561358f57506040513d601f19601f8201168201806040525081019061358c9190615856565b60015b613612573d80600081146135bf576040519150601f19603f3d011682016040523d82523d6000602084013e6135c4565b606091505b5060008151141561360a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613601906156ef565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613667565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016136ca84611bbc565b6136d491906145fb565b90506000600760008481526020019081526020016000205490508181146137b9576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061383e91906145fb565b905060006009600084815260200190815260200160002054905060006008838154811061386e5761386d614a42565b5b9060005260206000200154905080600883815481106138905761388f614a42565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806138df576138de615883565b5b6001900381819060005260206000200160009055905550505050565b600061390683611bbc565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b61398483836139f8565b61399160008484846134e7565b6139d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139c7906156ef565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a5f906158fe565b60405180910390fd5b613a71816129f7565b15613ab1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aa89061596a565b60405180910390fd5b613abd600083836133b0565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b0d9190614db4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613bce600083836134c4565b5050565b828054613bde9061465e565b90600052602060002090601f016020900481019282613c005760008555613c47565b82601f10613c1957805160ff1916838001178555613c47565b82800160010185558215613c47579182015b82811115613c46578251825591602001919060010190613c2b565b5b509050613c549190613d19565b5090565b5080546000825590600052602060002090810190613c769190613d19565b50565b828054828255906000526020600020908101928215613d08579160200282015b82811115613d0757823573ffffffffffffffffffffffffffffffffffffffff168260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613c99565b5b509050613d159190613d19565b5090565b5b80821115613d32576000816000905550600101613d1a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d7f81613d4a565b8114613d8a57600080fd5b50565b600081359050613d9c81613d76565b92915050565b600060208284031215613db857613db7613d40565b5b6000613dc684828501613d8d565b91505092915050565b60008115159050919050565b613de481613dcf565b82525050565b6000602082019050613dff6000830184613ddb565b92915050565b6000819050919050565b613e1881613e05565b82525050565b6000602082019050613e336000830184613e0f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613e73578082015181840152602081019050613e58565b83811115613e82576000848401525b50505050565b6000601f19601f8301169050919050565b6000613ea482613e39565b613eae8185613e44565b9350613ebe818560208601613e55565b613ec781613e88565b840191505092915050565b60006020820190508181036000830152613eec8184613e99565b905092915050565b613efd81613e05565b8114613f0857600080fd5b50565b600081359050613f1a81613ef4565b92915050565b600060208284031215613f3657613f35613d40565b5b6000613f4484828501613f0b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f7882613f4d565b9050919050565b613f8881613f6d565b82525050565b6000602082019050613fa36000830184613f7f565b92915050565b613fb281613f6d565b8114613fbd57600080fd5b50565b600081359050613fcf81613fa9565b92915050565b60008060408385031215613fec57613feb613d40565b5b6000613ffa85828601613fc0565b925050602061400b85828601613f0b565b9150509250929050565b60008060006060848603121561402e5761402d613d40565b5b600061403c86828701613fc0565b935050602061404d86828701613fc0565b925050604061405e86828701613f0b565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6140aa82613e88565b810181811067ffffffffffffffff821117156140c9576140c8614072565b5b80604052505050565b60006140dc613d36565b90506140e882826140a1565b919050565b600067ffffffffffffffff82111561410857614107614072565b5b61411182613e88565b9050602081019050919050565b82818337600083830152505050565b600061414061413b846140ed565b6140d2565b90508281526020810184848401111561415c5761415b61406d565b5b61416784828561411e565b509392505050565b600082601f83011261418457614183614068565b5b813561419484826020860161412d565b91505092915050565b600080604083850312156141b4576141b3613d40565b5b60006141c285828601613f0b565b925050602083013567ffffffffffffffff8111156141e3576141e2613d45565b5b6141ef8582860161416f565b9150509250929050565b60006020828403121561420f5761420e613d40565b5b600061421d84828501613fc0565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61425b81613e05565b82525050565b600061426d8383614252565b60208301905092915050565b6000602082019050919050565b600061429182614226565b61429b8185614231565b93506142a683614242565b8060005b838110156142d75781516142be8882614261565b97506142c983614279565b9250506001810190506142aa565b5085935050505092915050565b600060208201905081810360008301526142fe8184614286565b905092915050565b60006020828403121561431c5761431b613d40565b5b600082013567ffffffffffffffff81111561433a57614339613d45565b5b6143468482850161416f565b91505092915050565b61435881613dcf565b811461436357600080fd5b50565b6000813590506143758161434f565b92915050565b6000806040838503121561439257614391613d40565b5b60006143a085828601613fc0565b92505060206143b185828601614366565b9150509250929050565b600067ffffffffffffffff8211156143d6576143d5614072565b5b6143df82613e88565b9050602081019050919050565b60006143ff6143fa846143bb565b6140d2565b90508281526020810184848401111561441b5761441a61406d565b5b61442684828561411e565b509392505050565b600082601f83011261444357614442614068565b5b81356144538482602086016143ec565b91505092915050565b6000806000806080858703121561447657614475613d40565b5b600061448487828801613fc0565b945050602061449587828801613fc0565b93505060406144a687828801613f0b565b925050606085013567ffffffffffffffff8111156144c7576144c6613d45565b5b6144d38782880161442e565b91505092959194509250565b600080604083850312156144f6576144f5613d40565b5b600061450485828601613fc0565b925050602061451585828601613fc0565b9150509250929050565b600080fd5b600080fd5b60008083601f84011261453f5761453e614068565b5b8235905067ffffffffffffffff81111561455c5761455b61451f565b5b60208301915083602082028301111561457857614577614524565b5b9250929050565b6000806020838503121561459657614595613d40565b5b600083013567ffffffffffffffff8111156145b4576145b3613d45565b5b6145c085828601614529565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061460682613e05565b915061461183613e05565b925082821015614624576146236145cc565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061467657607f821691505b6020821081141561468a5761468961462f565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006146ec602c83613e44565b91506146f782614690565b604082019050919050565b6000602082019050818103600083015261471b816146df565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061477e602183613e44565b915061478982614722565b604082019050919050565b600060208201905081810360008301526147ad81614771565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614810603883613e44565b915061481b826147b4565b604082019050919050565b6000602082019050818103600083015261483f81614803565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061487c602083613e44565b915061488782614846565b602082019050919050565b600060208201905081810360008301526148ab8161486f565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061490e603183613e44565b9150614919826148b2565b604082019050919050565b6000602082019050818103600083015261493d81614901565b9050919050565b7f546f6b656e2055524920697320616c7265616479207365740000000000000000600082015250565b600061497a601883613e44565b915061498582614944565b602082019050919050565b600060208201905081810360008301526149a98161496d565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614a0c602b83613e44565b9150614a17826149b0565b604082019050919050565b60006020820190508181036000830152614a3b816149ff565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614a7c82613e05565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614aaf57614aae6145cc565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614b16602c83613e44565b9150614b2182614aba565b604082019050919050565b60006020820190508181036000830152614b4581614b09565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614ba8602983613e44565b9150614bb382614b4c565b604082019050919050565b60006020820190508181036000830152614bd781614b9b565b9050919050565b7f57686974656c6973742073616c65206973207061757365640000000000000000600082015250565b6000614c14601883613e44565b9150614c1f82614bde565b602082019050919050565b60006020820190508181036000830152614c4381614c07565b9050919050565b7f55736572206e6f742077686974656c6973746564000000000000000000000000600082015250565b6000614c80601483613e44565b9150614c8b82614c4a565b602082019050919050565b60006020820190508181036000830152614caf81614c73565b9050919050565b7f4d696e206d696e7420616d6f756e742069732031000000000000000000000000600082015250565b6000614cec601483613e44565b9150614cf782614cb6565b602082019050919050565b60006020820190508181036000830152614d1b81614cdf565b9050919050565b7f4d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560008201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b6000614d7e602483613e44565b9150614d8982614d22565b604082019050919050565b60006020820190508181036000830152614dad81614d71565b9050919050565b6000614dbf82613e05565b9150614dca83613e05565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614dff57614dfe6145cc565b5b828201905092915050565b7f4d6178206d696e7420616d6f756e7420666f722074686973206164647265737360008201527f2065786365656465640000000000000000000000000000000000000000000000602082015250565b6000614e66602983613e44565b9150614e7182614e0a565b604082019050919050565b60006020820190508181036000830152614e9581614e59565b9050919050565b6000614ea782613e05565b9150614eb283613e05565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614eeb57614eea6145cc565b5b828202905092915050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000614f2c601283613e44565b9150614f3782614ef6565b602082019050919050565b60006020820190508181036000830152614f5b81614f1f565b9050919050565b7f4e6f7420656e6f75676820746f6b656e73206c65667400000000000000000000600082015250565b6000614f98601683613e44565b9150614fa382614f62565b602082019050919050565b60006020820190508181036000830152614fc781614f8b565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b600061502a602a83613e44565b915061503582614fce565b604082019050919050565b600060208201905081810360008301526150598161501d565b9050919050565b7f4e6f7420656e6f75676820746f6b656e732072656d61696e696e670000000000600082015250565b6000615096601b83613e44565b91506150a182615060565b602082019050919050565b600060208201905081810360008301526150c581615089565b9050919050565b7f5075626c69632073616c65206973207061757365640000000000000000000000600082015250565b6000615102601583613e44565b915061510d826150cc565b602082019050919050565b60006020820190508181036000830152615131816150f5565b9050919050565b7f5472616e73616374696f6e2076616c756520746f6f206c6f7700000000000000600082015250565b600061516e601983613e44565b915061517982615138565b602082019050919050565b6000602082019050818103600083015261519d81615161565b9050919050565b7f546f6b656e2077697468207468697320696420646f6573206e6f74206578697360008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000615200602183613e44565b915061520b826151a4565b604082019050919050565b6000602082019050818103600083015261522f816151f3565b9050919050565b600081905092915050565b600061524c82613e39565b6152568185615236565b9350615266818560208601613e55565b80840191505092915050565b60008190508160005260206000209050919050565b600081546152948161465e565b61529e8186615236565b945060018216600081146152b957600181146152ca576152fd565b60ff198316865281860193506152fd565b6152d385615272565b60005b838110156152f5578154818901526001820191506020810190506152d6565b838801955050505b50505092915050565b60006153128286615241565b915061531e8285615241565b915061532a8284615287565b9150819050949350505050565b7f4e6f7420656e6f756768206f776e657220726573657276656420746f6b656e7360008201527f206c656674000000000000000000000000000000000000000000000000000000602082015250565b6000615393602583613e44565b915061539e82615337565b604082019050919050565b600060208201905081810360008301526153c281615386565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615425602683613e44565b9150615430826153c9565b604082019050919050565b6000602082019050818103600083015261545481615418565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006154b7602c83613e44565b91506154c28261545b565b604082019050919050565b600060208201905081810360008301526154e6816154aa565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615549602583613e44565b9150615554826154ed565b604082019050919050565b600060208201905081810360008301526155788161553c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006155db602483613e44565b91506155e68261557f565b604082019050919050565b6000602082019050818103600083015261560a816155ce565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615647601983613e44565b915061565282615611565b602082019050919050565b600060208201905081810360008301526156768161563a565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006156d9603283613e44565b91506156e48261567d565b604082019050919050565b60006020820190508181036000830152615708816156cc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061574982613e05565b915061575483613e05565b9250826157645761576361570f565b5b828204905092915050565b600061577a82613e05565b915061578583613e05565b9250826157955761579461570f565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006157c7826157a0565b6157d181856157ab565b93506157e1818560208601613e55565b6157ea81613e88565b840191505092915050565b600060808201905061580a6000830187613f7f565b6158176020830186613f7f565b6158246040830185613e0f565b818103606083015261583681846157bc565b905095945050505050565b60008151905061585081613d76565b92915050565b60006020828403121561586c5761586b613d40565b5b600061587a84828501615841565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006158e8602083613e44565b91506158f3826158b2565b602082019050919050565b60006020820190508181036000830152615917816158db565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615954601c83613e44565b915061595f8261591e565b602082019050919050565b6000602082019050818103600083015261598381615947565b905091905056fea26469706673582212203fe05c5f1417b915aa221f8b1dad48633a51622a4d4cf7e5e673b61083d1711d64736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000009444154555249414e530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000444415455000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5765525379536433524a3942686f52487a7044737538506a6a4e6e4759685777486e3434424b447067764a472f00000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000009444154555249414e530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000444415455000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5765525379536433524a3942686f52487a7044737538506a6a4e6e4759685777486e3434424b447067764a472f00000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): DATURIANS
Arg [1] : _symbol (string): DATU
Arg [2] : _initBaseURI (string): ipfs://QmWeRSySd3RJ9BhoRHzpDsu8PjjNnGYhWwHn44BKDpgvJG/
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 444154555249414e530000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4441545500000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [8] : 697066733a2f2f516d5765525379536433524a3942686f52487a704473753850
Arg [9] : 6a6a4e6e4759685777486e3434424b447067764a472f00000000000000000000
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.