Overview
TokenID
4119
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Prey
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; /// @creator: HOWLERZ /// @author: manifold.xyz //////////////////////////////////////////////////////////////////////////////////// // // // . ... // // ...'''.. ..'...,, .;:' // // .':c:' .;cl:,''c:. .. ..,:cl;. // // ;dd, .;ll,..,cl;. ':' .cllc;'. // // ..',;;'. .cxc..cdc,,col;. ;ol' ,oc'. // // ..;lc. .ol;cdolcc;'. ,oo' .l: . // // .:l' .cxoc'.... .. .:o' .cl. .;. // // .. 'ol. :d; .:' .;; ,l:..cl' .;;. '. // // .,:' 'do. .co. .,l:. .;l:..:doclo:..,:' ':. // // ;o, .od, .:dccoo:. .coocodlcclool:'. .. .;l, // // 'dc. .lo, :xdc;. .:oxdl:. .:l:,;:::;::cc' // // 'dl. .lo. .:l'.. .:oxddl'... .:dxc...... // // 'do' ,o;..;ol';c'. .:ddxxxdlcll;. .;cccc:;,. // // ,ooc,'',lxdlcc:::oxxoc:,.....'cxxxxxxo,..:dc. ...,;:::;. // // .':ccc::;'.. ,oxxxxxdoddxxxxxxxxxd:. .;ooc;,'... .;c:'. // // .cxxxxxxxxxxxxxxxxxxxxl. ....'.... .,:c:,'. // // 'oxxxxxxxxxxxxxxxxdolld:. .. // // .oxxxxxxxxxdc;;cldd;. .;' // // .cxxxxxxxxxl. 'c' .:. // // 'dxxxxxxxxx:. .cl,...:dc. // // ;xxxxxxxxxxo;...',cxxxdodxxx: // // ,dxxxxxxxxxxxdodxxxxxxxxxxxxd; // // .oxxxxxxxxxxxdodxxxxxxxxxxxxxo' // // ,oxxxxxxxxxxc..';:odxxxxxxxxo' // // 'oxxxxxxxxxo. ..;codddo:. // // .cdxxxxxxxx:. .... // // .;dxxxxxxxd;. // // ;dxxxxxxxd:'. // // .lxxxxxxxxxxo' // // :xxxxxxxxxxxdc,.. // // ..;oxxxxxxxxxxxxxxdolllllllcc:,. // // ..,:odxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdl, // // .';codxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd:. // // .,cdxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:. // // 'lxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd, // // .;dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc. // // ;dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo. // // .oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo. // // ;dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo. // // :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxl. // // // // // //////////////////////////////////////////////////////////////////////////////////// import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract Prey is AdminControl, ERC721 { using Strings for uint256; string private _tokenURIPrefix; uint256 private _tokenIndex; // 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() ERC721("PREY", "PREY") {} /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AdminControl, ERC721) returns (bool) { return ERC721.supportsInterface(interfaceId) || AdminControl.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE; } function airdrop(address[] calldata receivers) external adminRequired { require(_tokenIndex + receivers.length <= 5000, "Only 5000 total supply"); for (uint i = 0; i < receivers.length; i++) { _tokenIndex++; _mint(receivers[i], _tokenIndex); } } /** * @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())); } /** * ROYALTY FUNCTIONS */ function updateRoyalties(address payable recipient, uint256 bps) external adminRequired { _royaltyRecipient = recipient; _royaltyBps = bps; } 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); } }
// 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.6.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 overridden 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 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 (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/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 (last updated v4.6.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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
60806040523480156200001157600080fd5b50604051806040016040528060048152602001635052455960e01b815250604051806040016040528060048152602001635052455960e01b81525062000066620000606200009a60201b60201c565b6200009e565b81516200007b906003906020850190620000ee565b50805162000091906004906020840190620000ee565b505050620001d1565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000fc9062000194565b90600052602060002090601f0160209004810192826200012057600085556200016b565b82601f106200013b57805160ff19168380011785556200016b565b828001600101855582156200016b579182015b828111156200016b5782518255916020019190600101906200014e565b50620001799291506200017d565b5090565b5b808211156200017957600081556001016200017e565b600181811c90821680620001a957607f821691505b60208210811415620001cb57634e487b7160e01b600052602260045260246000fd5b50919050565b61222e80620001e16000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636d73e669116100f9578063a22cb46511610097578063bb3bafd611610071578063bb3bafd6146103c5578063c87b56dd146103e6578063e985e9c5146103f9578063f2fde38b1461040c57600080fd5b8063a22cb4651461037f578063b88d4fde14610392578063b9c4d9fb146103a557600080fd5b8063729ad39e116100d3578063729ad39e146103405780638da5cb5b1461035357806395d89b411461036457806399e0dd7c1461036c57600080fd5b80636d73e6691461030457806370a0823114610317578063715018a61461033857600080fd5b806324d7806c1161016657806331ae450b1161014057806331ae450b146102b657806342842e0e146102cb5780636352211e146102de5780636c2f5acd146102f157600080fd5b806324d7806c1461025e5780632a55205a146102715780632d345670146102a357600080fd5b806301ffc9a7146101ae57806306fdde03146101d6578063081812fc146101eb578063095ea7b3146102165780630ebd4c7f1461022b57806323b872dd1461024b575b600080fd5b6101c16101bc366004611c2b565b61041f565b60405190151581526020015b60405180910390f35b6101de610490565b6040516101cd9190611f38565b6101fe6101f9366004611cc5565b610522565b6040516001600160a01b0390911681526020016101cd565b6102296102243660046119fd565b6105bc565b005b61023e610239366004611cc5565b6106d2565b6040516101cd9190611f25565b610229610259366004611a62565b61072e565b6101c161026c3660046119e0565b61075f565b61028461027f366004611cde565b610798565b604080516001600160a01b0390931683526020830191909152016101cd565b6102296102b13660046119e0565b6107d2565b6102be610852565b6040516101cd9190611ea0565b6102296102d9366004611a62565b610901565b6101fe6102ec366004611cc5565b61091c565b6102296102ff3660046119fd565b610993565b6102296103123660046119e0565b610a03565b61032a6103253660046119e0565b610a7d565b6040519081526020016101cd565b610229610b04565b61022961034e366004611bb6565b610b3a565b6000546001600160a01b03166101fe565b6101de610c41565b61022961037a366004611c65565b610c50565b61022961038d366004611b83565b610ca6565b6102296103a0366004611aa3565b610cb1565b6103b86103b3366004611cc5565b610ce9565b6040516101cd9190611eed565b6103d86103d3366004611cc5565b610d62565b6040516101cd929190611f00565b6101de6103f4366004611cc5565b610e16565b6101c1610407366004611a29565b610ec7565b61022961041a3660046119e0565b610ef5565b600061042a82610f8d565b80610439575061043982610fc9565b8061045457506001600160e01b03198216635d9dd7eb60e11b145b8061046f57506001600160e01b0319821663152a902d60e11b145b8061048a57506001600160e01b03198216632dde656160e21b145b92915050565b60606003805461049f906120f5565b80601f01602080910402602001604051908101604052809291908181526020018280546104cb906120f5565b80156105185780601f106104ed57610100808354040283529160200191610518565b820191906000526020600020905b8154815290600101906020018083116104fb57829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166105a05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006105c78261091c565b9050806001600160a01b0316836001600160a01b031614156106355760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610597565b336001600160a01b038216148061065157506106518133610ec7565b6106c35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610597565b6106cd8383610ffe565b505050565b600c546060906001600160a01b031615610729576040805160018082528183019092529060208083019080368337019050509050600b548160008151811061071c5761071c6121a1565b6020026020010181815250505b919050565b610738338261106c565b6107545760405162461bcd60e51b815260040161059790611fd2565b6106cd838383611143565b6000816001600160a01b031661077d6000546001600160a01b031690565b6001600160a01b0316148061048a575061048a6001836112df565b600c54600b5460009182916001600160a01b0390911690612710906107bd9086612093565b6107c7919061207f565b915091509250929050565b6000546001600160a01b031633146107fc5760405162461bcd60e51b815260040161059790611f9d565b6108076001826112df565b1561084f5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a361084d600182611304565b505b50565b606061085e6001611319565b67ffffffffffffffff811115610876576108766121b7565b60405190808252806020026020018201604052801561089f578160200160208202803683370190505b50905060005b6108af6001611319565b8110156108fd576108c1600182611323565b8282815181106108d3576108d36121a1565b6001600160a01b0390921660209283029190910190910152806108f581612130565b9150506108a5565b5090565b6106cd83838360405180602001604052806000815250610cb1565b6000818152600560205260408120546001600160a01b03168061048a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610597565b336109a66000546001600160a01b031690565b6001600160a01b031614806109c157506109c16001336112df565b6109dd5760405162461bcd60e51b815260040161059790612023565b600c80546001600160a01b0319166001600160a01b039390931692909217909155600b55565b6000546001600160a01b03163314610a2d5760405162461bcd60e51b815260040161059790611f9d565b610a386001826112df565b61084f5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a361084d60018261132f565b60006001600160a01b038216610ae85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610597565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b03163314610b2e5760405162461bcd60e51b815260040161059790611f9d565b610b386000611344565b565b33610b4d6000546001600160a01b031690565b6001600160a01b03161480610b685750610b686001336112df565b610b845760405162461bcd60e51b815260040161059790612023565b600a5461138890610b96908390612067565b1115610bdd5760405162461bcd60e51b81526020600482015260166024820152754f6e6c79203530303020746f74616c20737570706c7960501b6044820152606401610597565b60005b818110156106cd57600a8054906000610bf883612130565b9190505550610c2f838383818110610c1257610c126121a1565b9050602002016020810190610c2791906119e0565b600a54611394565b80610c3981612130565b915050610be0565b60606004805461049f906120f5565b33610c636000546001600160a01b031690565b6001600160a01b03161480610c7e5750610c7e6001336112df565b610c9a5760405162461bcd60e51b815260040161059790612023565b6106cd60098383611950565b61084d3383836114d7565b610cbb338361106c565b610cd75760405162461bcd60e51b815260040161059790611fd2565b610ce3848484846115a6565b50505050565b600c546060906001600160a01b0316156107295760408051600180825281830190925290602080830190803683375050600c5482519293506001600160a01b031691839150600090610d3d57610d3d6121a1565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b600c5460609081906001600160a01b031615610e115760408051600180825281830190925290602080830190803683375050600c5482519294506001600160a01b031691849150600090610db857610db86121a1565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600b5481600081518110610e0457610e046121a1565b6020026020010181815250505b915091565b6000818152600560205260409020546060906001600160a01b0316610e955760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610597565b6009610ea0836115d9565b604051602001610eb1929190611dbc565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b03163314610f1f5760405162461bcd60e51b815260040161059790611f9d565b6001600160a01b038116610f845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610597565b61084f81611344565b60006001600160e01b031982166380ac58cd60e01b1480610fbe57506001600160e01b03198216635b5e139f60e01b145b8061048a575061048a825b60006001600160e01b03198216632a9f3abf60e11b148061048a57506301ffc9a760e01b6001600160e01b031983161461048a565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906110338261091c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166110e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610597565b60006110f08361091c565b9050806001600160a01b0316846001600160a01b0316148061111757506111178185610ec7565b8061113b5750836001600160a01b031661113084610522565b6001600160a01b0316145b949350505050565b826001600160a01b03166111568261091c565b6001600160a01b0316146111ba5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610597565b6001600160a01b03821661121c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610597565b611227600082610ffe565b6001600160a01b03831660009081526006602052604081208054600192906112509084906120b2565b90915550506001600160a01b038216600090815260066020526040812080546001929061127e908490612067565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b60006112fd836001600160a01b0384166116d7565b600061048a825490565b60006112fd83836117ca565b60006112fd836001600160a01b0384166117f4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166113ea5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610597565b6000818152600560205260409020546001600160a01b03161561144f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610597565b6001600160a01b0382166000908152600660205260408120805460019290611478908490612067565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461084d565b816001600160a01b0316836001600160a01b031614156115395760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610597565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6115b1848484611143565b6115bd84848484611843565b610ce35760405162461bcd60e51b815260040161059790611f4b565b6060816115fd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611627578061161181612130565b91506116209050600a8361207f565b9150611601565b60008167ffffffffffffffff811115611642576116426121b7565b6040519080825280601f01601f19166020018201604052801561166c576020820181803683370190505b5090505b841561113b576116816001836120b2565b915061168e600a8661214b565b611699906030612067565b60f81b8183815181106116ae576116ae6121a1565b60200101906001600160f81b031916908160001a9053506116d0600a8661207f565b9450611670565b600081815260018301602052604081205480156117c05760006116fb6001836120b2565b855490915060009061170f906001906120b2565b905081811461177457600086600001828154811061172f5761172f6121a1565b9060005260206000200154905080876000018481548110611752576117526121a1565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806117855761178561218b565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061048a565b600091505061048a565b60008260000182815481106117e1576117e16121a1565b9060005260206000200154905092915050565b600081815260018301602052604081205461183b5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561048a565b50600061048a565b60006001600160a01b0384163b1561194557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611887903390899088908890600401611e63565b602060405180830381600087803b1580156118a157600080fd5b505af19250505080156118d1575060408051601f3d908101601f191682019092526118ce91810190611c48565b60015b61192b573d8080156118ff576040519150601f19603f3d011682016040523d82523d6000602084013e611904565b606091505b5080516119235760405162461bcd60e51b815260040161059790611f4b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061113b565b506001949350505050565b82805461195c906120f5565b90600052602060002090601f01602090048101928261197e57600085556119c4565b82601f106119975782800160ff198235161785556119c4565b828001600101855582156119c4579182015b828111156119c45782358255916020019190600101906119a9565b506108fd9291505b808211156108fd57600081556001016119cc565b6000602082840312156119f257600080fd5b81356112fd816121cd565b60008060408385031215611a1057600080fd5b8235611a1b816121cd565b946020939093013593505050565b60008060408385031215611a3c57600080fd5b8235611a47816121cd565b91506020830135611a57816121cd565b809150509250929050565b600080600060608486031215611a7757600080fd5b8335611a82816121cd565b92506020840135611a92816121cd565b929592945050506040919091013590565b60008060008060808587031215611ab957600080fd5b8435611ac4816121cd565b93506020850135611ad4816121cd565b925060408501359150606085013567ffffffffffffffff80821115611af857600080fd5b818701915087601f830112611b0c57600080fd5b813581811115611b1e57611b1e6121b7565b604051601f8201601f19908116603f01168101908382118183101715611b4657611b466121b7565b816040528281528a6020848701011115611b5f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611b9657600080fd5b8235611ba1816121cd565b915060208301358015158114611a5757600080fd5b60008060208385031215611bc957600080fd5b823567ffffffffffffffff80821115611be157600080fd5b818501915085601f830112611bf557600080fd5b813581811115611c0457600080fd5b8660208260051b8501011115611c1957600080fd5b60209290920196919550909350505050565b600060208284031215611c3d57600080fd5b81356112fd816121e2565b600060208284031215611c5a57600080fd5b81516112fd816121e2565b60008060208385031215611c7857600080fd5b823567ffffffffffffffff80821115611c9057600080fd5b818501915085601f830112611ca457600080fd5b813581811115611cb357600080fd5b866020828501011115611c1957600080fd5b600060208284031215611cd757600080fd5b5035919050565b60008060408385031215611cf157600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015611d395781516001600160a01b031687529582019590820190600101611d14565b509495945050505050565b600081518084526020808501945080840160005b83811015611d3957815187529582019590820190600101611d58565b60008151808452611d8c8160208601602086016120c9565b601f01601f19169290920160200192915050565b60008151611db28185602086016120c9565b9290920192915050565b600080845481600182811c915080831680611dd857607f831692505b6020808410821415611df857634e487b7160e01b86526022600452602486fd5b818015611e0c5760018114611e1d57611e4a565b60ff19861689528489019650611e4a565b60008b81526020902060005b86811015611e425781548b820152908501908301611e29565b505084890196505b505050505050611e5a8185611da0565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e9690830184611d74565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611ee15783516001600160a01b031683529284019291840191600101611ebc565b50909695505050505050565b6020815260006112fd6020830184611d00565b604081526000611f136040830185611d00565b8281036020840152611e5a8185611d44565b6020815260006112fd6020830184611d44565b6020815260006112fd6020830184611d74565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b6000821982111561207a5761207a61215f565b500190565b60008261208e5761208e612175565b500490565b60008160001904831182151516156120ad576120ad61215f565b500290565b6000828210156120c4576120c461215f565b500390565b60005b838110156120e45781810151838201526020016120cc565b83811115610ce35750506000910152565b600181811c9082168061210957607f821691505b6020821081141561212a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121445761214461215f565b5060010190565b60008261215a5761215a612175565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461084f57600080fd5b6001600160e01b03198116811461084f57600080fdfea2646970667358221220afa1037edaab31dd41510781aa35cc524d3f32c33378c131762fd524999b09c964736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80636d73e669116100f9578063a22cb46511610097578063bb3bafd611610071578063bb3bafd6146103c5578063c87b56dd146103e6578063e985e9c5146103f9578063f2fde38b1461040c57600080fd5b8063a22cb4651461037f578063b88d4fde14610392578063b9c4d9fb146103a557600080fd5b8063729ad39e116100d3578063729ad39e146103405780638da5cb5b1461035357806395d89b411461036457806399e0dd7c1461036c57600080fd5b80636d73e6691461030457806370a0823114610317578063715018a61461033857600080fd5b806324d7806c1161016657806331ae450b1161014057806331ae450b146102b657806342842e0e146102cb5780636352211e146102de5780636c2f5acd146102f157600080fd5b806324d7806c1461025e5780632a55205a146102715780632d345670146102a357600080fd5b806301ffc9a7146101ae57806306fdde03146101d6578063081812fc146101eb578063095ea7b3146102165780630ebd4c7f1461022b57806323b872dd1461024b575b600080fd5b6101c16101bc366004611c2b565b61041f565b60405190151581526020015b60405180910390f35b6101de610490565b6040516101cd9190611f38565b6101fe6101f9366004611cc5565b610522565b6040516001600160a01b0390911681526020016101cd565b6102296102243660046119fd565b6105bc565b005b61023e610239366004611cc5565b6106d2565b6040516101cd9190611f25565b610229610259366004611a62565b61072e565b6101c161026c3660046119e0565b61075f565b61028461027f366004611cde565b610798565b604080516001600160a01b0390931683526020830191909152016101cd565b6102296102b13660046119e0565b6107d2565b6102be610852565b6040516101cd9190611ea0565b6102296102d9366004611a62565b610901565b6101fe6102ec366004611cc5565b61091c565b6102296102ff3660046119fd565b610993565b6102296103123660046119e0565b610a03565b61032a6103253660046119e0565b610a7d565b6040519081526020016101cd565b610229610b04565b61022961034e366004611bb6565b610b3a565b6000546001600160a01b03166101fe565b6101de610c41565b61022961037a366004611c65565b610c50565b61022961038d366004611b83565b610ca6565b6102296103a0366004611aa3565b610cb1565b6103b86103b3366004611cc5565b610ce9565b6040516101cd9190611eed565b6103d86103d3366004611cc5565b610d62565b6040516101cd929190611f00565b6101de6103f4366004611cc5565b610e16565b6101c1610407366004611a29565b610ec7565b61022961041a3660046119e0565b610ef5565b600061042a82610f8d565b80610439575061043982610fc9565b8061045457506001600160e01b03198216635d9dd7eb60e11b145b8061046f57506001600160e01b0319821663152a902d60e11b145b8061048a57506001600160e01b03198216632dde656160e21b145b92915050565b60606003805461049f906120f5565b80601f01602080910402602001604051908101604052809291908181526020018280546104cb906120f5565b80156105185780601f106104ed57610100808354040283529160200191610518565b820191906000526020600020905b8154815290600101906020018083116104fb57829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166105a05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006105c78261091c565b9050806001600160a01b0316836001600160a01b031614156106355760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610597565b336001600160a01b038216148061065157506106518133610ec7565b6106c35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610597565b6106cd8383610ffe565b505050565b600c546060906001600160a01b031615610729576040805160018082528183019092529060208083019080368337019050509050600b548160008151811061071c5761071c6121a1565b6020026020010181815250505b919050565b610738338261106c565b6107545760405162461bcd60e51b815260040161059790611fd2565b6106cd838383611143565b6000816001600160a01b031661077d6000546001600160a01b031690565b6001600160a01b0316148061048a575061048a6001836112df565b600c54600b5460009182916001600160a01b0390911690612710906107bd9086612093565b6107c7919061207f565b915091509250929050565b6000546001600160a01b031633146107fc5760405162461bcd60e51b815260040161059790611f9d565b6108076001826112df565b1561084f5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a361084d600182611304565b505b50565b606061085e6001611319565b67ffffffffffffffff811115610876576108766121b7565b60405190808252806020026020018201604052801561089f578160200160208202803683370190505b50905060005b6108af6001611319565b8110156108fd576108c1600182611323565b8282815181106108d3576108d36121a1565b6001600160a01b0390921660209283029190910190910152806108f581612130565b9150506108a5565b5090565b6106cd83838360405180602001604052806000815250610cb1565b6000818152600560205260408120546001600160a01b03168061048a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610597565b336109a66000546001600160a01b031690565b6001600160a01b031614806109c157506109c16001336112df565b6109dd5760405162461bcd60e51b815260040161059790612023565b600c80546001600160a01b0319166001600160a01b039390931692909217909155600b55565b6000546001600160a01b03163314610a2d5760405162461bcd60e51b815260040161059790611f9d565b610a386001826112df565b61084f5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a361084d60018261132f565b60006001600160a01b038216610ae85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610597565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b03163314610b2e5760405162461bcd60e51b815260040161059790611f9d565b610b386000611344565b565b33610b4d6000546001600160a01b031690565b6001600160a01b03161480610b685750610b686001336112df565b610b845760405162461bcd60e51b815260040161059790612023565b600a5461138890610b96908390612067565b1115610bdd5760405162461bcd60e51b81526020600482015260166024820152754f6e6c79203530303020746f74616c20737570706c7960501b6044820152606401610597565b60005b818110156106cd57600a8054906000610bf883612130565b9190505550610c2f838383818110610c1257610c126121a1565b9050602002016020810190610c2791906119e0565b600a54611394565b80610c3981612130565b915050610be0565b60606004805461049f906120f5565b33610c636000546001600160a01b031690565b6001600160a01b03161480610c7e5750610c7e6001336112df565b610c9a5760405162461bcd60e51b815260040161059790612023565b6106cd60098383611950565b61084d3383836114d7565b610cbb338361106c565b610cd75760405162461bcd60e51b815260040161059790611fd2565b610ce3848484846115a6565b50505050565b600c546060906001600160a01b0316156107295760408051600180825281830190925290602080830190803683375050600c5482519293506001600160a01b031691839150600090610d3d57610d3d6121a1565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b600c5460609081906001600160a01b031615610e115760408051600180825281830190925290602080830190803683375050600c5482519294506001600160a01b031691849150600090610db857610db86121a1565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600b5481600081518110610e0457610e046121a1565b6020026020010181815250505b915091565b6000818152600560205260409020546060906001600160a01b0316610e955760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610597565b6009610ea0836115d9565b604051602001610eb1929190611dbc565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b03163314610f1f5760405162461bcd60e51b815260040161059790611f9d565b6001600160a01b038116610f845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610597565b61084f81611344565b60006001600160e01b031982166380ac58cd60e01b1480610fbe57506001600160e01b03198216635b5e139f60e01b145b8061048a575061048a825b60006001600160e01b03198216632a9f3abf60e11b148061048a57506301ffc9a760e01b6001600160e01b031983161461048a565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906110338261091c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166110e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610597565b60006110f08361091c565b9050806001600160a01b0316846001600160a01b0316148061111757506111178185610ec7565b8061113b5750836001600160a01b031661113084610522565b6001600160a01b0316145b949350505050565b826001600160a01b03166111568261091c565b6001600160a01b0316146111ba5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610597565b6001600160a01b03821661121c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610597565b611227600082610ffe565b6001600160a01b03831660009081526006602052604081208054600192906112509084906120b2565b90915550506001600160a01b038216600090815260066020526040812080546001929061127e908490612067565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b60006112fd836001600160a01b0384166116d7565b600061048a825490565b60006112fd83836117ca565b60006112fd836001600160a01b0384166117f4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166113ea5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610597565b6000818152600560205260409020546001600160a01b03161561144f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610597565b6001600160a01b0382166000908152600660205260408120805460019290611478908490612067565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461084d565b816001600160a01b0316836001600160a01b031614156115395760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610597565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6115b1848484611143565b6115bd84848484611843565b610ce35760405162461bcd60e51b815260040161059790611f4b565b6060816115fd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611627578061161181612130565b91506116209050600a8361207f565b9150611601565b60008167ffffffffffffffff811115611642576116426121b7565b6040519080825280601f01601f19166020018201604052801561166c576020820181803683370190505b5090505b841561113b576116816001836120b2565b915061168e600a8661214b565b611699906030612067565b60f81b8183815181106116ae576116ae6121a1565b60200101906001600160f81b031916908160001a9053506116d0600a8661207f565b9450611670565b600081815260018301602052604081205480156117c05760006116fb6001836120b2565b855490915060009061170f906001906120b2565b905081811461177457600086600001828154811061172f5761172f6121a1565b9060005260206000200154905080876000018481548110611752576117526121a1565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806117855761178561218b565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061048a565b600091505061048a565b60008260000182815481106117e1576117e16121a1565b9060005260206000200154905092915050565b600081815260018301602052604081205461183b5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561048a565b50600061048a565b60006001600160a01b0384163b1561194557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611887903390899088908890600401611e63565b602060405180830381600087803b1580156118a157600080fd5b505af19250505080156118d1575060408051601f3d908101601f191682019092526118ce91810190611c48565b60015b61192b573d8080156118ff576040519150601f19603f3d011682016040523d82523d6000602084013e611904565b606091505b5080516119235760405162461bcd60e51b815260040161059790611f4b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061113b565b506001949350505050565b82805461195c906120f5565b90600052602060002090601f01602090048101928261197e57600085556119c4565b82601f106119975782800160ff198235161785556119c4565b828001600101855582156119c4579182015b828111156119c45782358255916020019190600101906119a9565b506108fd9291505b808211156108fd57600081556001016119cc565b6000602082840312156119f257600080fd5b81356112fd816121cd565b60008060408385031215611a1057600080fd5b8235611a1b816121cd565b946020939093013593505050565b60008060408385031215611a3c57600080fd5b8235611a47816121cd565b91506020830135611a57816121cd565b809150509250929050565b600080600060608486031215611a7757600080fd5b8335611a82816121cd565b92506020840135611a92816121cd565b929592945050506040919091013590565b60008060008060808587031215611ab957600080fd5b8435611ac4816121cd565b93506020850135611ad4816121cd565b925060408501359150606085013567ffffffffffffffff80821115611af857600080fd5b818701915087601f830112611b0c57600080fd5b813581811115611b1e57611b1e6121b7565b604051601f8201601f19908116603f01168101908382118183101715611b4657611b466121b7565b816040528281528a6020848701011115611b5f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611b9657600080fd5b8235611ba1816121cd565b915060208301358015158114611a5757600080fd5b60008060208385031215611bc957600080fd5b823567ffffffffffffffff80821115611be157600080fd5b818501915085601f830112611bf557600080fd5b813581811115611c0457600080fd5b8660208260051b8501011115611c1957600080fd5b60209290920196919550909350505050565b600060208284031215611c3d57600080fd5b81356112fd816121e2565b600060208284031215611c5a57600080fd5b81516112fd816121e2565b60008060208385031215611c7857600080fd5b823567ffffffffffffffff80821115611c9057600080fd5b818501915085601f830112611ca457600080fd5b813581811115611cb357600080fd5b866020828501011115611c1957600080fd5b600060208284031215611cd757600080fd5b5035919050565b60008060408385031215611cf157600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015611d395781516001600160a01b031687529582019590820190600101611d14565b509495945050505050565b600081518084526020808501945080840160005b83811015611d3957815187529582019590820190600101611d58565b60008151808452611d8c8160208601602086016120c9565b601f01601f19169290920160200192915050565b60008151611db28185602086016120c9565b9290920192915050565b600080845481600182811c915080831680611dd857607f831692505b6020808410821415611df857634e487b7160e01b86526022600452602486fd5b818015611e0c5760018114611e1d57611e4a565b60ff19861689528489019650611e4a565b60008b81526020902060005b86811015611e425781548b820152908501908301611e29565b505084890196505b505050505050611e5a8185611da0565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e9690830184611d74565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611ee15783516001600160a01b031683529284019291840191600101611ebc565b50909695505050505050565b6020815260006112fd6020830184611d00565b604081526000611f136040830185611d00565b8281036020840152611e5a8185611d44565b6020815260006112fd6020830184611d44565b6020815260006112fd6020830184611d74565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b6000821982111561207a5761207a61215f565b500190565b60008261208e5761208e612175565b500490565b60008160001904831182151516156120ad576120ad61215f565b500290565b6000828210156120c4576120c461215f565b500390565b60005b838110156120e45781810151838201526020016120cc565b83811115610ce35750506000910152565b600181811c9082168061210957607f821691505b6020821081141561212a57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156121445761214461215f565b5060010190565b60008261215a5761215a612175565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461084f57600080fd5b6001600160e01b03198116811461084f57600080fdfea2646970667358221220afa1037edaab31dd41510781aa35cc524d3f32c33378c131762fd524999b09c964736f6c63430008070033
Loading...
Loading
Loading...
Loading
[ 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.