ERC-721
NFT
Overview
Max Total Supply
511 NUTS
Holders
28
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Nuts
Compiler Version
v0.8.22+commit.4fc1097e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-01-26 */ // File: @openzeppelin/[email protected]/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-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 ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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); } // File: @openzeppelin/[email protected]/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @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); } } } // File: @openzeppelin/[email protected]/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @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 overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { 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 division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { 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; } // (a + b - 1) / b can overflow on addition, so we distribute. 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; } } // File: @openzeppelin/[email protected]/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @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)); } } // File: @openzeppelin/[email protected]/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } } // File: @openzeppelin/[email protected]/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/[email protected]/utils/introspection/IERC165.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/[email protected]/utils/introspection/ERC165.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/[email protected]/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * 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); } // File: @openzeppelin/[email protected]/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.20; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/[email protected]/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; /** * @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); } // File: @openzeppelin/[email protected]/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ 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 ERC721 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 ERC721 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)) } } } } } } // File: @openzeppelin/[email protected]/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.20; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability * of all the token ids in the contract as well as all token ids owned by each account. * * CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`, * interfere with enumerability and should not be used together with `ERC721Enumerable`. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { mapping(address owner => mapping(uint256 index => uint256)) private _ownedTokens; mapping(uint256 tokenId => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 tokenId => uint256) private _allTokensIndex; /** * @dev An `owner`'s token query was out of bounds for `index`. * * NOTE: The owner being `address(0)` indicates a global out of bounds index. */ error ERC721OutOfBoundsIndex(address owner, uint256 index); /** * @dev Batch mint is not allowed. */ error ERC721EnumerableForbiddenBatchMint(); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) { if (index >= balanceOf(owner)) { revert ERC721OutOfBoundsIndex(owner, index); } return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual returns (uint256) { if (index >= totalSupply()) { revert ERC721OutOfBoundsIndex(address(0), index); } return _allTokens[index]; } /** * @dev See {ERC721-_update}. */ function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) { address previousOwner = super._update(to, tokenId, auth); if (previousOwner == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (previousOwner != to) { _removeTokenFromOwnerEnumeration(previousOwner, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (previousOwner != to) { _addTokenToOwnerEnumeration(to, tokenId); } return previousOwner; } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = balanceOf(to) - 1; _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = balanceOf(from); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } /** * See {ERC721-_increaseBalance}. We need that to account tokens that were minted in batch */ function _increaseBalance(address account, uint128 amount) internal virtual override { if (amount > 0) { revert ERC721EnumerableForbiddenBatchMint(); } super._increaseBalance(account, amount); } } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer( address recipient, uint256 amount ) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance( address owner, address spender ) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval( address indexed owner, address indexed spender, uint256 value ); } // File: Nuts.sol pragma solidity ^0.8.20; contract Nuts is ERC721, ERC721Enumerable { IERC20 public immutable nutcoin; uint256 public constant MAX_NFT_SUPPLY = 10000; uint256 public MAX_NFT_PER_MINT = 100; constructor() ERC721("Nuts", "NUTS") { // input set to the address of Nutcoin (NUT) ERC20 token contract. nutcoin = IERC20(0x473F4068073Cd5b2aB0E4Cc8E146F9EDC6fb52CC); } function _baseURI() internal pure override returns (string memory) { return "ipfs://bafybeih4isbjpv27sstnbfshcxze74fj6bpwq4eyiyz7i4myvmfytrvuly/"; } /** * Mint NFT(s) */ function mint(uint256 quantity) external { require(totalSupply() < MAX_NFT_SUPPLY, "All NFTs already minted"); require(quantity > 0, "Minting quantity cannot be 0"); require(quantity <= MAX_NFT_PER_MINT, "Can only mint up to 100 NFTs at a time"); require(totalSupply() + quantity <= MAX_NFT_SUPPLY, "Exceeds MAX_NFT_SUPPLY"); // 1,000,000,000 required of Nutcoin (NUT) to be burnt in order to mint 1 NUTS NFT uint256 nutcoin_amount = 1000000000 ether; nutcoin.transferFrom(msg.sender, address(this), nutcoin_amount * quantity); for(uint i = 0; i < quantity; i++) { uint mintIndex = totalSupply(); if (totalSupply() < MAX_NFT_SUPPLY) { _safeMint(msg.sender, mintIndex); } } } // The following functions are overrides required by Solidity. function _update(address to, uint256 tokenId, address auth) internal override(ERC721, ERC721Enumerable) returns (address) { return super._update(to, tokenId, auth); } function _increaseBalance(address account, uint128 value) internal override(ERC721, ERC721Enumerable) { super._increaseBalance(account, value); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","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"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","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":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":"MAX_NFT_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nutcoin","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"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
60a06040526064600a5534801562000015575f80fd5b50604051806040016040528060048152602001634e75747360e01b815250604051806040016040528060048152602001634e55545360e01b815250815f90816200006091906200012e565b5060016200006f82826200012e565b505073473f4068073cd5b2ab0e4cc8e146f9edc6fb52cc60805250620001fa565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620000b957607f821691505b602082108103620000d857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200012957805f5260205f20601f840160051c81016020851015620001055750805b601f840160051c820191505b8181101562000126575f815560010162000111565b50505b505050565b81516001600160401b038111156200014a576200014a62000090565b62000162816200015b8454620000a4565b84620000de565b602080601f83116001811462000198575f8415620001805750858301515b5f19600386901b1c1916600185901b178555620001f2565b5f85815260208120601f198616915b82811015620001c857888601518255948401946001909101908401620001a7565b5085821015620001e657878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b60805161168b6200021a5f395f81816102aa01526106e2015261168b5ff3fe608060405234801561000f575f80fd5b5060043610610127575f3560e01c806370a08231116100a9578063b88d4fde1161006e578063b88d4fde14610263578063c87b56dd14610276578063da6da9ee14610289578063e985e9c514610292578063ecfb8b55146102a5575f80fd5b806370a082311461021957806395d89b411461022c578063a0712d6814610234578063a22cb46514610247578063b5077f441461025a575f80fd5b806323b872dd116100ef57806323b872dd146101ba5780632f745c59146101cd57806342842e0e146101e05780634f6ccce7146101f35780636352211e14610206575f80fd5b806301ffc9a71461012b57806306fdde0314610153578063081812fc14610168578063095ea7b31461019357806318160ddd146101a8575b5f80fd5b61013e61013936600461123f565b6102cc565b60405190151581526020015b60405180910390f35b61015b6102dc565b60405161014a91906112a7565b61017b6101763660046112b9565b61036b565b6040516001600160a01b03909116815260200161014a565b6101a66101a13660046112eb565b610392565b005b6008545b60405190815260200161014a565b6101a66101c8366004611313565b6103a1565b6101ac6101db3660046112eb565b61042f565b6101a66101ee366004611313565b610492565b6101ac6102013660046112b9565b6104b1565b61017b6102143660046112b9565b610506565b6101ac61022736600461134c565b610510565b61015b610555565b6101a66102423660046112b9565b610564565b6101a6610255366004611372565b6107c4565b6101ac61271081565b6101a66102713660046113bb565b6107cf565b61015b6102843660046112b9565b6107e6565b6101ac600a5481565b61013e6102a0366004611490565b61084b565b61017b7f000000000000000000000000000000000000000000000000000000000000000081565b5f6102d682610878565b92915050565b60605f80546102ea906114c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610316906114c1565b80156103615780601f1061033857610100808354040283529160200191610361565b820191905f5260205f20905b81548152906001019060200180831161034457829003601f168201915b5050505050905090565b5f6103758261089c565b505f828152600460205260409020546001600160a01b03166102d6565b61039d8282336108d4565b5050565b6001600160a01b0382166103cf57604051633250574960e11b81525f60048201526024015b60405180910390fd5b5f6103db8383336108e1565b9050836001600160a01b0316816001600160a01b031614610429576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016103c6565b50505050565b5f61043983610510565b821061046a5760405163295f44f760e21b81526001600160a01b0384166004820152602481018390526044016103c6565b506001600160a01b03919091165f908152600660209081526040808320938352929052205490565b6104ac83838360405180602001604052805f8152506107cf565b505050565b5f6104bb60085490565b82106104e35760405163295f44f760e21b81525f6004820152602481018390526044016103c6565b600882815481106104f6576104f66114f9565b905f5260205f2001549050919050565b5f6102d68261089c565b5f6001600160a01b03821661053a576040516322718ad960e21b81525f60048201526024016103c6565b506001600160a01b03165f9081526003602052604090205490565b6060600180546102ea906114c1565b61271061057060085490565b106105bd5760405162461bcd60e51b815260206004820152601760248201527f416c6c204e46547320616c7265616479206d696e74656400000000000000000060448201526064016103c6565b5f811161060c5760405162461bcd60e51b815260206004820152601c60248201527f4d696e74696e67207175616e746974792063616e6e6f7420626520300000000060448201526064016103c6565b600a5481111561066d5760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c79206d696e7420757020746f20313030204e46547320617420604482015265612074696d6560d01b60648201526084016103c6565b6127108161067a60085490565b6106849190611521565b11156106cb5760405162461bcd60e51b815260206004820152601660248201527545786365656473204d41585f4e46545f535550504c5960501b60448201526064016103c6565b6b033b2e3c9fd0803ce80000006001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166323b872dd33306107138686611534565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303815f875af1158015610764573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610788919061154b565b505f5b828110156104ac575f61079d60085490565b90506127106107ab60085490565b10156107bb576107bb33826108f5565b5060010161078b565b61039d33838361090e565b6107da8484846103a1565b610429848484846109ac565b60606107f18261089c565b505f6107fb610ad2565b90505f8151116108195760405180602001604052805f815250610844565b8061082384610af2565b604051602001610834929190611566565b6040516020818303038152906040525b9392505050565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b5f6001600160e01b0319821663780e9d6360e01b14806102d657506102d682610b82565b5f818152600260205260408120546001600160a01b0316806102d657604051637e27328960e01b8152600481018490526024016103c6565b6104ac8383836001610bd1565b5f6108ed848484610cd5565b949350505050565b61039d828260405180602001604052805f815250610da0565b6001600160a01b03821661094057604051630b61174360e31b81526001600160a01b03831660048201526024016103c6565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561042957604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906109ee903390889087908790600401611594565b6020604051808303815f875af1925050508015610a28575060408051601f3d908101601f19168201909252610a25918101906115d0565b60015b610a8f573d808015610a55576040519150601f19603f3d011682016040523d82523d5f602084013e610a5a565b606091505b5080515f03610a8757604051633250574960e11b81526001600160a01b03851660048201526024016103c6565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14610acb57604051633250574960e11b81526001600160a01b03851660048201526024016103c6565b5050505050565b606060405180608001604052806043815260200161161360439139905090565b60605f610afe83610db6565b60010190505f8167ffffffffffffffff811115610b1d57610b1d6113a7565b6040519080825280601f01601f191660200182016040528015610b47576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610b5157509392505050565b5f6001600160e01b031982166380ac58cd60e01b1480610bb257506001600160e01b03198216635b5e139f60e01b145b806102d657506301ffc9a760e01b6001600160e01b03198316146102d6565b8080610be557506001600160a01b03821615155b15610ca6575f610bf48461089c565b90506001600160a01b03831615801590610c205750826001600160a01b0316816001600160a01b031614155b8015610c335750610c31818461084b565b155b15610c5c5760405163a9fbf51f60e01b81526001600160a01b03841660048201526024016103c6565b8115610ca45783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b5f80610ce2858585610e8d565b90506001600160a01b038116610d3e57610d3984600880545f838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b610d61565b846001600160a01b0316816001600160a01b031614610d6157610d618185610f7f565b6001600160a01b038516610d7d57610d788461100c565b6108ed565b846001600160a01b0316816001600160a01b0316146108ed576108ed85856110b3565b610daa8383611101565b6104ac5f8484846109ac565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610df45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610e20576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610e3e57662386f26fc10000830492506010015b6305f5e1008310610e56576305f5e100830492506008015b6127108310610e6a57612710830492506004015b60648310610e7c576064830492506002015b600a83106102d65760010192915050565b5f828152600260205260408120546001600160a01b0390811690831615610eb957610eb9818486611162565b6001600160a01b03811615610ef357610ed45f855f80610bd1565b6001600160a01b0381165f90815260036020526040902080545f190190555b6001600160a01b03851615610f21576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b5f610f8983610510565b5f83815260076020526040902054909150808214610fda576001600160a01b0384165f9081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b505f9182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008545f9061101d906001906115eb565b5f8381526009602052604081205460088054939450909284908110611044576110446114f9565b905f5260205f20015490508060088381548110611063576110636114f9565b5f91825260208083209091019290925582815260099091526040808220849055858252812055600880548061109a5761109a6115fe565b600190038181905f5260205f20015f9055905550505050565b5f60016110bf84610510565b6110c991906115eb565b6001600160a01b039093165f908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b03821661112a57604051633250574960e11b81525f60048201526024016103c6565b5f61113683835f6108e1565b90506001600160a01b038116156104ac576040516339e3563760e11b81525f60048201526024016103c6565b61116d8383836111c6565b6104ac576001600160a01b03831661119b57604051637e27328960e01b8152600481018290526024016103c6565b60405163177e802f60e01b81526001600160a01b0383166004820152602481018290526044016103c6565b5f6001600160a01b038316158015906108ed5750826001600160a01b0316846001600160a01b031614806111ff57506111ff848461084b565b806108ed5750505f908152600460205260409020546001600160a01b03908116911614919050565b6001600160e01b03198116811461123c575f80fd5b50565b5f6020828403121561124f575f80fd5b813561084481611227565b5f5b8381101561127457818101518382015260200161125c565b50505f910152565b5f815180845261129381602086016020860161125a565b601f01601f19169290920160200192915050565b602081525f610844602083018461127c565b5f602082840312156112c9575f80fd5b5035919050565b80356001600160a01b03811681146112e6575f80fd5b919050565b5f80604083850312156112fc575f80fd5b611305836112d0565b946020939093013593505050565b5f805f60608486031215611325575f80fd5b61132e846112d0565b925061133c602085016112d0565b9150604084013590509250925092565b5f6020828403121561135c575f80fd5b610844826112d0565b801515811461123c575f80fd5b5f8060408385031215611383575f80fd5b61138c836112d0565b9150602083013561139c81611365565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f805f80608085870312156113ce575f80fd5b6113d7856112d0565b93506113e5602086016112d0565b925060408501359150606085013567ffffffffffffffff80821115611408575f80fd5b818701915087601f83011261141b575f80fd5b81358181111561142d5761142d6113a7565b604051601f8201601f19908116603f01168101908382118183101715611455576114556113a7565b816040528281528a602084870101111561146d575f80fd5b826020860160208301375f60208483010152809550505050505092959194509250565b5f80604083850312156114a1575f80fd5b6114aa836112d0565b91506114b8602084016112d0565b90509250929050565b600181811c908216806114d557607f821691505b6020821081036114f357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b808201808211156102d6576102d661150d565b80820281158282048414176102d6576102d661150d565b5f6020828403121561155b575f80fd5b815161084481611365565b5f835161157781846020880161125a565b83519083019061158b81836020880161125a565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906115c69083018461127c565b9695505050505050565b5f602082840312156115e0575f80fd5b815161084481611227565b818103818111156102d6576102d661150d565b634e487b7160e01b5f52603160045260245ffdfe697066733a2f2f6261667962656968346973626a707632377373746e6266736863787a653734666a366270777134657969797a3769346d79766d6679747276756c792fa2646970667358221220af1acfef6a6c1ab8d6407fb893dde2f711876e790f8e541f421112a1e6cdb28d64736f6c63430008160033
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610127575f3560e01c806370a08231116100a9578063b88d4fde1161006e578063b88d4fde14610263578063c87b56dd14610276578063da6da9ee14610289578063e985e9c514610292578063ecfb8b55146102a5575f80fd5b806370a082311461021957806395d89b411461022c578063a0712d6814610234578063a22cb46514610247578063b5077f441461025a575f80fd5b806323b872dd116100ef57806323b872dd146101ba5780632f745c59146101cd57806342842e0e146101e05780634f6ccce7146101f35780636352211e14610206575f80fd5b806301ffc9a71461012b57806306fdde0314610153578063081812fc14610168578063095ea7b31461019357806318160ddd146101a8575b5f80fd5b61013e61013936600461123f565b6102cc565b60405190151581526020015b60405180910390f35b61015b6102dc565b60405161014a91906112a7565b61017b6101763660046112b9565b61036b565b6040516001600160a01b03909116815260200161014a565b6101a66101a13660046112eb565b610392565b005b6008545b60405190815260200161014a565b6101a66101c8366004611313565b6103a1565b6101ac6101db3660046112eb565b61042f565b6101a66101ee366004611313565b610492565b6101ac6102013660046112b9565b6104b1565b61017b6102143660046112b9565b610506565b6101ac61022736600461134c565b610510565b61015b610555565b6101a66102423660046112b9565b610564565b6101a6610255366004611372565b6107c4565b6101ac61271081565b6101a66102713660046113bb565b6107cf565b61015b6102843660046112b9565b6107e6565b6101ac600a5481565b61013e6102a0366004611490565b61084b565b61017b7f000000000000000000000000473f4068073cd5b2ab0e4cc8e146f9edc6fb52cc81565b5f6102d682610878565b92915050565b60605f80546102ea906114c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610316906114c1565b80156103615780601f1061033857610100808354040283529160200191610361565b820191905f5260205f20905b81548152906001019060200180831161034457829003601f168201915b5050505050905090565b5f6103758261089c565b505f828152600460205260409020546001600160a01b03166102d6565b61039d8282336108d4565b5050565b6001600160a01b0382166103cf57604051633250574960e11b81525f60048201526024015b60405180910390fd5b5f6103db8383336108e1565b9050836001600160a01b0316816001600160a01b031614610429576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016103c6565b50505050565b5f61043983610510565b821061046a5760405163295f44f760e21b81526001600160a01b0384166004820152602481018390526044016103c6565b506001600160a01b03919091165f908152600660209081526040808320938352929052205490565b6104ac83838360405180602001604052805f8152506107cf565b505050565b5f6104bb60085490565b82106104e35760405163295f44f760e21b81525f6004820152602481018390526044016103c6565b600882815481106104f6576104f66114f9565b905f5260205f2001549050919050565b5f6102d68261089c565b5f6001600160a01b03821661053a576040516322718ad960e21b81525f60048201526024016103c6565b506001600160a01b03165f9081526003602052604090205490565b6060600180546102ea906114c1565b61271061057060085490565b106105bd5760405162461bcd60e51b815260206004820152601760248201527f416c6c204e46547320616c7265616479206d696e74656400000000000000000060448201526064016103c6565b5f811161060c5760405162461bcd60e51b815260206004820152601c60248201527f4d696e74696e67207175616e746974792063616e6e6f7420626520300000000060448201526064016103c6565b600a5481111561066d5760405162461bcd60e51b815260206004820152602660248201527f43616e206f6e6c79206d696e7420757020746f20313030204e46547320617420604482015265612074696d6560d01b60648201526084016103c6565b6127108161067a60085490565b6106849190611521565b11156106cb5760405162461bcd60e51b815260206004820152601660248201527545786365656473204d41585f4e46545f535550504c5960501b60448201526064016103c6565b6b033b2e3c9fd0803ce80000006001600160a01b037f000000000000000000000000473f4068073cd5b2ab0e4cc8e146f9edc6fb52cc166323b872dd33306107138686611534565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303815f875af1158015610764573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610788919061154b565b505f5b828110156104ac575f61079d60085490565b90506127106107ab60085490565b10156107bb576107bb33826108f5565b5060010161078b565b61039d33838361090e565b6107da8484846103a1565b610429848484846109ac565b60606107f18261089c565b505f6107fb610ad2565b90505f8151116108195760405180602001604052805f815250610844565b8061082384610af2565b604051602001610834929190611566565b6040516020818303038152906040525b9392505050565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b5f6001600160e01b0319821663780e9d6360e01b14806102d657506102d682610b82565b5f818152600260205260408120546001600160a01b0316806102d657604051637e27328960e01b8152600481018490526024016103c6565b6104ac8383836001610bd1565b5f6108ed848484610cd5565b949350505050565b61039d828260405180602001604052805f815250610da0565b6001600160a01b03821661094057604051630b61174360e31b81526001600160a01b03831660048201526024016103c6565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b1561042957604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906109ee903390889087908790600401611594565b6020604051808303815f875af1925050508015610a28575060408051601f3d908101601f19168201909252610a25918101906115d0565b60015b610a8f573d808015610a55576040519150601f19603f3d011682016040523d82523d5f602084013e610a5a565b606091505b5080515f03610a8757604051633250574960e11b81526001600160a01b03851660048201526024016103c6565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14610acb57604051633250574960e11b81526001600160a01b03851660048201526024016103c6565b5050505050565b606060405180608001604052806043815260200161161360439139905090565b60605f610afe83610db6565b60010190505f8167ffffffffffffffff811115610b1d57610b1d6113a7565b6040519080825280601f01601f191660200182016040528015610b47576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610b5157509392505050565b5f6001600160e01b031982166380ac58cd60e01b1480610bb257506001600160e01b03198216635b5e139f60e01b145b806102d657506301ffc9a760e01b6001600160e01b03198316146102d6565b8080610be557506001600160a01b03821615155b15610ca6575f610bf48461089c565b90506001600160a01b03831615801590610c205750826001600160a01b0316816001600160a01b031614155b8015610c335750610c31818461084b565b155b15610c5c5760405163a9fbf51f60e01b81526001600160a01b03841660048201526024016103c6565b8115610ca45783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b5f80610ce2858585610e8d565b90506001600160a01b038116610d3e57610d3984600880545f838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b610d61565b846001600160a01b0316816001600160a01b031614610d6157610d618185610f7f565b6001600160a01b038516610d7d57610d788461100c565b6108ed565b846001600160a01b0316816001600160a01b0316146108ed576108ed85856110b3565b610daa8383611101565b6104ac5f8484846109ac565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610df45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610e20576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610e3e57662386f26fc10000830492506010015b6305f5e1008310610e56576305f5e100830492506008015b6127108310610e6a57612710830492506004015b60648310610e7c576064830492506002015b600a83106102d65760010192915050565b5f828152600260205260408120546001600160a01b0390811690831615610eb957610eb9818486611162565b6001600160a01b03811615610ef357610ed45f855f80610bd1565b6001600160a01b0381165f90815260036020526040902080545f190190555b6001600160a01b03851615610f21576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b5f610f8983610510565b5f83815260076020526040902054909150808214610fda576001600160a01b0384165f9081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b505f9182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008545f9061101d906001906115eb565b5f8381526009602052604081205460088054939450909284908110611044576110446114f9565b905f5260205f20015490508060088381548110611063576110636114f9565b5f91825260208083209091019290925582815260099091526040808220849055858252812055600880548061109a5761109a6115fe565b600190038181905f5260205f20015f9055905550505050565b5f60016110bf84610510565b6110c991906115eb565b6001600160a01b039093165f908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b03821661112a57604051633250574960e11b81525f60048201526024016103c6565b5f61113683835f6108e1565b90506001600160a01b038116156104ac576040516339e3563760e11b81525f60048201526024016103c6565b61116d8383836111c6565b6104ac576001600160a01b03831661119b57604051637e27328960e01b8152600481018290526024016103c6565b60405163177e802f60e01b81526001600160a01b0383166004820152602481018290526044016103c6565b5f6001600160a01b038316158015906108ed5750826001600160a01b0316846001600160a01b031614806111ff57506111ff848461084b565b806108ed5750505f908152600460205260409020546001600160a01b03908116911614919050565b6001600160e01b03198116811461123c575f80fd5b50565b5f6020828403121561124f575f80fd5b813561084481611227565b5f5b8381101561127457818101518382015260200161125c565b50505f910152565b5f815180845261129381602086016020860161125a565b601f01601f19169290920160200192915050565b602081525f610844602083018461127c565b5f602082840312156112c9575f80fd5b5035919050565b80356001600160a01b03811681146112e6575f80fd5b919050565b5f80604083850312156112fc575f80fd5b611305836112d0565b946020939093013593505050565b5f805f60608486031215611325575f80fd5b61132e846112d0565b925061133c602085016112d0565b9150604084013590509250925092565b5f6020828403121561135c575f80fd5b610844826112d0565b801515811461123c575f80fd5b5f8060408385031215611383575f80fd5b61138c836112d0565b9150602083013561139c81611365565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f805f80608085870312156113ce575f80fd5b6113d7856112d0565b93506113e5602086016112d0565b925060408501359150606085013567ffffffffffffffff80821115611408575f80fd5b818701915087601f83011261141b575f80fd5b81358181111561142d5761142d6113a7565b604051601f8201601f19908116603f01168101908382118183101715611455576114556113a7565b816040528281528a602084870101111561146d575f80fd5b826020860160208301375f60208483010152809550505050505092959194509250565b5f80604083850312156114a1575f80fd5b6114aa836112d0565b91506114b8602084016112d0565b90509250929050565b600181811c908216806114d557607f821691505b6020821081036114f357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b808201808211156102d6576102d661150d565b80820281158282048414176102d6576102d661150d565b5f6020828403121561155b575f80fd5b815161084481611365565b5f835161157781846020880161125a565b83519083019061158b81836020880161125a565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f906115c69083018461127c565b9695505050505050565b5f602082840312156115e0575f80fd5b815161084481611227565b818103818111156102d6576102d661150d565b634e487b7160e01b5f52603160045260245ffdfe697066733a2f2f6261667962656968346973626a707632377373746e6266736863787a653734666a366270777134657969797a3769346d79766d6679747276756c792fa2646970667358221220af1acfef6a6c1ab8d6407fb893dde2f711876e790f8e541f421112a1e6cdb28d64736f6c63430008160033
Deployed Bytecode Sourcemap
65785:2165:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67735:212;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;67735:212:0;;;;;;;;39796:91;;;:::i;:::-;;;;;;;:::i;40968:158::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;40968:158:0;1533:203:1;40787:115:0;;;;;;:::i;:::-;;:::i;:::-;;57558:104;57637:10;:17;57558:104;;;2324:25:1;;;2312:2;2297:18;57558:104:0;2178:177:1;41637:588:0;;;;;;:::i;:::-;;:::i;57222:260::-;;;;;;:::i;:::-;;:::i;42296:134::-;;;;;;:::i;:::-;;:::i;57739:231::-;;;;;;:::i;:::-;;:::i;39609:120::-;;;;;;:::i;:::-;;:::i;39334:213::-;;;;;;:::i;:::-;;:::i;39956:95::-;;;:::i;66388:855::-;;;;;;:::i;:::-;;:::i;41198:146::-;;;;;;:::i;:::-;;:::i;65876:46::-;;65917:5;65876:46;;42501:211;;;;;;:::i;:::-;;:::i;40122:260::-;;;;;;:::i;:::-;;:::i;65929:37::-;;;;;;41415:155;;;;;;:::i;:::-;;:::i;65836:31::-;;;;;67735:212;67874:4;67903:36;67927:11;67903:23;:36::i;:::-;67896:43;67735:212;-1:-1:-1;;67735:212:0:o;39796:91::-;39841:13;39874:5;39867:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39796:91;:::o;40968:158::-;41035:7;41055:22;41069:7;41055:13;:22::i;:::-;-1:-1:-1;43544:7:0;43571:24;;;:15;:24;;;;;;-1:-1:-1;;;;;43571:24:0;41097:21;43474:129;40787:115;40859:35;40868:2;40872:7;27565:10;40859:8;:35::i;:::-;40787:115;;:::o;41637:588::-;-1:-1:-1;;;;;41732:16:0;;41728:89;;41772:33;;-1:-1:-1;;;41772:33:0;;41802:1;41772:33;;;1679:51:1;1652:18;;41772:33:0;;;;;;;;41728:89;42038:21;42062:34;42070:2;42074:7;27565:10;42062:7;:34::i;:::-;42038:58;;42128:4;-1:-1:-1;;;;;42111:21:0;:13;-1:-1:-1;;;;;42111:21:0;;42107:111;;42156:50;;-1:-1:-1;;;42156:50:0;;-1:-1:-1;;;;;5733:15:1;;;42156:50:0;;;5715:34:1;5765:18;;;5758:34;;;5828:15;;5808:18;;;5801:43;5650:18;;42156:50:0;5475:375:1;42107:111:0;41717:508;41637:588;;;:::o;57222:260::-;57310:7;57343:16;57353:5;57343:9;:16::i;:::-;57334:5;:25;57330:101;;57383:36;;-1:-1:-1;;;57383:36:0;;-1:-1:-1;;;;;6047:32:1;;57383:36:0;;;6029:51:1;6096:18;;;6089:34;;;6002:18;;57383:36:0;5855:274:1;57330:101:0;-1:-1:-1;;;;;;57448:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;57222:260::o;42296:134::-;42383:39;42400:4;42406:2;42410:7;42383:39;;;;;;;;;;;;:16;:39::i;:::-;42296:134;;;:::o;57739:231::-;57805:7;57838:13;57637:10;:17;;57558:104;57838:13;57829:5;:22;57825:103;;57875:41;;-1:-1:-1;;;57875:41:0;;57906:1;57875:41;;;6029:51:1;6096:18;;;6089:34;;;6002:18;;57875:41:0;5855:274:1;57825:103:0;57945:10;57956:5;57945:17;;;;;;;;:::i;:::-;;;;;;;;;57938:24;;57739:231;;;:::o;39609:120::-;39672:7;39699:22;39713:7;39699:13;:22::i;39334:213::-;39397:7;-1:-1:-1;;;;;39421:19:0;;39417:89;;39464:30;;-1:-1:-1;;;39464:30:0;;39491:1;39464:30;;;1679:51:1;1652:18;;39464:30:0;1533:203:1;39417:89:0;-1:-1:-1;;;;;;39523:16:0;;;;;:9;:16;;;;;;;39334:213::o;39956:95::-;40003:13;40036:7;40029:14;;;;;:::i;66388:855::-;65917:5;66448:13;57637:10;:17;;57558:104;66448:13;:30;66440:66;;;;-1:-1:-1;;;66440:66:0;;6468:2:1;66440:66:0;;;6450:21:1;6507:2;6487:18;;;6480:30;6546:25;6526:18;;;6519:53;6589:18;;66440:66:0;6266:347:1;66440:66:0;66536:1;66525:8;:12;66517:53;;;;-1:-1:-1;;;66517:53:0;;6820:2:1;66517:53:0;;;6802:21:1;6859:2;6839:18;;;6832:30;6898;6878:18;;;6871:58;6946:18;;66517:53:0;6618:352:1;66517:53:0;66601:16;;66589:8;:28;;66581:79;;;;-1:-1:-1;;;66581:79:0;;7177:2:1;66581:79:0;;;7159:21:1;7216:2;7196:18;;;7189:30;7255:34;7235:18;;;7228:62;-1:-1:-1;;;7306:18:1;;;7299:36;7352:19;;66581:79:0;6975:402:1;66581:79:0;65917:5;66695:8;66679:13;57637:10;:17;;57558:104;66679:13;:24;;;;:::i;:::-;:42;;66671:77;;;;-1:-1:-1;;;66671:77:0;;7846:2:1;66671:77:0;;;7828:21:1;7885:2;7865:18;;;7858:30;-1:-1:-1;;;7904:18:1;;;7897:52;7966:18;;66671:77:0;7644:346:1;66671:77:0;66895:16;-1:-1:-1;;;;;66922:7:0;:20;;66943:10;66963:4;66970:25;66987:8;66895:16;66970:25;:::i;:::-;66922:74;;-1:-1:-1;;;;;;66922:74:0;;;;;;;-1:-1:-1;;;;;8426:15:1;;;66922:74:0;;;8408:34:1;8478:15;;;;8458:18;;;8451:43;8510:18;;;8503:34;8343:18;;66922:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;67031:6;67027:209;67047:8;67043:1;:12;67027:209;;;67077:14;67094:13;57637:10;:17;;57558:104;67094:13;67077:30;;65917:5;67126:13;57637:10;:17;;57558:104;67126:13;:30;67122:103;;;67177:32;67187:10;67199:9;67177;:32::i;:::-;-1:-1:-1;67057:3:0;;67027:209;;41198:146;41284:52;27565:10;41317:8;41327;41284:18;:52::i;42501:211::-;42615:31;42628:4;42634:2;42638:7;42615:12;:31::i;:::-;42657:47;42680:4;42686:2;42690:7;42699:4;42657:22;:47::i;40122:260::-;40186:13;40212:22;40226:7;40212:13;:22::i;:::-;;40247:21;40271:10;:8;:10::i;:::-;40247:34;;40323:1;40305:7;40299:21;:25;:75;;;;;;;;;;;;;;;;;40341:7;40350:18;:7;:16;:18::i;:::-;40327:42;;;;;;;;;:::i;:::-;;;;;;;;;;;;;40299:75;40292:82;40122:260;-1:-1:-1;;;40122:260:0:o;41415:155::-;-1:-1:-1;;;;;41527:25:0;;;41503:4;41527:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;41415:155::o;56914:224::-;57016:4;-1:-1:-1;;;;;;57040:50:0;;-1:-1:-1;;;57040:50:0;;:90;;;57094:36;57118:11;57094:23;:36::i;53943:247::-;54006:7;43329:16;;;:7;:16;;;;;;-1:-1:-1;;;;;43329:16:0;;54070:90;;54117:31;;-1:-1:-1;;;54117:31:0;;;;;2324:25:1;;;2297:18;;54117:31:0;2178:177:1;52175:122:0;52256:33;52265:2;52269:7;52278:4;52284;52256:8;:33::i;67325:212::-;67465:7;67497:32;67511:2;67515:7;67524:4;67497:13;:32::i;:::-;67490:39;67325:212;-1:-1:-1;;;;67325:212:0:o;48294:102::-;48362:26;48372:2;48376:7;48362:26;;;;;;;;;;;;:9;:26::i;53382:318::-;-1:-1:-1;;;;;53490:22:0;;53486:93;;53536:31;;-1:-1:-1;;;53536:31:0;;-1:-1:-1;;;;;1697:32:1;;53536:31:0;;;1679:51:1;1652:18;;53536:31:0;1533:203:1;53486:93:0;-1:-1:-1;;;;;53589:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;53589:46:0;;;;;;;;;;53651:41;;540::1;;;53651::0;;513:18:1;53651:41:0;;;;;;;53382:318;;;:::o;54740:799::-;-1:-1:-1;;;;;54857:14:0;;;:18;54853:679;;54896:71;;-1:-1:-1;;;54896:71:0;;-1:-1:-1;;;;;54896:36:0;;;;;:71;;27565:10;;54947:4;;54953:7;;54962:4;;54896:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54896:71:0;;;;;;;;-1:-1:-1;;54896:71:0;;;;;;;;;;;;:::i;:::-;;;54892:629;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55210:6;:13;55227:1;55210:18;55206:300;;55260:25;;-1:-1:-1;;;55260:25:0;;-1:-1:-1;;;;;1697:32:1;;55260:25:0;;;1679:51:1;1652:18;;55260:25:0;1533:203:1;55206:300:0;55456:6;55450:13;55441:6;55437:2;55433:15;55426:38;54892:629;-1:-1:-1;;;;;;55015:51:0;;-1:-1:-1;;;55015:51:0;55011:132;;55098:25;;-1:-1:-1;;;55098:25:0;;-1:-1:-1;;;;;1697:32:1;;55098:25:0;;;1679:51:1;1652:18;;55098:25:0;1533:203:1;55011:132:0;54968:190;54740:799;;;;:::o;66178:162::-;66230:13;66256:76;;;;;;;;;;;;;;;;;;;66178:162;:::o;24249:718::-;24305:13;24356:14;24373:17;24384:5;24373:10;:17::i;:::-;24393:1;24373:21;24356:38;;24409:20;24443:6;24432:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24432:18:0;-1:-1:-1;24409:41:0;-1:-1:-1;24574:28:0;;;24590:2;24574:28;24631:290;-1:-1:-1;;24663:5:0;-1:-1:-1;;;24800:2:0;24789:14;;24784:32;24663:5;24771:46;24863:2;24854:11;;;-1:-1:-1;24884:21:0;24631:290;24884:21;-1:-1:-1;24942:6:0;24249:718;-1:-1:-1;;;24249:718:0:o;38965:305::-;39067:4;-1:-1:-1;;;;;;39104:40:0;;-1:-1:-1;;;39104:40:0;;:105;;-1:-1:-1;;;;;;;39161:48:0;;-1:-1:-1;;;39161:48:0;39104:105;:158;;;-1:-1:-1;;;;;;;;;;30701:40:0;;;39226:36;30601:148;52485:678;52647:9;:31;;;-1:-1:-1;;;;;;52660:18:0;;;;52647:31;52643:471;;;52695:13;52711:22;52725:7;52711:13;:22::i;:::-;52695:38;-1:-1:-1;;;;;;52864:18:0;;;;;;:35;;;52895:4;-1:-1:-1;;;;;52886:13:0;:5;-1:-1:-1;;;;;52886:13:0;;;52864:35;:69;;;;;52904:29;52921:5;52928:4;52904:16;:29::i;:::-;52903:30;52864:69;52860:144;;;52961:27;;-1:-1:-1;;;52961:27:0;;-1:-1:-1;;;;;1697:32:1;;52961:27:0;;;1679:51:1;1652:18;;52961:27:0;1533:203:1;52860:144:0;53024:9;53020:83;;;53079:7;53075:2;-1:-1:-1;;;;;53059:28:0;53068:5;-1:-1:-1;;;;;53059:28:0;;;;;;;;;;;53020:83;52680:434;52643:471;-1:-1:-1;;53126:24:0;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;53126:29:0;-1:-1:-1;;;;;53126:29:0;;;;;;;;;;52485:678::o;58031:640::-;58126:7;58146:21;58170:32;58184:2;58188:7;58197:4;58170:13;:32::i;:::-;58146:56;-1:-1:-1;;;;;;58219:27:0;;58215:214;;58263:40;58295:7;59495:10;:17;;59468:24;;;;:15;:24;;;;;:44;;;59523:24;;;;;;;;;;;;59391:164;58263:40;58215:214;;;58342:2;-1:-1:-1;;;;;58325:19:0;:13;-1:-1:-1;;;;;58325:19:0;;58321:108;;58361:56;58394:13;58409:7;58361:32;:56::i;:::-;-1:-1:-1;;;;;58443:16:0;;58439:192;;58476:45;58513:7;58476:36;:45::i;:::-;58439:192;;;58560:2;-1:-1:-1;;;;;58543:19:0;:13;-1:-1:-1;;;;;58543:19:0;;58539:92;;58579:40;58607:2;58611:7;58579:27;:40::i;48623:185::-;48718:18;48724:2;48728:7;48718:5;:18::i;:::-;48747:53;48778:1;48782:2;48786:7;48795:4;48747:22;:53::i;20647:948::-;20700:7;;-1:-1:-1;;;20778:17:0;;20774:106;;-1:-1:-1;;;20816:17:0;;;-1:-1:-1;20862:2:0;20852:12;20774:106;20907:8;20898:5;:17;20894:106;;20945:8;20936:17;;;-1:-1:-1;20982:2:0;20972:12;20894:106;21027:8;21018:5;:17;21014:106;;21065:8;21056:17;;;-1:-1:-1;21102:2:0;21092:12;21014:106;21147:7;21138:5;:16;21134:103;;21184:7;21175:16;;;-1:-1:-1;21220:1:0;21210:11;21134:103;21264:7;21255:5;:16;21251:103;;21301:7;21292:16;;;-1:-1:-1;21337:1:0;21327:11;21251:103;21381:7;21372:5;:16;21368:103;;21418:7;21409:16;;;-1:-1:-1;21454:1:0;21444:11;21368:103;21498:7;21489:5;:16;21485:68;;21536:1;21526:11;21581:6;20647:948;-1:-1:-1;;20647:948:0:o;46436:824::-;46522:7;43329:16;;;:7;:16;;;;;;-1:-1:-1;;;;;43329:16:0;;;;46637:18;;;46633:88;;46672:37;46689:4;46695;46701:7;46672:16;:37::i;:::-;-1:-1:-1;;;;;46768:18:0;;;46764:263;;46886:48;46903:1;46907:7;46924:1;46928:5;46886:8;:48::i;:::-;-1:-1:-1;;;;;46980:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;46980:20:0;;;46764:263;-1:-1:-1;;;;;47043:16:0;;;47039:111;;-1:-1:-1;;;;;47105:13:0;;;;;;:9;:13;;;;;:18;;47122:1;47105:18;;;47039:111;47162:16;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;47162:21:0;-1:-1:-1;;;;;47162:21:0;;;;;;;;;47201:27;;47162:16;;47201:27;;;;;;;47248:4;46436:824;-1:-1:-1;;;;46436:824:0:o;60182:977::-;60448:22;60473:15;60483:4;60473:9;:15::i;:::-;60499:18;60520:26;;;:17;:26;;;;;;60448:40;;-1:-1:-1;60653:28:0;;;60649:328;;-1:-1:-1;;;;;60720:18:0;;60698:19;60720:18;;;:12;:18;;;;;;;;:34;;;;;;;;;60771:30;;;;;;:44;;;60888:30;;:17;:30;;;;;:43;;;60649:328;-1:-1:-1;61073:26:0;;;;:17;:26;;;;;;;;61066:33;;;-1:-1:-1;;;;;61117:18:0;;;;;:12;:18;;;;;:34;;;;;;;61110:41;60182:977::o;61454:1079::-;61732:10;:17;61707:22;;61732:21;;61752:1;;61732:21;:::i;:::-;61764:18;61785:24;;;:15;:24;;;;;;62158:10;:26;;61707:46;;-1:-1:-1;61785:24:0;;61707:46;;62158:26;;;;;;:::i;:::-;;;;;;;;;62136:48;;62222:11;62197:10;62208;62197:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;62302:28;;;:15;:28;;;;;;;:41;;;62474:24;;;;;62467:31;62509:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;61525:1008;;;61454:1079;:::o;58972:218::-;59057:14;59090:1;59074:13;59084:2;59074:9;:13::i;:::-;:17;;;;:::i;:::-;-1:-1:-1;;;;;59102:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;59147:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;58972:218:0:o;47596:335::-;-1:-1:-1;;;;;47664:16:0;;47660:89;;47704:33;;-1:-1:-1;;;47704:33:0;;47734:1;47704:33;;;1679:51:1;1652:18;;47704:33:0;1533:203:1;47660:89:0;47759:21;47783:32;47791:2;47795:7;47812:1;47783:7;:32::i;:::-;47759:56;-1:-1:-1;;;;;;47830:27:0;;;47826:98;;47881:31;;-1:-1:-1;;;47881:31:0;;47909:1;47881:31;;;1679:51:1;1652:18;;47881:31:0;1533:203:1;44643:376:0;44756:38;44770:5;44777:7;44786;44756:13;:38::i;:::-;44751:261;;-1:-1:-1;;;;;44815:19:0;;44811:190;;44862:31;;-1:-1:-1;;;44862:31:0;;;;;2324:25:1;;;2297:18;;44862:31:0;2178:177:1;44811:190:0;44941:44;;-1:-1:-1;;;44941:44:0;;-1:-1:-1;;;;;6047:32:1;;44941:44:0;;;6029:51:1;6096:18;;;6089:34;;;6002:18;;44941:44:0;5855:274:1;43923:276:0;44026:4;-1:-1:-1;;;;;44063:21:0;;;;;;:128;;;44111:7;-1:-1:-1;;;;;44102:16:0;:5;-1:-1:-1;;;;;44102:16:0;;:52;;;;44122:32;44139:5;44146:7;44122:16;:32::i;:::-;44102:88;;;-1:-1:-1;;43544:7:0;43571:24;;;:15;:24;;;;;;-1:-1:-1;;;;;43571:24:0;;;44158:32;;;;;-1:-1:-1;43923:276:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;68:71;14:131;:::o;150:245::-;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:186::-;2752:6;2805:2;2793:9;2784:7;2780:23;2776:32;2773:52;;;2821:1;2818;2811:12;2773:52;2844:29;2863:9;2844:29;:::i;2884:118::-;2970:5;2963:13;2956:21;2949:5;2946:32;2936:60;;2992:1;2989;2982:12;3007:315;3072:6;3080;3133:2;3121:9;3112:7;3108:23;3104:32;3101:52;;;3149:1;3146;3139:12;3101:52;3172:29;3191:9;3172:29;:::i;:::-;3162:39;;3251:2;3240:9;3236:18;3223:32;3264:28;3286:5;3264:28;:::i;:::-;3311:5;3301:15;;;3007:315;;;;;:::o;3327:127::-;3388:10;3383:3;3379:20;3376:1;3369:31;3419:4;3416:1;3409:15;3443:4;3440:1;3433:15;3459:1138;3554:6;3562;3570;3578;3631:3;3619:9;3610:7;3606:23;3602:33;3599:53;;;3648:1;3645;3638:12;3599:53;3671:29;3690:9;3671:29;:::i;:::-;3661:39;;3719:38;3753:2;3742:9;3738:18;3719:38;:::i;:::-;3709:48;;3804:2;3793:9;3789:18;3776:32;3766:42;;3859:2;3848:9;3844:18;3831:32;3882:18;3923:2;3915:6;3912:14;3909:34;;;3939:1;3936;3929:12;3909:34;3977:6;3966:9;3962:22;3952:32;;4022:7;4015:4;4011:2;4007:13;4003:27;3993:55;;4044:1;4041;4034:12;3993:55;4080:2;4067:16;4102:2;4098;4095:10;4092:36;;;4108:18;;:::i;:::-;4183:2;4177:9;4151:2;4237:13;;-1:-1:-1;;4233:22:1;;;4257:2;4229:31;4225:40;4213:53;;;4281:18;;;4301:22;;;4278:46;4275:72;;;4327:18;;:::i;:::-;4367:10;4363:2;4356:22;4402:2;4394:6;4387:18;4442:7;4437:2;4432;4428;4424:11;4420:20;4417:33;4414:53;;;4463:1;4460;4453:12;4414:53;4519:2;4514;4510;4506:11;4501:2;4493:6;4489:15;4476:46;4564:1;4559:2;4554;4546:6;4542:15;4538:24;4531:35;4585:6;4575:16;;;;;;;3459:1138;;;;;;;:::o;4602:260::-;4670:6;4678;4731:2;4719:9;4710:7;4706:23;4702:32;4699:52;;;4747:1;4744;4737:12;4699:52;4770:29;4789:9;4770:29;:::i;:::-;4760:39;;4818:38;4852:2;4841:9;4837:18;4818:38;:::i;:::-;4808:48;;4602:260;;;;;:::o;5090:380::-;5169:1;5165:12;;;;5212;;;5233:61;;5287:4;5279:6;5275:17;5265:27;;5233:61;5340:2;5332:6;5329:14;5309:18;5306:38;5303:161;;5386:10;5381:3;5377:20;5374:1;5367:31;5421:4;5418:1;5411:15;5449:4;5446:1;5439:15;5303:161;;5090:380;;;:::o;6134:127::-;6195:10;6190:3;6186:20;6183:1;6176:31;6226:4;6223:1;6216:15;6250:4;6247:1;6240:15;7382:127;7443:10;7438:3;7434:20;7431:1;7424:31;7474:4;7471:1;7464:15;7498:4;7495:1;7488:15;7514:125;7579:9;;;7600:10;;;7597:36;;;7613:18;;:::i;7995:168::-;8068:9;;;8099;;8116:15;;;8110:22;;8096:37;8086:71;;8137:18;;:::i;8548:245::-;8615:6;8668:2;8656:9;8647:7;8643:23;8639:32;8636:52;;;8684:1;8681;8674:12;8636:52;8716:9;8710:16;8735:28;8757:5;8735:28;:::i;8798:496::-;8977:3;9015:6;9009:13;9031:66;9090:6;9085:3;9078:4;9070:6;9066:17;9031:66;:::i;:::-;9160:13;;9119:16;;;;9182:70;9160:13;9119:16;9229:4;9217:17;;9182:70;:::i;:::-;9268:20;;8798:496;-1:-1:-1;;;;8798:496:1:o;9299:489::-;-1:-1:-1;;;;;9568:15:1;;;9550:34;;9620:15;;9615:2;9600:18;;9593:43;9667:2;9652:18;;9645:34;;;9715:3;9710:2;9695:18;;9688:31;;;9493:4;;9736:46;;9762:19;;9754:6;9736:46;:::i;:::-;9728:54;9299:489;-1:-1:-1;;;;;;9299:489:1:o;9793:249::-;9862:6;9915:2;9903:9;9894:7;9890:23;9886:32;9883:52;;;9931:1;9928;9921:12;9883:52;9963:9;9957:16;9982:30;10006:5;9982:30;:::i;10179:128::-;10246:9;;;10267:11;;;10264:37;;;10281:18;;:::i;10312:127::-;10373:10;10368:3;10364:20;10361:1;10354:31;10404:4;10401:1;10394:15;10428:4;10425:1;10418:15
Swarm Source
ipfs://af1acfef6a6c1ab8d6407fb893dde2f711876e790f8e541f421112a1e6cdb28d
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.