ERC-721
Overview
Max Total Supply
5 HCOT
Holders
5
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
HonoraryCitizens
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/common/ERC2981.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import './TinyERC721.sol'; contract HonoraryCitizens is TinyERC721, ERC2981, Ownable { string private _baseTokenURI; mapping(uint256 => string) private _tokenURIs; constructor() TinyERC721('Honorary Citizens of Tajigen', 'HCOT', 0) {} function mint(address to, uint256 quantity) external onlyOwner { _mint(to, quantity); } function tokenURI(uint256 tokenId) public view override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory _tokenURI = _tokenURIs[tokenId]; if (bytes(_tokenURI).length > 0) { return _tokenURI; } return super.tokenURI(tokenId); } function setTokenURI(uint256 tokenId, string memory _tokenURI) external onlyOwner { _tokenURIs[tokenId] = _tokenURI; } function setBaseURI(string memory newBaseURI) external onlyOwner { _baseTokenURI = newBaseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setRoyalty(address receiver, uint96 value) external onlyOwner { _setDefaultRoyalty(receiver, value); } function supportsInterface(bytes4 interfaceId) public view virtual override(TinyERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error TokenDataQueryForNonexistentToken(); error OwnerQueryForNonexistentToken(); error OperatorQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); contract TinyERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; struct TokenData { address owner; bytes12 aux; } uint256 private immutable _maxBatchSize; mapping(uint256 => TokenData) private _tokens; uint256 private _mintCounter; string private _name; string private _symbol; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { _name = name_; _symbol = symbol_; _maxBatchSize = maxBatchSize_; } function totalSupply() public view virtual returns (uint256) { return _mintCounter; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function _baseURI() internal view virtual returns (string memory) { return ""; } function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); uint256 total = totalSupply(); uint256 count; address lastOwner; for (uint256 i; i < total; ++i) { address tokenOwner = _tokens[i].owner; if (tokenOwner != address(0)) lastOwner = tokenOwner; if (lastOwner == owner) ++count; } return count; } function _tokenData(uint256 tokenId) internal view returns (TokenData storage) { if (!_exists(tokenId)) revert TokenDataQueryForNonexistentToken(); TokenData storage token = _tokens[tokenId]; uint256 currentIndex = tokenId; while (token.owner == address(0)) { unchecked { --currentIndex; } token = _tokens[currentIndex]; } return token; } function ownerOf(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken(); return _tokenData(tokenId).owner; } function approve(address to, uint256 tokenId) public virtual override { TokenData memory token = _tokenData(tokenId); address owner = token.owner; if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, token); } function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function transferFrom( address from, address to, uint256 tokenId ) public virtual override { TokenData memory token = _tokenData(tokenId); if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved(); _transfer(from, to, tokenId, token); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { TokenData memory token = _tokenData(tokenId); if (!_isApprovedOrOwner(_msgSender(), tokenId, token)) revert TransferCallerNotOwnerNorApproved(); _safeTransfer(from, to, tokenId, token, _data); } function _safeTransfer( address from, address to, uint256 tokenId, TokenData memory token, bytes memory _data ) internal virtual { _transfer(from, to, tokenId, token); if (to.isContract() && !_checkOnERC721Received(from, to, tokenId, _data)) revert TransferToNonERC721ReceiverImplementer(); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _mintCounter; } function _isApprovedOrOwner( address spender, uint256 tokenId, TokenData memory token ) internal view virtual returns (bool) { address owner = token.owner; return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ""); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { uint256 startTokenId = _mintCounter; _mint(to, quantity); if (to.isContract()) { unchecked { for (uint256 i; i < quantity; ++i) { if (!_checkOnERC721Received(address(0), to, startTokenId + i, _data)) revert TransferToNonERC721ReceiverImplementer(); } } } } function _mint(address to, uint256 quantity) internal virtual { if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); uint256 startTokenId = _mintCounter; _beforeTokenTransfers(address(0), to, startTokenId, quantity); unchecked { for (uint256 i; i < quantity; ++i) { if (_maxBatchSize == 0 ? i == 0 : i % _maxBatchSize == 0) { TokenData storage token = _tokens[startTokenId + i]; token.owner = to; token.aux = _calculateAux(address(0), to, startTokenId + i, 0); } emit Transfer(address(0), to, startTokenId + i); } _mintCounter += quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } function _transfer( address from, address to, uint256 tokenId, TokenData memory token ) internal virtual { if (token.owner != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); _approve(address(0), tokenId, token); unchecked { uint256 nextTokenId = tokenId + 1; if (_exists(nextTokenId)) { TokenData storage nextToken = _tokens[nextTokenId]; if (nextToken.owner == address(0)) { nextToken.owner = token.owner; nextToken.aux = token.aux; } } } TokenData storage newToken = _tokens[tokenId]; newToken.owner = to; newToken.aux = _calculateAux(from, to, tokenId, token.aux); emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } function _calculateAux( address from, address to, uint256 tokenId, bytes12 current ) internal view virtual returns (bytes12) {} function _approve( address to, uint256 tokenId, TokenData memory token ) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(token.owner, to, tokenId); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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.7.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 /// @solidity memory-safe-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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/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 paid 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 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenDataQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","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":"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":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","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
60a06040523480156200001157600080fd5b506040518060400160405280601c81526020017f486f6e6f7261727920436974697a656e73206f662054616a6967656e00000000815250604051806040016040528060048152602001631210d3d560e21b8152506000826002908162000078919062000196565b50600362000087838262000196565b5060805250620000999050336200009f565b62000262565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011c57607f821691505b6020821081036200013d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019157600081815260208120601f850160051c810160208610156200016c5750805b601f850160051c820191505b818110156200018d5782815560010162000178565b5050505b505050565b81516001600160401b03811115620001b257620001b2620000f1565b620001ca81620001c3845462000107565b8462000143565b602080601f831160018114620002025760008415620001e95750858301515b600019600386901b1c1916600185901b1785556200018d565b600085815260208120601f198616915b82811015620002335788860151825594840194600190910190840162000212565b5085821015620002525787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516119916200028560003960008181610d9c0152610dc201526119916000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80636352211e116100d857806395d89b411161008c578063c87b56dd11610066578063c87b56dd14610327578063e985e9c51461033a578063f2fde38b1461037657600080fd5b806395d89b41146102f9578063a22cb46514610301578063b88d4fde1461031457600080fd5b8063715018a6116100bd578063715018a6146102cd5780638da5cb5b146102d55780638f2fc60b146102e657600080fd5b80636352211e146102a757806370a08231146102ba57600080fd5b806318160ddd1161013a57806340c10f191161011457806340c10f191461026e57806342842e0e1461028157806355f804b31461029457600080fd5b806318160ddd1461021757806323b872dd146102295780632a55205a1461023c57600080fd5b8063081812fc1161016b578063081812fc146101c4578063095ea7b3146101ef578063162094c41461020457600080fd5b806301ffc9a71461018757806306fdde03146101af575b600080fd5b61019a610195366004611323565b610389565b60405190151581526020015b60405180910390f35b6101b761039a565b6040516101a69190611390565b6101d76101d23660046113a3565b61042c565b6040516001600160a01b0390911681526020016101a6565b6102026101fd3660046113d8565b610472565b005b6102026102123660046114ae565b610543565b6001545b6040519081526020016101a6565b6102026102373660046114f5565b610568565b61024f61024a366004611531565b6105da565b604080516001600160a01b0390931683526020830191909152016101a6565b61020261027c3660046113d8565b610695565b61020261028f3660046114f5565b6106ab565b6102026102a2366004611553565b6106c6565b6101d76102b53660046113a3565b6106da565b61021b6102c8366004611588565b61071d565b6102026107c3565b6008546001600160a01b03166101d7565b6102026102f43660046115a3565b6107d7565b6101b76107e9565b61020261030f3660046115eb565b6107f8565b61020261032236600461161c565b61088d565b6101b76103353660046113a3565b610907565b61019a610348366004611698565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610202610384366004611588565b6109ea565b600061039482610a7f565b92915050565b6060600280546103a9906116cb565b80601f01602080910402602001604051908101604052809291908181526020018280546103d5906116cb565b80156104225780601f106103f757610100808354040283529160200191610422565b820191906000526020600020905b81548152906001019060200180831161040557829003601f168201915b5050505050905090565b6000610439826001541190565b610456576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061047d82610aa4565b6040805180820190915290546001600160a01b03808216808452600160a01b90920460a01b6001600160a01b03191660208401529192509084168190036104d75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061051457506001600160a01b038116600090815260056020908152604080832033845290915290205460ff16155b15610532576040516367d9dca160e11b815260040160405180910390fd5b61053d848484610b0d565b50505050565b61054b610b6e565b6000828152600a602052604090206105638282611753565b505050565b600061057382610aa4565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506105b1338383610bc8565b6105ce57604051632ce44b5f60e11b815260040160405180910390fd5b61053d84848484610c39565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916106595750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b60208101516000906127109061067d906bffffffffffffffffffffffff1687611829565b6106879190611856565b915196919550909350505050565b61069d610b6e565b6106a78282610d45565b5050565b6105638383836040518060200160405280600081525061088d565b6106ce610b6e565b60096106a78282611753565b60006106e7826001541190565b61070457604051636f96cda160e11b815260040160405180910390fd5b61070d82610aa4565b546001600160a01b031692915050565b60006001600160a01b038216610746576040516323d3ad8160e21b815260040160405180910390fd5b600061075160015490565b905060008060005b838110156107b9576000818152602081905260409020546001600160a01b03168015610783578092505b866001600160a01b0316836001600160a01b0316036107a8576107a58461186a565b93505b506107b28161186a565b9050610759565b5090949350505050565b6107cb610b6e565b6107d56000610e6c565b565b6107df610b6e565b6106a78282610ebe565b6060600380546103a9906116cb565b336001600160a01b038316036108215760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061089883610aa4565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506108d6338483610bc8565b6108f357604051632ce44b5f60e11b815260040160405180910390fd5b6109008585858486610fd8565b5050505050565b6060610914826001541190565b61093157604051630a14c4b560e41b815260040160405180910390fd5b6000828152600a60205260408120805461094a906116cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610976906116cb565b80156109c35780601f10610998576101008083540402835291602001916109c3565b820191906000526020600020905b8154815290600101906020018083116109a657829003601f168201915b505050505090506000815111156109da5792915050565b6109e383611024565b9392505050565b6109f2610b6e565b6001600160a01b038116610a735760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610a7c81610e6c565b50565b60006001600160e01b0319821663152a902d60e11b14806103945750610394826110a9565b6000610ab1826001541190565b610ace576040516319086e6360e11b815260040160405180910390fd5b6000828152602081905260409020825b81546001600160a01b0316610b06576000190160008181526020819052604090209150610ade565b5092915050565b60008281526004602052604080822080546001600160a01b0319166001600160a01b038781169182179092558451925186949193909216917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b6008546001600160a01b031633146107d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6a565b80516000906001600160a01b038581169082161480610c0c57506001600160a01b0380821660009081526005602090815260408083209389168352929052205460ff165b80610c305750846001600160a01b0316610c258561042c565b6001600160a01b0316145b95945050505050565b836001600160a01b031681600001516001600160a01b031614610c6e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038316610c9557604051633a954ecd60e21b815260040160405180910390fd5b610ca160008383610b0d565b60018201610cb0816001541190565b15610cf357600081815260208190526040902080546001600160a01b0316610cf1578251602084015160a01c600160a01b026001600160a01b039091161781555b505b506000828152602081905260408082206001600160a01b0386811680835592519193869392918916917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4610900565b6001600160a01b038216610d6b57604051622e076360e81b815260040160405180910390fd5b80600003610d8c5760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015610e5e577f000000000000000000000000000000000000000000000000000000000000000015610df6577f00000000000000000000000000000000000000000000000000000000000000008181610def57610def611840565b0615610df9565b80155b15610e1c5781810160009081526020819052604090206001600160a01b03851690555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101610d92565b506001805483019055505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106bffffffffffffffffffffffff82161115610f445760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610a6a565b6001600160a01b038216610f9a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a6a565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600655565b610fe485858585610c39565b6001600160a01b0384163b151580156110065750611004858585846110f9565b155b15610900576040516368d2bf6b60e11b815260040160405180910390fd5b6060611031826001541190565b61104e57604051630a14c4b560e41b815260040160405180910390fd5b60006110586111e5565b9050600081511161107857604051806020016040528060008152506109e3565b80611082846111f4565b604051602001611093929190611883565b6040516020818303038152906040529392505050565b60006001600160e01b031982166380ac58cd60e01b14806110da57506001600160e01b03198216635b5e139f60e01b145b8061039457506301ffc9a760e01b6001600160e01b0319831614610394565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061112e9033908990889088906004016118b2565b6020604051808303816000875af1925050508015611169575060408051601f3d908101601f19168201909252611166918101906118ee565b60015b6111c7573d808015611197576040519150601f19603f3d011682016040523d82523d6000602084013e61119c565b606091505b5080516000036111bf576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600980546103a9906116cb565b60608160000361121b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611245578061122f8161186a565b915061123e9050600a83611856565b915061121f565b60008167ffffffffffffffff81111561126057611260611402565b6040519080825280601f01601f19166020018201604052801561128a576020820181803683370190505b5090505b84156111dd5761129f60018361190b565b91506112ac600a8661191e565b6112b7906030611932565b60f81b8183815181106112cc576112cc611945565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611306600a86611856565b945061128e565b6001600160e01b031981168114610a7c57600080fd5b60006020828403121561133557600080fd5b81356109e38161130d565b60005b8381101561135b578181015183820152602001611343565b50506000910152565b6000815180845261137c816020860160208601611340565b601f01601f19169290920160200192915050565b6020815260006109e36020830184611364565b6000602082840312156113b557600080fd5b5035919050565b80356001600160a01b03811681146113d357600080fd5b919050565b600080604083850312156113eb57600080fd5b6113f4836113bc565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561143357611433611402565b604051601f8501601f19908116603f0116810190828211818310171561145b5761145b611402565b8160405280935085815286868601111561147457600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261149f57600080fd5b6109e383833560208501611418565b600080604083850312156114c157600080fd5b82359150602083013567ffffffffffffffff8111156114df57600080fd5b6114eb8582860161148e565b9150509250929050565b60008060006060848603121561150a57600080fd5b611513846113bc565b9250611521602085016113bc565b9150604084013590509250925092565b6000806040838503121561154457600080fd5b50508035926020909101359150565b60006020828403121561156557600080fd5b813567ffffffffffffffff81111561157c57600080fd5b6111dd8482850161148e565b60006020828403121561159a57600080fd5b6109e3826113bc565b600080604083850312156115b657600080fd5b6115bf836113bc565b915060208301356bffffffffffffffffffffffff811681146115e057600080fd5b809150509250929050565b600080604083850312156115fe57600080fd5b611607836113bc565b9150602083013580151581146115e057600080fd5b6000806000806080858703121561163257600080fd5b61163b856113bc565b9350611649602086016113bc565b925060408501359150606085013567ffffffffffffffff81111561166c57600080fd5b8501601f8101871361167d57600080fd5b61168c87823560208401611418565b91505092959194509250565b600080604083850312156116ab57600080fd5b6116b4836113bc565b91506116c2602084016113bc565b90509250929050565b600181811c908216806116df57607f821691505b6020821081036116ff57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561056357600081815260208120601f850160051c8101602086101561172c5750805b601f850160051c820191505b8181101561174b57828155600101611738565b505050505050565b815167ffffffffffffffff81111561176d5761176d611402565b6117818161177b84546116cb565b84611705565b602080601f8311600181146117b6576000841561179e5750858301515b600019600386901b1c1916600185901b17855561174b565b600085815260208120601f198616915b828110156117e5578886015182559484019460019091019084016117c6565b50858210156118035787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761039457610394611813565b634e487b7160e01b600052601260045260246000fd5b60008261186557611865611840565b500490565b60006001820161187c5761187c611813565b5060010190565b60008351611895818460208801611340565b8351908301906118a9818360208801611340565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526118e46080830184611364565b9695505050505050565b60006020828403121561190057600080fd5b81516109e38161130d565b8181038181111561039457610394611813565b60008261192d5761192d611840565b500690565b8082018082111561039457610394611813565b634e487b7160e01b600052603260045260246000fdfea26469706673582212207356be6d46e4a8e9305019d7c3348683dfb09aaced0d6a18bcc795b34e7261d964736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101825760003560e01c80636352211e116100d857806395d89b411161008c578063c87b56dd11610066578063c87b56dd14610327578063e985e9c51461033a578063f2fde38b1461037657600080fd5b806395d89b41146102f9578063a22cb46514610301578063b88d4fde1461031457600080fd5b8063715018a6116100bd578063715018a6146102cd5780638da5cb5b146102d55780638f2fc60b146102e657600080fd5b80636352211e146102a757806370a08231146102ba57600080fd5b806318160ddd1161013a57806340c10f191161011457806340c10f191461026e57806342842e0e1461028157806355f804b31461029457600080fd5b806318160ddd1461021757806323b872dd146102295780632a55205a1461023c57600080fd5b8063081812fc1161016b578063081812fc146101c4578063095ea7b3146101ef578063162094c41461020457600080fd5b806301ffc9a71461018757806306fdde03146101af575b600080fd5b61019a610195366004611323565b610389565b60405190151581526020015b60405180910390f35b6101b761039a565b6040516101a69190611390565b6101d76101d23660046113a3565b61042c565b6040516001600160a01b0390911681526020016101a6565b6102026101fd3660046113d8565b610472565b005b6102026102123660046114ae565b610543565b6001545b6040519081526020016101a6565b6102026102373660046114f5565b610568565b61024f61024a366004611531565b6105da565b604080516001600160a01b0390931683526020830191909152016101a6565b61020261027c3660046113d8565b610695565b61020261028f3660046114f5565b6106ab565b6102026102a2366004611553565b6106c6565b6101d76102b53660046113a3565b6106da565b61021b6102c8366004611588565b61071d565b6102026107c3565b6008546001600160a01b03166101d7565b6102026102f43660046115a3565b6107d7565b6101b76107e9565b61020261030f3660046115eb565b6107f8565b61020261032236600461161c565b61088d565b6101b76103353660046113a3565b610907565b61019a610348366004611698565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610202610384366004611588565b6109ea565b600061039482610a7f565b92915050565b6060600280546103a9906116cb565b80601f01602080910402602001604051908101604052809291908181526020018280546103d5906116cb565b80156104225780601f106103f757610100808354040283529160200191610422565b820191906000526020600020905b81548152906001019060200180831161040557829003601f168201915b5050505050905090565b6000610439826001541190565b610456576040516333d1c03960e21b815260040160405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061047d82610aa4565b6040805180820190915290546001600160a01b03808216808452600160a01b90920460a01b6001600160a01b03191660208401529192509084168190036104d75760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061051457506001600160a01b038116600090815260056020908152604080832033845290915290205460ff16155b15610532576040516367d9dca160e11b815260040160405180910390fd5b61053d848484610b0d565b50505050565b61054b610b6e565b6000828152600a602052604090206105638282611753565b505050565b600061057382610aa4565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506105b1338383610bc8565b6105ce57604051632ce44b5f60e11b815260040160405180910390fd5b61053d84848484610c39565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff169282019290925282916106595750604080518082019091526006546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b60208101516000906127109061067d906bffffffffffffffffffffffff1687611829565b6106879190611856565b915196919550909350505050565b61069d610b6e565b6106a78282610d45565b5050565b6105638383836040518060200160405280600081525061088d565b6106ce610b6e565b60096106a78282611753565b60006106e7826001541190565b61070457604051636f96cda160e11b815260040160405180910390fd5b61070d82610aa4565b546001600160a01b031692915050565b60006001600160a01b038216610746576040516323d3ad8160e21b815260040160405180910390fd5b600061075160015490565b905060008060005b838110156107b9576000818152602081905260409020546001600160a01b03168015610783578092505b866001600160a01b0316836001600160a01b0316036107a8576107a58461186a565b93505b506107b28161186a565b9050610759565b5090949350505050565b6107cb610b6e565b6107d56000610e6c565b565b6107df610b6e565b6106a78282610ebe565b6060600380546103a9906116cb565b336001600160a01b038316036108215760405163b06307db60e01b815260040160405180910390fd5b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061089883610aa4565b6040805180820190915290546001600160a01b0381168252600160a01b900460a01b6001600160a01b031916602082015290506108d6338483610bc8565b6108f357604051632ce44b5f60e11b815260040160405180910390fd5b6109008585858486610fd8565b5050505050565b6060610914826001541190565b61093157604051630a14c4b560e41b815260040160405180910390fd5b6000828152600a60205260408120805461094a906116cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610976906116cb565b80156109c35780601f10610998576101008083540402835291602001916109c3565b820191906000526020600020905b8154815290600101906020018083116109a657829003601f168201915b505050505090506000815111156109da5792915050565b6109e383611024565b9392505050565b6109f2610b6e565b6001600160a01b038116610a735760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610a7c81610e6c565b50565b60006001600160e01b0319821663152a902d60e11b14806103945750610394826110a9565b6000610ab1826001541190565b610ace576040516319086e6360e11b815260040160405180910390fd5b6000828152602081905260409020825b81546001600160a01b0316610b06576000190160008181526020819052604090209150610ade565b5092915050565b60008281526004602052604080822080546001600160a01b0319166001600160a01b038781169182179092558451925186949193909216917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a4505050565b6008546001600160a01b031633146107d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6a565b80516000906001600160a01b038581169082161480610c0c57506001600160a01b0380821660009081526005602090815260408083209389168352929052205460ff165b80610c305750846001600160a01b0316610c258561042c565b6001600160a01b0316145b95945050505050565b836001600160a01b031681600001516001600160a01b031614610c6e5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038316610c9557604051633a954ecd60e21b815260040160405180910390fd5b610ca160008383610b0d565b60018201610cb0816001541190565b15610cf357600081815260208190526040902080546001600160a01b0316610cf1578251602084015160a01c600160a01b026001600160a01b039091161781555b505b506000828152602081905260408082206001600160a01b0386811680835592519193869392918916917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4610900565b6001600160a01b038216610d6b57604051622e076360e81b815260040160405180910390fd5b80600003610d8c5760405163b562e8dd60e01b815260040160405180910390fd5b60015460005b82811015610e5e577f000000000000000000000000000000000000000000000000000000000000000015610df6577f00000000000000000000000000000000000000000000000000000000000000008181610def57610def611840565b0615610df9565b80155b15610e1c5781810160009081526020819052604090206001600160a01b03851690555b604051828201906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101610d92565b506001805483019055505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106bffffffffffffffffffffffff82161115610f445760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610a6a565b6001600160a01b038216610f9a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a6a565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600655565b610fe485858585610c39565b6001600160a01b0384163b151580156110065750611004858585846110f9565b155b15610900576040516368d2bf6b60e11b815260040160405180910390fd5b6060611031826001541190565b61104e57604051630a14c4b560e41b815260040160405180910390fd5b60006110586111e5565b9050600081511161107857604051806020016040528060008152506109e3565b80611082846111f4565b604051602001611093929190611883565b6040516020818303038152906040529392505050565b60006001600160e01b031982166380ac58cd60e01b14806110da57506001600160e01b03198216635b5e139f60e01b145b8061039457506301ffc9a760e01b6001600160e01b0319831614610394565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061112e9033908990889088906004016118b2565b6020604051808303816000875af1925050508015611169575060408051601f3d908101601f19168201909252611166918101906118ee565b60015b6111c7573d808015611197576040519150601f19603f3d011682016040523d82523d6000602084013e61119c565b606091505b5080516000036111bf576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600980546103a9906116cb565b60608160000361121b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611245578061122f8161186a565b915061123e9050600a83611856565b915061121f565b60008167ffffffffffffffff81111561126057611260611402565b6040519080825280601f01601f19166020018201604052801561128a576020820181803683370190505b5090505b84156111dd5761129f60018361190b565b91506112ac600a8661191e565b6112b7906030611932565b60f81b8183815181106112cc576112cc611945565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611306600a86611856565b945061128e565b6001600160e01b031981168114610a7c57600080fd5b60006020828403121561133557600080fd5b81356109e38161130d565b60005b8381101561135b578181015183820152602001611343565b50506000910152565b6000815180845261137c816020860160208601611340565b601f01601f19169290920160200192915050565b6020815260006109e36020830184611364565b6000602082840312156113b557600080fd5b5035919050565b80356001600160a01b03811681146113d357600080fd5b919050565b600080604083850312156113eb57600080fd5b6113f4836113bc565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561143357611433611402565b604051601f8501601f19908116603f0116810190828211818310171561145b5761145b611402565b8160405280935085815286868601111561147457600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261149f57600080fd5b6109e383833560208501611418565b600080604083850312156114c157600080fd5b82359150602083013567ffffffffffffffff8111156114df57600080fd5b6114eb8582860161148e565b9150509250929050565b60008060006060848603121561150a57600080fd5b611513846113bc565b9250611521602085016113bc565b9150604084013590509250925092565b6000806040838503121561154457600080fd5b50508035926020909101359150565b60006020828403121561156557600080fd5b813567ffffffffffffffff81111561157c57600080fd5b6111dd8482850161148e565b60006020828403121561159a57600080fd5b6109e3826113bc565b600080604083850312156115b657600080fd5b6115bf836113bc565b915060208301356bffffffffffffffffffffffff811681146115e057600080fd5b809150509250929050565b600080604083850312156115fe57600080fd5b611607836113bc565b9150602083013580151581146115e057600080fd5b6000806000806080858703121561163257600080fd5b61163b856113bc565b9350611649602086016113bc565b925060408501359150606085013567ffffffffffffffff81111561166c57600080fd5b8501601f8101871361167d57600080fd5b61168c87823560208401611418565b91505092959194509250565b600080604083850312156116ab57600080fd5b6116b4836113bc565b91506116c2602084016113bc565b90509250929050565b600181811c908216806116df57607f821691505b6020821081036116ff57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561056357600081815260208120601f850160051c8101602086101561172c5750805b601f850160051c820191505b8181101561174b57828155600101611738565b505050505050565b815167ffffffffffffffff81111561176d5761176d611402565b6117818161177b84546116cb565b84611705565b602080601f8311600181146117b6576000841561179e5750858301515b600019600386901b1c1916600185901b17855561174b565b600085815260208120601f198616915b828110156117e5578886015182559484019460019091019084016117c6565b50858210156118035787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761039457610394611813565b634e487b7160e01b600052601260045260246000fd5b60008261186557611865611840565b500490565b60006001820161187c5761187c611813565b5060010190565b60008351611895818460208801611340565b8351908301906118a9818360208801611340565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526118e46080830184611364565b9695505050505050565b60006020828403121561190057600080fd5b81516109e38161130d565b8181038181111561039457610394611813565b60008261192d5761192d611840565b500690565b8082018082111561039457610394611813565b634e487b7160e01b600052603260045260246000fdfea26469706673582212207356be6d46e4a8e9305019d7c3348683dfb09aaced0d6a18bcc795b34e7261d964736f6c63430008110033
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.