Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StarName
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz //////////////////////////////////////////////////////////////////////////////////////// // // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ██████████████▌ ╟██ ████████████████ j██████████████ // // ██████████████▌ ╟███ ███████████████ j██████████████ // // ██████████████▌ ╟███▌ ██████████████ j██████████████ // // ██████████████▌ ╟████▌ █████████████ j██████████████ // // ██████████████▌ ╟█████▌ ╙████████████ j██████████████ // // ██████████████▌ ╟██████▄ ╙███████████ j██████████████ // // ██████████████▌ ╟███████ ╙██████████ j██████████████ // // ██████████████▌ ╟████████ ╟█████████ j██████████████ // // ██████████████▌ ╟█████████ █████████ j██████████████ // // ██████████████▌ ╟██████████ ████████ j██████████████ // // ██████████████▌ ╟██████████▌ ███████ j██████████████ // // ██████████████▌ ╟███████████▌ ██████ j██████████████ // // ██████████████▌ ╟████████████▄ ╙█████ ,████████████████ // // ██████████████▌ ╟█████████████ ╙████ ▄██████████████████ // // ██████████████▌ ╟██████████████ ╙███ ▄████████████████████ // // ██████████████▌ ╟███████████████ ╟██ ,███████████████████████ // // ██████████████▌ ,████ ███████████████████████████ // // ██████████████▌ ▄██████▌ ██████████████████████████ // // ██████████████▌ ▄█████████▌ █████████████████████████ // // ██████████████▌ ,█████████████▄ ████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // // //////////////////////////////////////////////////////////////////////////////////////// import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC165.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./IStarName.sol"; import "./IStar.sol"; contract StarName is IStarName, AdminControl { using Strings for uint256; // Star type to default star name mapping(uint8 => string) private _defaultStarNameLookup; // token id to cutomized name that overrides _defaultStarNameLookup mapping(uint256 => string) private _overriddenStarNameLookup; // ERC721 Star contract address immutable private _creator; constructor(address creator) { // So that we can later allow only a Star's owner to setOverride _creator = creator; // The default star names used until Star owner calls setOverride _defaultStarNameLookup[uint8(1)] = "Hydrogen%20Star"; _defaultStarNameLookup[uint8(2)] = "Helium%20Star"; _defaultStarNameLookup[uint8(3)] = "Bronzed%20Star"; _defaultStarNameLookup[uint8(4)] = "Silversmithed%20Star"; _defaultStarNameLookup[uint8(5)] = "Black%20Titanium%20Star"; _defaultStarNameLookup[uint8(6)] = "The%20Darkest%20Star"; _defaultStarNameLookup[uint8(7)] = "Fragile%20Star"; _defaultStarNameLookup[uint8(8)] = "The%20Watcher"; _defaultStarNameLookup[uint8(9)] = "The%20Hidden"; _defaultStarNameLookup[uint8(10)] = "Shiny%20Star"; _defaultStarNameLookup[uint8(11)] = "Miners%20Star"; _defaultStarNameLookup[uint8(12)] = "The%20One"; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, AdminControl) returns (bool) { return interfaceId == type(IStarName).interfaceId || interfaceId == type(AdminControl).interfaceId || interfaceId == type(IERC165).interfaceId; } /** * @dev See {IStarName-updateDefaultStarName}. */ function updateDefaultStarName(uint8 starType, string memory name) public adminRequired { _defaultStarNameLookup[starType] = name; } /** * @dev See {IStarName-setOverride}. */ function setOverride(uint256 tokenId, string memory name) public override { require(IERC721(_creator).ownerOf(tokenId) == tx.origin, "Only owner can change."); require(bytes(_overriddenStarNameLookup[tokenId]).length == 0, 'Name already set'); _overriddenStarNameLookup[tokenId] = name; } /** * @dev See {IStarName-isOverriden}. */ function isOverriden(uint256 tokenId) public view virtual override returns (bool) { return bytes(_overriddenStarNameLookup[tokenId]).length != 0; } /** * @dev See {IStarName-getName}. */ function getName(uint256 tokenId, IStar.StarInfo memory starInfo) public view virtual override returns (string memory) { return bytes(_overriddenStarNameLookup[tokenId]).length != 0 ? _overriddenStarNameLookup[tokenId] : string(abi.encodePacked( _defaultStarNameLookup[starInfo.starType], '%20', uint256(starInfo.starTime).toString() )); } function getDefaultName(uint8 starType) public view virtual override returns (string memory) { return _defaultStarNameLookup[starType]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz //////////////////////////////////////////////////////////////////////////////////////// // // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ██████████████▌ ╟██ ████████████████ j██████████████ // // ██████████████▌ ╟███ ███████████████ j██████████████ // // ██████████████▌ ╟███▌ ██████████████ j██████████████ // // ██████████████▌ ╟████▌ █████████████ j██████████████ // // ██████████████▌ ╟█████▌ ╙████████████ j██████████████ // // ██████████████▌ ╟██████▄ ╙███████████ j██████████████ // // ██████████████▌ ╟███████ ╙██████████ j██████████████ // // ██████████████▌ ╟████████ ╟█████████ j██████████████ // // ██████████████▌ ╟█████████ █████████ j██████████████ // // ██████████████▌ ╟██████████ ████████ j██████████████ // // ██████████████▌ ╟██████████▌ ███████ j██████████████ // // ██████████████▌ ╟███████████▌ ██████ j██████████████ // // ██████████████▌ ╟████████████▄ ╙█████ ,████████████████ // // ██████████████▌ ╟█████████████ ╙████ ▄██████████████████ // // ██████████████▌ ╟██████████████ ╙███ ▄████████████████████ // // ██████████████▌ ╟███████████████ ╟██ ,███████████████████████ // // ██████████████▌ ,████ ███████████████████████████ // // ██████████████▌ ▄██████▌ ██████████████████████████ // // ██████████████▌ ▄█████████▌ █████████████████████████ // // ██████████████▌ ,█████████████▄ ████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // // //////////////////////////////////////////////////////////////////////////////////////// import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "./IStar.sol"; interface IStarName is IERC165 { /** * @dev Returns the metadata Name for a given Star * Default star names are concatenated with their creation timestamp. * Used for "Name" JSON root-level key-value in StarMetadata-metadata */ function getName(uint256 tokenId, IStar.StarInfo memory starInfo) view external returns(string memory); /** * @dev Returns the default Star name for any StarInfo. * Used for "Type" JSON attribute in StarMetadata-metadata */ function getDefaultName(uint8 starType) view external returns(string memory); /** * @dev Allows overriding the default name of a star for customization. * Available to only the owner of the token. */ function setOverride(uint256 tokenId, string memory name) external; /** * @dev Returns whether setOverride has been called for a given token * Used for "Named" JSON attribute in StarMetadata-metadata */ function isOverriden(uint256 tokenId) view external returns(bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz //////////////////////////////////////////////////////////////////////////////////////// // // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ██████████████▌ ╟██ ████████████████ j██████████████ // // ██████████████▌ ╟███ ███████████████ j██████████████ // // ██████████████▌ ╟███▌ ██████████████ j██████████████ // // ██████████████▌ ╟████▌ █████████████ j██████████████ // // ██████████████▌ ╟█████▌ ╙████████████ j██████████████ // // ██████████████▌ ╟██████▄ ╙███████████ j██████████████ // // ██████████████▌ ╟███████ ╙██████████ j██████████████ // // ██████████████▌ ╟████████ ╟█████████ j██████████████ // // ██████████████▌ ╟█████████ █████████ j██████████████ // // ██████████████▌ ╟██████████ ████████ j██████████████ // // ██████████████▌ ╟██████████▌ ███████ j██████████████ // // ██████████████▌ ╟███████████▌ ██████ j██████████████ // // ██████████████▌ ╟████████████▄ ╙█████ ,████████████████ // // ██████████████▌ ╟█████████████ ╙████ ▄██████████████████ // // ██████████████▌ ╟██████████████ ╙███ ▄████████████████████ // // ██████████████▌ ╟███████████████ ╟██ ,███████████████████████ // // ██████████████▌ ,████ ███████████████████████████ // // ██████████████▌ ▄██████▌ ██████████████████████████ // // ██████████████▌ ▄█████████▌ █████████████████████████ // // ██████████████▌ ,█████████████▄ ████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // // //////////////////////////////////////////////////////////////////////////////////////// import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; interface IStar is IERC165 { struct StarInfo { uint8 starType; uint48 starTime; address creator; } struct StarIngredient { uint256 resourceId; uint256 amount; } /** * Update/set star ingredients */ function updateStarIngredients(uint8[] calldata starTypes, StarIngredient[][] calldata starIngredients) external; /** * Update/set star type max supplies */ function updateStarMaxSupplies(uint8[] calldata starTypes, uint256[] calldata maxSupplies) external; /** * Update the star metadata contract */ function updateStarMetadata(address starMetadata) external; /** * Getter for supply of star type */ function getStarSupply(uint8 starType) external returns(uint256); /** * Getter for max supply of star type */ function getStarMaxSupply(uint8 starType) external returns(uint256); /** * Getter for ingredients of star type */ function getStarIngredients(uint8 starType) external returns(StarIngredient[] memory); /** * Form a star of a given star type by burning resources */ function formStar(uint8 starType) external returns(uint256); }
// 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 pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IAdminControl.sol"; abstract contract AdminControl is Ownable, IAdminControl, ERC165 { using EnumerableSet for EnumerableSet.AddressSet; // Track registered admins EnumerableSet.AddressSet private _admins; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IAdminControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Only allows approved admins to call the specified function */ modifier adminRequired() { require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin"); _; } /** * @dev See {IAdminControl-getAdmins}. */ function getAdmins() external view override returns (address[] memory admins) { admins = new address[](_admins.length()); for (uint i = 0; i < _admins.length(); i++) { admins[i] = _admins.at(i); } return admins; } /** * @dev See {IAdminControl-approveAdmin}. */ function approveAdmin(address admin) external override onlyOwner { if (!_admins.contains(admin)) { emit AdminApproved(admin, msg.sender); _admins.add(admin); } } /** * @dev See {IAdminControl-revokeAdmin}. */ function revokeAdmin(address admin) external override onlyOwner { if (_admins.contains(admin)) { emit AdminRevoked(admin, msg.sender); _admins.remove(admin); } } /** * @dev See {IAdminControl-isAdmin}. */ function isAdmin(address admin) public override view returns (bool) { return (owner() == admin || _admins.contains(admin)); } }
// 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 (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/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 (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 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/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for admin control */ interface IAdminControl is IERC165 { event AdminApproved(address indexed account, address indexed sender); event AdminRevoked(address indexed account, address indexed sender); /** * @dev gets address of all admins */ function getAdmins() external view returns (address[] memory); /** * @dev add an admin. Can only be called by contract owner. */ function approveAdmin(address admin) external; /** * @dev remove an admin. Can only be called by contract owner. */ function revokeAdmin(address admin) external; /** * @dev checks whether or not given address is an admin * Returns True if they are */ function isAdmin(address admin) external view returns (bool); }
// 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; } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"creator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","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"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"starType","type":"uint8"}],"name":"getDefaultName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint8","name":"starType","type":"uint8"},{"internalType":"uint48","name":"starTime","type":"uint48"},{"internalType":"address","name":"creator","type":"address"}],"internalType":"struct IStar.StarInfo","name":"starInfo","type":"tuple"}],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isOverriden","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"setOverride","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"starType","type":"uint8"},{"internalType":"string","name":"name","type":"string"}],"name":"updateDefaultStarName","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0346200033957601f620015ce38819003918201601f1916830192916001600160401b038411838510176200033e5780839260409586528339602092839181010312620003395751906001600160a01b03908183168303620003395760008054336001600160a01b0319821681178355869592949091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08580a360805260018252600390818152838320620000c2620000bb825462000354565b8262000391565b601e6e243cb23937b3b2b712991829ba30b960891b01905560028352818152838320620000f4620000bb825462000354565b601a6c2432b634bab692991829ba30b960991b01905581835281815283832062000123620000bb825462000354565b601c6d213937b73d32b212991829ba30b960911b0190556004835281815283832062000154620000bb825462000354565b60287f53696c766572736d6974686564253230537461720000000000000000000000000190556005835281815283832062000194620000bb825462000354565b602e7f426c61636b253230546974616e69756d2532305374617200000000000000000001905560068352818152838320620001d4620000bb825462000354565b60287f5468652532304461726b657374253230537461720000000000000000000000000190556007835281815283832062000214620000bb825462000354565b601c6d233930b3b4b63292991829ba30b960911b0190556008835281815283832062000245620000bb825462000354565b601a6c2a34329299182bb0ba31b432b960991b0190556009835281815283832062000275620000bb825462000354565b60186b2a34329299182434b23232b760a11b019055600a8352818152838320620002a4620000bb825462000354565b60186b29b434b73c92991829ba30b960a11b019055600b8352818152838320620002d3620000bb825462000354565b601a6c26b4b732b93992991829ba30b960991b019055600c83525220620002ff620000bb825462000354565b7f5468652532304f6e6500000000000000000000000000000000000000000000129055516112029081620003cc82396080518161050b0152f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b90600182811c9216801562000386575b60208310146200037057565b634e487b7160e01b600052602260045260246000fd5b91607f169162000364565b601f82116200039e575050565b6000908152601f60208220920160051c8201915b828110620003bf57505050565b818155600101620003b256fe6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a714610c515750806311becdc8146109eb57806324d7806c1461098a5780632d3456701461091157806331ae450b146108105780636d73e66914610792578063715018a6146107295780638da5cb5b146107035780639130a40814610497578063c6d34633146102a1578063d5b1301114610271578063e95430eb1461019b5763f2fde38b146100b257600080fd5b34610197576020366003190112610197576100cb610d6e565b906100d4610e73565b6001600160a01b0380921692831561012e57505082548273ffffffffffffffffffffffffffffffffffffffff198216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b50503461026d57602090816003193601126101975760ff6101ba610d59565b1683526003825280832091815192848154906101d582611086565b80875292600192808416908115610249575060011461020e575b61020a8787610200828c0383610d21565b5191829182610da7565b0390f35b9080949750528583205b828410610236575050508261020a94610200928201019438806101ef565b8054868501880152928601928101610218565b60ff19168887015250505050151560051b83010192506102008261020a38806101ef565b5080fd5b50346101975760203660031901126101975781602093826102989335825285522054611086565b15159051908152f35b5082903461026d578260031936011261026d576102bc610d59565b9267ffffffffffffffff90602435828111610493576102de9036908501610def565b946001600160a01b038554163314801561047f575b156104175760ff168452602090600382528420928551928311610404575061031b8354611086565b601f81116103c1575b5080601f831160011461035f5750839482939492610354575b50508160011b916000199060031b1c191617905580f35b01519050848061033d565b90601f198316958486528286209286905b8882106103a957505083600195969710610390575b505050811b01905580f35b015160001960f88460031b161c19169055848080610385565b80600185968294968601518155019501930190610370565b838552818520601f840160051c8101918385106103fa575b601f0160051c01905b8181106103ef5750610324565b8581556001016103e2565b90915081906103d9565b846041602492634e487b7160e01b835252fd5b608484602084519162461bcd60e51b83528201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f72206160448201527f646d696e000000000000000000000000000000000000000000000000000000006064820152fd5b5033855260026020528185205415156102f3565b8480fd5b5082903461026d578260031936011261026d5767ffffffffffffffff8135602435828111610493576104cc9036908501610def565b948051917f6352211e00000000000000000000000000000000000000000000000000000000835280858401526020926001600160a01b038482602481847f0000000000000000000000000000000000000000000000000000000000000000165afa9182156106f95788926106bd575b503291160361067b5780865284835261055682872054611086565b610639578552838252842092855192831161040457506105768354611086565b601f81116105f6575b5080601f83116001146105ae57508394829394926103545750508160011b916000199060031b1c191617905580f35b90601f198316958486528286209286905b8882106105de5750508360019596971061039057505050811b01905580f35b806001859682949686015181550195019301906105bf565b838552818520601f840160051c81019183851061062f575b601f0160051c01905b818110610624575061057f565b858155600101610617565b909150819061060e565b6064858484519162461bcd60e51b8352820152601060248201527f4e616d6520616c726561647920736574000000000000000000000000000000006044820152fd5b6064858484519162461bcd60e51b8352820152601660248201527f4f6e6c79206f776e65722063616e206368616e67652e000000000000000000006044820152fd5b9091508481813d83116106f2575b6106d58183610d21565b810103126106ee575181811681036106ee57908961053b565b8780fd5b503d6106cb565b84513d8a823e3d90fd5b50503461026d578160031936011261026d576001600160a01b0360209254169051908152f35b833461078f578060031936011261078f57610742610e73565b806001600160a01b03815473ffffffffffffffffffffffffffffffffffffffff1981168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b833461078f57602036600319011261078f576001600160a01b036107b4610d6e565b6107bc610e73565b166107d4816000526002602052604060002054151590565b156107dd575080f35b61080c9033817f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb18580a3610f18565b5080f35b503461019757826003193601126101975791600190815461083081610e36565b9061083d85519283610d21565b80825261084981610e36565b9560209182840197601f1901368937845b8181106108a0575050508451948186019282875251809352850195925b8281106108845785870386f35b83516001600160a01b0316875295810195928101928401610877565b8686949596999799526001600160a01b03817fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601541686518210156108fe57906108f291868260051b89010152610e4e565b9795979493929461085a565b602485603286634e487b7160e01b835252fd5b833461078f57602036600319011261078f576001600160a01b03610933610d6e565b61093b610e73565b16610953816000526002602052604060002054151590565b61095b575080f35b61080c9033817f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d58580a3610f9c565b50503461026d57602036600319011261026d57906020916109a9610d6e565b91546001600160a01b03928316921682149182156109cb575b50519015158152f35b6109e49192506000526002602052604060002054151590565b90386109c2565b5034610197576080366003190112610197578035906060366023190112610c4d578251916060830183811067ffffffffffffffff821117610c3a57845260243560ff81168103610c3657835260443565ffffffffffff8082168203610c32576020948581019283526064356001600160a01b0381168103610c2e5787820152838852848652610a7c87892054611086565b15610b3457505050845281528183209082519184815490610a9c82611086565b80865292600192808416908115610b105750600114610ad5575b5050505050610aca8161020a940382610d21565b905191829182610da7565b9080949750528583205b828410610afd575050508161020a94610aca92820101943880610ab6565b8054858501880152928601928101610adf565b60ff19168787015250505050151560051b8201019250610aca8161020a3880610ab6565b60ff919295979450610b54935051168352600386528483209351166110c0565b90835192818154610b6481611086565b92600191808316908115610c0d5750600114610bd6575b5050505082610bd09282610bc061020a987f25323000000000000000000000000000000000000000000000000000000000006003965283519384918785019101610d84565b0103601c19810184520182610d21565b90610200565b909180939450528682205b838310610bfa5750505082018401828286610bc0610b7b565b8054868401890152918701918101610be1565b60ff1916888b01525050505080151502830185019050828286610bc0610b7b565b8880fd5b8680fd5b8580fd5b602486604185634e487b7160e01b835252fd5b8380fd5b9250503461019757602036600319011261019757357fffffffff00000000000000000000000000000000000000000000000000000000811680910361019757602092507fbc6b693a000000000000000000000000000000000000000000000000000000008114908115610cf7575b8115610ccd575b5015158152f35b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501438610cc6565b7f54c1bcd90000000000000000000000000000000000000000000000000000000081149150610cbf565b90601f8019910116810190811067ffffffffffffffff821117610d4357604052565b634e487b7160e01b600052604160045260246000fd5b6004359060ff82168203610d6957565b600080fd5b600435906001600160a01b0382168203610d6957565b60005b838110610d975750506000910152565b8181015183820152602001610d87565b60409160208252610dc78151809281602086015260208686019101610d84565b601f01601f1916010190565b67ffffffffffffffff8111610d4357601f01601f191660200190565b81601f82011215610d6957803590610e0682610dd3565b92610e146040519485610d21565b82845260208383010111610d6957816000926020809301838601378301015290565b67ffffffffffffffff8111610d435760051b60200190565b6000198114610e5d5760010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03600054163303610e8757565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600154811015610f025760016000527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60190600090565b634e487b7160e01b600052603260045260246000fd5b600081815260026020526040812054610f975760015468010000000000000000811015610f83579082610f6f610f5684600160409601600155610ecb565b819391549060031b600019811b9283911b169119161790565b905560015492815260026020522055600190565b602482634e487b7160e01b81526041600452fd5b905090565b6000818152600260205260408120549091908015611081576000199080820181811161106d576001549083820191821161105957808203611025575b505050600154801561101157810190610ff082610ecb565b909182549160031b1b19169055600155815260026020526040812055600190565b602484634e487b7160e01b81526031600452fd5b611043611034610f5693610ecb565b90549060031b1c928392610ecb565b9055845260026020526040842055388080610fd8565b602486634e487b7160e01b81526011600452fd5b602485634e487b7160e01b81526011600452fd5b505090565b90600182811c921680156110b6575b60208310146110a057565b634e487b7160e01b600052602260045260246000fd5b91607f1691611095565b80156111815780816000925b61116b57506110da82610dd3565b916110e86040519384610d21565b808352601f196110f782610dd3565b01908260209236848701375b61110d5750505090565b6000198101908111610e5d578092600a9160308383068101809111610e5d578651821015610f025760f81b7fff000000000000000000000000000000000000000000000000000000000000001660001a908601840153049182611103565b9091611178600a91610e4e565b929104806110cc565b506040516040810181811067ffffffffffffffff821117610d4357604052600181527f300000000000000000000000000000000000000000000000000000000000000060208201529056fea26469706673582212209755827a234f0d02f42ed866acc66d60abf7d09f57e33db81b5b25a2260baef164736f6c63430008110033000000000000000000000000503bbe6cd903ab3a06286266a35a40b92563f0bf
Deployed Bytecode
0x6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a714610c515750806311becdc8146109eb57806324d7806c1461098a5780632d3456701461091157806331ae450b146108105780636d73e66914610792578063715018a6146107295780638da5cb5b146107035780639130a40814610497578063c6d34633146102a1578063d5b1301114610271578063e95430eb1461019b5763f2fde38b146100b257600080fd5b34610197576020366003190112610197576100cb610d6e565b906100d4610e73565b6001600160a01b0380921692831561012e57505082548273ffffffffffffffffffffffffffffffffffffffff198216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b50503461026d57602090816003193601126101975760ff6101ba610d59565b1683526003825280832091815192848154906101d582611086565b80875292600192808416908115610249575060011461020e575b61020a8787610200828c0383610d21565b5191829182610da7565b0390f35b9080949750528583205b828410610236575050508261020a94610200928201019438806101ef565b8054868501880152928601928101610218565b60ff19168887015250505050151560051b83010192506102008261020a38806101ef565b5080fd5b50346101975760203660031901126101975781602093826102989335825285522054611086565b15159051908152f35b5082903461026d578260031936011261026d576102bc610d59565b9267ffffffffffffffff90602435828111610493576102de9036908501610def565b946001600160a01b038554163314801561047f575b156104175760ff168452602090600382528420928551928311610404575061031b8354611086565b601f81116103c1575b5080601f831160011461035f5750839482939492610354575b50508160011b916000199060031b1c191617905580f35b01519050848061033d565b90601f198316958486528286209286905b8882106103a957505083600195969710610390575b505050811b01905580f35b015160001960f88460031b161c19169055848080610385565b80600185968294968601518155019501930190610370565b838552818520601f840160051c8101918385106103fa575b601f0160051c01905b8181106103ef5750610324565b8581556001016103e2565b90915081906103d9565b846041602492634e487b7160e01b835252fd5b608484602084519162461bcd60e51b83528201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f72206160448201527f646d696e000000000000000000000000000000000000000000000000000000006064820152fd5b5033855260026020528185205415156102f3565b8480fd5b5082903461026d578260031936011261026d5767ffffffffffffffff8135602435828111610493576104cc9036908501610def565b948051917f6352211e00000000000000000000000000000000000000000000000000000000835280858401526020926001600160a01b038482602481847f000000000000000000000000503bbe6cd903ab3a06286266a35a40b92563f0bf165afa9182156106f95788926106bd575b503291160361067b5780865284835261055682872054611086565b610639578552838252842092855192831161040457506105768354611086565b601f81116105f6575b5080601f83116001146105ae57508394829394926103545750508160011b916000199060031b1c191617905580f35b90601f198316958486528286209286905b8882106105de5750508360019596971061039057505050811b01905580f35b806001859682949686015181550195019301906105bf565b838552818520601f840160051c81019183851061062f575b601f0160051c01905b818110610624575061057f565b858155600101610617565b909150819061060e565b6064858484519162461bcd60e51b8352820152601060248201527f4e616d6520616c726561647920736574000000000000000000000000000000006044820152fd5b6064858484519162461bcd60e51b8352820152601660248201527f4f6e6c79206f776e65722063616e206368616e67652e000000000000000000006044820152fd5b9091508481813d83116106f2575b6106d58183610d21565b810103126106ee575181811681036106ee57908961053b565b8780fd5b503d6106cb565b84513d8a823e3d90fd5b50503461026d578160031936011261026d576001600160a01b0360209254169051908152f35b833461078f578060031936011261078f57610742610e73565b806001600160a01b03815473ffffffffffffffffffffffffffffffffffffffff1981168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b833461078f57602036600319011261078f576001600160a01b036107b4610d6e565b6107bc610e73565b166107d4816000526002602052604060002054151590565b156107dd575080f35b61080c9033817f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb18580a3610f18565b5080f35b503461019757826003193601126101975791600190815461083081610e36565b9061083d85519283610d21565b80825261084981610e36565b9560209182840197601f1901368937845b8181106108a0575050508451948186019282875251809352850195925b8281106108845785870386f35b83516001600160a01b0316875295810195928101928401610877565b8686949596999799526001600160a01b03817fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601541686518210156108fe57906108f291868260051b89010152610e4e565b9795979493929461085a565b602485603286634e487b7160e01b835252fd5b833461078f57602036600319011261078f576001600160a01b03610933610d6e565b61093b610e73565b16610953816000526002602052604060002054151590565b61095b575080f35b61080c9033817f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d58580a3610f9c565b50503461026d57602036600319011261026d57906020916109a9610d6e565b91546001600160a01b03928316921682149182156109cb575b50519015158152f35b6109e49192506000526002602052604060002054151590565b90386109c2565b5034610197576080366003190112610197578035906060366023190112610c4d578251916060830183811067ffffffffffffffff821117610c3a57845260243560ff81168103610c3657835260443565ffffffffffff8082168203610c32576020948581019283526064356001600160a01b0381168103610c2e5787820152838852848652610a7c87892054611086565b15610b3457505050845281528183209082519184815490610a9c82611086565b80865292600192808416908115610b105750600114610ad5575b5050505050610aca8161020a940382610d21565b905191829182610da7565b9080949750528583205b828410610afd575050508161020a94610aca92820101943880610ab6565b8054858501880152928601928101610adf565b60ff19168787015250505050151560051b8201019250610aca8161020a3880610ab6565b60ff919295979450610b54935051168352600386528483209351166110c0565b90835192818154610b6481611086565b92600191808316908115610c0d5750600114610bd6575b5050505082610bd09282610bc061020a987f25323000000000000000000000000000000000000000000000000000000000006003965283519384918785019101610d84565b0103601c19810184520182610d21565b90610200565b909180939450528682205b838310610bfa5750505082018401828286610bc0610b7b565b8054868401890152918701918101610be1565b60ff1916888b01525050505080151502830185019050828286610bc0610b7b565b8880fd5b8680fd5b8580fd5b602486604185634e487b7160e01b835252fd5b8380fd5b9250503461019757602036600319011261019757357fffffffff00000000000000000000000000000000000000000000000000000000811680910361019757602092507fbc6b693a000000000000000000000000000000000000000000000000000000008114908115610cf7575b8115610ccd575b5015158152f35b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501438610cc6565b7f54c1bcd90000000000000000000000000000000000000000000000000000000081149150610cbf565b90601f8019910116810190811067ffffffffffffffff821117610d4357604052565b634e487b7160e01b600052604160045260246000fd5b6004359060ff82168203610d6957565b600080fd5b600435906001600160a01b0382168203610d6957565b60005b838110610d975750506000910152565b8181015183820152602001610d87565b60409160208252610dc78151809281602086015260208686019101610d84565b601f01601f1916010190565b67ffffffffffffffff8111610d4357601f01601f191660200190565b81601f82011215610d6957803590610e0682610dd3565b92610e146040519485610d21565b82845260208383010111610d6957816000926020809301838601378301015290565b67ffffffffffffffff8111610d435760051b60200190565b6000198114610e5d5760010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03600054163303610e8757565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600154811015610f025760016000527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60190600090565b634e487b7160e01b600052603260045260246000fd5b600081815260026020526040812054610f975760015468010000000000000000811015610f83579082610f6f610f5684600160409601600155610ecb565b819391549060031b600019811b9283911b169119161790565b905560015492815260026020522055600190565b602482634e487b7160e01b81526041600452fd5b905090565b6000818152600260205260408120549091908015611081576000199080820181811161106d576001549083820191821161105957808203611025575b505050600154801561101157810190610ff082610ecb565b909182549160031b1b19169055600155815260026020526040812055600190565b602484634e487b7160e01b81526031600452fd5b611043611034610f5693610ecb565b90549060031b1c928392610ecb565b9055845260026020526040842055388080610fd8565b602486634e487b7160e01b81526011600452fd5b602485634e487b7160e01b81526011600452fd5b505090565b90600182811c921680156110b6575b60208310146110a057565b634e487b7160e01b600052602260045260246000fd5b91607f1691611095565b80156111815780816000925b61116b57506110da82610dd3565b916110e86040519384610d21565b808352601f196110f782610dd3565b01908260209236848701375b61110d5750505090565b6000198101908111610e5d578092600a9160308383068101809111610e5d578651821015610f025760f81b7fff000000000000000000000000000000000000000000000000000000000000001660001a908601840153049182611103565b9091611178600a91610e4e565b929104806110cc565b506040516040810181811067ffffffffffffffff821117610d4357604052600181527f300000000000000000000000000000000000000000000000000000000000000060208201529056fea26469706673582212209755827a234f0d02f42ed866acc66d60abf7d09f57e33db81b5b25a2260baef164736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000503bbe6cd903ab3a06286266a35a40b92563f0bf
-----Decoded View---------------
Arg [0] : creator (address): 0x503bBe6cd903ab3A06286266A35A40b92563f0bf
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000503bbe6cd903ab3a06286266a35a40b92563f0bf
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.