Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
60 NFT8008
Holders
46
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 NFT8008Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Nft8008
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)
pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract Nft8008 is ERC721Enumerable, ReentrancyGuard, Ownable { using SafeERC20 for IERC20; // Note: The process of "approving", "transfering" etc should all be done on the base contract address internal constant Clock8008 = 0xf2470e641a551D7Dbdf4B8D064Cf208edfB06586; function mintWithClock8008(uint256 tokenId) public { require( ERC721Enumerable(Clock8008).ownerOf(tokenId) == msg.sender, "Not owner of this clock!" ); _safeMint(msg.sender, tokenId); } function mint(uint256 tokenId) public payable { require(msg.value >= 1e17, "Timekeeping aint free!"); require(tokenId > 0 && tokenId < 8001, "Token ID invalid"); _safeMint(_msgSender(), tokenId); } function ownerClaim(uint256 tokenId) public nonReentrant onlyOwner { require(tokenId > 8000 && tokenId < 8009, "Token ID invalid"); _safeMint(owner(), tokenId); } function tokenURI(uint256 tokenId) public pure override returns (string memory) { string[3] memory parts; parts[ 0 ] = '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="420x" height="420px" viewBox="0 0 100 100"><style type="text/css">@font-face{font-family:"Share Tech Mono";font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/sharetechmono/v10/J7aHnp1uDWRBEqV98dVQztYldFcLowEF.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}text{filter:url(#filter);fill:#fff;font-family:"Share Tech Mono",sans-serif;font-size:20px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{background:#000}.info{color:#fff;font:1em/1 sans-serif;text-align:center}.info a{color:#fff}svg{width:420px;height:420px;display:block;position:relative;overflow:hidden;background:#000}</style> <defs> <filter id="filter"> <feFlood flood-color="black" result="black"/> <feFlood flood-color="red" result="flood1"/> <feFlood flood-color="limegreen" result="flood2"/> <feOffset in="SourceGraphic" dx="3" dy="0" result="off1a"/> <feOffset in="SourceGraphic" dx="2" dy="0" result="off1b"/> <feOffset in="SourceGraphic" dx="-3" dy="0" result="off2a"/> <feOffset in="SourceGraphic" dx="-2" dy="0" result="off2b"/> <feComposite in="flood1" in2="off1a" operator="in" result="comp1"/> <feComposite in="flood2" in2="off2a" operator="in" result="comp2"/> <feMerge x="0" width="100%" result="merge1"> <feMergeNode in="black"/> <feMergeNode in="comp1"/> <feMergeNode in="off1b"/> <animate attributeName="y" id="y" dur="4s" values="104px; 104px; 30px; 105px; 30px; 2px; 2px; 50px; 40px; 105px; 105px; 20px; 60px; 40px; 104px; 40px; 70px; 10px; 30px; 104px; 102px" keyTimes="0; 0.362; 0.368; 0.421; 0.440; 0.477; 0.518; 0.564; 0.593; 0.613; 0.644; 0.693; 0.721; 0.736; 0.772; 0.818; 0.844; 0.894; 0.925; 0.939; 1" repeatCount="indefinite"/> <animate attributeName="height" id="h" dur="4s" values="10px; 0px; 10px; 30px; 50px; 0px; 10px; 0px; 0px; 0px; 10px; 50px; 40px; 0px; 0px; 0px; 40px; 30px; 10px; 0px; 50px" keyTimes="0; 0.362; 0.368; 0.421; 0.440; 0.477; 0.518; 0.564; 0.593; 0.613; 0.644; 0.693; 0.721; 0.736; 0.772; 0.818; 0.844; 0.894; 0.925; 0.939; 1" repeatCount="indefinite"/> </feMerge> <feMerge x="0" width="100%" y="60px" height="65px" result="merge2"> <feMergeNode in="black"/> <feMergeNode in="comp2"/> <feMergeNode in="off2b"/> <animate attributeName="y" id="y" dur="4s" values="103px; 104px; 69px; 53px; 42px; 104px; 78px; 89px; 96px; 100px; 67px; 50px; 96px; 66px; 88px; 42px; 13px; 100px; 100px; 104px;" keyTimes="0; 0.055; 0.100; 0.125; 0.159; 0.182; 0.202; 0.236; 0.268; 0.326; 0.357; 0.400; 0.408; 0.461; 0.493; 0.513; 0.548; 0.577; 0.613; 1" repeatCount="indefinite"/> <animate attributeName="height" id="h" dur="4s" values="0px; 0px; 0px; 16px; 16px; 12px; 12px; 0px; 0px; 5px; 10px; 22px; 33px; 11px; 0px; 0px; 10px" keyTimes="0; 0.055; 0.100; 0.125; 0.159; 0.182; 0.202; 0.236; 0.268; 0.326; 0.357; 0.400; 0.408; 0.461; 0.493; 0.513; 1" repeatCount="indefinite"/> </feMerge> <feMerge> <feMergeNode in="SourceGraphic"/> <feMergeNode in="merge1"/> <feMergeNode in="merge2"/> </feMerge> </filter> </defs> <g> <text x="50%" y="20" dominant-baseline="middle" text-anchor="middle"> NFT8008 </text> <text style="font-size:32px" x="50%" y="50" dominant-baseline="middle" text-anchor="middle"> #'; parts[1] = Utils.toString(tokenId); parts[2] = "</text></g></svg>"; string memory output = string( abi.encodePacked(parts[0], parts[1], parts[2]) ); string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "NFT8008 Passport #', Utils.toString(tokenId), '", "description": "NFT8008 is your passport to the 8008 digital collectible world. It is the all-in-one pass for the ever expanding 8008 meta-universe. Buy once, valid forever!", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}' ) ) ) ); output = string( abi.encodePacked("data:application/json;base64,", json) ); return output; } function withdrawETH(address recipient) public onlyOwner { recipient.call{value: address(this).balance}(""); } function withdrawERC20(address token, address recipient) public onlyOwner { IERC20(token).safeTransfer( recipient, IERC20(token).balanceOf(address(this)) ); } constructor() ERC721("Nft8008", "NFT8008") Ownable() {} } library Utils { function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT license // 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); } } /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF) ) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); 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); } /** * @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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// 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 v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // 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/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 v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintWithClock8008","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerClaim","outputs":[],"stateMutability":"nonpayable","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":"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":"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600781526020016609ccce8706060760cb1b8152506040518060400160405280600781526020016609c8ca8706060760cb1b81525081600090805190602001906200006a929190620000eb565b50805162000080906001906020840190620000eb565b50506001600a5550620000933362000099565b620001ce565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000f99062000191565b90600052602060002090601f0160209004810192826200011d576000855562000168565b82601f106200013857805160ff191683800117855562000168565b8280016001018555821562000168579182015b82811115620001685782518255916020019190600101906200014b565b50620001769291506200017a565b5090565b5b808211156200017657600081556001016200017b565b600181811c90821680620001a657607f821691505b60208210811415620001c857634e487b7160e01b600052602260045260246000fd5b50919050565b6132fa80620001de6000396000f3fe60806040526004361061014b5760003560e01c806370a08231116100b6578063a22cb4651161006f578063a22cb4651461039b578063b88d4fde146103bb578063c87b56dd146103db578063cc3cb7e2146103fb578063e985e9c51461041b578063f2fde38b1461046457600080fd5b806370a0823114610300578063715018a6146103205780638da5cb5b146103355780639456fbcc1461035357806395d89b4114610373578063a0712d681461038857600080fd5b80632f745c59116101085780632f745c591461024057806342842e0e14610260578063434f48c4146102805780634f6ccce7146102a05780636352211e146102c0578063690d8320146102e057600080fd5b806301ffc9a71461015057806306fdde0314610185578063081812fc146101a7578063095ea7b3146101df57806318160ddd1461020157806323b872dd14610220575b600080fd5b34801561015c57600080fd5b5061017061016b36600461200d565b610484565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a6104af565b60405161017c91906122fa565b3480156101b357600080fd5b506101c76101c2366004612047565b610541565b6040516001600160a01b03909116815260200161017c565b3480156101eb57600080fd5b506101ff6101fa366004611fc4565b6105db565b005b34801561020d57600080fd5b506008545b60405190815260200161017c565b34801561022c57600080fd5b506101ff61023b366004611e75565b6106f1565b34801561024c57600080fd5b5061021261025b366004611fc4565b610722565b34801561026c57600080fd5b506101ff61027b366004611e75565b6107b8565b34801561028c57600080fd5b506101ff61029b366004612047565b6107d3565b3480156102ac57600080fd5b506102126102bb366004612047565b6108c9565b3480156102cc57600080fd5b506101c76102db366004612047565b61095c565b3480156102ec57600080fd5b506101ff6102fb366004611e02565b6109d3565b34801561030c57600080fd5b5061021261031b366004611e02565b610a51565b34801561032c57600080fd5b506101ff610ad8565b34801561034157600080fd5b50600b546001600160a01b03166101c7565b34801561035f57600080fd5b506101ff61036e366004611e3c565b610b0e565b34801561037f57600080fd5b5061019a610bca565b6101ff610396366004612047565b610bd9565b3480156103a757600080fd5b506101ff6103b6366004611f96565b610c86565b3480156103c757600080fd5b506101ff6103d6366004611eb6565b610c91565b3480156103e757600080fd5b5061019a6103f6366004612047565b610cc3565b34801561040757600080fd5b506101ff610416366004612047565b610db8565b34801561042757600080fd5b50610170610436366004611e3c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561047057600080fd5b506101ff61047f366004611e02565b610e9d565b60006001600160e01b0319821663780e9d6360e01b14806104a957506104a982610f35565b92915050565b6060600080546104be90612473565b80601f01602080910402602001604051908101604052809291908181526020018280546104ea90612473565b80156105375780601f1061050c57610100808354040283529160200191610537565b820191906000526020600020905b81548152906001019060200180831161051a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105bf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105e68261095c565b9050806001600160a01b0316836001600160a01b031614156106545760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105b6565b336001600160a01b038216148061067057506106708133610436565b6106e25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105b6565b6106ec8383610f85565b505050565b6106fb3382610ff3565b6107175760405162461bcd60e51b81526004016105b690612394565b6106ec8383836110ea565b600061072d83610a51565b821061078f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105b6565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6106ec83838360405180602001604052806000815250610c91565b6002600a5414156108265760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b6565b6002600a55600b546001600160a01b031633146108555760405162461bcd60e51b81526004016105b69061235f565b611f40811180156108675750611f4981105b6108a65760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881251081a5b9d985b1a5960821b60448201526064016105b6565b6108c16108bb600b546001600160a01b031690565b82611295565b506001600a55565b60006108d460085490565b82106109375760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105b6565b6008828154811061094a5761094a61251f565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104a95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105b6565b600b546001600160a01b031633146109fd5760405162461bcd60e51b81526004016105b69061235f565b6040516001600160a01b038216904790600081818185875af1925050503d8060008114610a46576040519150601f19603f3d011682016040523d82523d6000602084013e610a4b565b606091505b50505050565b60006001600160a01b038216610abc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105b6565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610b025760405162461bcd60e51b81526004016105b69061235f565b610b0c60006112af565b565b600b546001600160a01b03163314610b385760405162461bcd60e51b81526004016105b69061235f565b6040516370a0823160e01b8152306004820152610bc69082906001600160a01b038516906370a082319060240160206040518083038186803b158015610b7d57600080fd5b505afa158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190612060565b6001600160a01b0385169190611301565b5050565b6060600180546104be90612473565b67016345785d8a0000341015610c2a5760405162461bcd60e51b815260206004820152601660248201527554696d656b656570696e672061696e7420667265652160501b60448201526064016105b6565b600081118015610c3b5750611f4181105b610c7a5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881251081a5b9d985b1a5960821b60448201526064016105b6565b610c83336108bb565b50565b610bc6338383611353565b610c9b3383610ff3565b610cb75760405162461bcd60e51b81526004016105b690612394565b610a4b84848484611422565b6060610ccd611ddb565b60405180610d200160405280610d0081526020016125c5610d0091398152610cf483611455565b602082810191825260408051808201825260118152701e17ba32bc3a1f1e17b39f1e17b9bb339f60791b81840152818501819052845193519151600094610d3f9490939291016120c1565b60405160208183030381529060405290506000610d8c610d5e86611455565b610d6784611553565b604051602001610d78929190612149565b604051602081830303815290604052611553565b905080604051602001610d9f9190612104565b60408051601f1981840301815291905295945050505050565b6040516331a9108f60e11b815260048101829052339073f2470e641a551d7dbdf4b8d064cf208edfb0658690636352211e9060240160206040518083038186803b158015610e0557600080fd5b505afa158015610e19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3d9190611e1f565b6001600160a01b031614610e935760405162461bcd60e51b815260206004820152601860248201527f4e6f74206f776e6572206f66207468697320636c6f636b21000000000000000060448201526064016105b6565b610c833382611295565b600b546001600160a01b03163314610ec75760405162461bcd60e51b81526004016105b69061235f565b6001600160a01b038116610f2c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b6565b610c83816112af565b60006001600160e01b031982166380ac58cd60e01b1480610f6657506001600160e01b03198216635b5e139f60e01b145b806104a957506301ffc9a760e01b6001600160e01b03198316146104a9565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610fba8261095c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661106c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105b6565b60006110778361095c565b9050806001600160a01b0316846001600160a01b031614806110b25750836001600160a01b03166110a784610541565b6001600160a01b0316145b806110e257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166110fd8261095c565b6001600160a01b0316146111655760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105b6565b6001600160a01b0382166111c75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105b6565b6111d28383836116b9565b6111dd600082610f85565b6001600160a01b0383166000908152600360205260408120805460019290611206908490612430565b90915550506001600160a01b03821660009081526003602052604081208054600192906112349084906123e5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610bc6828260405180602001604052806000815250611771565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106ec9084906117a4565b816001600160a01b0316836001600160a01b031614156113b55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105b6565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61142d8484846110ea565b61143984848484611876565b610a4b5760405162461bcd60e51b81526004016105b69061230d565b6060816114795750506040805180820190915260018152600360fc1b602082015290565b8160005b81156114a3578061148d816124ae565b915061149c9050600a836123fd565b915061147d565b60008167ffffffffffffffff8111156114be576114be612535565b6040519080825280601f01601f1916602001820160405280156114e8576020820181803683370190505b5090505b84156110e2576114fd600183612430565b915061150a600a866124c9565b6115159060306123e5565b60f81b81838151811061152a5761152a61251f565b60200101906001600160f81b031916908160001a90535061154c600a866123fd565b94506114ec565b805160609080611573575050604080516020810190915260008152919050565b600060036115828360026123e5565b61158c91906123fd565b611597906004612411565b905060006115a68260206123e5565b67ffffffffffffffff8111156115be576115be612535565b6040519080825280601f01601f1916602001820160405280156115e8576020820181803683370190505b5090506000604051806060016040528060408152602001612585604091399050600181016020830160005b86811015611674576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611613565b50600386066001811461168e576002811461169f576116ab565b613d3d60f01b6001198301526116ab565b603d60f81b6000198301525b505050918152949350505050565b6001600160a01b0383166117145761170f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611737565b816001600160a01b0316836001600160a01b031614611737576117378382611983565b6001600160a01b03821661174e576106ec81611a20565b826001600160a01b0316826001600160a01b0316146106ec576106ec8282611acf565b61177b8383611b13565b6117886000848484611876565b6106ec5760405162461bcd60e51b81526004016105b69061230d565b60006117f9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c619092919063ffffffff16565b8051909150156106ec57808060200190518101906118179190611ff0565b6106ec5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105b6565b60006001600160a01b0384163b1561197857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118ba9033908990889088906004016122bd565b602060405180830381600087803b1580156118d457600080fd5b505af1925050508015611904575060408051601f3d908101601f191682019092526119019181019061202a565b60015b61195e573d808015611932576040519150601f19603f3d011682016040523d82523d6000602084013e611937565b606091505b5080516119565760405162461bcd60e51b81526004016105b69061230d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110e2565b506001949350505050565b6000600161199084610a51565b61199a9190612430565b6000838152600760205260409020549091508082146119ed576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611a3290600190612430565b60008381526009602052604081205460088054939450909284908110611a5a57611a5a61251f565b906000526020600020015490508060088381548110611a7b57611a7b61251f565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611ab357611ab3612509565b6001900381819060005260206000200160009055905550505050565b6000611ada83610a51565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611b695760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105b6565b6000818152600260205260409020546001600160a01b031615611bce5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105b6565b611bda600083836116b9565b6001600160a01b0382166000908152600360205260408120805460019290611c039084906123e5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060611c708484600085611c7a565b90505b9392505050565b606082471015611cdb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105b6565b843b611d295760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105b6565b600080866001600160a01b03168587604051611d4591906120a5565b60006040518083038185875af1925050503d8060008114611d82576040519150601f19603f3d011682016040523d82523d6000602084013e611d87565b606091505b5091509150611d97828286611da2565b979650505050505050565b60608315611db1575081611c73565b825115611dc15782518084602001fd5b8160405162461bcd60e51b81526004016105b691906122fa565b60405180606001604052806003905b6060815260200190600190039081611dea5790505090565b600060208284031215611e1457600080fd5b8135611c738161254b565b600060208284031215611e3157600080fd5b8151611c738161254b565b60008060408385031215611e4f57600080fd5b8235611e5a8161254b565b91506020830135611e6a8161254b565b809150509250929050565b600080600060608486031215611e8a57600080fd5b8335611e958161254b565b92506020840135611ea58161254b565b929592945050506040919091013590565b60008060008060808587031215611ecc57600080fd5b8435611ed78161254b565b93506020850135611ee78161254b565b925060408501359150606085013567ffffffffffffffff80821115611f0b57600080fd5b818701915087601f830112611f1f57600080fd5b813581811115611f3157611f31612535565b604051601f8201601f19908116603f01168101908382118183101715611f5957611f59612535565b816040528281528a6020848701011115611f7257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611fa957600080fd5b8235611fb48161254b565b91506020830135611e6a81612560565b60008060408385031215611fd757600080fd5b8235611fe28161254b565b946020939093013593505050565b60006020828403121561200257600080fd5b8151611c7381612560565b60006020828403121561201f57600080fd5b8135611c738161256e565b60006020828403121561203c57600080fd5b8151611c738161256e565b60006020828403121561205957600080fd5b5035919050565b60006020828403121561207257600080fd5b5051919050565b60008151808452612091816020860160208601612447565b601f01601f19169290920160200192915050565b600082516120b7818460208701612447565b9190910192915050565b600084516120d3818460208901612447565b8451908301906120e7818360208901612447565b84519101906120fa818360208801612447565b0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161213c81601d850160208701612447565b91909101601d0192915050565b7f7b226e616d65223a20224e4654383030382050617373706f727420230000000081526000835161218181601c850160208801612447565b7f222c20226465736372697074696f6e223a20224e46543830303820697320796f601c918401918201527f75722070617373706f727420746f207468652038303038206469676974616c20603c8201527f636f6c6c65637469626c6520776f726c642e2049742069732074686520616c6c605c8201527f2d696e2d6f6e65207061737320666f7220746865206576657220657870616e64607c8201527f696e672038303038206d6574612d756e6976657273652e20427579206f6e6365609c8201527f2c2076616c696420666f726576657221222c2022696d616765223a202264617460bc8201527f613a696d6167652f7376672b786d6c3b6261736536342c00000000000000000060dc82015283516122a28160f3840160208801612447565b61227d60f01b60f3929091019182015260f501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122f090830184612079565b9695505050505050565b602081526000611c736020830184612079565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156123f8576123f86124dd565b500190565b60008261240c5761240c6124f3565b500490565b600081600019048311821515161561242b5761242b6124dd565b500290565b600082821015612442576124426124dd565b500390565b60005b8381101561246257818101518382015260200161244a565b83811115610a4b5750506000910152565b600181811c9082168061248757607f821691505b602082108114156124a857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124c2576124c26124dd565b5060010190565b6000826124d8576124d86124f3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c8357600080fd5b8015158114610c8357600080fd5b6001600160e01b031981168114610c8357600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076657273696f6e3d22312e312220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222077696474683d223432307822206865696768743d223432307078222076696577426f783d223020302031303020313030223e3c7374796c6520747970653d22746578742f637373223e40666f6e742d666163657b666f6e742d66616d696c793a2253686172652054656368204d6f6e6f223b666f6e742d7374796c653a6e6f726d616c3b666f6e742d7765696768743a3430303b7372633a75726c2868747470733a2f2f666f6e74732e677374617469632e636f6d2f732f7368617265746563686d6f6e6f2f7631302f4a3761486e7031754457524245715639386456517a74596c6446634c6f7745462e776f6666322920666f726d61742822776f66663222293b756e69636f64652d72616e67653a552b303030302d303046462c552b303133312c552b303135322d303135332c552b303242422d303242432c552b303243362c552b303244412c552b303244432c552b323030302d323036462c552b323037342c552b323041432c552b323132322c552b323139312c552b323139332c552b323231322c552b323231352c552b464546462c552b464646447d746578747b66696c7465723a75726c282366696c746572293b66696c6c3a236666663b666f6e742d66616d696c793a2253686172652054656368204d6f6e6f222c73616e732d73657269663b666f6e742d73697a653a323070783b2d7765626b69742d666f6e742d736d6f6f7468696e673a616e7469616c69617365643b2d6d6f7a2d6f73782d666f6e742d736d6f6f7468696e673a677261797363616c657d626f64797b6261636b67726f756e643a233030307d2e696e666f7b636f6c6f723a236666663b666f6e743a31656d2f312073616e732d73657269663b746578742d616c69676e3a63656e7465727d2e696e666f20617b636f6c6f723a236666667d7376677b77696474683a34323070783b6865696768743a34323070783b646973706c61793a626c6f636b3b706f736974696f6e3a72656c61746976653b6f766572666c6f773a68696464656e3b6261636b67726f756e643a233030307d3c2f7374796c653e203c646566733e203c66696c7465722069643d2266696c746572223e203c6665466c6f6f6420666c6f6f642d636f6c6f723d22626c61636b2220726573756c743d22626c61636b222f3e203c6665466c6f6f6420666c6f6f642d636f6c6f723d227265642220726573756c743d22666c6f6f6431222f3e203c6665466c6f6f6420666c6f6f642d636f6c6f723d226c696d65677265656e2220726573756c743d22666c6f6f6432222f3e203c66654f666673657420696e3d22536f7572636547726170686963222064783d2233222064793d22302220726573756c743d226f66663161222f3e203c66654f666673657420696e3d22536f7572636547726170686963222064783d2232222064793d22302220726573756c743d226f66663162222f3e203c66654f666673657420696e3d22536f7572636547726170686963222064783d222d33222064793d22302220726573756c743d226f66663261222f3e203c66654f666673657420696e3d22536f7572636547726170686963222064783d222d32222064793d22302220726573756c743d226f66663262222f3e203c6665436f6d706f7369746520696e3d22666c6f6f64312220696e323d226f6666316122206f70657261746f723d22696e2220726573756c743d22636f6d7031222f3e203c6665436f6d706f7369746520696e3d22666c6f6f64322220696e323d226f6666326122206f70657261746f723d22696e2220726573756c743d22636f6d7032222f3e203c66654d6572676520783d2230222077696474683d22313030252220726573756c743d226d6572676531223e203c66654d657267654e6f646520696e3d22626c61636b222f3e203c66654d657267654e6f646520696e3d22636f6d7031222f3e203c66654d657267654e6f646520696e3d226f66663162222f3e203c616e696d617465206174747269627574654e616d653d2279222069643d227922206475723d223473222076616c7565733d2231303470783b2031303470783b20333070783b2031303570783b20333070783b203270783b203270783b20353070783b20343070783b2031303570783b2031303570783b20323070783b20363070783b20343070783b2031303470783b20343070783b20373070783b20313070783b20333070783b2031303470783b20313032707822206b657954696d65733d22303b20302e3336323b20302e3336383b20302e3432313b20302e3434303b20302e3437373b20302e3531383b20302e3536343b20302e3539333b20302e3631333b20302e3634343b20302e3639333b20302e3732313b20302e3733363b20302e3737323b20302e3831383b20302e3834343b20302e3839343b20302e3932353b20302e3933393b20312220726570656174436f756e743d22696e646566696e697465222f3e203c616e696d617465206174747269627574654e616d653d22686569676874222069643d226822206475723d223473222076616c7565733d22313070783b203070783b20313070783b20333070783b20353070783b203070783b20313070783b203070783b203070783b203070783b20313070783b20353070783b20343070783b203070783b203070783b203070783b20343070783b20333070783b20313070783b203070783b203530707822206b657954696d65733d22303b20302e3336323b20302e3336383b20302e3432313b20302e3434303b20302e3437373b20302e3531383b20302e3536343b20302e3539333b20302e3631333b20302e3634343b20302e3639333b20302e3732313b20302e3733363b20302e3737323b20302e3831383b20302e3834343b20302e3839343b20302e3932353b20302e3933393b20312220726570656174436f756e743d22696e646566696e697465222f3e203c2f66654d657267653e203c66654d6572676520783d2230222077696474683d22313030252220793d223630707822206865696768743d22363570782220726573756c743d226d6572676532223e203c66654d657267654e6f646520696e3d22626c61636b222f3e203c66654d657267654e6f646520696e3d22636f6d7032222f3e203c66654d657267654e6f646520696e3d226f66663262222f3e203c616e696d617465206174747269627574654e616d653d2279222069643d227922206475723d223473222076616c7565733d2231303370783b2031303470783b20363970783b20353370783b20343270783b2031303470783b20373870783b20383970783b20393670783b2031303070783b20363770783b20353070783b20393670783b20363670783b20383870783b20343270783b20313370783b2031303070783b2031303070783b2031303470783b22206b657954696d65733d22303b20302e3035353b20302e3130303b20302e3132353b20302e3135393b20302e3138323b20302e3230323b20302e3233363b20302e3236383b20302e3332363b20302e3335373b20302e3430303b20302e3430383b20302e3436313b20302e3439333b20302e3531333b20302e3534383b20302e3537373b20302e3631333b20312220726570656174436f756e743d22696e646566696e697465222f3e203c616e696d617465206174747269627574654e616d653d22686569676874222069643d226822206475723d223473222076616c7565733d223070783b203070783b203070783b20313670783b20313670783b20313270783b20313270783b203070783b203070783b203570783b20313070783b20323270783b20333370783b20313170783b203070783b203070783b203130707822206b657954696d65733d22303b20302e3035353b20302e3130303b20302e3132353b20302e3135393b20302e3138323b20302e3230323b20302e3233363b20302e3236383b20302e3332363b20302e3335373b20302e3430303b20302e3430383b20302e3436313b20302e3439333b20302e3531333b20312220726570656174436f756e743d22696e646566696e697465222f3e203c2f66654d657267653e203c66654d657267653e203c66654d657267654e6f646520696e3d22536f7572636547726170686963222f3e203c66654d657267654e6f646520696e3d226d6572676531222f3e203c66654d657267654e6f646520696e3d226d6572676532222f3e203c2f66654d657267653e203c2f66696c7465723e203c2f646566733e203c673e203c7465787420783d223530252220793d2232302220646f6d696e616e742d626173656c696e653d226d6964646c652220746578742d616e63686f723d226d6964646c65223e204e465438303038203c2f746578743e203c74657874207374796c653d22666f6e742d73697a653a333270782220783d223530252220793d2235302220646f6d696e616e742d626173656c696e653d226d6964646c652220746578742d616e63686f723d226d6964646c65223e2023a264697066735822122038aba4c1261fdd508d707a06c878206698424ef62676a40ba9487a43cd2db44364736f6c63430008070033
Deployed Bytecode
0x60806040526004361061014b5760003560e01c806370a08231116100b6578063a22cb4651161006f578063a22cb4651461039b578063b88d4fde146103bb578063c87b56dd146103db578063cc3cb7e2146103fb578063e985e9c51461041b578063f2fde38b1461046457600080fd5b806370a0823114610300578063715018a6146103205780638da5cb5b146103355780639456fbcc1461035357806395d89b4114610373578063a0712d681461038857600080fd5b80632f745c59116101085780632f745c591461024057806342842e0e14610260578063434f48c4146102805780634f6ccce7146102a05780636352211e146102c0578063690d8320146102e057600080fd5b806301ffc9a71461015057806306fdde0314610185578063081812fc146101a7578063095ea7b3146101df57806318160ddd1461020157806323b872dd14610220575b600080fd5b34801561015c57600080fd5b5061017061016b36600461200d565b610484565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a6104af565b60405161017c91906122fa565b3480156101b357600080fd5b506101c76101c2366004612047565b610541565b6040516001600160a01b03909116815260200161017c565b3480156101eb57600080fd5b506101ff6101fa366004611fc4565b6105db565b005b34801561020d57600080fd5b506008545b60405190815260200161017c565b34801561022c57600080fd5b506101ff61023b366004611e75565b6106f1565b34801561024c57600080fd5b5061021261025b366004611fc4565b610722565b34801561026c57600080fd5b506101ff61027b366004611e75565b6107b8565b34801561028c57600080fd5b506101ff61029b366004612047565b6107d3565b3480156102ac57600080fd5b506102126102bb366004612047565b6108c9565b3480156102cc57600080fd5b506101c76102db366004612047565b61095c565b3480156102ec57600080fd5b506101ff6102fb366004611e02565b6109d3565b34801561030c57600080fd5b5061021261031b366004611e02565b610a51565b34801561032c57600080fd5b506101ff610ad8565b34801561034157600080fd5b50600b546001600160a01b03166101c7565b34801561035f57600080fd5b506101ff61036e366004611e3c565b610b0e565b34801561037f57600080fd5b5061019a610bca565b6101ff610396366004612047565b610bd9565b3480156103a757600080fd5b506101ff6103b6366004611f96565b610c86565b3480156103c757600080fd5b506101ff6103d6366004611eb6565b610c91565b3480156103e757600080fd5b5061019a6103f6366004612047565b610cc3565b34801561040757600080fd5b506101ff610416366004612047565b610db8565b34801561042757600080fd5b50610170610436366004611e3c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561047057600080fd5b506101ff61047f366004611e02565b610e9d565b60006001600160e01b0319821663780e9d6360e01b14806104a957506104a982610f35565b92915050565b6060600080546104be90612473565b80601f01602080910402602001604051908101604052809291908181526020018280546104ea90612473565b80156105375780601f1061050c57610100808354040283529160200191610537565b820191906000526020600020905b81548152906001019060200180831161051a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105bf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105e68261095c565b9050806001600160a01b0316836001600160a01b031614156106545760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105b6565b336001600160a01b038216148061067057506106708133610436565b6106e25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105b6565b6106ec8383610f85565b505050565b6106fb3382610ff3565b6107175760405162461bcd60e51b81526004016105b690612394565b6106ec8383836110ea565b600061072d83610a51565b821061078f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105b6565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6106ec83838360405180602001604052806000815250610c91565b6002600a5414156108265760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105b6565b6002600a55600b546001600160a01b031633146108555760405162461bcd60e51b81526004016105b69061235f565b611f40811180156108675750611f4981105b6108a65760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881251081a5b9d985b1a5960821b60448201526064016105b6565b6108c16108bb600b546001600160a01b031690565b82611295565b506001600a55565b60006108d460085490565b82106109375760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105b6565b6008828154811061094a5761094a61251f565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104a95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105b6565b600b546001600160a01b031633146109fd5760405162461bcd60e51b81526004016105b69061235f565b6040516001600160a01b038216904790600081818185875af1925050503d8060008114610a46576040519150601f19603f3d011682016040523d82523d6000602084013e610a4b565b606091505b50505050565b60006001600160a01b038216610abc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105b6565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610b025760405162461bcd60e51b81526004016105b69061235f565b610b0c60006112af565b565b600b546001600160a01b03163314610b385760405162461bcd60e51b81526004016105b69061235f565b6040516370a0823160e01b8152306004820152610bc69082906001600160a01b038516906370a082319060240160206040518083038186803b158015610b7d57600080fd5b505afa158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190612060565b6001600160a01b0385169190611301565b5050565b6060600180546104be90612473565b67016345785d8a0000341015610c2a5760405162461bcd60e51b815260206004820152601660248201527554696d656b656570696e672061696e7420667265652160501b60448201526064016105b6565b600081118015610c3b5750611f4181105b610c7a5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881251081a5b9d985b1a5960821b60448201526064016105b6565b610c83336108bb565b50565b610bc6338383611353565b610c9b3383610ff3565b610cb75760405162461bcd60e51b81526004016105b690612394565b610a4b84848484611422565b6060610ccd611ddb565b60405180610d200160405280610d0081526020016125c5610d0091398152610cf483611455565b602082810191825260408051808201825260118152701e17ba32bc3a1f1e17b39f1e17b9bb339f60791b81840152818501819052845193519151600094610d3f9490939291016120c1565b60405160208183030381529060405290506000610d8c610d5e86611455565b610d6784611553565b604051602001610d78929190612149565b604051602081830303815290604052611553565b905080604051602001610d9f9190612104565b60408051601f1981840301815291905295945050505050565b6040516331a9108f60e11b815260048101829052339073f2470e641a551d7dbdf4b8d064cf208edfb0658690636352211e9060240160206040518083038186803b158015610e0557600080fd5b505afa158015610e19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3d9190611e1f565b6001600160a01b031614610e935760405162461bcd60e51b815260206004820152601860248201527f4e6f74206f776e6572206f66207468697320636c6f636b21000000000000000060448201526064016105b6565b610c833382611295565b600b546001600160a01b03163314610ec75760405162461bcd60e51b81526004016105b69061235f565b6001600160a01b038116610f2c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b6565b610c83816112af565b60006001600160e01b031982166380ac58cd60e01b1480610f6657506001600160e01b03198216635b5e139f60e01b145b806104a957506301ffc9a760e01b6001600160e01b03198316146104a9565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610fba8261095c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661106c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105b6565b60006110778361095c565b9050806001600160a01b0316846001600160a01b031614806110b25750836001600160a01b03166110a784610541565b6001600160a01b0316145b806110e257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166110fd8261095c565b6001600160a01b0316146111655760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105b6565b6001600160a01b0382166111c75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105b6565b6111d28383836116b9565b6111dd600082610f85565b6001600160a01b0383166000908152600360205260408120805460019290611206908490612430565b90915550506001600160a01b03821660009081526003602052604081208054600192906112349084906123e5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610bc6828260405180602001604052806000815250611771565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106ec9084906117a4565b816001600160a01b0316836001600160a01b031614156113b55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105b6565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61142d8484846110ea565b61143984848484611876565b610a4b5760405162461bcd60e51b81526004016105b69061230d565b6060816114795750506040805180820190915260018152600360fc1b602082015290565b8160005b81156114a3578061148d816124ae565b915061149c9050600a836123fd565b915061147d565b60008167ffffffffffffffff8111156114be576114be612535565b6040519080825280601f01601f1916602001820160405280156114e8576020820181803683370190505b5090505b84156110e2576114fd600183612430565b915061150a600a866124c9565b6115159060306123e5565b60f81b81838151811061152a5761152a61251f565b60200101906001600160f81b031916908160001a90535061154c600a866123fd565b94506114ec565b805160609080611573575050604080516020810190915260008152919050565b600060036115828360026123e5565b61158c91906123fd565b611597906004612411565b905060006115a68260206123e5565b67ffffffffffffffff8111156115be576115be612535565b6040519080825280601f01601f1916602001820160405280156115e8576020820181803683370190505b5090506000604051806060016040528060408152602001612585604091399050600181016020830160005b86811015611674576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611613565b50600386066001811461168e576002811461169f576116ab565b613d3d60f01b6001198301526116ab565b603d60f81b6000198301525b505050918152949350505050565b6001600160a01b0383166117145761170f81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611737565b816001600160a01b0316836001600160a01b031614611737576117378382611983565b6001600160a01b03821661174e576106ec81611a20565b826001600160a01b0316826001600160a01b0316146106ec576106ec8282611acf565b61177b8383611b13565b6117886000848484611876565b6106ec5760405162461bcd60e51b81526004016105b69061230d565b60006117f9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c619092919063ffffffff16565b8051909150156106ec57808060200190518101906118179190611ff0565b6106ec5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105b6565b60006001600160a01b0384163b1561197857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118ba9033908990889088906004016122bd565b602060405180830381600087803b1580156118d457600080fd5b505af1925050508015611904575060408051601f3d908101601f191682019092526119019181019061202a565b60015b61195e573d808015611932576040519150601f19603f3d011682016040523d82523d6000602084013e611937565b606091505b5080516119565760405162461bcd60e51b81526004016105b69061230d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110e2565b506001949350505050565b6000600161199084610a51565b61199a9190612430565b6000838152600760205260409020549091508082146119ed576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611a3290600190612430565b60008381526009602052604081205460088054939450909284908110611a5a57611a5a61251f565b906000526020600020015490508060088381548110611a7b57611a7b61251f565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611ab357611ab3612509565b6001900381819060005260206000200160009055905550505050565b6000611ada83610a51565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216611b695760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105b6565b6000818152600260205260409020546001600160a01b031615611bce5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105b6565b611bda600083836116b9565b6001600160a01b0382166000908152600360205260408120805460019290611c039084906123e5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060611c708484600085611c7a565b90505b9392505050565b606082471015611cdb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105b6565b843b611d295760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105b6565b600080866001600160a01b03168587604051611d4591906120a5565b60006040518083038185875af1925050503d8060008114611d82576040519150601f19603f3d011682016040523d82523d6000602084013e611d87565b606091505b5091509150611d97828286611da2565b979650505050505050565b60608315611db1575081611c73565b825115611dc15782518084602001fd5b8160405162461bcd60e51b81526004016105b691906122fa565b60405180606001604052806003905b6060815260200190600190039081611dea5790505090565b600060208284031215611e1457600080fd5b8135611c738161254b565b600060208284031215611e3157600080fd5b8151611c738161254b565b60008060408385031215611e4f57600080fd5b8235611e5a8161254b565b91506020830135611e6a8161254b565b809150509250929050565b600080600060608486031215611e8a57600080fd5b8335611e958161254b565b92506020840135611ea58161254b565b929592945050506040919091013590565b60008060008060808587031215611ecc57600080fd5b8435611ed78161254b565b93506020850135611ee78161254b565b925060408501359150606085013567ffffffffffffffff80821115611f0b57600080fd5b818701915087601f830112611f1f57600080fd5b813581811115611f3157611f31612535565b604051601f8201601f19908116603f01168101908382118183101715611f5957611f59612535565b816040528281528a6020848701011115611f7257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611fa957600080fd5b8235611fb48161254b565b91506020830135611e6a81612560565b60008060408385031215611fd757600080fd5b8235611fe28161254b565b946020939093013593505050565b60006020828403121561200257600080fd5b8151611c7381612560565b60006020828403121561201f57600080fd5b8135611c738161256e565b60006020828403121561203c57600080fd5b8151611c738161256e565b60006020828403121561205957600080fd5b5035919050565b60006020828403121561207257600080fd5b5051919050565b60008151808452612091816020860160208601612447565b601f01601f19169290920160200192915050565b600082516120b7818460208701612447565b9190910192915050565b600084516120d3818460208901612447565b8451908301906120e7818360208901612447565b84519101906120fa818360208801612447565b0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161213c81601d850160208701612447565b91909101601d0192915050565b7f7b226e616d65223a20224e4654383030382050617373706f727420230000000081526000835161218181601c850160208801612447565b7f222c20226465736372697074696f6e223a20224e46543830303820697320796f601c918401918201527f75722070617373706f727420746f207468652038303038206469676974616c20603c8201527f636f6c6c65637469626c6520776f726c642e2049742069732074686520616c6c605c8201527f2d696e2d6f6e65207061737320666f7220746865206576657220657870616e64607c8201527f696e672038303038206d6574612d756e6976657273652e20427579206f6e6365609c8201527f2c2076616c696420666f726576657221222c2022696d616765223a202264617460bc8201527f613a696d6167652f7376672b786d6c3b6261736536342c00000000000000000060dc82015283516122a28160f3840160208801612447565b61227d60f01b60f3929091019182015260f501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122f090830184612079565b9695505050505050565b602081526000611c736020830184612079565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156123f8576123f86124dd565b500190565b60008261240c5761240c6124f3565b500490565b600081600019048311821515161561242b5761242b6124dd565b500290565b600082821015612442576124426124dd565b500390565b60005b8381101561246257818101518382015260200161244a565b83811115610a4b5750506000910152565b600181811c9082168061248757607f821691505b602082108114156124a857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156124c2576124c26124dd565b5060010190565b6000826124d8576124d86124f3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c8357600080fd5b8015158114610c8357600080fd5b6001600160e01b031981168114610c8357600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076657273696f6e3d22312e312220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222077696474683d223432307822206865696768743d223432307078222076696577426f783d223020302031303020313030223e3c7374796c6520747970653d22746578742f637373223e40666f6e742d666163657b666f6e742d66616d696c793a2253686172652054656368204d6f6e6f223b666f6e742d7374796c653a6e6f726d616c3b666f6e742d7765696768743a3430303b7372633a75726c2868747470733a2f2f666f6e74732e677374617469632e636f6d2f732f7368617265746563686d6f6e6f2f7631302f4a3761486e7031754457524245715639386456517a74596c6446634c6f7745462e776f6666322920666f726d61742822776f66663222293b756e69636f64652d72616e67653a552b303030302d303046462c552b303133312c552b303135322d303135332c552b303242422d303242432c552b303243362c552b303244412c552b303244432c552b323030302d323036462c552b323037342c552b323041432c552b323132322c552b323139312c552b323139332c552b323231322c552b323231352c552b464546462c552b464646447d746578747b66696c7465723a75726c282366696c746572293b66696c6c3a236666663b666f6e742d66616d696c793a2253686172652054656368204d6f6e6f222c73616e732d73657269663b666f6e742d73697a653a323070783b2d7765626b69742d666f6e742d736d6f6f7468696e673a616e7469616c69617365643b2d6d6f7a2d6f73782d666f6e742d736d6f6f7468696e673a677261797363616c657d626f64797b6261636b67726f756e643a233030307d2e696e666f7b636f6c6f723a236666663b666f6e743a31656d2f312073616e732d73657269663b746578742d616c69676e3a63656e7465727d2e696e666f20617b636f6c6f723a236666667d7376677b77696474683a34323070783b6865696768743a34323070783b646973706c61793a626c6f636b3b706f736974696f6e3a72656c61746976653b6f766572666c6f773a68696464656e3b6261636b67726f756e643a233030307d3c2f7374796c653e203c646566733e203c66696c7465722069643d2266696c746572223e203c6665466c6f6f6420666c6f6f642d636f6c6f723d22626c61636b2220726573756c743d22626c61636b222f3e203c6665466c6f6f6420666c6f6f642d636f6c6f723d227265642220726573756c743d22666c6f6f6431222f3e203c6665466c6f6f6420666c6f6f642d636f6c6f723d226c696d65677265656e2220726573756c743d22666c6f6f6432222f3e203c66654f666673657420696e3d22536f7572636547726170686963222064783d2233222064793d22302220726573756c743d226f66663161222f3e203c66654f666673657420696e3d22536f7572636547726170686963222064783d2232222064793d22302220726573756c743d226f66663162222f3e203c66654f666673657420696e3d22536f7572636547726170686963222064783d222d33222064793d22302220726573756c743d226f66663261222f3e203c66654f666673657420696e3d22536f7572636547726170686963222064783d222d32222064793d22302220726573756c743d226f66663262222f3e203c6665436f6d706f7369746520696e3d22666c6f6f64312220696e323d226f6666316122206f70657261746f723d22696e2220726573756c743d22636f6d7031222f3e203c6665436f6d706f7369746520696e3d22666c6f6f64322220696e323d226f6666326122206f70657261746f723d22696e2220726573756c743d22636f6d7032222f3e203c66654d6572676520783d2230222077696474683d22313030252220726573756c743d226d6572676531223e203c66654d657267654e6f646520696e3d22626c61636b222f3e203c66654d657267654e6f646520696e3d22636f6d7031222f3e203c66654d657267654e6f646520696e3d226f66663162222f3e203c616e696d617465206174747269627574654e616d653d2279222069643d227922206475723d223473222076616c7565733d2231303470783b2031303470783b20333070783b2031303570783b20333070783b203270783b203270783b20353070783b20343070783b2031303570783b2031303570783b20323070783b20363070783b20343070783b2031303470783b20343070783b20373070783b20313070783b20333070783b2031303470783b20313032707822206b657954696d65733d22303b20302e3336323b20302e3336383b20302e3432313b20302e3434303b20302e3437373b20302e3531383b20302e3536343b20302e3539333b20302e3631333b20302e3634343b20302e3639333b20302e3732313b20302e3733363b20302e3737323b20302e3831383b20302e3834343b20302e3839343b20302e3932353b20302e3933393b20312220726570656174436f756e743d22696e646566696e697465222f3e203c616e696d617465206174747269627574654e616d653d22686569676874222069643d226822206475723d223473222076616c7565733d22313070783b203070783b20313070783b20333070783b20353070783b203070783b20313070783b203070783b203070783b203070783b20313070783b20353070783b20343070783b203070783b203070783b203070783b20343070783b20333070783b20313070783b203070783b203530707822206b657954696d65733d22303b20302e3336323b20302e3336383b20302e3432313b20302e3434303b20302e3437373b20302e3531383b20302e3536343b20302e3539333b20302e3631333b20302e3634343b20302e3639333b20302e3732313b20302e3733363b20302e3737323b20302e3831383b20302e3834343b20302e3839343b20302e3932353b20302e3933393b20312220726570656174436f756e743d22696e646566696e697465222f3e203c2f66654d657267653e203c66654d6572676520783d2230222077696474683d22313030252220793d223630707822206865696768743d22363570782220726573756c743d226d6572676532223e203c66654d657267654e6f646520696e3d22626c61636b222f3e203c66654d657267654e6f646520696e3d22636f6d7032222f3e203c66654d657267654e6f646520696e3d226f66663262222f3e203c616e696d617465206174747269627574654e616d653d2279222069643d227922206475723d223473222076616c7565733d2231303370783b2031303470783b20363970783b20353370783b20343270783b2031303470783b20373870783b20383970783b20393670783b2031303070783b20363770783b20353070783b20393670783b20363670783b20383870783b20343270783b20313370783b2031303070783b2031303070783b2031303470783b22206b657954696d65733d22303b20302e3035353b20302e3130303b20302e3132353b20302e3135393b20302e3138323b20302e3230323b20302e3233363b20302e3236383b20302e3332363b20302e3335373b20302e3430303b20302e3430383b20302e3436313b20302e3439333b20302e3531333b20302e3534383b20302e3537373b20302e3631333b20312220726570656174436f756e743d22696e646566696e697465222f3e203c616e696d617465206174747269627574654e616d653d22686569676874222069643d226822206475723d223473222076616c7565733d223070783b203070783b203070783b20313670783b20313670783b20313270783b20313270783b203070783b203070783b203570783b20313070783b20323270783b20333370783b20313170783b203070783b203070783b203130707822206b657954696d65733d22303b20302e3035353b20302e3130303b20302e3132353b20302e3135393b20302e3138323b20302e3230323b20302e3233363b20302e3236383b20302e3332363b20302e3335373b20302e3430303b20302e3430383b20302e3436313b20302e3439333b20302e3531333b20312220726570656174436f756e743d22696e646566696e697465222f3e203c2f66654d657267653e203c66654d657267653e203c66654d657267654e6f646520696e3d22536f7572636547726170686963222f3e203c66654d657267654e6f646520696e3d226d6572676531222f3e203c66654d657267654e6f646520696e3d226d6572676532222f3e203c2f66654d657267653e203c2f66696c7465723e203c2f646566733e203c673e203c7465787420783d223530252220793d2232302220646f6d696e616e742d626173656c696e653d226d6964646c652220746578742d616e63686f723d226d6964646c65223e204e465438303038203c2f746578743e203c74657874207374796c653d22666f6e742d73697a653a333270782220783d223530252220793d2235302220646f6d696e616e742d626173656c696e653d226d6964646c652220746578742d616e63686f723d226d6964646c65223e2023a264697066735822122038aba4c1261fdd508d707a06c878206698424ef62676a40ba9487a43cd2db44364736f6c63430008070033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.