Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
0 FVCK_AVATAR//
Holders
2,860
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FVCK_AVATAR//Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FVCK_AVATAR
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @artist: FVCKRENDER /// @title: FVCK_AVATAR// /// @author: manifold.xyz //////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // // // // // // .::^^~~!!!!!!^:. // // .^!?YPGB##&&&&&@@@@@@&#B5J7^. // // :!JPB&@@&#BPYJ?7!!!!7?YPGB&@@@@&BY~. // // :?P#@@&#GY?!^:. ..^7P&@@@@@@B7. // // !5&@@@B5J7~:. .::^^^^:^^75#@@@@@@@@@G7. // // ~P@@@@#GYJ7!~^^:::::^~7?YPGGPPGGB&@@@@@@@#GGB#P^ // // :J#@@@@&#BGGP569YJ????JYPG#&@@@@@&B#&@@@@@&P7~!YBG^ // // ^P&@@@@@@@@@@&#&#B#BGBBBB#@@@@@@#G5YYP#@@@@&5~ :J#G^ // // ^G&@@@@@@@@@@&@@@@@@@@@@@@@@@@@@&G5J??YG&@@@@B7. .J#P: // // .5B&@@@@@@@&@@@@@@@@@@@@@@@@@@@@@@GY7~!JP&@@@@&P7: ?#5. // // !PJP&@@@@@@@@@@@@@@@@@@@@@@@@@@@&5~:^!?5B@@@#B&&B57^.^P&J // // .57^JB@@@@@@@@@@@@@@@@@@@@@@@@@@#Y777?JJJJJYPP5G@@GJ!~^^!P~ // // .Y: 7G@@@@@@@@@@@@@@@@@@&&&@@&@@BPJ?55G&@&BP?!B&&Y5GG#5J^?P // // .J ~P&@@@@@@@@@@@@@@@@#GYP@@#G5##Y?!!!?P&?JGPYB?P@@&G?!~7?: // // .Y. ^5&@@@@@@@@@@@@@@@B5JG@@&??#@B~ YGB&@G#G&@@P: ~~ // // .5: .5&&#@@@@@@@@@@@@#5YB@@&&B@@@#: ~&@&##BP##@P .! // // J?~!YPPG@@@@@@@@@@@@&#@@@@@@@@@@@?. .5&&G5YJ77PB#! ~^ // // Y#B@#BBP#@@@@@@@@@@@@FVCKRENDER5&&PJ77Y#@@###B57.^YG#G?~7G? // // .G&#@@&&#B@@@@@@@@@@@@@##@@@@@@G?7?JP5JJYP#@@@Y:^~!7BGG!^?&5 // // .B#&&#G#@@@@@@@@@@@@@@&5Y#@@@@@@G! .:::.:!B@B~?G&@B5PJ~!P##: // // PG#GB##&@@@@@@@@@@@@@@&GB@@@##@&Y!^:^^!7J?G@&&##&@5GGP?JPGB: // // 7B&##&&&@#&@@@@@@@@@@@@@@@@@&B#@&BPJ77??!:7 G#BBB##?JJ7GP // // ?#&&&#B##&B@@@@@@@@@@@@@@@@@@&@@@@GJ7~..~JB###YJBBP@#BG?B? // // :JP&@@#GG#&@@@@@@@@@@@@@@@@@@@&&@@BY7!!YG&@@#GPP&55&@&GB: // // .~Y#&&#&G#&&@@@@@@@@@@@@@@@@@##@@@#BGBG5P#&&&BP#&@@@&J // // .^YB5J55B@@@@@@@@@@@@@@@@@@&@@BBP5PGB7#@&YY@G5&~ // // ~5JJ5P&@@@@@@@@@@@@@@@@@@@&YPGP&@@GPYGPYYGB@BPB. // // ~55PPP#@@@@69@@@@@@@@@@@@@#G@@@#P5BPGG55PP#@&! // // ~55GGYJP&@@@@&&&&&@&@@@@&@&@@@&BY7!J#@Y:7P&Y // // ?~G@&P?7JG#&BGB#&&##G#&@@&@&&&#P?^!G#B77BG: // // ~!7@@@@#BB#@@@@&@@@@&#BBB#&&&#&BPGP?Y#G5#! // // !7:&@@@##@@@@@@@@@@@@@&&&#&&@&G7~Y7&B~ // // J~~@@@#P#@@@&&&@@@@@@@&##&@@@&##BPP5J?^. // // Y:Y@@@&@@@@@&###@@@BPGB&@@@&#&&#J. // // ^?!#@@@#&@@@@@@@@@@@BYYGBP69PGGGY // // JJB@@@@#B@@@@@@@&&&&@@B7^~G#B@GG! // // ~B&@@@@@@#@@@@@@&GPGB&#?.~J@PP@GG^ // // :G@@@@@@@@@@@@@@#5JY5B#5^:JG@7?BGP: // // ^G&BPGB&@@@@@@@@#J^^7YBB?^7P#&7.^?P~ // // .?GG?!!?YG#@@@@@@@B7^~?5G5?75#@&Y. ^5? // // // // // //////////////////////////////////////////////////////////////////////////////////////////////////////////////// import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** * FVCK_AVATAR// */ contract FVCK_AVATAR is ReentrancyGuard, AdminControl, ERC721, IERC1155Receiver { using Strings for uint256; event Activate(); event Deactivate(); event Unveil(uint256 collectibleId, address tokenAddress, uint256 tokenId); // Immutable constructor arguments address private immutable _essenceAddress; // Contract state bool public isRedemptionEnabled; string private _tokenURIPrefix; uint256 private _mintCount; // Royalty uint256 private _royaltyBps; address payable private _royaltyRecipient; bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6; bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a; bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584; constructor(address essenceAddress) ERC721("FVCK_AVATAR//", "FVCK_AVATAR//") { _essenceAddress = essenceAddress; } /** * @dev See {IERC1155Receiver-onERC1155Received}. */ function onERC1155Received( address, address from, uint256 id, uint256 value, bytes calldata ) external override nonReentrant returns(bytes4) { _onERC1155Received(from, id, value); return this.onERC1155Received.selector; } /** * @dev See {IERC1155Receiver-onERC1155BatchReceived}. */ function onERC1155BatchReceived( address, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata ) external override nonReentrant returns(bytes4) { require(ids.length == 1 && ids.length == values.length, "Invalid input"); _onERC1155Received(from, ids[0], values[0]); return this.onERC1155BatchReceived.selector; } // /** // * @dev See {IERC165-supportsInterface}. // */ function supportsInterface(bytes4 interfaceId) public view virtual override(AdminControl, ERC721, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || ERC721.supportsInterface(interfaceId) || AdminControl.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE; } /** * @dev Enable token redemption period */ function enableRedemption() external adminRequired { isRedemptionEnabled = true; emit Activate(); } /** * @dev Disable token redemption period */ function disableRedemption() external adminRequired { isRedemptionEnabled = false; emit Deactivate(); } /** * @dev Set the tokenURI prefix */ function setTokenURIPrefix(string calldata uri) external adminRequired { _tokenURIPrefix = uri; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(_tokenURIPrefix, tokenId.toString())); } /** * @dev Update royalties */ function updateRoyalties(address payable recipient, uint256 bps) external adminRequired { _royaltyRecipient = recipient; _royaltyBps = bps; } /** * ROYALTY FUNCTIONS */ function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; bps = new uint256[](1); bps[0] = _royaltyBps; } return (recipients, bps); } function getFeeRecipients(uint256) external view returns (address payable[] memory recipients) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; } return recipients; } function getFeeBps(uint256) external view returns (uint[] memory bps) { if (_royaltyRecipient != address(0x0)) { bps = new uint256[](1); bps[0] = _royaltyBps; } return bps; } function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) { return (_royaltyRecipient, value*_royaltyBps/10000); } /** * @dev Mint an avatar */ function _mintAvatar(address to) internal returns(uint256) { _mintCount++; _mint(to, _mintCount); emit Unveil(_mintCount, address(this), _mintCount); return 0; } function _onERC1155Received(address from, uint256 id, uint256 value) private { require(isRedemptionEnabled || isAdmin(from), "Redemption inactive"); require(msg.sender == _essenceAddress && id == 1, "Invalid NFT"); // Burn it try IEssence(msg.sender).burn(address(this), uint16(value)) { } catch (bytes memory) { revert("Burn failure"); } for (uint i = 0; i < value; i++) { _mintAvatar(from); } } } interface IEssence { function burn(address from, uint16 amount) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// 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.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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. */ 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; 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; assembly { result := store } return result; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"essenceAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Activate","type":"event"},{"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":"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":[],"name":"Deactivate","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"collectibleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unveil","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":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableRedemption","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableRedemption","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"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":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRedemptionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","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":"uri","type":"string"}],"name":"setTokenURIPrefix","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620029d1380380620029d18339810160408190526200003491620001b7565b604080518082018252600d8082526c4656434b5f4156415441522f2f60981b60208084018290528451808601909552918452908301526001600055906200007b33620000bf565b81516200009090600490602085019062000111565b508051620000a690600590602084019062000111565b50505060601b6001600160601b03191660805262000226565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011f90620001e9565b90600052602060002090601f0160209004810192826200014357600085556200018e565b82601f106200015e57805160ff19168380011785556200018e565b828001600101855582156200018e579182015b828111156200018e57825182559160200191906001019062000171565b506200019c929150620001a0565b5090565b5b808211156200019c5760008155600101620001a1565b600060208284031215620001ca57600080fd5b81516001600160a01b0381168114620001e257600080fd5b9392505050565b600181811c90821680620001fe57607f821691505b602082108114156200022057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c61278c62000245600039600061170d015261278c6000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80636d73e6691161010f578063b9c4d9fb116100a2578063dd08b5c911610071578063dd08b5c914610463578063e985e9c51461046b578063f23a6e611461047e578063f2fde38b1461049157600080fd5b8063b9c4d9fb146103e3578063bb3bafd614610403578063bc197c8114610424578063c87b56dd1461045057600080fd5b806395d89b41116100de57806395d89b41146103a257806399e0dd7c146103aa578063a22cb465146103bd578063b88d4fde146103d057600080fd5b80636d73e6691461035557806370a0823114610368578063715018a6146103895780638da5cb5b1461039157600080fd5b80632a55205a116101875780634721ed6f116101565780634721ed6f1461031a5780634ccdb6ff146103225780636352211e1461032f5780636c2f5acd1461034257600080fd5b80632a55205a146102ad5780632d345670146102df57806331ae450b146102f257806342842e0e1461030757600080fd5b8063095ea7b3116101c3578063095ea7b3146102525780630ebd4c7f1461026757806323b872dd1461028757806324d7806c1461029a57600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f83660046121a7565b6104a4565b60405190151581526020015b60405180910390f35b61021a61052f565b6040516102099190612496565b61023a610235366004612223565b6105c1565b6040516001600160a01b039091168152602001610209565b610265610260366004611eb3565b61065b565b005b61027a610275366004612223565b610771565b6040516102099190612483565b610265610295366004611fd7565b6107cd565b6101fd6102a8366004611e96565b6107fe565b6102c06102bb36600461223c565b610837565b604080516001600160a01b039093168352602083019190915201610209565b6102656102ed366004611e96565b610872565b6102fa6108f2565b60405161020991906123fe565b610265610315366004611fd7565b6109a1565b6102656109bc565b600a546101fd9060ff1681565b61023a61033d366004612223565b610a3e565b610265610350366004611eb3565b610ab5565b610265610363366004611e96565b610b25565b61037b610376366004611e96565b610b9f565b604051908152602001610209565b610265610c26565b6001546001600160a01b031661023a565b61021a610c5c565b6102656103b83660046121e1565b610c6b565b6102656103cb366004612174565b610cc1565b6102656103de366004612018565b610ccc565b6103f66103f1366004612223565b610d04565b604051610209919061244b565b610416610411366004612223565b610d7d565b60405161020992919061245e565b610437610432366004611f18565b610e31565b6040516001600160e01b03199091168152602001610209565b61021a61045e366004612223565b610f2d565b610265610fde565b6101fd610479366004611edf565b61105d565b61043761048c3660046120f8565b61108b565b61026561049f366004611e96565b611108565b60006001600160e01b03198216630271189760e51b14806104c957506104c9826111a0565b806104d857506104d8826111dc565b806104f357506001600160e01b03198216635d9dd7eb60e11b145b8061050e57506001600160e01b0319821663152a902d60e11b145b8061052957506001600160e01b03198216632dde656160e21b145b92915050565b60606004805461053e90612653565b80601f016020809104026020016040519081016040528092919081815260200182805461056a90612653565b80156105b75780601f1061058c576101008083540402835291602001916105b7565b820191906000526020600020905b81548152906001019060200180831161059a57829003601f168201915b5050505050905090565b6000818152600660205260408120546001600160a01b031661063f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061066682610a3e565b9050806001600160a01b0316836001600160a01b031614156106d45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610636565b336001600160a01b03821614806106f057506106f0813361105d565b6107625760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610636565b61076c8383611211565b505050565b600e546060906001600160a01b0316156107c8576040805160018082528183019092529060208083019080368337019050509050600d54816000815181106107bb576107bb6126ff565b6020026020010181815250505b919050565b6107d7338261127f565b6107f35760405162461bcd60e51b815260040161063690612530565b61076c838383611356565b6000816001600160a01b031661081c6001546001600160a01b031690565b6001600160a01b0316148061052957506105296002836114f2565b600e54600d5460009182916001600160a01b03909116906127109061085c90866125f1565b61086691906125dd565b915091505b9250929050565b6001546001600160a01b0316331461089c5760405162461bcd60e51b8152600401610636906124fb565b6108a76002826114f2565b156108ef5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a36108ed600282611517565b505b50565b60606108fe600261152c565b67ffffffffffffffff81111561091657610916612715565b60405190808252806020026020018201604052801561093f578160200160208202803683370190505b50905060005b61094f600261152c565b81101561099d57610961600282611536565b828281518110610973576109736126ff565b6001600160a01b0390921660209283029190910190910152806109958161268e565b915050610945565b5090565b61076c83838360405180602001604052806000815250610ccc565b336109cf6001546001600160a01b031690565b6001600160a01b031614806109ea57506109ea6002336114f2565b610a065760405162461bcd60e51b815260040161063690612581565b600a805460ff191660011790556040517f59d3ce47d6ad6c6003cef97d136155b29d88653eb355c8bed6e03fbf694570ca90600090a1565b6000818152600660205260408120546001600160a01b0316806105295760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610636565b33610ac86001546001600160a01b031690565b6001600160a01b03161480610ae35750610ae36002336114f2565b610aff5760405162461bcd60e51b815260040161063690612581565b600e80546001600160a01b0319166001600160a01b039390931692909217909155600d55565b6001546001600160a01b03163314610b4f5760405162461bcd60e51b8152600401610636906124fb565b610b5a6002826114f2565b6108ef5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a36108ed600282611542565b60006001600160a01b038216610c0a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610636565b506001600160a01b031660009081526007602052604090205490565b6001546001600160a01b03163314610c505760405162461bcd60e51b8152600401610636906124fb565b610c5a6000611557565b565b60606005805461053e90612653565b33610c7e6001546001600160a01b031690565b6001600160a01b03161480610c995750610c996002336114f2565b610cb55760405162461bcd60e51b815260040161063690612581565b61076c600b8383611d7f565b6108ed3383836115a9565b610cd6338361127f565b610cf25760405162461bcd60e51b815260040161063690612530565b610cfe84848484611678565b50505050565b600e546060906001600160a01b0316156107c85760408051600180825281830190925290602080830190803683375050600e5482519293506001600160a01b031691839150600090610d5857610d586126ff565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b600e5460609081906001600160a01b031615610e2c5760408051600180825281830190925290602080830190803683375050600e5482519294506001600160a01b031691849150600090610dd357610dd36126ff565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600d5481600081518110610e1f57610e1f6126ff565b6020026020010181815250505b915091565b600060026000541415610e865760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610636565b6002600055600186148015610e9a57508584145b610ed65760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610636565b610f138888886000818110610eed57610eed6126ff565b9050602002013587876000818110610f0757610f076126ff565b905060200201356116ab565b5063bc197c8160e01b600160005598975050505050505050565b6000818152600660205260409020546060906001600160a01b0316610fac5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610636565b600b610fb783611859565b604051602001610fc892919061231a565b6040516020818303038152906040529050919050565b33610ff16001546001600160a01b031690565b6001600160a01b0316148061100c575061100c6002336114f2565b6110285760405162461bcd60e51b815260040161063690612581565b600a805460ff191690556040517fc2a8834045efeaf0b37df1cf2e5979bff82a0c7f93c99b649a004940ef3cda4590600090a1565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6000600260005414156110e05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610636565b60026000556110f08686866116ab565b5063f23a6e6160e01b60016000559695505050505050565b6001546001600160a01b031633146111325760405162461bcd60e51b8152600401610636906124fb565b6001600160a01b0381166111975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610636565b6108ef81611557565b60006001600160e01b031982166380ac58cd60e01b14806111d157506001600160e01b03198216635b5e139f60e01b145b806105295750610529825b60006001600160e01b03198216632a9f3abf60e11b148061052957506301ffc9a760e01b6001600160e01b0319831614610529565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061124682610a3e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600660205260408120546001600160a01b03166112f85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610636565b600061130383610a3e565b9050806001600160a01b0316846001600160a01b0316148061133e5750836001600160a01b0316611333846105c1565b6001600160a01b0316145b8061134e575061134e818561105d565b949350505050565b826001600160a01b031661136982610a3e565b6001600160a01b0316146113cd5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610636565b6001600160a01b03821661142f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610636565b61143a600082611211565b6001600160a01b0383166000908152600760205260408120805460019290611463908490612610565b90915550506001600160a01b03821660009081526007602052604081208054600192906114919084906125c5565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6000611510836001600160a01b038416611957565b6000610529825490565b60006115108383611a4a565b6000611510836001600160a01b038416611a74565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561160b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610636565b6001600160a01b03838116600081815260096020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611683848484611356565b61168f84848484611ac3565b610cfe5760405162461bcd60e51b8152600401610636906124a9565b600a5460ff16806116c057506116c0836107fe565b6117025760405162461bcd60e51b8152602060048201526013602482015272526564656d7074696f6e20696e61637469766560681b6044820152606401610636565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561173a5750816001145b6117745760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813919560aa1b6044820152606401610636565b60405163d55f2d9d60e01b815230600482015261ffff82166024820152339063d55f2d9d90604401600060405180830381600087803b1580156117b657600080fd5b505af19250505080156117c7575060015b611832573d8080156117f5576040519150601f19603f3d011682016040523d82523d6000602084013e6117fa565b606091505b5060405162461bcd60e51b815260206004820152600c60248201526b4275726e206661696c75726560a01b6044820152606401610636565b60005b81811015610cfe5761184684611bd0565b50806118518161268e565b915050611835565b60608161187d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118a757806118918161268e565b91506118a09050600a836125dd565b9150611881565b60008167ffffffffffffffff8111156118c2576118c2612715565b6040519080825280601f01601f1916602001820160405280156118ec576020820181803683370190505b5090505b841561134e57611901600183612610565b915061190e600a866126a9565b6119199060306125c5565b60f81b81838151811061192e5761192e6126ff565b60200101906001600160f81b031916908160001a905350611950600a866125dd565b94506118f0565b60008181526001830160205260408120548015611a4057600061197b600183612610565b855490915060009061198f90600190612610565b90508181146119f45760008660000182815481106119af576119af6126ff565b90600052602060002001549050808760000184815481106119d2576119d26126ff565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611a0557611a056126e9565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610529565b6000915050610529565b6000826000018281548110611a6157611a616126ff565b9060005260206000200154905092915050565b6000818152600183016020526040812054611abb57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610529565b506000610529565b60006001600160a01b0384163b15611bc557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b079033908990889088906004016123c1565b602060405180830381600087803b158015611b2157600080fd5b505af1925050508015611b51575060408051601f3d908101601f19168201909252611b4e918101906121c4565b60015b611bab573d808015611b7f576040519150601f19603f3d011682016040523d82523d6000602084013e611b84565b606091505b508051611ba35760405162461bcd60e51b8152600401610636906124a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061134e565b506001949350505050565b600c805460009182611be18361268e565b9190505550611bf282600c54611c3c565b600c546040805182815230602082015280820192909252517f7a607f1ab973d85727d0ff44300699ee672c0e1d76f35013f36c02772f524ba39181900360600190a1506000919050565b6001600160a01b038216611c925760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610636565b6000818152600660205260409020546001600160a01b031615611cf75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610636565b6001600160a01b0382166000908152600760205260408120805460019290611d209084906125c5565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46108ed565b828054611d8b90612653565b90600052602060002090601f016020900481019282611dad5760008555611df3565b82601f10611dc65782800160ff19823516178555611df3565b82800160010185558215611df3579182015b82811115611df3578235825591602001919060010190611dd8565b5061099d9291505b8082111561099d5760008155600101611dfb565b60008083601f840112611e2157600080fd5b50813567ffffffffffffffff811115611e3957600080fd5b6020830191508360208260051b850101111561086b57600080fd5b60008083601f840112611e6657600080fd5b50813567ffffffffffffffff811115611e7e57600080fd5b60208301915083602082850101111561086b57600080fd5b600060208284031215611ea857600080fd5b81356115108161272b565b60008060408385031215611ec657600080fd5b8235611ed18161272b565b946020939093013593505050565b60008060408385031215611ef257600080fd5b8235611efd8161272b565b91506020830135611f0d8161272b565b809150509250929050565b60008060008060008060008060a0898b031215611f3457600080fd5b8835611f3f8161272b565b97506020890135611f4f8161272b565b9650604089013567ffffffffffffffff80821115611f6c57600080fd5b611f788c838d01611e0f565b909850965060608b0135915080821115611f9157600080fd5b611f9d8c838d01611e0f565b909650945060808b0135915080821115611fb657600080fd5b50611fc38b828c01611e54565b999c989b5096995094979396929594505050565b600080600060608486031215611fec57600080fd5b8335611ff78161272b565b925060208401356120078161272b565b929592945050506040919091013590565b6000806000806080858703121561202e57600080fd5b84356120398161272b565b935060208501356120498161272b565b925060408501359150606085013567ffffffffffffffff8082111561206d57600080fd5b818701915087601f83011261208157600080fd5b81358181111561209357612093612715565b604051601f8201601f19908116603f011681019083821181831017156120bb576120bb612715565b816040528281528a60208487010111156120d457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060008060a0878903121561211157600080fd5b863561211c8161272b565b9550602087013561212c8161272b565b94506040870135935060608701359250608087013567ffffffffffffffff81111561215657600080fd5b61216289828a01611e54565b979a9699509497509295939492505050565b6000806040838503121561218757600080fd5b82356121928161272b565b915060208301358015158114611f0d57600080fd5b6000602082840312156121b957600080fd5b813561151081612740565b6000602082840312156121d657600080fd5b815161151081612740565b600080602083850312156121f457600080fd5b823567ffffffffffffffff81111561220b57600080fd5b61221785828601611e54565b90969095509350505050565b60006020828403121561223557600080fd5b5035919050565b6000806040838503121561224f57600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b838110156122975781516001600160a01b031687529582019590820190600101612272565b509495945050505050565b600081518084526020808501945080840160005b83811015612297578151875295820195908201906001016122b6565b600081518084526122ea816020860160208601612627565b601f01601f19169290920160200192915050565b60008151612310818560208601612627565b9290920192915050565b600080845481600182811c91508083168061233657607f831692505b602080841082141561235657634e487b7160e01b86526022600452602486fd5b81801561236a576001811461237b576123a8565b60ff198616895284890196506123a8565b60008b81526020902060005b868110156123a05781548b820152908501908301612387565b505084890196505b5050505050506123b881856122fe565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123f4908301846122d2565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561243f5783516001600160a01b03168352928401929184019160010161241a565b50909695505050505050565b602081526000611510602083018461225e565b604081526000612471604083018561225e565b82810360208401526123b881856122a2565b60208152600061151060208301846122a2565b60208152600061151060208301846122d2565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b600082198211156125d8576125d86126bd565b500190565b6000826125ec576125ec6126d3565b500490565b600081600019048311821515161561260b5761260b6126bd565b500290565b600082821015612622576126226126bd565b500390565b60005b8381101561264257818101518382015260200161262a565b83811115610cfe5750506000910152565b600181811c9082168061266757607f821691505b6020821081141561268857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156126a2576126a26126bd565b5060010190565b6000826126b8576126b86126d3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146108ef57600080fd5b6001600160e01b0319811681146108ef57600080fdfea2646970667358221220f0f4b40f458f569ae833c96cf44e5ecf16a545f5acfe7e73a722c68780171ae764736f6c63430008070033000000000000000000000000ddb149ae8e6635df01a530da1e46921bd78dc385
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80636d73e6691161010f578063b9c4d9fb116100a2578063dd08b5c911610071578063dd08b5c914610463578063e985e9c51461046b578063f23a6e611461047e578063f2fde38b1461049157600080fd5b8063b9c4d9fb146103e3578063bb3bafd614610403578063bc197c8114610424578063c87b56dd1461045057600080fd5b806395d89b41116100de57806395d89b41146103a257806399e0dd7c146103aa578063a22cb465146103bd578063b88d4fde146103d057600080fd5b80636d73e6691461035557806370a0823114610368578063715018a6146103895780638da5cb5b1461039157600080fd5b80632a55205a116101875780634721ed6f116101565780634721ed6f1461031a5780634ccdb6ff146103225780636352211e1461032f5780636c2f5acd1461034257600080fd5b80632a55205a146102ad5780632d345670146102df57806331ae450b146102f257806342842e0e1461030757600080fd5b8063095ea7b3116101c3578063095ea7b3146102525780630ebd4c7f1461026757806323b872dd1461028757806324d7806c1461029a57600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f83660046121a7565b6104a4565b60405190151581526020015b60405180910390f35b61021a61052f565b6040516102099190612496565b61023a610235366004612223565b6105c1565b6040516001600160a01b039091168152602001610209565b610265610260366004611eb3565b61065b565b005b61027a610275366004612223565b610771565b6040516102099190612483565b610265610295366004611fd7565b6107cd565b6101fd6102a8366004611e96565b6107fe565b6102c06102bb36600461223c565b610837565b604080516001600160a01b039093168352602083019190915201610209565b6102656102ed366004611e96565b610872565b6102fa6108f2565b60405161020991906123fe565b610265610315366004611fd7565b6109a1565b6102656109bc565b600a546101fd9060ff1681565b61023a61033d366004612223565b610a3e565b610265610350366004611eb3565b610ab5565b610265610363366004611e96565b610b25565b61037b610376366004611e96565b610b9f565b604051908152602001610209565b610265610c26565b6001546001600160a01b031661023a565b61021a610c5c565b6102656103b83660046121e1565b610c6b565b6102656103cb366004612174565b610cc1565b6102656103de366004612018565b610ccc565b6103f66103f1366004612223565b610d04565b604051610209919061244b565b610416610411366004612223565b610d7d565b60405161020992919061245e565b610437610432366004611f18565b610e31565b6040516001600160e01b03199091168152602001610209565b61021a61045e366004612223565b610f2d565b610265610fde565b6101fd610479366004611edf565b61105d565b61043761048c3660046120f8565b61108b565b61026561049f366004611e96565b611108565b60006001600160e01b03198216630271189760e51b14806104c957506104c9826111a0565b806104d857506104d8826111dc565b806104f357506001600160e01b03198216635d9dd7eb60e11b145b8061050e57506001600160e01b0319821663152a902d60e11b145b8061052957506001600160e01b03198216632dde656160e21b145b92915050565b60606004805461053e90612653565b80601f016020809104026020016040519081016040528092919081815260200182805461056a90612653565b80156105b75780601f1061058c576101008083540402835291602001916105b7565b820191906000526020600020905b81548152906001019060200180831161059a57829003601f168201915b5050505050905090565b6000818152600660205260408120546001600160a01b031661063f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061066682610a3e565b9050806001600160a01b0316836001600160a01b031614156106d45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610636565b336001600160a01b03821614806106f057506106f0813361105d565b6107625760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610636565b61076c8383611211565b505050565b600e546060906001600160a01b0316156107c8576040805160018082528183019092529060208083019080368337019050509050600d54816000815181106107bb576107bb6126ff565b6020026020010181815250505b919050565b6107d7338261127f565b6107f35760405162461bcd60e51b815260040161063690612530565b61076c838383611356565b6000816001600160a01b031661081c6001546001600160a01b031690565b6001600160a01b0316148061052957506105296002836114f2565b600e54600d5460009182916001600160a01b03909116906127109061085c90866125f1565b61086691906125dd565b915091505b9250929050565b6001546001600160a01b0316331461089c5760405162461bcd60e51b8152600401610636906124fb565b6108a76002826114f2565b156108ef5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a36108ed600282611517565b505b50565b60606108fe600261152c565b67ffffffffffffffff81111561091657610916612715565b60405190808252806020026020018201604052801561093f578160200160208202803683370190505b50905060005b61094f600261152c565b81101561099d57610961600282611536565b828281518110610973576109736126ff565b6001600160a01b0390921660209283029190910190910152806109958161268e565b915050610945565b5090565b61076c83838360405180602001604052806000815250610ccc565b336109cf6001546001600160a01b031690565b6001600160a01b031614806109ea57506109ea6002336114f2565b610a065760405162461bcd60e51b815260040161063690612581565b600a805460ff191660011790556040517f59d3ce47d6ad6c6003cef97d136155b29d88653eb355c8bed6e03fbf694570ca90600090a1565b6000818152600660205260408120546001600160a01b0316806105295760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610636565b33610ac86001546001600160a01b031690565b6001600160a01b03161480610ae35750610ae36002336114f2565b610aff5760405162461bcd60e51b815260040161063690612581565b600e80546001600160a01b0319166001600160a01b039390931692909217909155600d55565b6001546001600160a01b03163314610b4f5760405162461bcd60e51b8152600401610636906124fb565b610b5a6002826114f2565b6108ef5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a36108ed600282611542565b60006001600160a01b038216610c0a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610636565b506001600160a01b031660009081526007602052604090205490565b6001546001600160a01b03163314610c505760405162461bcd60e51b8152600401610636906124fb565b610c5a6000611557565b565b60606005805461053e90612653565b33610c7e6001546001600160a01b031690565b6001600160a01b03161480610c995750610c996002336114f2565b610cb55760405162461bcd60e51b815260040161063690612581565b61076c600b8383611d7f565b6108ed3383836115a9565b610cd6338361127f565b610cf25760405162461bcd60e51b815260040161063690612530565b610cfe84848484611678565b50505050565b600e546060906001600160a01b0316156107c85760408051600180825281830190925290602080830190803683375050600e5482519293506001600160a01b031691839150600090610d5857610d586126ff565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b600e5460609081906001600160a01b031615610e2c5760408051600180825281830190925290602080830190803683375050600e5482519294506001600160a01b031691849150600090610dd357610dd36126ff565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600d5481600081518110610e1f57610e1f6126ff565b6020026020010181815250505b915091565b600060026000541415610e865760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610636565b6002600055600186148015610e9a57508584145b610ed65760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610636565b610f138888886000818110610eed57610eed6126ff565b9050602002013587876000818110610f0757610f076126ff565b905060200201356116ab565b5063bc197c8160e01b600160005598975050505050505050565b6000818152600660205260409020546060906001600160a01b0316610fac5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610636565b600b610fb783611859565b604051602001610fc892919061231a565b6040516020818303038152906040529050919050565b33610ff16001546001600160a01b031690565b6001600160a01b0316148061100c575061100c6002336114f2565b6110285760405162461bcd60e51b815260040161063690612581565b600a805460ff191690556040517fc2a8834045efeaf0b37df1cf2e5979bff82a0c7f93c99b649a004940ef3cda4590600090a1565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6000600260005414156110e05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610636565b60026000556110f08686866116ab565b5063f23a6e6160e01b60016000559695505050505050565b6001546001600160a01b031633146111325760405162461bcd60e51b8152600401610636906124fb565b6001600160a01b0381166111975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610636565b6108ef81611557565b60006001600160e01b031982166380ac58cd60e01b14806111d157506001600160e01b03198216635b5e139f60e01b145b806105295750610529825b60006001600160e01b03198216632a9f3abf60e11b148061052957506301ffc9a760e01b6001600160e01b0319831614610529565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061124682610a3e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600660205260408120546001600160a01b03166112f85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610636565b600061130383610a3e565b9050806001600160a01b0316846001600160a01b0316148061133e5750836001600160a01b0316611333846105c1565b6001600160a01b0316145b8061134e575061134e818561105d565b949350505050565b826001600160a01b031661136982610a3e565b6001600160a01b0316146113cd5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610636565b6001600160a01b03821661142f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610636565b61143a600082611211565b6001600160a01b0383166000908152600760205260408120805460019290611463908490612610565b90915550506001600160a01b03821660009081526007602052604081208054600192906114919084906125c5565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b6000611510836001600160a01b038416611957565b6000610529825490565b60006115108383611a4a565b6000611510836001600160a01b038416611a74565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561160b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610636565b6001600160a01b03838116600081815260096020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611683848484611356565b61168f84848484611ac3565b610cfe5760405162461bcd60e51b8152600401610636906124a9565b600a5460ff16806116c057506116c0836107fe565b6117025760405162461bcd60e51b8152602060048201526013602482015272526564656d7074696f6e20696e61637469766560681b6044820152606401610636565b336001600160a01b037f000000000000000000000000ddb149ae8e6635df01a530da1e46921bd78dc3851614801561173a5750816001145b6117745760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813919560aa1b6044820152606401610636565b60405163d55f2d9d60e01b815230600482015261ffff82166024820152339063d55f2d9d90604401600060405180830381600087803b1580156117b657600080fd5b505af19250505080156117c7575060015b611832573d8080156117f5576040519150601f19603f3d011682016040523d82523d6000602084013e6117fa565b606091505b5060405162461bcd60e51b815260206004820152600c60248201526b4275726e206661696c75726560a01b6044820152606401610636565b60005b81811015610cfe5761184684611bd0565b50806118518161268e565b915050611835565b60608161187d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118a757806118918161268e565b91506118a09050600a836125dd565b9150611881565b60008167ffffffffffffffff8111156118c2576118c2612715565b6040519080825280601f01601f1916602001820160405280156118ec576020820181803683370190505b5090505b841561134e57611901600183612610565b915061190e600a866126a9565b6119199060306125c5565b60f81b81838151811061192e5761192e6126ff565b60200101906001600160f81b031916908160001a905350611950600a866125dd565b94506118f0565b60008181526001830160205260408120548015611a4057600061197b600183612610565b855490915060009061198f90600190612610565b90508181146119f45760008660000182815481106119af576119af6126ff565b90600052602060002001549050808760000184815481106119d2576119d26126ff565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611a0557611a056126e9565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610529565b6000915050610529565b6000826000018281548110611a6157611a616126ff565b9060005260206000200154905092915050565b6000818152600183016020526040812054611abb57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610529565b506000610529565b60006001600160a01b0384163b15611bc557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b079033908990889088906004016123c1565b602060405180830381600087803b158015611b2157600080fd5b505af1925050508015611b51575060408051601f3d908101601f19168201909252611b4e918101906121c4565b60015b611bab573d808015611b7f576040519150601f19603f3d011682016040523d82523d6000602084013e611b84565b606091505b508051611ba35760405162461bcd60e51b8152600401610636906124a9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061134e565b506001949350505050565b600c805460009182611be18361268e565b9190505550611bf282600c54611c3c565b600c546040805182815230602082015280820192909252517f7a607f1ab973d85727d0ff44300699ee672c0e1d76f35013f36c02772f524ba39181900360600190a1506000919050565b6001600160a01b038216611c925760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610636565b6000818152600660205260409020546001600160a01b031615611cf75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610636565b6001600160a01b0382166000908152600760205260408120805460019290611d209084906125c5565b909155505060008181526006602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46108ed565b828054611d8b90612653565b90600052602060002090601f016020900481019282611dad5760008555611df3565b82601f10611dc65782800160ff19823516178555611df3565b82800160010185558215611df3579182015b82811115611df3578235825591602001919060010190611dd8565b5061099d9291505b8082111561099d5760008155600101611dfb565b60008083601f840112611e2157600080fd5b50813567ffffffffffffffff811115611e3957600080fd5b6020830191508360208260051b850101111561086b57600080fd5b60008083601f840112611e6657600080fd5b50813567ffffffffffffffff811115611e7e57600080fd5b60208301915083602082850101111561086b57600080fd5b600060208284031215611ea857600080fd5b81356115108161272b565b60008060408385031215611ec657600080fd5b8235611ed18161272b565b946020939093013593505050565b60008060408385031215611ef257600080fd5b8235611efd8161272b565b91506020830135611f0d8161272b565b809150509250929050565b60008060008060008060008060a0898b031215611f3457600080fd5b8835611f3f8161272b565b97506020890135611f4f8161272b565b9650604089013567ffffffffffffffff80821115611f6c57600080fd5b611f788c838d01611e0f565b909850965060608b0135915080821115611f9157600080fd5b611f9d8c838d01611e0f565b909650945060808b0135915080821115611fb657600080fd5b50611fc38b828c01611e54565b999c989b5096995094979396929594505050565b600080600060608486031215611fec57600080fd5b8335611ff78161272b565b925060208401356120078161272b565b929592945050506040919091013590565b6000806000806080858703121561202e57600080fd5b84356120398161272b565b935060208501356120498161272b565b925060408501359150606085013567ffffffffffffffff8082111561206d57600080fd5b818701915087601f83011261208157600080fd5b81358181111561209357612093612715565b604051601f8201601f19908116603f011681019083821181831017156120bb576120bb612715565b816040528281528a60208487010111156120d457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060008060008060a0878903121561211157600080fd5b863561211c8161272b565b9550602087013561212c8161272b565b94506040870135935060608701359250608087013567ffffffffffffffff81111561215657600080fd5b61216289828a01611e54565b979a9699509497509295939492505050565b6000806040838503121561218757600080fd5b82356121928161272b565b915060208301358015158114611f0d57600080fd5b6000602082840312156121b957600080fd5b813561151081612740565b6000602082840312156121d657600080fd5b815161151081612740565b600080602083850312156121f457600080fd5b823567ffffffffffffffff81111561220b57600080fd5b61221785828601611e54565b90969095509350505050565b60006020828403121561223557600080fd5b5035919050565b6000806040838503121561224f57600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b838110156122975781516001600160a01b031687529582019590820190600101612272565b509495945050505050565b600081518084526020808501945080840160005b83811015612297578151875295820195908201906001016122b6565b600081518084526122ea816020860160208601612627565b601f01601f19169290920160200192915050565b60008151612310818560208601612627565b9290920192915050565b600080845481600182811c91508083168061233657607f831692505b602080841082141561235657634e487b7160e01b86526022600452602486fd5b81801561236a576001811461237b576123a8565b60ff198616895284890196506123a8565b60008b81526020902060005b868110156123a05781548b820152908501908301612387565b505084890196505b5050505050506123b881856122fe565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123f4908301846122d2565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561243f5783516001600160a01b03168352928401929184019160010161241a565b50909695505050505050565b602081526000611510602083018461225e565b604081526000612471604083018561225e565b82810360208401526123b881856122a2565b60208152600061151060208301846122a2565b60208152600061151060208301846122d2565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b600082198211156125d8576125d86126bd565b500190565b6000826125ec576125ec6126d3565b500490565b600081600019048311821515161561260b5761260b6126bd565b500290565b600082821015612622576126226126bd565b500390565b60005b8381101561264257818101518382015260200161262a565b83811115610cfe5750506000910152565b600181811c9082168061266757607f821691505b6020821081141561268857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156126a2576126a26126bd565b5060010190565b6000826126b8576126b86126d3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146108ef57600080fd5b6001600160e01b0319811681146108ef57600080fdfea2646970667358221220f0f4b40f458f569ae833c96cf44e5ecf16a545f5acfe7e73a722c68780171ae764736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ddb149ae8e6635df01a530da1e46921bd78dc385
-----Decoded View---------------
Arg [0] : essenceAddress (address): 0xDDB149AE8E6635Df01a530da1E46921Bd78Dc385
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ddb149ae8e6635df01a530da1e46921bd78dc385
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.