Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
7,777 TOAST
Holders
681
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 TOASTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Toasties
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; import "Ownable.sol"; import "SafeMath.sol"; import "ECDSA.sol"; import "Counters.sol"; import "Strings.sol"; import "ReentrancyGuard.sol"; contract Toasties is ERC721, Ownable, ReentrancyGuard { using SafeMath for uint256; using ECDSA for bytes32; using Counters for Counters.Counter; using Strings for uint256; /** * @dev ERC721 gas optimized contract based on GBD. * */ // mint variables uint256 public totalSupply = 7777; uint256 public PRICE = 0 ether; uint256 public constant RESERVED = 1; uint256 public constant TEAM = 0; uint256 public amountMintable = 20; uint256 public mainsaleStart; mapping(address => uint256) public amountMinted; bool public reservesMinted = false; Counters.Counter public tokenSupply; // metadata variables string public tokenBaseURI = "ipfs://QmTZjLFYm5uHKYb4rsKgFsRZXoQrf1mY6VsRCCKPR3pkbi/"; string public unrevealedURI; // benefactor variables address payable immutable public payee; address immutable public reservee = 0xd95740e361Fc851E1338A7E2E82255176417d4eD; /** * @dev Contract Methods */ constructor( address _payee, uint256 _mainsaleStart ) ERC721("Toasties", "TOAST") { payee = payable(_payee); mainsaleStart = _mainsaleStart; } /************ * Metadata * ************/ function setTokenBaseURI(string memory _baseURI) external onlyOwner { tokenBaseURI = _baseURI; } function setUnrevealedURI(string memory _unrevealedUri) external onlyOwner { unrevealedURI = _unrevealedUri; } function tokenURI(uint256 _tokenId) override public view returns (string memory) { bool revealed = bytes(tokenBaseURI).length > 0; if (!revealed) { return unrevealedURI; } require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(tokenBaseURI, _tokenId.toString())); } /*************** * Mint Setters * ***************/ function setPrice(uint256 _price) external onlyOwner { PRICE = _price; } function setAmountMintable(uint256 _amount) external onlyOwner { amountMintable = _amount; } function setMainsaleStart(uint256 _start) external onlyOwner { mainsaleStart = _start; } /******* * Mint * *******/ function _mintActive() internal view returns (bool) { if (block.timestamp > mainsaleStart) { return true; } else { return false; } } function mint(uint256 _quantity) external payable { require(mainsaleStart > 0, "Sale start time has not been set"); if (_mintActive() == true) { require(amountMinted[msg.sender] + _quantity <= amountMintable, "Quantity is more than mintable amount per account"); amountMinted[msg.sender] = _quantity + amountMinted[msg.sender]; } else { revert("sale hasn't started"); } // require payment require(msg.value >= PRICE.mul(_quantity), "The ether value sent is less than the mint price."); _safeMint(_quantity); } function _safeMint(uint256 _quantity) internal { require(_quantity > 0, "You must mint at least 1"); require(tokenSupply.current().add(_quantity) <= totalSupply, "This purchase would exceed totalSupply"); this.withdraw(); for (uint256 i = 0; i < _quantity; i++) { uint256 mintIndex = tokenSupply.current(); if (mintIndex < totalSupply) { tokenSupply.increment(); ERC721._safeMint(msg.sender, mintIndex); } } } function mintReserved() external onlyOwner { require(!reservesMinted, "Reserves have already been minted."); require(tokenSupply.current().add(RESERVED) <= totalSupply, "This mint would exceed totalSupply"); reservesMinted = true; for (uint256 i = 0; i < RESERVED; i++) { uint256 mintIndex = tokenSupply.current(); if (mintIndex < totalSupply) { tokenSupply.increment(); if (mintIndex > RESERVED - TEAM){ ERC721._safeMint(msg.sender, mintIndex); } else { ERC721._safeMint(reservee, mintIndex); } } } } /************** * Withdrawal * **************/ function withdraw() public { uint256 balance = address(this).balance; payable(payee).transfer(balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "toasties.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_payee","type":"address"},{"internalType":"uint256","name":"_mainsaleStart","type":"uint256"}],"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountMintable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[],"name":"mainsaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payee","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservesMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setAmountMintable","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":"uint256","name":"_start","type":"uint256"}],"name":"setMainsaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setTokenBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedUri","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
611e6160085560006009556014600a55600d805460ff19169055610120604052603660c0818152906200259f60e03980516200004491600f916020909101906200017f565b5073d95740e361fc851e1338a7e2e82255176417d4ed60a0523480156200006a57600080fd5b50604051620025d5380380620025d58339810160408190526200008d9162000225565b6040805180820182526008815267546f61737469657360c01b6020808301918252835180850190945260058452641513d054d560da1b908401528151919291620000da916000916200017f565b508051620000f09060019060208401906200017f565b5050506200010d620001076200012960201b60201c565b6200012d565b60016007556001600160a01b03909116608052600b556200029d565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200018d9062000261565b90600052602060002090601f016020900481019282620001b15760008555620001fc565b82601f10620001cc57805160ff1916838001178555620001fc565b82800160010185558215620001fc579182015b82811115620001fc578251825591602001919060010190620001df565b506200020a9291506200020e565b5090565b5b808211156200020a57600081556001016200020f565b600080604083850312156200023957600080fd5b82516001600160a01b03811681146200025157600080fd5b6020939093015192949293505050565b600181811c908216806200027657607f821691505b6020821081036200029757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516122ce620002d1600039600081816103060152611230015260008181610539015261099101526122ce6000f3fe60806040526004361061021a5760003560e01c80638ef79e9111610123578063c52bd853116100ab578063e985e9c51161006f578063e985e9c51461060a578063ec8c890414610653578063ed86a5b814610668578063f2fde38b1461067e578063fe2c7fee1461069e57600080fd5b8063c52bd8531461057b578063c87b56dd1461059b578063cc41d795146105bb578063cecdc6aa146105d5578063d956b237146105ea57600080fd5b8063a22cb465116100f2578063a22cb465146104dc578063a49feed6146104fc578063aa592f2514610512578063ae90b21314610527578063b88d4fde1461055b57600080fd5b80638ef79e911461047457806391b7f5ed1461049457806395d89b41146104b4578063a0712d68146104c957600080fd5b8063438a67e7116101a657806370a082311161017557806370a08231146103f4578063715018a6146104145780637824407f146104295780638d859f3e146104405780638da5cb5b1461045657600080fd5b8063438a67e71461037d5780634e99b800146103aa5780636352211e146103bf5780637035bf18146103df57600080fd5b806318160ddd116101ed57806318160ddd146102d0578063210f1ffd146102f457806323b872dd146103285780633ccfd60b1461034857806342842e0e1461035d57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611c9b565b6106be565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b50610269610710565b60405161024b9190611d10565b34801561028257600080fd5b50610296610291366004611d23565b6107a2565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506102ce6102c9366004611d58565b61083c565b005b3480156102dc57600080fd5b506102e660085481565b60405190815260200161024b565b34801561030057600080fd5b506102967f000000000000000000000000000000000000000000000000000000000000000081565b34801561033457600080fd5b506102ce610343366004611d82565b610951565b34801561035457600080fd5b506102ce610982565b34801561036957600080fd5b506102ce610378366004611d82565b6109de565b34801561038957600080fd5b506102e6610398366004611dbe565b600c6020526000908152604090205481565b3480156103b657600080fd5b506102696109f9565b3480156103cb57600080fd5b506102966103da366004611d23565b610a87565b3480156103eb57600080fd5b50610269610afe565b34801561040057600080fd5b506102e661040f366004611dbe565b610b0b565b34801561042057600080fd5b506102ce610b92565b34801561043557600080fd5b50600e546102e69081565b34801561044c57600080fd5b506102e660095481565b34801561046257600080fd5b506006546001600160a01b0316610296565b34801561048057600080fd5b506102ce61048f366004611e65565b610bc8565b3480156104a057600080fd5b506102ce6104af366004611d23565b610c05565b3480156104c057600080fd5b50610269610c34565b6102ce6104d7366004611d23565b610c43565b3480156104e857600080fd5b506102ce6104f7366004611eae565b610e1b565b34801561050857600080fd5b506102e6600a5481565b34801561051e57600080fd5b506102e6600181565b34801561053357600080fd5b506102967f000000000000000000000000000000000000000000000000000000000000000081565b34801561056757600080fd5b506102ce610576366004611eea565b610edf565b34801561058757600080fd5b506102ce610596366004611d23565b610f17565b3480156105a757600080fd5b506102696105b6366004611d23565b610f46565b3480156105c757600080fd5b50600d5461023f9060ff1681565b3480156105e157600080fd5b506102e6600081565b3480156105f657600080fd5b506102ce610605366004611d23565b6110a4565b34801561061657600080fd5b5061023f610625366004611f66565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065f57600080fd5b506102ce6110d3565b34801561067457600080fd5b506102e6600b5481565b34801561068a57600080fd5b506102ce610699366004611dbe565b611268565b3480156106aa57600080fd5b506102ce6106b9366004611e65565b611300565b60006001600160e01b031982166380ac58cd60e01b14806106ef57506001600160e01b03198216635b5e139f60e01b145b8061070a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461071f90611f99565b80601f016020809104026020016040519081016040528092919081815260200182805461074b90611f99565b80156107985780601f1061076d57610100808354040283529160200191610798565b820191906000526020600020905b81548152906001019060200180831161077b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061084782610a87565b9050806001600160a01b0316836001600160a01b0316036108b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610817565b336001600160a01b03821614806108d057506108d08133610625565b6109425760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610817565b61094c838361133d565b505050565b61095b33826113ab565b6109775760405162461bcd60e51b815260040161081790611fd3565b61094c8383836114a2565b60405147906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169082156108fc029083906000818181858888f193505050501580156109da573d6000803e3d6000fd5b5050565b61094c83838360405180602001604052806000815250610edf565b600f8054610a0690611f99565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3290611f99565b8015610a7f5780601f10610a5457610100808354040283529160200191610a7f565b820191906000526020600020905b815481529060010190602001808311610a6257829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b03168061070a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610817565b60108054610a0690611f99565b60006001600160a01b038216610b765760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610817565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610bbc5760405162461bcd60e51b815260040161081790612024565b610bc66000611642565b565b6006546001600160a01b03163314610bf25760405162461bcd60e51b815260040161081790612024565b80516109da90600f906020840190611bec565b6006546001600160a01b03163314610c2f5760405162461bcd60e51b815260040161081790612024565b600955565b60606001805461071f90611f99565b6000600b5411610c955760405162461bcd60e51b815260206004820181905260248201527f53616c652073746172742074696d6520686173206e6f74206265656e207365746044820152606401610817565b610c9d611694565b1515600103610d5b57600a54336000908152600c6020526040902054610cc490839061206f565b1115610d2c5760405162461bcd60e51b815260206004820152603160248201527f5175616e74697479206973206d6f7265207468616e206d696e7461626c6520616044820152701b5bdd5b9d081c195c881858d8dbdd5b9d607a1b6064820152608401610817565b336000908152600c6020526040902054610d46908261206f565b336000908152600c6020526040902055610d99565b60405162461bcd60e51b81526020600482015260136024820152721cd85b19481a185cdb89dd081cdd185c9d1959606a1b6044820152606401610817565b600954610da690826116ac565b341015610e0f5760405162461bcd60e51b815260206004820152603160248201527f5468652065746865722076616c75652073656e74206973206c6573732074686160448201527037103a34329036b4b73a10383934b1b29760791b6064820152608401610817565b610e18816116bf565b50565b336001600160a01b03831603610e735760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610817565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ee933836113ab565b610f055760405162461bcd60e51b815260040161081790611fd3565b610f118484848461181c565b50505050565b6006546001600160a01b03163314610f415760405162461bcd60e51b815260040161081790612024565b600b55565b6060600080600f8054610f5890611f99565b905011905080610ff55760108054610f6f90611f99565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9b90611f99565b8015610fe85780601f10610fbd57610100808354040283529160200191610fe8565b820191906000526020600020905b815481529060010190602001808311610fcb57829003601f168201915b5050505050915050919050565b6000838152600260205260409020546001600160a01b03166110715760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610817565b600f61107c8461184f565b60405160200161108d9291906120a3565b604051602081830303815290604052915050919050565b6006546001600160a01b031633146110ce5760405162461bcd60e51b815260040161081790612024565b600a55565b6006546001600160a01b031633146110fd5760405162461bcd60e51b815260040161081790612024565b600d5460ff161561115b5760405162461bcd60e51b815260206004820152602260248201527f5265736572766573206861766520616c7265616479206265656e206d696e7465604482015261321760f11b6064820152608401610817565b600854611172600161116c600e5490565b90611950565b11156111cb5760405162461bcd60e51b815260206004820152602260248201527f54686973206d696e7420776f756c642065786365656420746f74616c537570706044820152616c7960f01b6064820152608401610817565b600d805460ff1916600117905560005b6001811015610e185760006111ef600e5490565b905060085481101561125557611209600e80546001019055565b61121560006001612149565b81111561122b57611226338261195c565b611255565b6112557f00000000000000000000000000000000000000000000000000000000000000008261195c565b508061126081612160565b9150506111db565b6006546001600160a01b031633146112925760405162461bcd60e51b815260040161081790612024565b6001600160a01b0381166112f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610817565b610e1881611642565b6006546001600160a01b0316331461132a5760405162461bcd60e51b815260040161081790612024565b80516109da906010906020840190611bec565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061137282610a87565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166114245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610817565b600061142f83610a87565b9050806001600160a01b0316846001600160a01b0316148061146a5750836001600160a01b031661145f846107a2565b6001600160a01b0316145b8061149a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114b582610a87565b6001600160a01b03161461151d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610817565b6001600160a01b03821661157f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610817565b61158a60008261133d565b6001600160a01b03831660009081526003602052604081208054600192906115b3908490612149565b90915550506001600160a01b03821660009081526003602052604081208054600192906115e190849061206f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600b544211156116a65750600190565b50600090565b60006116b88284612179565b9392505050565b6000811161170f5760405162461bcd60e51b815260206004820152601860248201527f596f75206d757374206d696e74206174206c65617374203100000000000000006044820152606401610817565b60085461171f8261116c600e5490565b111561177c5760405162461bcd60e51b815260206004820152602660248201527f5468697320707572636861736520776f756c642065786365656420746f74616c604482015265537570706c7960d01b6064820152608401610817565b306001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156117b757600080fd5b505af11580156117cb573d6000803e3d6000fd5b5050505060005b818110156109da5760006117e5600e5490565b9050600854811015611809576117ff600e80546001019055565b611809338261195c565b508061181481612160565b9150506117d2565b6118278484846114a2565b61183384848484611976565b610f115760405162461bcd60e51b815260040161081790612198565b6060816000036118765750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118a0578061188a81612160565b91506118999050600a83612200565b915061187a565b60008167ffffffffffffffff8111156118bb576118bb611dd9565b6040519080825280601f01601f1916602001820160405280156118e5576020820181803683370190505b5090505b841561149a576118fa600183612149565b9150611907600a86612214565b61191290603061206f565b60f81b81838151811061192757611927612228565b60200101906001600160f81b031916908160001a905350611949600a86612200565b94506118e9565b60006116b8828461206f565b6109da828260405180602001604052806000815250611a77565b60006001600160a01b0384163b15611a6c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ba90339089908890889060040161223e565b6020604051808303816000875af19250505080156119f5575060408051601f3d908101601f191682019092526119f29181019061227b565b60015b611a52573d808015611a23576040519150601f19603f3d011682016040523d82523d6000602084013e611a28565b606091505b508051600003611a4a5760405162461bcd60e51b815260040161081790612198565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149a565b506001949350505050565b611a818383611aaa565b611a8e6000848484611976565b61094c5760405162461bcd60e51b815260040161081790612198565b6001600160a01b038216611b005760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610817565b6000818152600260205260409020546001600160a01b031615611b655760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610817565b6001600160a01b0382166000908152600360205260408120805460019290611b8e90849061206f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611bf890611f99565b90600052602060002090601f016020900481019282611c1a5760008555611c60565b82601f10611c3357805160ff1916838001178555611c60565b82800160010185558215611c60579182015b82811115611c60578251825591602001919060010190611c45565b50611c6c929150611c70565b5090565b5b80821115611c6c5760008155600101611c71565b6001600160e01b031981168114610e1857600080fd5b600060208284031215611cad57600080fd5b81356116b881611c85565b60005b83811015611cd3578181015183820152602001611cbb565b83811115610f115750506000910152565b60008151808452611cfc816020860160208601611cb8565b601f01601f19169290920160200192915050565b6020815260006116b86020830184611ce4565b600060208284031215611d3557600080fd5b5035919050565b80356001600160a01b0381168114611d5357600080fd5b919050565b60008060408385031215611d6b57600080fd5b611d7483611d3c565b946020939093013593505050565b600080600060608486031215611d9757600080fd5b611da084611d3c565b9250611dae60208501611d3c565b9150604084013590509250925092565b600060208284031215611dd057600080fd5b6116b882611d3c565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e0a57611e0a611dd9565b604051601f8501601f19908116603f01168101908282118183101715611e3257611e32611dd9565b81604052809350858152868686011115611e4b57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611e7757600080fd5b813567ffffffffffffffff811115611e8e57600080fd5b8201601f81018413611e9f57600080fd5b61149a84823560208401611def565b60008060408385031215611ec157600080fd5b611eca83611d3c565b915060208301358015158114611edf57600080fd5b809150509250929050565b60008060008060808587031215611f0057600080fd5b611f0985611d3c565b9350611f1760208601611d3c565b925060408501359150606085013567ffffffffffffffff811115611f3a57600080fd5b8501601f81018713611f4b57600080fd5b611f5a87823560208401611def565b91505092959194509250565b60008060408385031215611f7957600080fd5b611f8283611d3c565b9150611f9060208401611d3c565b90509250929050565b600181811c90821680611fad57607f821691505b602082108103611fcd57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561208257612082612059565b500190565b60008151612099818560208601611cb8565b9290920192915050565b600080845481600182811c9150808316806120bf57607f831692505b602080841082036120de57634e487b7160e01b86526022600452602486fd5b8180156120f2576001811461210357612130565b60ff19861689528489019650612130565b60008b81526020902060005b868110156121285781548b82015290850190830161210f565b505084890196505b5050505050506121408185612087565b95945050505050565b60008282101561215b5761215b612059565b500390565b60006001820161217257612172612059565b5060010190565b600081600019048311821515161561219357612193612059565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261220f5761220f6121ea565b500490565b600082612223576122236121ea565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061227190830184611ce4565b9695505050505050565b60006020828403121561228d57600080fd5b81516116b881611c8556fea26469706673582212207a77da3463256353fa1d561f289aabb0dc4914cefb247112b0fe8fb933f7c06e64736f6c634300080d0033697066733a2f2f516d545a6a4c46596d3575484b59623472734b674673525a586f517266316d593656735243434b505233706b62692f000000000000000000000000ee0b55a43a7bd6037f4f26495e2cdb278a5948370000000000000000000000000000000000000000000000000000000062b66c20
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80638ef79e9111610123578063c52bd853116100ab578063e985e9c51161006f578063e985e9c51461060a578063ec8c890414610653578063ed86a5b814610668578063f2fde38b1461067e578063fe2c7fee1461069e57600080fd5b8063c52bd8531461057b578063c87b56dd1461059b578063cc41d795146105bb578063cecdc6aa146105d5578063d956b237146105ea57600080fd5b8063a22cb465116100f2578063a22cb465146104dc578063a49feed6146104fc578063aa592f2514610512578063ae90b21314610527578063b88d4fde1461055b57600080fd5b80638ef79e911461047457806391b7f5ed1461049457806395d89b41146104b4578063a0712d68146104c957600080fd5b8063438a67e7116101a657806370a082311161017557806370a08231146103f4578063715018a6146104145780637824407f146104295780638d859f3e146104405780638da5cb5b1461045657600080fd5b8063438a67e71461037d5780634e99b800146103aa5780636352211e146103bf5780637035bf18146103df57600080fd5b806318160ddd116101ed57806318160ddd146102d0578063210f1ffd146102f457806323b872dd146103285780633ccfd60b1461034857806342842e0e1461035d57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611c9b565b6106be565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b50610269610710565b60405161024b9190611d10565b34801561028257600080fd5b50610296610291366004611d23565b6107a2565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506102ce6102c9366004611d58565b61083c565b005b3480156102dc57600080fd5b506102e660085481565b60405190815260200161024b565b34801561030057600080fd5b506102967f000000000000000000000000d95740e361fc851e1338a7e2e82255176417d4ed81565b34801561033457600080fd5b506102ce610343366004611d82565b610951565b34801561035457600080fd5b506102ce610982565b34801561036957600080fd5b506102ce610378366004611d82565b6109de565b34801561038957600080fd5b506102e6610398366004611dbe565b600c6020526000908152604090205481565b3480156103b657600080fd5b506102696109f9565b3480156103cb57600080fd5b506102966103da366004611d23565b610a87565b3480156103eb57600080fd5b50610269610afe565b34801561040057600080fd5b506102e661040f366004611dbe565b610b0b565b34801561042057600080fd5b506102ce610b92565b34801561043557600080fd5b50600e546102e69081565b34801561044c57600080fd5b506102e660095481565b34801561046257600080fd5b506006546001600160a01b0316610296565b34801561048057600080fd5b506102ce61048f366004611e65565b610bc8565b3480156104a057600080fd5b506102ce6104af366004611d23565b610c05565b3480156104c057600080fd5b50610269610c34565b6102ce6104d7366004611d23565b610c43565b3480156104e857600080fd5b506102ce6104f7366004611eae565b610e1b565b34801561050857600080fd5b506102e6600a5481565b34801561051e57600080fd5b506102e6600181565b34801561053357600080fd5b506102967f000000000000000000000000ee0b55a43a7bd6037f4f26495e2cdb278a59483781565b34801561056757600080fd5b506102ce610576366004611eea565b610edf565b34801561058757600080fd5b506102ce610596366004611d23565b610f17565b3480156105a757600080fd5b506102696105b6366004611d23565b610f46565b3480156105c757600080fd5b50600d5461023f9060ff1681565b3480156105e157600080fd5b506102e6600081565b3480156105f657600080fd5b506102ce610605366004611d23565b6110a4565b34801561061657600080fd5b5061023f610625366004611f66565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561065f57600080fd5b506102ce6110d3565b34801561067457600080fd5b506102e6600b5481565b34801561068a57600080fd5b506102ce610699366004611dbe565b611268565b3480156106aa57600080fd5b506102ce6106b9366004611e65565b611300565b60006001600160e01b031982166380ac58cd60e01b14806106ef57506001600160e01b03198216635b5e139f60e01b145b8061070a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461071f90611f99565b80601f016020809104026020016040519081016040528092919081815260200182805461074b90611f99565b80156107985780601f1061076d57610100808354040283529160200191610798565b820191906000526020600020905b81548152906001019060200180831161077b57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061084782610a87565b9050806001600160a01b0316836001600160a01b0316036108b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610817565b336001600160a01b03821614806108d057506108d08133610625565b6109425760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610817565b61094c838361133d565b505050565b61095b33826113ab565b6109775760405162461bcd60e51b815260040161081790611fd3565b61094c8383836114a2565b60405147906001600160a01b037f000000000000000000000000ee0b55a43a7bd6037f4f26495e2cdb278a594837169082156108fc029083906000818181858888f193505050501580156109da573d6000803e3d6000fd5b5050565b61094c83838360405180602001604052806000815250610edf565b600f8054610a0690611f99565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3290611f99565b8015610a7f5780601f10610a5457610100808354040283529160200191610a7f565b820191906000526020600020905b815481529060010190602001808311610a6257829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b03168061070a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610817565b60108054610a0690611f99565b60006001600160a01b038216610b765760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610817565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610bbc5760405162461bcd60e51b815260040161081790612024565b610bc66000611642565b565b6006546001600160a01b03163314610bf25760405162461bcd60e51b815260040161081790612024565b80516109da90600f906020840190611bec565b6006546001600160a01b03163314610c2f5760405162461bcd60e51b815260040161081790612024565b600955565b60606001805461071f90611f99565b6000600b5411610c955760405162461bcd60e51b815260206004820181905260248201527f53616c652073746172742074696d6520686173206e6f74206265656e207365746044820152606401610817565b610c9d611694565b1515600103610d5b57600a54336000908152600c6020526040902054610cc490839061206f565b1115610d2c5760405162461bcd60e51b815260206004820152603160248201527f5175616e74697479206973206d6f7265207468616e206d696e7461626c6520616044820152701b5bdd5b9d081c195c881858d8dbdd5b9d607a1b6064820152608401610817565b336000908152600c6020526040902054610d46908261206f565b336000908152600c6020526040902055610d99565b60405162461bcd60e51b81526020600482015260136024820152721cd85b19481a185cdb89dd081cdd185c9d1959606a1b6044820152606401610817565b600954610da690826116ac565b341015610e0f5760405162461bcd60e51b815260206004820152603160248201527f5468652065746865722076616c75652073656e74206973206c6573732074686160448201527037103a34329036b4b73a10383934b1b29760791b6064820152608401610817565b610e18816116bf565b50565b336001600160a01b03831603610e735760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610817565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ee933836113ab565b610f055760405162461bcd60e51b815260040161081790611fd3565b610f118484848461181c565b50505050565b6006546001600160a01b03163314610f415760405162461bcd60e51b815260040161081790612024565b600b55565b6060600080600f8054610f5890611f99565b905011905080610ff55760108054610f6f90611f99565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9b90611f99565b8015610fe85780601f10610fbd57610100808354040283529160200191610fe8565b820191906000526020600020905b815481529060010190602001808311610fcb57829003601f168201915b5050505050915050919050565b6000838152600260205260409020546001600160a01b03166110715760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610817565b600f61107c8461184f565b60405160200161108d9291906120a3565b604051602081830303815290604052915050919050565b6006546001600160a01b031633146110ce5760405162461bcd60e51b815260040161081790612024565b600a55565b6006546001600160a01b031633146110fd5760405162461bcd60e51b815260040161081790612024565b600d5460ff161561115b5760405162461bcd60e51b815260206004820152602260248201527f5265736572766573206861766520616c7265616479206265656e206d696e7465604482015261321760f11b6064820152608401610817565b600854611172600161116c600e5490565b90611950565b11156111cb5760405162461bcd60e51b815260206004820152602260248201527f54686973206d696e7420776f756c642065786365656420746f74616c537570706044820152616c7960f01b6064820152608401610817565b600d805460ff1916600117905560005b6001811015610e185760006111ef600e5490565b905060085481101561125557611209600e80546001019055565b61121560006001612149565b81111561122b57611226338261195c565b611255565b6112557f000000000000000000000000d95740e361fc851e1338a7e2e82255176417d4ed8261195c565b508061126081612160565b9150506111db565b6006546001600160a01b031633146112925760405162461bcd60e51b815260040161081790612024565b6001600160a01b0381166112f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610817565b610e1881611642565b6006546001600160a01b0316331461132a5760405162461bcd60e51b815260040161081790612024565b80516109da906010906020840190611bec565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061137282610a87565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166114245760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610817565b600061142f83610a87565b9050806001600160a01b0316846001600160a01b0316148061146a5750836001600160a01b031661145f846107a2565b6001600160a01b0316145b8061149a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114b582610a87565b6001600160a01b03161461151d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610817565b6001600160a01b03821661157f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610817565b61158a60008261133d565b6001600160a01b03831660009081526003602052604081208054600192906115b3908490612149565b90915550506001600160a01b03821660009081526003602052604081208054600192906115e190849061206f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600b544211156116a65750600190565b50600090565b60006116b88284612179565b9392505050565b6000811161170f5760405162461bcd60e51b815260206004820152601860248201527f596f75206d757374206d696e74206174206c65617374203100000000000000006044820152606401610817565b60085461171f8261116c600e5490565b111561177c5760405162461bcd60e51b815260206004820152602660248201527f5468697320707572636861736520776f756c642065786365656420746f74616c604482015265537570706c7960d01b6064820152608401610817565b306001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156117b757600080fd5b505af11580156117cb573d6000803e3d6000fd5b5050505060005b818110156109da5760006117e5600e5490565b9050600854811015611809576117ff600e80546001019055565b611809338261195c565b508061181481612160565b9150506117d2565b6118278484846114a2565b61183384848484611976565b610f115760405162461bcd60e51b815260040161081790612198565b6060816000036118765750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118a0578061188a81612160565b91506118999050600a83612200565b915061187a565b60008167ffffffffffffffff8111156118bb576118bb611dd9565b6040519080825280601f01601f1916602001820160405280156118e5576020820181803683370190505b5090505b841561149a576118fa600183612149565b9150611907600a86612214565b61191290603061206f565b60f81b81838151811061192757611927612228565b60200101906001600160f81b031916908160001a905350611949600a86612200565b94506118e9565b60006116b8828461206f565b6109da828260405180602001604052806000815250611a77565b60006001600160a01b0384163b15611a6c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ba90339089908890889060040161223e565b6020604051808303816000875af19250505080156119f5575060408051601f3d908101601f191682019092526119f29181019061227b565b60015b611a52573d808015611a23576040519150601f19603f3d011682016040523d82523d6000602084013e611a28565b606091505b508051600003611a4a5760405162461bcd60e51b815260040161081790612198565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149a565b506001949350505050565b611a818383611aaa565b611a8e6000848484611976565b61094c5760405162461bcd60e51b815260040161081790612198565b6001600160a01b038216611b005760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610817565b6000818152600260205260409020546001600160a01b031615611b655760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610817565b6001600160a01b0382166000908152600360205260408120805460019290611b8e90849061206f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611bf890611f99565b90600052602060002090601f016020900481019282611c1a5760008555611c60565b82601f10611c3357805160ff1916838001178555611c60565b82800160010185558215611c60579182015b82811115611c60578251825591602001919060010190611c45565b50611c6c929150611c70565b5090565b5b80821115611c6c5760008155600101611c71565b6001600160e01b031981168114610e1857600080fd5b600060208284031215611cad57600080fd5b81356116b881611c85565b60005b83811015611cd3578181015183820152602001611cbb565b83811115610f115750506000910152565b60008151808452611cfc816020860160208601611cb8565b601f01601f19169290920160200192915050565b6020815260006116b86020830184611ce4565b600060208284031215611d3557600080fd5b5035919050565b80356001600160a01b0381168114611d5357600080fd5b919050565b60008060408385031215611d6b57600080fd5b611d7483611d3c565b946020939093013593505050565b600080600060608486031215611d9757600080fd5b611da084611d3c565b9250611dae60208501611d3c565b9150604084013590509250925092565b600060208284031215611dd057600080fd5b6116b882611d3c565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e0a57611e0a611dd9565b604051601f8501601f19908116603f01168101908282118183101715611e3257611e32611dd9565b81604052809350858152868686011115611e4b57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611e7757600080fd5b813567ffffffffffffffff811115611e8e57600080fd5b8201601f81018413611e9f57600080fd5b61149a84823560208401611def565b60008060408385031215611ec157600080fd5b611eca83611d3c565b915060208301358015158114611edf57600080fd5b809150509250929050565b60008060008060808587031215611f0057600080fd5b611f0985611d3c565b9350611f1760208601611d3c565b925060408501359150606085013567ffffffffffffffff811115611f3a57600080fd5b8501601f81018713611f4b57600080fd5b611f5a87823560208401611def565b91505092959194509250565b60008060408385031215611f7957600080fd5b611f8283611d3c565b9150611f9060208401611d3c565b90509250929050565b600181811c90821680611fad57607f821691505b602082108103611fcd57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561208257612082612059565b500190565b60008151612099818560208601611cb8565b9290920192915050565b600080845481600182811c9150808316806120bf57607f831692505b602080841082036120de57634e487b7160e01b86526022600452602486fd5b8180156120f2576001811461210357612130565b60ff19861689528489019650612130565b60008b81526020902060005b868110156121285781548b82015290850190830161210f565b505084890196505b5050505050506121408185612087565b95945050505050565b60008282101561215b5761215b612059565b500390565b60006001820161217257612172612059565b5060010190565b600081600019048311821515161561219357612193612059565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261220f5761220f6121ea565b500490565b600082612223576122236121ea565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061227190830184611ce4565b9695505050505050565b60006020828403121561228d57600080fd5b81516116b881611c8556fea26469706673582212207a77da3463256353fa1d561f289aabb0dc4914cefb247112b0fe8fb933f7c06e64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ee0b55a43a7bd6037f4f26495e2cdb278a5948370000000000000000000000000000000000000000000000000000000062b66c20
-----Decoded View---------------
Arg [0] : _payee (address): 0xEe0b55a43A7bd6037f4F26495e2Cdb278a594837
Arg [1] : _mainsaleStart (uint256): 1656122400
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ee0b55a43a7bd6037f4f26495e2cdb278a594837
Arg [1] : 0000000000000000000000000000000000000000000000000000000062b66c20
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.