ERC-721
Overview
Max Total Supply
1,125 TSYH
Holders
735
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TSYHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TSYH
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // @title: THROW STONE by Yusuke Hanai // @desc: A total of 1125 “THROW STONE” NFTs are airdropped exclusively for “People In The Place They Love” holders as community rewards, created by FWENCLUB. With 250 editions of 4 designs, this special digital art piece could be used to embellish your space as a fine detailed ornament in METAVERSE. 125 pieces of special edition will be reserved for wood panel raffle winners. The art is inspired by a notable sculpture by Yusuke Hanai, which he would like to applaud people who fight hard against tough times through this work. // @twitter: https://twitter.com/fwenclub // @instagram: https://instagram.com/fwenclub // @discord: https://discord.gg/fwenclub // @url: https://www.fwenclub.com/ /* * ███████╗░██╗░░░░░░░██╗███████╗███╗░░██╗░█████╗░██╗░░░░░██╗░░░██╗██████╗░ * ██╔════╝░██║░░██╗░░██║██╔════╝████╗░██║██╔══██╗██║░░░░░██║░░░██║██╔══██╗ * █████╗░░░╚██╗████╗██╔╝█████╗░░██╔██╗██║██║░░╚═╝██║░░░░░██║░░░██║██████╦╝ * ██╔══╝░░░░████╔═████║░██╔══╝░░██║╚████║██║░░██╗██║░░░░░██║░░░██║██╔══██╗ * ██║░░░░░░░╚██╔╝░╚██╔╝░███████╗██║░╚███║╚█████╔╝███████╗╚██████╔╝██████╦╝ * ╚═╝░░░░░░░░╚═╝░░░╚═╝░░╚══════╝╚═╝░░╚══╝░╚════╝░╚══════╝░╚═════╝░╚═════╝░ */ pragma solidity ^0.8.13; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "../erc/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; error MetadataFrozen(); error ExceedMaxSupply(); error RoyaltyPercentageExceed(); error ArrayLengthMismatch(); contract TSYH is ERC721, IERC2981, Ownable { using Strings for uint256; // ======== Royalties ========== address private _royaltyAddress; uint256 private _royaltyPercent; // =============== Supply =============== uint256 public constant maxSupply = 1125; uint256 public totalSupply; // ======= Metadata ======= bool public metadataFrozen; string private _baseURI; /** * @dev Initializes the contract by setting royalty info. */ constructor(address royaltyAddress ) { _royaltyAddress = royaltyAddress; _royaltyPercent = 6; } /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return "THROW STONE by Yusuke Hanai"; } /** * @dev Returns the token collection symbol */ function symbol() public view virtual override returns (string memory) { return "TSYH"; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Sets `metadataFrozen` true * * Requirements: * * - the caller must be `owner`. */ function freezeMetadata() public virtual onlyOwner { metadataFrozen = true; } /** * @dev Sets base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. * @param baseURI base URI to set * * Requirements: * * - the caller must be owner. */ function setBaseURI(string memory baseURI) external onlyOwner { if (metadataFrozen) { revert MetadataFrozen(); } _baseURI = baseURI; } /** * @dev Returns the URI for a given token ID * Throws if the token ID does not exist. * @param tokenId uint256 ID of the token to query */ function tokenURI(uint256 tokenId) public view override returns (string memory) { if (!_exists(tokenId)) { revert NonExistentToken(); } return bytes(_baseURI).length > 0 ? string(abi.encodePacked(_baseURI, tokenId.toString())) : ""; } /** * @dev Creates a new token for every address in `tos`. TokenIds will be automatically assigned * @param tos owners of new tokens * * Requirements: * * - `saleOn` must be false, * - the caller must be the contract owner. */ function privateMint(address[] memory tos) external onlyOwner { for (uint256 i = 0; i < tos.length; i++) { _mint(tos[i], totalSupply + 1 + i); } totalSupply += tos.length; if (totalSupply > maxSupply) { revert ExceedMaxSupply(); } } /** * @dev Set royalty info for all tokens * @param royaltyReceiver address to receive royalty fee * @param royaltyPercentage percentage of royalty fee * * Requirements: * * - the caller must be the contract owner. */ function setRoyaltyInfo(address royaltyReceiver, uint256 royaltyPercentage) public onlyOwner { if (royaltyPercentage > 100) { revert RoyaltyPercentageExceed(); } _royaltyAddress = royaltyReceiver; _royaltyPercent = royaltyPercentage; } /** * @dev See {IERC2981-royaltyInfo}. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount){ if (!_exists(tokenId)) { revert NonExistentToken(); } return (_royaltyAddress, (salePrice * _royaltyPercent) / 100); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/interfaces/IERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC721Receiver.sol"; import "@openzeppelin/contracts/interfaces/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; error ZeroAddress(); error NonExistentToken(); error ApprovalToOwner(); error NonOwner(); error NonOwnerOrOperator(); error NonOwnerOrApproved(); error NonERC721ReceiverImplementer(); error DuplicatedMint(); /** * @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; // 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() { } /** * @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) { if (owner == address(0)) { revert ZeroAddress(); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; if (owner == address(0)) { revert NonExistentToken(); } return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return ""; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return ""; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) { revert NonExistentToken(); } return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); if (to == owner) { revert ApprovalToOwner(); } if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert NonOwnerOrOperator(); } _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) { revert NonExistentToken(); } return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length if (!_isApprovedOrOwner(_msgSender(), tokenId)) { revert NonOwnerOrApproved(); } _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 { if (!_isApprovedOrOwner(_msgSender(), tokenId)) { revert NonOwnerOrApproved(); } _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); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert NonERC721ReceiverImplementer(); } } /** * @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) { if (!_exists(tokenId)) { revert NonExistentToken(); } address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Mints `tokenId` and transfers it to `to`. * * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { if (to == address(0)) { revert ZeroAddress(); } if (_exists(tokenId)) { revert DuplicatedMint(); } _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 { if (ERC721.ownerOf(tokenId) != from) { revert NonOwner(); } if (to == address(0)) { revert ZeroAddress(); } _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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { if (owner == operator) { revert ApprovalToOwner(); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert NonERC721ReceiverImplementer(); } 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 // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../token/ERC721/extensions/IERC721Metadata.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Receiver.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721Receiver.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"royaltyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalToOwner","type":"error"},{"inputs":[],"name":"DuplicatedMint","type":"error"},{"inputs":[],"name":"ExceedMaxSupply","type":"error"},{"inputs":[],"name":"MetadataFrozen","type":"error"},{"inputs":[],"name":"NonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"NonExistentToken","type":"error"},{"inputs":[],"name":"NonOwner","type":"error"},{"inputs":[],"name":"NonOwnerOrApproved","type":"error"},{"inputs":[],"name":"NonOwnerOrOperator","type":"error"},{"inputs":[],"name":"RoyaltyPercentageExceed","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"}],"name":"privateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver","type":"address"},{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161183438038061183483398101604081905261002f916100b3565b61003833610061565b600580546001600160a01b0319166001600160a01b0392909216919091179055600680556100e3565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156100c557600080fd5b81516001600160a01b03811681146100dc57600080fd5b9392505050565b611742806100f26000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80638da5cb5b116100c3578063d111515d1161007c578063d111515d14610334578063d5abeb011461033c578063e2e784d514610345578063e985e9c514610358578063f2fde38b14610394578063fb3cc6c2146103a757600080fd5b80638da5cb5b146102b757806395d89b41146102c8578063a22cb465146102e8578063b88d4fde146102fb578063c87b56dd1461030e578063cc50f2651461032157600080fd5b80632a55205a116101155780632a55205a1461023157806342842e0e1461026357806355f804b3146102765780636352211e1461028957806370a082311461029c578063715018a6146102af57600080fd5b806301ffc9a71461015d57806306fdde0314610185578063081812fc146101c7578063095ea7b3146101f257806318160ddd1461020757806323b872dd1461021e575b600080fd5b61017061016b3660046110c9565b6103b4565b60405190151581526020015b60405180910390f35b60408051808201909152601b81527f5448524f572053544f4e4520627920597573756b652048616e6169000000000060208201525b60405161017c9190611145565b6101da6101d5366004611158565b6103df565b6040516001600160a01b03909116815260200161017c565b61020561020036600461118d565b610430565b005b61021060075481565b60405190815260200161017c565b61020561022c3660046111b7565b6104bc565b61024461023f3660046111f3565b6104ee565b604080516001600160a01b03909316835260208301919091520161017c565b6102056102713660046111b7565b610559565b6102056102843660046112b4565b610574565b6101da610297366004611158565b6105e2565b6102106102aa3660046112fd565b610618565b61020561065d565b6004546001600160a01b03166101da565b6040805180820190915260048152630a8a6b2960e31b60208201526101ba565b6102056102f6366004611318565b610693565b610205610309366004611354565b61069e565b6101ba61031c366004611158565b6106d7565b61020561032f3660046113d0565b61076b565b610205610830565b61021061046581565b61020561035336600461118d565b610869565b61017061036636600461147d565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6102056103a23660046112fd565b6108db565b6008546101709060ff1681565b60006001600160e01b0319821663152a902d60e11b14806103d957506103d982610973565b92915050565b6000818152602081905260408120546001600160a01b031661041457604051634a1850bf60e11b815260040160405180910390fd5b506000908152600260205260409020546001600160a01b031690565b600061043b826105e2565b9050806001600160a01b0316836001600160a01b03160361046f576040516349fa8bc360e11b815260040160405180910390fd5b336001600160a01b0382161480159061048f575061048d8133610366565b155b156104ad5760405163107619cb60e01b815260040160405180910390fd5b6104b783836109c3565b505050565b6104c63382610a31565b6104e3576040516344b4834360e11b815260040160405180910390fd5b6104b7838383610ae4565b60008281526020819052604081205481906001600160a01b031661052557604051634a1850bf60e11b815260040160405180910390fd5b6005546006546001600160a01b039091169060649061054490866114c6565b61054e91906114fb565b915091509250929050565b6104b78383836040518060200160405280600081525061069e565b6004546001600160a01b031633146105a75760405162461bcd60e51b815260040161059e9061150f565b60405180910390fd5b60085460ff16156105cb5760405163777821ff60e11b815260040160405180910390fd5b80516105de90600990602084019061101a565b5050565b6000818152602081905260408120546001600160a01b0316806103d957604051634a1850bf60e11b815260040160405180910390fd5b60006001600160a01b0382166106415760405163d92e233d60e01b815260040160405180910390fd5b506001600160a01b031660009081526001602052604090205490565b6004546001600160a01b031633146106875760405162461bcd60e51b815260040161059e9061150f565b6106916000610c0c565b565b6105de338383610c5e565b6106a83383610a31565b6106c5576040516344b4834360e11b815260040160405180910390fd5b6106d184848484610cfd565b50505050565b6000818152602081905260409020546060906001600160a01b031661070f57604051634a1850bf60e11b815260040160405180910390fd5b60006009805461071e90611544565b90501161073a57604051806020016040528060008152506103d9565b600961074583610d31565b60405160200161075692919061159a565b60405160208183030381529060405292915050565b6004546001600160a01b031633146107955760405162461bcd60e51b815260040161059e9061150f565b60005b81518110156107ef576107dd8282815181106107b6576107b6611640565b60200260200101518260075460016107ce9190611656565b6107d89190611656565b610e32565b806107e78161166e565b915050610798565b508051600760008282546108039190611656565b9091555050600754610465101561082d57604051630f0c37b960e11b815260040160405180910390fd5b50565b6004546001600160a01b0316331461085a5760405162461bcd60e51b815260040161059e9061150f565b6008805460ff19166001179055565b6004546001600160a01b031633146108935760405162461bcd60e51b815260040161059e9061150f565b60648111156108b55760405163bcd4a2a160e01b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b039390931692909217909155600655565b6004546001600160a01b031633146109055760405162461bcd60e51b815260040161059e9061150f565b6001600160a01b03811661096a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161059e565b61082d81610c0c565b60006001600160e01b031982166380ac58cd60e01b14806109a457506001600160e01b03198216635b5e139f60e01b145b806103d957506301ffc9a760e01b6001600160e01b03198316146103d9565b600081815260026020526040902080546001600160a01b0319166001600160a01b03841690811790915581906109f8826105e2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152602081905260408120546001600160a01b0316610a6657604051634a1850bf60e11b815260040160405180910390fd5b6000610a71836105e2565b9050806001600160a01b0316846001600160a01b03161480610aac5750836001600160a01b0316610aa1846103df565b6001600160a01b0316145b80610adc57506001600160a01b0380821660009081526003602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610af7826105e2565b6001600160a01b031614610b1e5760405163106b771d60e31b815260040160405180910390fd5b6001600160a01b038216610b455760405163d92e233d60e01b815260040160405180910390fd5b610b506000826109c3565b6001600160a01b03831660009081526001602081905260408220805491929091610b7b908490611687565b90915550506001600160a01b03821660009081526001602081905260408220805491929091610bab908490611656565b909155505060008181526020819052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610c90576040516349fa8bc360e11b815260040160405180910390fd5b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610d08848484610ae4565b610d1484848484610f18565b6106d1576040516342eac10f60e11b815260040160405180910390fd5b606081600003610d585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610d825780610d6c8161166e565b9150610d7b9050600a836114fb565b9150610d5c565b60008167ffffffffffffffff811115610d9d57610d9d611215565b6040519080825280601f01601f191660200182016040528015610dc7576020820181803683370190505b5090505b8415610adc57610ddc600183611687565b9150610de9600a8661169e565b610df4906030611656565b60f81b818381518110610e0957610e09611640565b60200101906001600160f81b031916908160001a905350610e2b600a866114fb565b9450610dcb565b6001600160a01b038216610e595760405163d92e233d60e01b815260040160405180910390fd5b6000818152602081905260409020546001600160a01b031615610e8f57604051635c5e682d60e01b815260040160405180910390fd5b6001600160a01b03821660009081526001602081905260408220805491929091610eba908490611656565b909155505060008181526020819052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561100f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610f5c9033908990889088906004016116b2565b6020604051808303816000875af1925050508015610f97575060408051601f3d908101601f19168201909252610f94918101906116ef565b60015b610ff5573d808015610fc5576040519150601f19603f3d011682016040523d82523d6000602084013e610fca565b606091505b508051600003610fed576040516342eac10f60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610adc565b506001949350505050565b82805461102690611544565b90600052602060002090601f016020900481019282611048576000855561108e565b82601f1061106157805160ff191683800117855561108e565b8280016001018555821561108e579182015b8281111561108e578251825591602001919060010190611073565b5061109a92915061109e565b5090565b5b8082111561109a576000815560010161109f565b6001600160e01b03198116811461082d57600080fd5b6000602082840312156110db57600080fd5b81356110e6816110b3565b9392505050565b60005b838110156111085781810151838201526020016110f0565b838111156106d15750506000910152565b600081518084526111318160208601602086016110ed565b601f01601f19169290920160200192915050565b6020815260006110e66020830184611119565b60006020828403121561116a57600080fd5b5035919050565b80356001600160a01b038116811461118857600080fd5b919050565b600080604083850312156111a057600080fd5b6111a983611171565b946020939093013593505050565b6000806000606084860312156111cc57600080fd5b6111d584611171565b92506111e360208501611171565b9150604084013590509250925092565b6000806040838503121561120657600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561125457611254611215565b604052919050565b600067ffffffffffffffff83111561127657611276611215565b611289601f8401601f191660200161122b565b905082815283838301111561129d57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156112c657600080fd5b813567ffffffffffffffff8111156112dd57600080fd5b8201601f810184136112ee57600080fd5b610adc8482356020840161125c565b60006020828403121561130f57600080fd5b6110e682611171565b6000806040838503121561132b57600080fd5b61133483611171565b91506020830135801515811461134957600080fd5b809150509250929050565b6000806000806080858703121561136a57600080fd5b61137385611171565b935061138160208601611171565b925060408501359150606085013567ffffffffffffffff8111156113a457600080fd5b8501601f810187136113b557600080fd5b6113c48782356020840161125c565b91505092959194509250565b600060208083850312156113e357600080fd5b823567ffffffffffffffff808211156113fb57600080fd5b818501915085601f83011261140f57600080fd5b81358181111561142157611421611215565b8060051b915061143284830161122b565b818152918301840191848101908884111561144c57600080fd5b938501935b838510156114715761146285611171565b82529385019390850190611451565b98975050505050505050565b6000806040838503121561149057600080fd5b61149983611171565b91506114a760208401611171565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156114e0576114e06114b0565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261150a5761150a6114e5565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061155857607f821691505b60208210810361157857634e487b7160e01b600052602260045260246000fd5b50919050565b600081516115908185602086016110ed565b9290920192915050565b600080845481600182811c9150808316806115b657607f831692505b602080841082036115d557634e487b7160e01b86526022600452602486fd5b8180156115e957600181146115fa57611627565b60ff19861689528489019650611627565b60008b81526020902060005b8681101561161f5781548b820152908501908301611606565b505084890196505b505050505050611637818561157e565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b60008219821115611669576116696114b0565b500190565b600060018201611680576116806114b0565b5060010190565b600082821015611699576116996114b0565b500390565b6000826116ad576116ad6114e5565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906116e590830184611119565b9695505050505050565b60006020828403121561170157600080fd5b81516110e6816110b356fea264697066735822122032c22193ea23b378b5f31c4888b521aa9fddc5940d4f876ea0f3076e52e6a8c864736f6c634300080d00330000000000000000000000009c48083b26314203d1b2ca3cf3a0b711db487285
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c80638da5cb5b116100c3578063d111515d1161007c578063d111515d14610334578063d5abeb011461033c578063e2e784d514610345578063e985e9c514610358578063f2fde38b14610394578063fb3cc6c2146103a757600080fd5b80638da5cb5b146102b757806395d89b41146102c8578063a22cb465146102e8578063b88d4fde146102fb578063c87b56dd1461030e578063cc50f2651461032157600080fd5b80632a55205a116101155780632a55205a1461023157806342842e0e1461026357806355f804b3146102765780636352211e1461028957806370a082311461029c578063715018a6146102af57600080fd5b806301ffc9a71461015d57806306fdde0314610185578063081812fc146101c7578063095ea7b3146101f257806318160ddd1461020757806323b872dd1461021e575b600080fd5b61017061016b3660046110c9565b6103b4565b60405190151581526020015b60405180910390f35b60408051808201909152601b81527f5448524f572053544f4e4520627920597573756b652048616e6169000000000060208201525b60405161017c9190611145565b6101da6101d5366004611158565b6103df565b6040516001600160a01b03909116815260200161017c565b61020561020036600461118d565b610430565b005b61021060075481565b60405190815260200161017c565b61020561022c3660046111b7565b6104bc565b61024461023f3660046111f3565b6104ee565b604080516001600160a01b03909316835260208301919091520161017c565b6102056102713660046111b7565b610559565b6102056102843660046112b4565b610574565b6101da610297366004611158565b6105e2565b6102106102aa3660046112fd565b610618565b61020561065d565b6004546001600160a01b03166101da565b6040805180820190915260048152630a8a6b2960e31b60208201526101ba565b6102056102f6366004611318565b610693565b610205610309366004611354565b61069e565b6101ba61031c366004611158565b6106d7565b61020561032f3660046113d0565b61076b565b610205610830565b61021061046581565b61020561035336600461118d565b610869565b61017061036636600461147d565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b6102056103a23660046112fd565b6108db565b6008546101709060ff1681565b60006001600160e01b0319821663152a902d60e11b14806103d957506103d982610973565b92915050565b6000818152602081905260408120546001600160a01b031661041457604051634a1850bf60e11b815260040160405180910390fd5b506000908152600260205260409020546001600160a01b031690565b600061043b826105e2565b9050806001600160a01b0316836001600160a01b03160361046f576040516349fa8bc360e11b815260040160405180910390fd5b336001600160a01b0382161480159061048f575061048d8133610366565b155b156104ad5760405163107619cb60e01b815260040160405180910390fd5b6104b783836109c3565b505050565b6104c63382610a31565b6104e3576040516344b4834360e11b815260040160405180910390fd5b6104b7838383610ae4565b60008281526020819052604081205481906001600160a01b031661052557604051634a1850bf60e11b815260040160405180910390fd5b6005546006546001600160a01b039091169060649061054490866114c6565b61054e91906114fb565b915091509250929050565b6104b78383836040518060200160405280600081525061069e565b6004546001600160a01b031633146105a75760405162461bcd60e51b815260040161059e9061150f565b60405180910390fd5b60085460ff16156105cb5760405163777821ff60e11b815260040160405180910390fd5b80516105de90600990602084019061101a565b5050565b6000818152602081905260408120546001600160a01b0316806103d957604051634a1850bf60e11b815260040160405180910390fd5b60006001600160a01b0382166106415760405163d92e233d60e01b815260040160405180910390fd5b506001600160a01b031660009081526001602052604090205490565b6004546001600160a01b031633146106875760405162461bcd60e51b815260040161059e9061150f565b6106916000610c0c565b565b6105de338383610c5e565b6106a83383610a31565b6106c5576040516344b4834360e11b815260040160405180910390fd5b6106d184848484610cfd565b50505050565b6000818152602081905260409020546060906001600160a01b031661070f57604051634a1850bf60e11b815260040160405180910390fd5b60006009805461071e90611544565b90501161073a57604051806020016040528060008152506103d9565b600961074583610d31565b60405160200161075692919061159a565b60405160208183030381529060405292915050565b6004546001600160a01b031633146107955760405162461bcd60e51b815260040161059e9061150f565b60005b81518110156107ef576107dd8282815181106107b6576107b6611640565b60200260200101518260075460016107ce9190611656565b6107d89190611656565b610e32565b806107e78161166e565b915050610798565b508051600760008282546108039190611656565b9091555050600754610465101561082d57604051630f0c37b960e11b815260040160405180910390fd5b50565b6004546001600160a01b0316331461085a5760405162461bcd60e51b815260040161059e9061150f565b6008805460ff19166001179055565b6004546001600160a01b031633146108935760405162461bcd60e51b815260040161059e9061150f565b60648111156108b55760405163bcd4a2a160e01b815260040160405180910390fd5b600580546001600160a01b0319166001600160a01b039390931692909217909155600655565b6004546001600160a01b031633146109055760405162461bcd60e51b815260040161059e9061150f565b6001600160a01b03811661096a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161059e565b61082d81610c0c565b60006001600160e01b031982166380ac58cd60e01b14806109a457506001600160e01b03198216635b5e139f60e01b145b806103d957506301ffc9a760e01b6001600160e01b03198316146103d9565b600081815260026020526040902080546001600160a01b0319166001600160a01b03841690811790915581906109f8826105e2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152602081905260408120546001600160a01b0316610a6657604051634a1850bf60e11b815260040160405180910390fd5b6000610a71836105e2565b9050806001600160a01b0316846001600160a01b03161480610aac5750836001600160a01b0316610aa1846103df565b6001600160a01b0316145b80610adc57506001600160a01b0380821660009081526003602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610af7826105e2565b6001600160a01b031614610b1e5760405163106b771d60e31b815260040160405180910390fd5b6001600160a01b038216610b455760405163d92e233d60e01b815260040160405180910390fd5b610b506000826109c3565b6001600160a01b03831660009081526001602081905260408220805491929091610b7b908490611687565b90915550506001600160a01b03821660009081526001602081905260408220805491929091610bab908490611656565b909155505060008181526020819052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610c90576040516349fa8bc360e11b815260040160405180910390fd5b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610d08848484610ae4565b610d1484848484610f18565b6106d1576040516342eac10f60e11b815260040160405180910390fd5b606081600003610d585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610d825780610d6c8161166e565b9150610d7b9050600a836114fb565b9150610d5c565b60008167ffffffffffffffff811115610d9d57610d9d611215565b6040519080825280601f01601f191660200182016040528015610dc7576020820181803683370190505b5090505b8415610adc57610ddc600183611687565b9150610de9600a8661169e565b610df4906030611656565b60f81b818381518110610e0957610e09611640565b60200101906001600160f81b031916908160001a905350610e2b600a866114fb565b9450610dcb565b6001600160a01b038216610e595760405163d92e233d60e01b815260040160405180910390fd5b6000818152602081905260409020546001600160a01b031615610e8f57604051635c5e682d60e01b815260040160405180910390fd5b6001600160a01b03821660009081526001602081905260408220805491929091610eba908490611656565b909155505060008181526020819052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561100f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610f5c9033908990889088906004016116b2565b6020604051808303816000875af1925050508015610f97575060408051601f3d908101601f19168201909252610f94918101906116ef565b60015b610ff5573d808015610fc5576040519150601f19603f3d011682016040523d82523d6000602084013e610fca565b606091505b508051600003610fed576040516342eac10f60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610adc565b506001949350505050565b82805461102690611544565b90600052602060002090601f016020900481019282611048576000855561108e565b82601f1061106157805160ff191683800117855561108e565b8280016001018555821561108e579182015b8281111561108e578251825591602001919060010190611073565b5061109a92915061109e565b5090565b5b8082111561109a576000815560010161109f565b6001600160e01b03198116811461082d57600080fd5b6000602082840312156110db57600080fd5b81356110e6816110b3565b9392505050565b60005b838110156111085781810151838201526020016110f0565b838111156106d15750506000910152565b600081518084526111318160208601602086016110ed565b601f01601f19169290920160200192915050565b6020815260006110e66020830184611119565b60006020828403121561116a57600080fd5b5035919050565b80356001600160a01b038116811461118857600080fd5b919050565b600080604083850312156111a057600080fd5b6111a983611171565b946020939093013593505050565b6000806000606084860312156111cc57600080fd5b6111d584611171565b92506111e360208501611171565b9150604084013590509250925092565b6000806040838503121561120657600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561125457611254611215565b604052919050565b600067ffffffffffffffff83111561127657611276611215565b611289601f8401601f191660200161122b565b905082815283838301111561129d57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156112c657600080fd5b813567ffffffffffffffff8111156112dd57600080fd5b8201601f810184136112ee57600080fd5b610adc8482356020840161125c565b60006020828403121561130f57600080fd5b6110e682611171565b6000806040838503121561132b57600080fd5b61133483611171565b91506020830135801515811461134957600080fd5b809150509250929050565b6000806000806080858703121561136a57600080fd5b61137385611171565b935061138160208601611171565b925060408501359150606085013567ffffffffffffffff8111156113a457600080fd5b8501601f810187136113b557600080fd5b6113c48782356020840161125c565b91505092959194509250565b600060208083850312156113e357600080fd5b823567ffffffffffffffff808211156113fb57600080fd5b818501915085601f83011261140f57600080fd5b81358181111561142157611421611215565b8060051b915061143284830161122b565b818152918301840191848101908884111561144c57600080fd5b938501935b838510156114715761146285611171565b82529385019390850190611451565b98975050505050505050565b6000806040838503121561149057600080fd5b61149983611171565b91506114a760208401611171565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156114e0576114e06114b0565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261150a5761150a6114e5565b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061155857607f821691505b60208210810361157857634e487b7160e01b600052602260045260246000fd5b50919050565b600081516115908185602086016110ed565b9290920192915050565b600080845481600182811c9150808316806115b657607f831692505b602080841082036115d557634e487b7160e01b86526022600452602486fd5b8180156115e957600181146115fa57611627565b60ff19861689528489019650611627565b60008b81526020902060005b8681101561161f5781548b820152908501908301611606565b505084890196505b505050505050611637818561157e565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b60008219821115611669576116696114b0565b500190565b600060018201611680576116806114b0565b5060010190565b600082821015611699576116996114b0565b500390565b6000826116ad576116ad6114e5565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906116e590830184611119565b9695505050505050565b60006020828403121561170157600080fd5b81516110e6816110b356fea264697066735822122032c22193ea23b378b5f31c4888b521aa9fddc5940d4f876ea0f3076e52e6a8c864736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009c48083b26314203d1b2ca3cf3a0b711db487285
-----Decoded View---------------
Arg [0] : royaltyAddress (address): 0x9c48083b26314203d1B2CA3cf3A0B711dB487285
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009c48083b26314203d1b2ca3cf3a0b711db487285
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.