Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
9 GLHF Honoraries
Holders
9
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GLHF HonorariesLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
GLHFHonoraries
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-01-21 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.23; // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * 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[ERC 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); } /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) /** * @title ERC-721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC-721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.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); } // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an success flag (no overflow). */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow). */ function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow). */ function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a success flag (no division by zero). */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). */ function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // The following calculation ensures accurate ceiling division without overflow. // Since a is non-zero, (a - 1) / b will not overflow. // The largest possible result occurs when (a - 1) / b is type(uint256).max, // but the largest value we can obtain is type(uint256).max - 1, which happens // when a = type(uint256).max and b = 1. unchecked { return a == 0 ? 0 : (a - 1) / b + 1; } } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => 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 returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * 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 { _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); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC-721 standard 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 like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - 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) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. 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 */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } } // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721URIStorage.sol) // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC4906.sol) // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721.sol) /// @title ERC-721 Metadata Update Extension interface IERC4906 is IERC165, IERC721 { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); } /** * @dev ERC-721 token with storage based token URI management. */ abstract contract ERC721URIStorage is IERC4906, ERC721 { using Strings for uint256; // Interface ID as defined in ERC-4906. This does not correspond to a traditional interface ID as ERC-4906 only // defines events and does not include any external function. bytes4 private constant ERC4906_INTERFACE_ID = bytes4(0x49064906); // Optional mapping for token URIs mapping(uint256 tokenId => string) private _tokenURIs; /** * @dev See {IERC165-supportsInterface} */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) { return interfaceId == ERC4906_INTERFACE_ID || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireOwned(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via string.concat). if (bytes(_tokenURI).length > 0) { return string.concat(base, _tokenURI); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Emits {MetadataUpdate}. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { _tokenURIs[tokenId] = _tokenURI; emit MetadataUpdate(tokenId); } } // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) /** * @dev External interface of AccessControl declared to support ERC-165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } } contract GLHFHonoraries is ERC721URIStorage, AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint256 _mintCounter; constructor(address admin) ERC721("GLHF Honoraries", "GLHF Honoraries") { _grantRole(DEFAULT_ADMIN_ROLE, admin); } function mint(address to, string memory _tokenURI) external onlyRole(MINTER_ROLE) { uint256 tokenId = _mintCounter++; _mint(to, tokenId); _setTokenURI(tokenId, _tokenURI); } function setTokenURI(uint256 tokenId, string memory _tokenURI) external onlyRole(DEFAULT_ADMIN_ROLE) { _setTokenURI(tokenId, _tokenURI); } function totalSupply() external view returns (uint256) { return _mintCounter; } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721URIStorage, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801562000010575f80fd5b5060405162001e8838038062001e88833981016040819052620000339162000151565b604080518082018252600f8082526e474c484620486f6e6f72617269657360881b6020808401829052845180860190955291845290830152905f6200007983826200021e565b5060016200008882826200021e565b506200009991505f905082620000a1565b5050620002ea565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff1662000148575f8381526007602090815260408083206001600160a01b03861684529091529020805460ff19166001179055620000ff3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016200014b565b505f5b92915050565b5f6020828403121562000162575f80fd5b81516001600160a01b038116811462000179575f80fd5b9392505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620001a957607f821691505b602082108103620001c857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200021957805f5260205f20601f840160051c81016020851015620001f55750805b601f840160051c820191505b8181101562000216575f815560010162000201565b50505b505050565b81516001600160401b038111156200023a576200023a62000180565b62000252816200024b845462000194565b84620001ce565b602080601f83116001811462000288575f8415620002705750858301515b5f19600386901b1c1916600185901b178555620002e2565b5f85815260208120601f198616915b82811015620002b85788860151825594840194600190910190840162000297565b5085821015620002d657878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b611b9080620002f85f395ff3fe608060405234801561000f575f80fd5b5060043610610184575f3560e01c80636352211e116100dd578063b88d4fde11610088578063d539139311610063578063d539139314610351578063d547741f14610378578063e985e9c51461038b575f80fd5b8063b88d4fde14610318578063c87b56dd1461032b578063d0def5211461033e575f80fd5b806395d89b41116100b857806395d89b41146102f6578063a217fddf146102fe578063a22cb46514610305575f80fd5b80636352211e1461029857806370a08231146102ab57806391d14854146102be575f80fd5b806318160ddd1161013d5780632f2ff15d116101185780632f2ff15d1461025f57806336568abe1461027257806342842e0e14610285575f80fd5b806318160ddd1461021857806323b872dd1461022a578063248a9ca31461023d575f80fd5b8063081812fc1161016d578063081812fc146101c5578063095ea7b3146101f0578063162094c414610205575f80fd5b806301ffc9a71461018857806306fdde03146101b0575b5f80fd5b61019b61019636600461152e565b6103c6565b60405190151581526020015b60405180910390f35b6101b86103d6565b6040516101a791906115b4565b6101d86101d33660046115c6565b610465565b6040516001600160a01b0390911681526020016101a7565b6102036101fe3660046115f8565b61048c565b005b6102036102133660046116fc565b61049b565b6008545b6040519081526020016101a7565b610203610238366004611740565b6104b4565b61021c61024b3660046115c6565b5f9081526007602052604090206001015490565b61020361026d366004611779565b610574565b610203610280366004611779565b610598565b610203610293366004611740565b6105e4565b6101d86102a63660046115c6565b6105fe565b61021c6102b93660046117a3565b610608565b61019b6102cc366004611779565b5f9182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6101b8610666565b61021c5f81565b6102036103133660046117bc565b610675565b6102036103263660046117f5565b610680565b6101b86103393660046115c6565b610697565b61020361034c36600461186c565b6107a2565b61021c7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610203610386366004611779565b6107f6565b61019b6103993660046118a1565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b5f6103d08261081a565b92915050565b60605f80546103e4906118c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610410906118c9565b801561045b5780601f106104325761010080835404028352916020019161045b565b820191905f5260205f20905b81548152906001019060200180831161043e57829003601f168201915b5050505050905090565b5f61046f8261086f565b505f828152600460205260409020546001600160a01b03166103d0565b6104978282336108c0565b5050565b5f6104a5816108cd565b6104af83836108da565b505050565b6001600160a01b0382166104fb576040517f64a0ae920000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b5f610507838333610929565b9050836001600160a01b0316816001600160a01b03161461056e576040517f64283d7b0000000000000000000000000000000000000000000000000000000081526001600160a01b03808616600483015260248201849052821660448201526064016104f2565b50505050565b5f8281526007602052604090206001015461058e816108cd565b61056e8383610a52565b6001600160a01b03811633146105da576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104af8282610b1b565b6104af83838360405180602001604052805f815250610680565b5f6103d08261086f565b5f6001600160a01b03821661064b576040517f89c62b640000000000000000000000000000000000000000000000000000000081525f60048201526024016104f2565b506001600160a01b03165f9081526003602052604090205490565b6060600180546103e4906118c9565b610497338383610bbe565b61068b8484846104b4565b61056e84848484610c93565b60606106a28261086f565b505f82815260066020526040812080546106bb906118c9565b80601f01602080910402602001604051908101604052809291908181526020018280546106e7906118c9565b80156107325780601f1061070957610100808354040283529160200191610732565b820191905f5260205f20905b81548152906001019060200180831161071557829003601f168201915b505050505090505f61074e60408051602081019091525f815290565b905080515f0361075f575092915050565b81511561079157808260405160200161077992919061191a565b60405160208183030381529060405292505050919050565b61079a84610e53565b949350505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66107cc816108cd565b600880545f91826107dc83611948565b9190505590506107ec8482610ec4565b61056e81846108da565b5f82815260076020526040902060010154610810816108cd565b61056e8383610b1b565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806103d057506103d082610f57565b5f818152600260205260408120546001600160a01b0316806103d0576040517f7e273289000000000000000000000000000000000000000000000000000000008152600481018490526024016104f2565b6104af8383836001610fac565b6108d781336110ff565b50565b5f8281526006602052604090206108f182826119e8565b506040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a15050565b5f828152600260205260408120546001600160a01b03908116908316156109555761095581848661116c565b6001600160a01b038116156109ae576109705f855f80610fac565b6001600160a01b0381165f90815260036020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190555b6001600160a01b038516156109dc576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff16610b14575f8381526007602090815260408083206001600160a01b0386168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610acc3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016103d0565b505f6103d0565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff1615610b14575f8381526007602090815260408083206001600160a01b038616808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016103d0565b6001600160a01b038216610c09576040517f5b08ba180000000000000000000000000000000000000000000000000000000081526001600160a01b03831660048201526024016104f2565b6001600160a01b038381165f8181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561056e576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063150b7a0290610cee903390889087908790600401611b04565b6020604051808303815f875af1925050508015610d46575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610d4391810190611b3f565b60015b610dc6573d808015610d73576040519150601f19603f3d011682016040523d82523d5f602084013e610d78565b606091505b5080515f03610dbe576040517f64a0ae920000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024016104f2565b805181602001fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167f150b7a020000000000000000000000000000000000000000000000000000000014610e4c576040517f64a0ae920000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024016104f2565b5050505050565b6060610e5e8261086f565b505f610e7460408051602081019091525f815290565b90505f815111610e925760405180602001604052805f815250610ebd565b80610e9c84611202565b604051602001610ead92919061191a565b6040516020818303038152906040525b9392505050565b6001600160a01b038216610f06576040517f64a0ae920000000000000000000000000000000000000000000000000000000081525f60048201526024016104f2565b5f610f1283835f610929565b90506001600160a01b038116156104af576040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081525f60048201526024016104f2565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f490649060000000000000000000000000000000000000000000000000000000014806103d057506103d0826112be565b8080610fc057506001600160a01b03821615155b156110b8575f610fcf8461086f565b90506001600160a01b03831615801590610ffb5750826001600160a01b0316816001600160a01b031614155b801561102c57506001600160a01b038082165f9081526005602090815260408083209387168352929052205460ff16155b1561106e576040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024016104f2565b81156110b65783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f8281526007602090815260408083206001600160a01b038516845290915290205460ff16610497576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602481018390526044016104f2565b6111778383836113a0565b6104af576001600160a01b0383166111be576040517f7e273289000000000000000000000000000000000000000000000000000000008152600481018290526024016104f2565b6040517f177e802f0000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602481018290526044016104f2565b60605f61120e83611420565b60010190505f8167ffffffffffffffff81111561122d5761122d611620565b6040519080825280601f01601f191660200182016040528015611257576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461126157509392505050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061135057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806103d057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146103d0565b5f6001600160a01b0383161580159061079a5750826001600160a01b0316846001600160a01b031614806113f857506001600160a01b038085165f9081526005602090815260408083209387168352929052205460ff165b8061079a5750505f908152600460205260409020546001600160a01b03908116911614919050565b5f807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611468577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611494576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114b257662386f26fc10000830492506010015b6305f5e10083106114ca576305f5e100830492506008015b61271083106114de57612710830492506004015b606483106114f0576064830492506002015b600a83106103d05760010192915050565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146108d7575f80fd5b5f6020828403121561153e575f80fd5b8135610ebd81611501565b5f5b8381101561156357818101518382015260200161154b565b50505f910152565b5f8151808452611582816020860160208601611549565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f610ebd602083018461156b565b5f602082840312156115d6575f80fd5b5035919050565b80356001600160a01b03811681146115f3575f80fd5b919050565b5f8060408385031215611609575f80fd5b611612836115dd565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f67ffffffffffffffff8084111561166757611667611620565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156116ad576116ad611620565b816040528093508581528686860111156116c5575f80fd5b858560208301375f602087830101525050509392505050565b5f82601f8301126116ed575f80fd5b610ebd8383356020850161164d565b5f806040838503121561170d575f80fd5b82359150602083013567ffffffffffffffff81111561172a575f80fd5b611736858286016116de565b9150509250929050565b5f805f60608486031215611752575f80fd5b61175b846115dd565b9250611769602085016115dd565b9150604084013590509250925092565b5f806040838503121561178a575f80fd5b8235915061179a602084016115dd565b90509250929050565b5f602082840312156117b3575f80fd5b610ebd826115dd565b5f80604083850312156117cd575f80fd5b6117d6836115dd565b9150602083013580151581146117ea575f80fd5b809150509250929050565b5f805f8060808587031215611808575f80fd5b611811856115dd565b935061181f602086016115dd565b925060408501359150606085013567ffffffffffffffff811115611841575f80fd5b8501601f81018713611851575f80fd5b6118608782356020840161164d565b91505092959194509250565b5f806040838503121561187d575f80fd5b611886836115dd565b9150602083013567ffffffffffffffff81111561172a575f80fd5b5f80604083850312156118b2575f80fd5b6118bb836115dd565b915061179a602084016115dd565b600181811c908216806118dd57607f821691505b602082108103611914577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b5f835161192b818460208801611549565b83519083019061193f818360208801611549565b01949350505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361199d577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5060010190565b601f8211156104af57805f5260205f20601f840160051c810160208510156119c95750805b601f840160051c820191505b81811015610e4c575f81556001016119d5565b815167ffffffffffffffff811115611a0257611a02611620565b611a1681611a1084546118c9565b846119a4565b602080601f831160018114611a68575f8415611a325750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611afc565b5f858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015611ab457888601518255948401946001909101908401611a95565b5085821015611af057878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f6001600160a01b03808716835280861660208401525083604083015260806060830152611b35608083018461156b565b9695505050505050565b5f60208284031215611b4f575f80fd5b8151610ebd8161150156fea2646970667358221220a82963ef349ac36ff27a867ac3b3f8545412430fd996e773268ba357eb8ffb8464736f6c63430008170033000000000000000000000000618fd347e5f67dffa5dd7011b517c1e9c9e9fc39
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610184575f3560e01c80636352211e116100dd578063b88d4fde11610088578063d539139311610063578063d539139314610351578063d547741f14610378578063e985e9c51461038b575f80fd5b8063b88d4fde14610318578063c87b56dd1461032b578063d0def5211461033e575f80fd5b806395d89b41116100b857806395d89b41146102f6578063a217fddf146102fe578063a22cb46514610305575f80fd5b80636352211e1461029857806370a08231146102ab57806391d14854146102be575f80fd5b806318160ddd1161013d5780632f2ff15d116101185780632f2ff15d1461025f57806336568abe1461027257806342842e0e14610285575f80fd5b806318160ddd1461021857806323b872dd1461022a578063248a9ca31461023d575f80fd5b8063081812fc1161016d578063081812fc146101c5578063095ea7b3146101f0578063162094c414610205575f80fd5b806301ffc9a71461018857806306fdde03146101b0575b5f80fd5b61019b61019636600461152e565b6103c6565b60405190151581526020015b60405180910390f35b6101b86103d6565b6040516101a791906115b4565b6101d86101d33660046115c6565b610465565b6040516001600160a01b0390911681526020016101a7565b6102036101fe3660046115f8565b61048c565b005b6102036102133660046116fc565b61049b565b6008545b6040519081526020016101a7565b610203610238366004611740565b6104b4565b61021c61024b3660046115c6565b5f9081526007602052604090206001015490565b61020361026d366004611779565b610574565b610203610280366004611779565b610598565b610203610293366004611740565b6105e4565b6101d86102a63660046115c6565b6105fe565b61021c6102b93660046117a3565b610608565b61019b6102cc366004611779565b5f9182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6101b8610666565b61021c5f81565b6102036103133660046117bc565b610675565b6102036103263660046117f5565b610680565b6101b86103393660046115c6565b610697565b61020361034c36600461186c565b6107a2565b61021c7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610203610386366004611779565b6107f6565b61019b6103993660046118a1565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b5f6103d08261081a565b92915050565b60605f80546103e4906118c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610410906118c9565b801561045b5780601f106104325761010080835404028352916020019161045b565b820191905f5260205f20905b81548152906001019060200180831161043e57829003601f168201915b5050505050905090565b5f61046f8261086f565b505f828152600460205260409020546001600160a01b03166103d0565b6104978282336108c0565b5050565b5f6104a5816108cd565b6104af83836108da565b505050565b6001600160a01b0382166104fb576040517f64a0ae920000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b5f610507838333610929565b9050836001600160a01b0316816001600160a01b03161461056e576040517f64283d7b0000000000000000000000000000000000000000000000000000000081526001600160a01b03808616600483015260248201849052821660448201526064016104f2565b50505050565b5f8281526007602052604090206001015461058e816108cd565b61056e8383610a52565b6001600160a01b03811633146105da576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104af8282610b1b565b6104af83838360405180602001604052805f815250610680565b5f6103d08261086f565b5f6001600160a01b03821661064b576040517f89c62b640000000000000000000000000000000000000000000000000000000081525f60048201526024016104f2565b506001600160a01b03165f9081526003602052604090205490565b6060600180546103e4906118c9565b610497338383610bbe565b61068b8484846104b4565b61056e84848484610c93565b60606106a28261086f565b505f82815260066020526040812080546106bb906118c9565b80601f01602080910402602001604051908101604052809291908181526020018280546106e7906118c9565b80156107325780601f1061070957610100808354040283529160200191610732565b820191905f5260205f20905b81548152906001019060200180831161071557829003601f168201915b505050505090505f61074e60408051602081019091525f815290565b905080515f0361075f575092915050565b81511561079157808260405160200161077992919061191a565b60405160208183030381529060405292505050919050565b61079a84610e53565b949350505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66107cc816108cd565b600880545f91826107dc83611948565b9190505590506107ec8482610ec4565b61056e81846108da565b5f82815260076020526040902060010154610810816108cd565b61056e8383610b1b565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806103d057506103d082610f57565b5f818152600260205260408120546001600160a01b0316806103d0576040517f7e273289000000000000000000000000000000000000000000000000000000008152600481018490526024016104f2565b6104af8383836001610fac565b6108d781336110ff565b50565b5f8281526006602052604090206108f182826119e8565b506040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a15050565b5f828152600260205260408120546001600160a01b03908116908316156109555761095581848661116c565b6001600160a01b038116156109ae576109705f855f80610fac565b6001600160a01b0381165f90815260036020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190555b6001600160a01b038516156109dc576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff16610b14575f8381526007602090815260408083206001600160a01b0386168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610acc3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016103d0565b505f6103d0565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff1615610b14575f8381526007602090815260408083206001600160a01b038616808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016103d0565b6001600160a01b038216610c09576040517f5b08ba180000000000000000000000000000000000000000000000000000000081526001600160a01b03831660048201526024016104f2565b6001600160a01b038381165f8181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561056e576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063150b7a0290610cee903390889087908790600401611b04565b6020604051808303815f875af1925050508015610d46575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610d4391810190611b3f565b60015b610dc6573d808015610d73576040519150601f19603f3d011682016040523d82523d5f602084013e610d78565b606091505b5080515f03610dbe576040517f64a0ae920000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024016104f2565b805181602001fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167f150b7a020000000000000000000000000000000000000000000000000000000014610e4c576040517f64a0ae920000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024016104f2565b5050505050565b6060610e5e8261086f565b505f610e7460408051602081019091525f815290565b90505f815111610e925760405180602001604052805f815250610ebd565b80610e9c84611202565b604051602001610ead92919061191a565b6040516020818303038152906040525b9392505050565b6001600160a01b038216610f06576040517f64a0ae920000000000000000000000000000000000000000000000000000000081525f60048201526024016104f2565b5f610f1283835f610929565b90506001600160a01b038116156104af576040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081525f60048201526024016104f2565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f490649060000000000000000000000000000000000000000000000000000000014806103d057506103d0826112be565b8080610fc057506001600160a01b03821615155b156110b8575f610fcf8461086f565b90506001600160a01b03831615801590610ffb5750826001600160a01b0316816001600160a01b031614155b801561102c57506001600160a01b038082165f9081526005602090815260408083209387168352929052205460ff16155b1561106e576040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024016104f2565b81156110b65783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f8281526007602090815260408083206001600160a01b038516845290915290205460ff16610497576040517fe2517d3f0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602481018390526044016104f2565b6111778383836113a0565b6104af576001600160a01b0383166111be576040517f7e273289000000000000000000000000000000000000000000000000000000008152600481018290526024016104f2565b6040517f177e802f0000000000000000000000000000000000000000000000000000000081526001600160a01b0383166004820152602481018290526044016104f2565b60605f61120e83611420565b60010190505f8167ffffffffffffffff81111561122d5761122d611620565b6040519080825280601f01601f191660200182016040528015611257576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461126157509392505050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061135057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806103d057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146103d0565b5f6001600160a01b0383161580159061079a5750826001600160a01b0316846001600160a01b031614806113f857506001600160a01b038085165f9081526005602090815260408083209387168352929052205460ff165b8061079a5750505f908152600460205260409020546001600160a01b03908116911614919050565b5f807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611468577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611494576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114b257662386f26fc10000830492506010015b6305f5e10083106114ca576305f5e100830492506008015b61271083106114de57612710830492506004015b606483106114f0576064830492506002015b600a83106103d05760010192915050565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146108d7575f80fd5b5f6020828403121561153e575f80fd5b8135610ebd81611501565b5f5b8381101561156357818101518382015260200161154b565b50505f910152565b5f8151808452611582816020860160208601611549565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f610ebd602083018461156b565b5f602082840312156115d6575f80fd5b5035919050565b80356001600160a01b03811681146115f3575f80fd5b919050565b5f8060408385031215611609575f80fd5b611612836115dd565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f67ffffffffffffffff8084111561166757611667611620565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156116ad576116ad611620565b816040528093508581528686860111156116c5575f80fd5b858560208301375f602087830101525050509392505050565b5f82601f8301126116ed575f80fd5b610ebd8383356020850161164d565b5f806040838503121561170d575f80fd5b82359150602083013567ffffffffffffffff81111561172a575f80fd5b611736858286016116de565b9150509250929050565b5f805f60608486031215611752575f80fd5b61175b846115dd565b9250611769602085016115dd565b9150604084013590509250925092565b5f806040838503121561178a575f80fd5b8235915061179a602084016115dd565b90509250929050565b5f602082840312156117b3575f80fd5b610ebd826115dd565b5f80604083850312156117cd575f80fd5b6117d6836115dd565b9150602083013580151581146117ea575f80fd5b809150509250929050565b5f805f8060808587031215611808575f80fd5b611811856115dd565b935061181f602086016115dd565b925060408501359150606085013567ffffffffffffffff811115611841575f80fd5b8501601f81018713611851575f80fd5b6118608782356020840161164d565b91505092959194509250565b5f806040838503121561187d575f80fd5b611886836115dd565b9150602083013567ffffffffffffffff81111561172a575f80fd5b5f80604083850312156118b2575f80fd5b6118bb836115dd565b915061179a602084016115dd565b600181811c908216806118dd57607f821691505b602082108103611914577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b5f835161192b818460208801611549565b83519083019061193f818360208801611549565b01949350505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361199d577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5060010190565b601f8211156104af57805f5260205f20601f840160051c810160208510156119c95750805b601f840160051c820191505b81811015610e4c575f81556001016119d5565b815167ffffffffffffffff811115611a0257611a02611620565b611a1681611a1084546118c9565b846119a4565b602080601f831160018114611a68575f8415611a325750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555611afc565b5f858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015611ab457888601518255948401946001909101908401611a95565b5085821015611af057878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f6001600160a01b03808716835280861660208401525083604083015260806060830152611b35608083018461156b565b9695505050505050565b5f60208284031215611b4f575f80fd5b8151610ebd8161150156fea2646970667358221220a82963ef349ac36ff27a867ac3b3f8545412430fd996e773268ba357eb8ffb8464736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000618fd347e5f67dffa5dd7011b517c1e9c9e9fc39
-----Decoded View---------------
Arg [0] : admin (address): 0x618Fd347E5f67dfFA5dd7011B517c1e9C9e9fc39
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000618fd347e5f67dffa5dd7011b517c1e9c9e9fc39
Deployed Bytecode Sourcemap
66995:981:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67771:202;;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;67771:202:0;;;;;;;;38151:91;;;:::i;:::-;;;;;;;:::i;39323:158::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1802:55:1;;;1784:74;;1772:2;1757:18;39323:158:0;1638:226:1;39142:115:0;;;;;;:::i;:::-;;:::i;:::-;;67510:152;;;;;;:::i;:::-;;:::i;67670:93::-;67743:12;;67670:93;;;3982:25:1;;;3970:2;3955:18;67670:93:0;3836:177:1;39992:588:0;;;;;;:::i;:::-;;:::i;63649:122::-;;;;;;:::i;:::-;63714:7;63741:12;;;:6;:12;;;;;:22;;;;63649:122;64081:138;;;;;;:::i;:::-;;:::i;65218:251::-;;;;;;:::i;:::-;;:::i;40651:134::-;;;;;;:::i;:::-;;:::i;37964:120::-;;;;;;:::i;:::-;;:::i;37689:213::-;;;;;;:::i;:::-;;:::i;62665:138::-;;;;;;:::i;:::-;62742:4;62766:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;62766:29:0;;;;;;;;;;;;;;;62665:138;38311:95;;;:::i;61977:49::-;;62022:4;61977:49;;39553:146;;;;;;:::i;:::-;;:::i;40856:211::-;;;;;;:::i;:::-;;:::i;55746:609::-;;;;;;:::i;:::-;;:::i;67297:205::-;;;;;;:::i;:::-;;:::i;67061:62::-;;67099:24;67061:62;;64512:140;;;;;;:::i;:::-;;:::i;39770:155::-;;;;;;:::i;:::-;-1:-1:-1;;;;;39882:25:0;;;39858:4;39882:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;39770:155;67771:202;67905:4;67929:36;67953:11;67929:23;:36::i;:::-;67922:43;67771:202;-1:-1:-1;;67771:202:0:o;38151:91::-;38196:13;38229:5;38222:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38151:91;:::o;39323:158::-;39390:7;39410:22;39424:7;39410:13;:22::i;:::-;-1:-1:-1;41900:7:0;41927:24;;;:15;:24;;;;;;-1:-1:-1;;;;;41927:24:0;39452:21;41830:129;39142:115;39214:35;39223:2;39227:7;8287:10;39214:8;:35::i;:::-;39142:115;;:::o;67510:152::-;62022:4;62261:16;62022:4;62261:10;:16::i;:::-;67622:32:::1;67635:7;67644:9;67622:12;:32::i;:::-;67510:152:::0;;;:::o;39992:588::-;-1:-1:-1;;;;;40087:16:0;;40083:89;;40127:33;;;;;40157:1;40127:33;;;1784:74:1;1757:18;;40127:33:0;;;;;;;;40083:89;40393:21;40417:34;40425:2;40429:7;8287:10;40417:7;:34::i;:::-;40393:58;;40483:4;-1:-1:-1;;;;;40466:21:0;:13;-1:-1:-1;;;;;40466:21:0;;40462:111;;40511:50;;;;;-1:-1:-1;;;;;7581:15:1;;;40511:50:0;;;7563:34:1;7613:18;;;7606:34;;;7676:15;;7656:18;;;7649:43;7475:18;;40511:50:0;7300:398:1;40462:111:0;40072:508;39992:588;;;:::o;64081:138::-;63714:7;63741:12;;;:6;:12;;;;;:22;;;62261:16;62272:4;62261:10;:16::i;:::-;64186:25:::1;64197:4;64203:7;64186:10;:25::i;65218:251::-:0;-1:-1:-1;;;;;65312:34:0;;8287:10;65312:34;65308:104;;65370:30;;;;;;;;;;;;;;65308:104;65424:37;65436:4;65442:18;65424:11;:37::i;40651:134::-;40738:39;40755:4;40761:2;40765:7;40738:39;;;;;;;;;;;;:16;:39::i;37964:120::-;38027:7;38054:22;38068:7;38054:13;:22::i;37689:213::-;37752:7;-1:-1:-1;;;;;37776:19:0;;37772:89;;37819:30;;;;;37846:1;37819:30;;;1784:74:1;1757:18;;37819:30:0;1638:226:1;37772:89:0;-1:-1:-1;;;;;;37878:16:0;;;;;:9;:16;;;;;;;37689:213::o;38311:95::-;38358:13;38391:7;38384:14;;;;;:::i;39553:146::-;39639:52;8287:10;39672:8;39682;39639:18;:52::i;40856:211::-;40970:31;40983:4;40989:2;40993:7;40970:12;:31::i;:::-;41012:47;41035:4;41041:2;41045:7;41054:4;41012:22;:47::i;55746:609::-;55819:13;55845:22;55859:7;55845:13;:22::i;:::-;-1:-1:-1;55880:23:0;55906:19;;;:10;:19;;;;;55880:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55936:18;55957:10;39063:9;;;;;;;;;-1:-1:-1;39063:9:0;;;38986:94;55957:10;55936:31;;56049:4;56043:18;56065:1;56043:23;56039:72;;-1:-1:-1;56090:9:0;55746:609;-1:-1:-1;;55746:609:0:o;56039:72::-;56212:23;;:27;56208:97;;56277:4;56283:9;56263:30;;;;;;;;;:::i;:::-;;;;;;;;;;;;;56256:37;;;;55746:609;;;:::o;56208:97::-;56324:23;56339:7;56324:14;:23::i;:::-;56317:30;55746:609;-1:-1:-1;;;;55746:609:0:o;67297:205::-;67099:24;62261:16;62272:4;62261:10;:16::i;:::-;67408:12:::1;:14:::0;;67390:15:::1;::::0;;67408:14:::1;::::0;::::1;:::i;:::-;;;;;67390:32;;67433:18;67439:2;67443:7;67433:5;:18::i;:::-;67462:32;67475:7;67484:9;67462:12;:32::i;64512:140::-:0;63714:7;63741:12;;;:6;:12;;;;;:22;;;62261:16;62272:4;62261:10;:16::i;:::-;64618:26:::1;64630:4;64636:7;64618:11;:26::i;62369:204::-:0;62454:4;62478:47;;;62493:32;62478:47;;:87;;;62529:36;62553:11;62529:23;:36::i;52300:247::-;52363:7;41685:16;;;:7;:16;;;;;;-1:-1:-1;;;;;41685:16:0;;52427:90;;52474:31;;;;;;;;3982:25:1;;;3955:18;;52474:31:0;3836:177:1;50532:122:0;50613:33;50622:2;50626:7;50635:4;50641;50613:8;:33::i;63018:105::-;63085:30;63096:4;8287:10;63085;:30::i;:::-;63018:105;:::o;56481:170::-;56573:19;;;;:10;:19;;;;;:31;56595:9;56573:19;:31;:::i;:::-;-1:-1:-1;56620:23:0;;3982:25:1;;;56620:23:0;;3970:2:1;3955:18;56620:23:0;;;;;;;56481:170;;:::o;44792:824::-;44878:7;41685:16;;;:7;:16;;;;;;-1:-1:-1;;;;;41685:16:0;;;;44993:18;;;44989:88;;45028:37;45045:4;45051;45057:7;45028:16;:37::i;:::-;-1:-1:-1;;;;;45124:18:0;;;45120:263;;45242:48;45259:1;45263:7;45280:1;45284:5;45242:8;:48::i;:::-;-1:-1:-1;;;;;45336:15:0;;;;;;:9;:15;;;;;:20;;;;;;45120:263;-1:-1:-1;;;;;45399:16:0;;;45395:111;;-1:-1:-1;;;;;45461:13:0;;;;;;:9;:13;;;;;:18;;45478:1;45461:18;;;45395:111;45518:16;;;;:7;:16;;;;;;:21;;;;-1:-1:-1;;;;;45518:21:0;;;;;;;;;45557:27;;45518:16;;45557:27;;;;;;;45604:4;44792:824;-1:-1:-1;;;;44792:824:0:o;66095:324::-;66172:4;62766:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;62766:29:0;;;;;;;;;;;;66189:223;;66233:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;66233:29:0;;;;;;;;;:36;;;;66265:4;66233:36;;;66316:12;8287:10;;8207:98;66316:12;-1:-1:-1;;;;;66289:40:0;66307:7;-1:-1:-1;;;;;66289:40:0;66301:4;66289:40;;;;;;;;;;-1:-1:-1;66351:4:0;66344:11;;66189:223;-1:-1:-1;66395:5:0;66388:12;;66663:325;66741:4;62766:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;62766:29:0;;;;;;;;;;;;66758:223;;;66833:5;66801:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;66801:29:0;;;;;;;;;;:37;;;;;;66858:40;8287:10;;66801:12;;66858:40;;66833:5;66858:40;-1:-1:-1;66920:4:0;66913:11;;51739:318;-1:-1:-1;;;;;51847:22:0;;51843:93;;51893:31;;;;;-1:-1:-1;;;;;1802:55:1;;51893:31:0;;;1784:74:1;1757:18;;51893:31:0;1638:226:1;51843:93:0;-1:-1:-1;;;;;51946:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;;;;;;;;;;;;52008:41;;586::1;;;52008::0;;559:18:1;52008:41:0;;;;;;;51739:318;;;:::o;53097:799::-;-1:-1:-1;;;;;53214:14:0;;;:18;53210:679;;53253:71;;;;;-1:-1:-1;;;;;53253:36:0;;;;;:71;;8287:10;;53304:4;;53310:7;;53319:4;;53253:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53253:71:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;53249:629;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53567:6;:13;53584:1;53567:18;53563:300;;53617:25;;;;;-1:-1:-1;;;;;1802:55:1;;53617:25:0;;;1784:74:1;1757:18;;53617:25:0;1638:226:1;53563:300:0;53813:6;53807:13;53798:6;53794:2;53790:15;53783:38;53249:629;53372:51;;;53382:41;53372:51;53368:132;;53455:25;;;;;-1:-1:-1;;;;;1802:55:1;;53455:25:0;;;1784:74:1;1757:18;;53455:25:0;1638:226:1;53368:132:0;53325:190;53097:799;;;;:::o;38477:260::-;38541:13;38567:22;38581:7;38567:13;:22::i;:::-;;38602:21;38626:10;39063:9;;;;;;;;;-1:-1:-1;39063:9:0;;;38986:94;38626:10;38602:34;;38678:1;38660:7;38654:21;:25;:75;;;;;;;;;;;;;;;;;38696:7;38705:18;:7;:16;:18::i;:::-;38682:42;;;;;;;;;:::i;:::-;;;;;;;;;;;;;38654:75;38647:82;38477:260;-1:-1:-1;;;38477:260:0:o;45952:335::-;-1:-1:-1;;;;;46020:16:0;;46016:89;;46060:33;;;;;46090:1;46060:33;;;1784:74:1;1757:18;;46060:33:0;1638:226:1;46016:89:0;46115:21;46139:32;46147:2;46151:7;46168:1;46139:7;:32::i;:::-;46115:56;-1:-1:-1;;;;;;46186:27:0;;;46182:98;;46237:31;;;;;46265:1;46237:31;;;1784:74:1;1757:18;;46237:31:0;1638:226:1;55466:209:0;55568:4;55592:35;;;55274:18;55592:35;;:75;;;55631:36;55655:11;55631:23;:36::i;50842:678::-;51004:9;:31;;;-1:-1:-1;;;;;;51017:18:0;;;;51004:31;51000:471;;;51052:13;51068:22;51082:7;51068:13;:22::i;:::-;51052:38;-1:-1:-1;;;;;;51221:18:0;;;;;;:35;;;51252:4;-1:-1:-1;;;;;51243:13:0;:5;-1:-1:-1;;;;;51243:13:0;;;51221:35;:69;;;;-1:-1:-1;;;;;;39882:25:0;;;39858:4;39882:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;51260:30;51221:69;51217:144;;;51318:27;;;;;-1:-1:-1;;;;;1802:55:1;;51318:27:0;;;1784:74:1;1757:18;;51318:27:0;1638:226:1;51217:144:0;51381:9;51377:83;;;51436:7;51432:2;-1:-1:-1;;;;;51416:28:0;51425:5;-1:-1:-1;;;;;51416:28:0;;;;;;;;;;;51377:83;51037:434;51000:471;-1:-1:-1;;51483:24:0;;;;:15;:24;;;;;:29;;;;-1:-1:-1;;;;;51483:29:0;;;;;;;;;;50842:678::o;63259:201::-;62742:4;62766:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;62766:29:0;;;;;;;;;;;;63343:110;;63394:47;;;;;-1:-1:-1;;;;;11870:55:1;;63394:47:0;;;11852:74:1;11942:18;;;11935:34;;;11825:18;;63394:47:0;11678:297:1;42999:376:0;43112:38;43126:5;43133:7;43142;43112:13;:38::i;:::-;43107:261;;-1:-1:-1;;;;;43171:19:0;;43167:190;;43218:31;;;;;;;;3982:25:1;;;3955:18;;43218:31:0;3836:177:1;43167:190:0;43297:44;;;;;-1:-1:-1;;;;;11870:55:1;;43297:44:0;;;11852:74:1;11942:18;;;11935:34;;;11825:18;;43297:44:0;11678:297:1;26239:718:0;26295:13;26346:14;26363:17;26374:5;26363:10;:17::i;:::-;26383:1;26363:21;26346:38;;26399:20;26433:6;26422:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26422:18:0;-1:-1:-1;26399:41:0;-1:-1:-1;26564:28:0;;;26580:2;26564:28;26621:290;26653:5;;26795:10;26790:2;26779:14;;26774:32;26653:5;26761:46;26853:2;26844:11;;;-1:-1:-1;26874:21:0;26621:290;26874:21;-1:-1:-1;26932:6:0;26239:718;-1:-1:-1;;;26239:718:0:o;37320:305::-;37422:4;37459:40;;;37474:25;37459:40;;:105;;-1:-1:-1;37516:48:0;;;37531:33;37516:48;37459:105;:158;;;-1:-1:-1;29572:25:0;29557:40;;;;37581:36;29457:148;42279:276;42382:4;-1:-1:-1;;;;;42419:21:0;;;;;;:128;;;42467:7;-1:-1:-1;;;;;42458:16:0;:5;-1:-1:-1;;;;;42458:16:0;;:52;;;-1:-1:-1;;;;;;39882:25:0;;;39858:4;39882:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;42478:32;42458:88;;;-1:-1:-1;;41900:7:0;41927:24;;;:15;:24;;;;;;-1:-1:-1;;;;;41927:24:0;;;42514:32;;;;42399:148;-1:-1:-1;42279:276:0:o;21554:948::-;21607:7;;21694:8;21685:17;;21681:106;;21732:8;21723:17;;;-1:-1:-1;21769:2:0;21759:12;21681:106;21814:8;21805:5;:17;21801:106;;21852:8;21843:17;;;-1:-1:-1;21889:2:0;21879:12;21801:106;21934:8;21925:5;:17;21921:106;;21972:8;21963:17;;;-1:-1:-1;22009:2:0;21999:12;21921:106;22054:7;22045:5;:16;22041:103;;22091:7;22082:16;;;-1:-1:-1;22127:1:0;22117:11;22041:103;22171:7;22162:5;:16;22158:103;;22208:7;22199:16;;;-1:-1:-1;22244:1:0;22234:11;22158:103;22288:7;22279:5;:16;22275:103;;22325:7;22316:16;;;-1:-1:-1;22361:1:0;22351:11;22275:103;22405:7;22396:5;:16;22392:68;;22443:1;22433:11;22488:6;21554:948;-1:-1:-1;;21554:948:0:o;14:177:1:-;99:66;92:5;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:250::-;723:1;733:113;747:6;744:1;741:13;733:113;;;823:11;;;817:18;804:11;;;797:39;769:2;762:10;733:113;;;-1:-1:-1;;880:1:1;862:16;;855:27;638:250::o;893:330::-;935:3;973:5;967:12;1000:6;995:3;988:19;1016:76;1085:6;1078:4;1073:3;1069:14;1062:4;1055:5;1051:16;1016:76;:::i;:::-;1137:2;1125:15;1142:66;1121:88;1112:98;;;;1212:4;1108:109;;893:330;-1:-1:-1;;893:330:1:o;1228:220::-;1377:2;1366:9;1359:21;1340:4;1397:45;1438:2;1427:9;1423:18;1415:6;1397:45;:::i;1453:180::-;1512:6;1565:2;1553:9;1544:7;1540:23;1536:32;1533:52;;;1581:1;1578;1571:12;1533:52;-1:-1:-1;1604:23:1;;1453:180;-1:-1:-1;1453:180:1:o;1869:196::-;1937:20;;-1:-1:-1;;;;;1986:54:1;;1976:65;;1966:93;;2055:1;2052;2045:12;1966:93;1869:196;;;:::o;2070:254::-;2138:6;2146;2199:2;2187:9;2178:7;2174:23;2170:32;2167:52;;;2215:1;2212;2205:12;2167:52;2238:29;2257:9;2238:29;:::i;:::-;2228:39;2314:2;2299:18;;;;2286:32;;-1:-1:-1;;;2070:254:1:o;2329:184::-;2381:77;2378:1;2371:88;2478:4;2475:1;2468:15;2502:4;2499:1;2492:15;2518:691;2583:5;2613:18;2654:2;2646:6;2643:14;2640:40;;;2660:18;;:::i;:::-;2794:2;2788:9;2860:2;2848:15;;2699:66;2844:24;;;2870:2;2840:33;2836:42;2824:55;;;2894:18;;;2914:22;;;2891:46;2888:72;;;2940:18;;:::i;:::-;2980:10;2976:2;2969:22;3009:6;3000:15;;3039:6;3031;3024:22;3079:3;3070:6;3065:3;3061:16;3058:25;3055:45;;;3096:1;3093;3086:12;3055:45;3146:6;3141:3;3134:4;3126:6;3122:17;3109:44;3201:1;3194:4;3185:6;3177;3173:19;3169:30;3162:41;;;;2518:691;;;;;:::o;3214:222::-;3257:5;3310:3;3303:4;3295:6;3291:17;3287:27;3277:55;;3328:1;3325;3318:12;3277:55;3350:80;3426:3;3417:6;3404:20;3397:4;3389:6;3385:17;3350:80;:::i;3441:390::-;3519:6;3527;3580:2;3568:9;3559:7;3555:23;3551:32;3548:52;;;3596:1;3593;3586:12;3548:52;3632:9;3619:23;3609:33;;3693:2;3682:9;3678:18;3665:32;3720:18;3712:6;3709:30;3706:50;;;3752:1;3749;3742:12;3706:50;3775;3817:7;3808:6;3797:9;3793:22;3775:50;:::i;:::-;3765:60;;;3441:390;;;;;:::o;4018:328::-;4095:6;4103;4111;4164:2;4152:9;4143:7;4139:23;4135:32;4132:52;;;4180:1;4177;4170:12;4132:52;4203:29;4222:9;4203:29;:::i;:::-;4193:39;;4251:38;4285:2;4274:9;4270:18;4251:38;:::i;:::-;4241:48;;4336:2;4325:9;4321:18;4308:32;4298:42;;4018:328;;;;;:::o;4718:254::-;4786:6;4794;4847:2;4835:9;4826:7;4822:23;4818:32;4815:52;;;4863:1;4860;4853:12;4815:52;4899:9;4886:23;4876:33;;4928:38;4962:2;4951:9;4947:18;4928:38;:::i;:::-;4918:48;;4718:254;;;;;:::o;4977:186::-;5036:6;5089:2;5077:9;5068:7;5064:23;5060:32;5057:52;;;5105:1;5102;5095:12;5057:52;5128:29;5147:9;5128:29;:::i;5168:347::-;5233:6;5241;5294:2;5282:9;5273:7;5269:23;5265:32;5262:52;;;5310:1;5307;5300:12;5262:52;5333:29;5352:9;5333:29;:::i;:::-;5323:39;;5412:2;5401:9;5397:18;5384:32;5459:5;5452:13;5445:21;5438:5;5435:32;5425:60;;5481:1;5478;5471:12;5425:60;5504:5;5494:15;;;5168:347;;;;;:::o;5520:667::-;5615:6;5623;5631;5639;5692:3;5680:9;5671:7;5667:23;5663:33;5660:53;;;5709:1;5706;5699:12;5660:53;5732:29;5751:9;5732:29;:::i;:::-;5722:39;;5780:38;5814:2;5803:9;5799:18;5780:38;:::i;:::-;5770:48;;5865:2;5854:9;5850:18;5837:32;5827:42;;5920:2;5909:9;5905:18;5892:32;5947:18;5939:6;5936:30;5933:50;;;5979:1;5976;5969:12;5933:50;6002:22;;6055:4;6047:13;;6043:27;-1:-1:-1;6033:55:1;;6084:1;6081;6074:12;6033:55;6107:74;6173:7;6168:2;6155:16;6150:2;6146;6142:11;6107:74;:::i;:::-;6097:84;;;5520:667;;;;;;;:::o;6192:396::-;6270:6;6278;6331:2;6319:9;6310:7;6306:23;6302:32;6299:52;;;6347:1;6344;6337:12;6299:52;6370:29;6389:9;6370:29;:::i;:::-;6360:39;;6450:2;6439:9;6435:18;6422:32;6477:18;6469:6;6466:30;6463:50;;;6509:1;6506;6499:12;6593:260;6661:6;6669;6722:2;6710:9;6701:7;6697:23;6693:32;6690:52;;;6738:1;6735;6728:12;6690:52;6761:29;6780:9;6761:29;:::i;:::-;6751:39;;6809:38;6843:2;6832:9;6828:18;6809:38;:::i;6858:437::-;6937:1;6933:12;;;;6980;;;7001:61;;7055:4;7047:6;7043:17;7033:27;;7001:61;7108:2;7100:6;7097:14;7077:18;7074:38;7071:218;;7145:77;7142:1;7135:88;7246:4;7243:1;7236:15;7274:4;7271:1;7264:15;7071:218;;6858:437;;;:::o;7703:496::-;7882:3;7920:6;7914:13;7936:66;7995:6;7990:3;7983:4;7975:6;7971:17;7936:66;:::i;:::-;8065:13;;8024:16;;;;8087:70;8065:13;8024:16;8134:4;8122:17;;8087:70;:::i;:::-;8173:20;;7703:496;-1:-1:-1;;;;7703:496:1:o;8204:349::-;8243:3;8274:66;8267:5;8264:77;8261:257;;8374:77;8371:1;8364:88;8475:4;8472:1;8465:15;8503:4;8500:1;8493:15;8261:257;-1:-1:-1;8545:1:1;8534:13;;8204:349::o;8684:518::-;8786:2;8781:3;8778:11;8775:421;;;8822:5;8819:1;8812:16;8866:4;8863:1;8853:18;8936:2;8924:10;8920:19;8917:1;8913:27;8907:4;8903:38;8972:4;8960:10;8957:20;8954:47;;;-1:-1:-1;8995:4:1;8954:47;9050:2;9045:3;9041:12;9038:1;9034:20;9028:4;9024:31;9014:41;;9105:81;9123:2;9116:5;9113:13;9105:81;;;9182:1;9168:16;;9149:1;9138:13;9105:81;;9438:1464;9564:3;9558:10;9591:18;9583:6;9580:30;9577:56;;;9613:18;;:::i;:::-;9642:97;9732:6;9692:38;9724:4;9718:11;9692:38;:::i;:::-;9686:4;9642:97;:::i;:::-;9794:4;;9851:2;9840:14;;9868:1;9863:782;;;;10689:1;10706:6;10703:89;;;-1:-1:-1;10758:19:1;;;10752:26;10703:89;9344:66;9335:1;9331:11;;;9327:84;9323:89;9313:100;9419:1;9415:11;;;9310:117;10805:81;;9833:1063;;9863:782;8631:1;8624:14;;;8668:4;8655:18;;9911:66;9899:79;;;10076:236;10090:7;10087:1;10084:14;10076:236;;;10179:19;;;10173:26;10158:42;;10271:27;;;;10239:1;10227:14;;;;10106:19;;10076:236;;;10080:3;10340:6;10331:7;10328:19;10325:261;;;10401:19;;;10395:26;10502:66;10484:1;10480:14;;;10496:3;10476:24;10472:97;10468:102;10453:118;10438:134;;10325:261;;;10632:1;10623:6;10620:1;10616:14;10612:22;10606:4;10599:36;9833:1063;;;;;9438:1464;;:::o;10907:512::-;11101:4;-1:-1:-1;;;;;11211:2:1;11203:6;11199:15;11188:9;11181:34;11263:2;11255:6;11251:15;11246:2;11235:9;11231:18;11224:43;;11303:6;11298:2;11287:9;11283:18;11276:34;11346:3;11341:2;11330:9;11326:18;11319:31;11367:46;11408:3;11397:9;11393:19;11385:6;11367:46;:::i;:::-;11359:54;10907:512;-1:-1:-1;;;;;;10907:512:1:o;11424:249::-;11493:6;11546:2;11534:9;11525:7;11521:23;11517:32;11514:52;;;11562:1;11559;11552:12;11514:52;11594:9;11588:16;11613:30;11637:5;11613:30;:::i
Swarm Source
ipfs://a82963ef349ac36ff27a867ac3b3f8545412430fd996e773268ba357eb8ffb84
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.