ERC-721
Overview
Max Total Supply
1,000 ONNZ
Holders
109
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 ONNZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Onionz
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-04-19 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/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/contracts/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/contracts/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/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } // File: @openzeppelin/contracts/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/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists(uint256 packed) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED)) } } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) _revert(MintZeroQuantity.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as `_burnCounter` cannot be exceed `_currentIndex + _spotMinted` times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } } // File: contracts/Onionz_.sol pragma solidity ^0.8.9; contract Onionz is Ownable, ERC721A, ReentrancyGuard { uint256 public constant MAX_FREE_MINT = 20; uint256 public maxSupply = 1000; bool public freeSaleOn; mapping(address => uint256) public whiteList; // metadata URI string private _baseTokenURI; constructor(address initialOwner) ERC721A("Onionz", "ONNZ") Ownable(initialOwner) { _baseTokenURI = "ipfs://QmXi6VXkky1TeStrsTuJ6jTqSDFZZuqPxPfNDrsgTUKC3u/"; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } // free function freeMint(uint256 amount) external payable callerIsUser { require(freeSaleOn, "free mint has not begun yet"); require( whiteList[msg.sender] > 0, "you are not eligible for whiteList" ); require(amount <= whiteList[msg.sender], "not eligible for whiteList"); require(amount > 0, "mint must more than 0 token"); require(totalSupply() + amount <= maxSupply, "reached max supply"); whiteList[msg.sender] -= amount; _safeMint(msg.sender, amount); } function setFreeSale(bool _on, address[] memory addresses) external onlyOwner { freeSaleOn = _on; for (uint256 i = 0; i < addresses.length; i++) { whiteList[addresses[i]] = MAX_FREE_MINT; } } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string( abi.encodePacked(baseURI, Strings.toString(tokenId - 1)) ) : ""; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function withdraw() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_FREE_MINT","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":"payable","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":"amount","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freeSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_on","type":"bool"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"setFreeSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526103e8600b5534801562000016575f80fd5b5060405162001bb738038062001bb7833981016040819052620000399162000154565b604080518082018252600681526527b734b7b73d60d11b6020808301919091528251808401909352600483526327a7272d60e11b9083015290826001600160a01b038116620000a157604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000ac8162000105565b506003620000bb838262000223565b506004620000ca828262000223565b50506001808055600a55506040805160608101909152603680825262001b816020830139600e90620000fd908262000223565b5050620002eb565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6020828403121562000165575f80fd5b81516001600160a01b03811681146200017c575f80fd5b9392505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620001ac57607f821691505b602082108103620001cb57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200021e575f81815260208120601f850160051c81016020861015620001f95750805b601f850160051c820191505b818110156200021a5782815560010162000205565b5050505b505050565b81516001600160401b038111156200023f576200023f62000183565b620002578162000250845462000197565b84620001d1565b602080601f8311600181146200028d575f8415620002755750858301515b5f19600386901b1c1916600185901b1785556200021a565b5f85815260208120601f198616915b82811015620002bd578886015182559484019460019091019084016200029c565b5085821015620002db57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b61188880620002f95f395ff3fe608060405260043610610161575f3560e01c806359173a07116100cd57806395d89b4111610087578063c87b56dd11610062578063c87b56dd146103c7578063d5abeb01146103e6578063e985e9c5146103fb578063f2fde38b1461041a575f80fd5b806395d89b4114610381578063a22cb46514610395578063b88d4fde146103b4575f80fd5b806359173a07146102e75780636352211e1461030057806370a082311461031f578063715018a61461033e5780637c928fe9146103525780638da5cb5b14610365575f80fd5b806323b872dd1161011e57806323b872dd1461024f578063372c12b1146102625780633ccfd60b1461028d57806341cda203146102a157806342842e0e146102b557806355f804b3146102c8575f80fd5b806301ffc9a71461016557806306fdde0314610199578063081812fc146101ba578063095ea7b3146101f15780630a7a68811461020657806318160ddd14610225575b5f80fd5b348015610170575f80fd5b5061018461017f366004611264565b610439565b60405190151581526020015b60405180910390f35b3480156101a4575f80fd5b506101ad61048a565b60405161019091906112cc565b3480156101c5575f80fd5b506101d96101d43660046112de565b61051a565b6040516001600160a01b039091168152602001610190565b6102046101ff36600461130b565b610553565b005b348015610211575f80fd5b50610204610220366004611387565b610563565b348015610230575f80fd5b50610241600254600154035f190190565b604051908152602001610190565b61020461025d366004611442565b6105de565b34801561026d575f80fd5b5061024161027c36600461147b565b600d6020525f908152604090205481565b348015610298575f80fd5b50610204610739565b3480156102ac575f80fd5b50610241601481565b6102046102c3366004611442565b6107e2565b3480156102d3575f80fd5b506102046102e2366004611494565b6107fc565b3480156102f2575f80fd5b50600c546101849060ff1681565b34801561030b575f80fd5b506101d961031a3660046112de565b610811565b34801561032a575f80fd5b5061024161033936600461147b565b61081b565b348015610349575f80fd5b5061020461085f565b6102046103603660046112de565b610870565b348015610370575f80fd5b505f546001600160a01b03166101d9565b34801561038c575f80fd5b506101ad610ab6565b3480156103a0575f80fd5b506102046103af366004611500565b610ac5565b6102046103c2366004611531565b610b30565b3480156103d2575f80fd5b506101ad6103e13660046112de565b610b71565b3480156103f1575f80fd5b50610241600b5481565b348015610406575f80fd5b506101846104153660046115ea565b610bfc565b348015610425575f80fd5b5061020461043436600461147b565b610c29565b5f6301ffc9a760e01b6001600160e01b03198316148061046957506380ac58cd60e01b6001600160e01b03198316145b806104845750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461049990611612565b80601f01602080910402602001604051908101604052809291908181526020018280546104c590611612565b80156105105780601f106104e757610100808354040283529160200191610510565b820191905f5260205f20905b8154815290600101906020018083116104f357829003601f168201915b5050505050905090565b5f61052482610c63565b610538576105386333d1c03960e21b610cae565b505f908152600760205260409020546001600160a01b031690565b61055f82826001610cb6565b5050565b61056b610d57565b600c805460ff19168315151790555f5b81518110156105d9576014600d5f84848151811061059b5761059b61164a565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f208190555080806105d190611672565b91505061057b565b505050565b5f6105e882610d83565b6001600160a01b03948516949091508116841461060e5761060e62a1148160e81b610cae565b5f8281526007602052604090208054338082146001600160a01b038816909114176106515761063d8633610bfc565b61065157610651632ce44b5f60e11b610cae565b801561065b575f82555b6001600160a01b038681165f9081526006602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260056020526040812091909155600160e11b841690036106e857600184015f8181526005602052604081205490036106e65760015481146106e6575f8181526005602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f0361073057610730633a954ecd60e21b610cae565b50505050505050565b610741610d57565b610749610e1d565b6040515f90339047908381818185875af1925050503d805f8114610788576040519150601f19603f3d011682016040523d82523d5f602084013e61078d565b606091505b50509050806107d55760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064015b60405180910390fd5b506107e06001600a55565b565b6105d983838360405180602001604052805f815250610b30565b610804610d57565b600e6105d98284836116d7565b5f61048482610d83565b5f6001600160a01b03821661083a5761083a6323d3ad8160e21b610cae565b506001600160a01b03165f9081526006602052604090205467ffffffffffffffff1690565b610867610d57565b6107e05f610e76565b3233146108bf5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016107cc565b600c5460ff166109115760405162461bcd60e51b815260206004820152601b60248201527f66726565206d696e7420686173206e6f7420626567756e20796574000000000060448201526064016107cc565b335f908152600d60205260409020546109775760405162461bcd60e51b815260206004820152602260248201527f796f7520617265206e6f7420656c696769626c6520666f722077686974654c696044820152611cdd60f21b60648201526084016107cc565b335f908152600d60205260409020548111156109d55760405162461bcd60e51b815260206004820152601a60248201527f6e6f7420656c696769626c6520666f722077686974654c69737400000000000060448201526064016107cc565b5f8111610a245760405162461bcd60e51b815260206004820152601b60248201527f6d696e74206d757374206d6f7265207468616e203020746f6b656e000000000060448201526064016107cc565b600b5481610a38600254600154035f190190565b610a429190611792565b1115610a855760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b60448201526064016107cc565b335f908152600d602052604081208054839290610aa39084906117a5565b90915550610ab390503382610ec5565b50565b60606004805461049990611612565b335f8181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b3b8484846105de565b6001600160a01b0383163b15610b6b57610b5784848484610ede565b610b6b57610b6b6368d2bf6b60e11b610cae565b50505050565b6060610b7c82610c63565b610b9957604051630a14c4b560e41b815260040160405180910390fd5b5f610ba2610fbc565b905080515f03610bc05760405180602001604052805f815250610bf5565b80610bd4610bcf6001866117a5565b610fcb565b604051602001610be59291906117b8565b6040516020818303038152906040525b9392505050565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205460ff1690565b610c31610d57565b6001600160a01b038116610c5a57604051631e4fbdf760e01b81525f60048201526024016107cc565b610ab381610e76565b5f81600111610ca957600154821015610ca9575f5b505f8281526005602052604081205490819003610c9f57610c98836117e6565b9250610c78565b600160e01b161590505b919050565b805f5260045ffd5b5f610cc083610811565b9050818015610cd85750336001600160a01b03821614155b15610cfb57610ce78133610bfc565b610cfb57610cfb6367d9dca160e11b610cae565b5f8381526007602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f546001600160a01b031633146107e05760405163118cdaa760e01b81523360048201526024016107cc565b5f81600111610e0d57505f81815260056020526040902054805f03610dfb576001548210610dbb57610dbb636f96cda160e11b610cae565b5b505f19015f818152600560205260409020548015610dbc57600160e01b81165f03610de657919050565b610df6636f96cda160e11b610cae565b610dbc565b600160e01b81165f03610e0d57919050565b610ca9636f96cda160e11b610cae565b6002600a5403610e6f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107cc565b6002600a55565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61055f828260405180602001604052805f81525061105b565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290610f129033908990889088906004016117fb565b6020604051808303815f875af1925050508015610f4c575060408051601f3d908101601f19168201909252610f4991810190611837565b60015b610f9f573d808015610f79576040519150601f19603f3d011682016040523d82523d5f602084013e610f7e565b606091505b5080515f03610f9757610f976368d2bf6b60e11b610cae565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600e805461049990611612565b60605f610fd7836110bd565b60010190505f8167ffffffffffffffff811115610ff657610ff6611342565b6040519080825280601f01601f191660200182016040528015611020576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461102a57509392505050565b6110658383611194565b6001600160a01b0383163b156105d9576001548281035b61108e5f868380600101945086610ede565b6110a2576110a26368d2bf6b60e11b610cae565b81811061107c5781600154146110b6575f80fd5b5050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106110fb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611127576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061114557662386f26fc10000830492506010015b6305f5e100831061115d576305f5e100830492506008015b612710831061117157612710830492506004015b60648310611183576064830492506002015b600a83106104845760010192915050565b6001545f8290036111af576111af63b562e8dd60e01b610cae565b5f8181526005602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526006909252822080546801000000000000000186020190559081900361120c5761120c622e076360e81b610cae565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103611211575060015550505050565b6001600160e01b031981168114610ab3575f80fd5b5f60208284031215611274575f80fd5b8135610bf58161124f565b5f5b83811015611299578181015183820152602001611281565b50505f910152565b5f81518084526112b881602086016020860161127f565b601f01601f19169290920160200192915050565b602081525f610bf560208301846112a1565b5f602082840312156112ee575f80fd5b5035919050565b80356001600160a01b0381168114610ca9575f80fd5b5f806040838503121561131c575f80fd5b611325836112f5565b946020939093013593505050565b80358015158114610ca9575f80fd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561137f5761137f611342565b604052919050565b5f8060408385031215611398575f80fd5b6113a183611333565b915060208084013567ffffffffffffffff808211156113be575f80fd5b818601915086601f8301126113d1575f80fd5b8135818111156113e3576113e3611342565b8060051b91506113f4848301611356565b818152918301840191848101908984111561140d575f80fd5b938501935b8385101561143257611423856112f5565b82529385019390850190611412565b8096505050505050509250929050565b5f805f60608486031215611454575f80fd5b61145d846112f5565b925061146b602085016112f5565b9150604084013590509250925092565b5f6020828403121561148b575f80fd5b610bf5826112f5565b5f80602083850312156114a5575f80fd5b823567ffffffffffffffff808211156114bc575f80fd5b818501915085601f8301126114cf575f80fd5b8135818111156114dd575f80fd5b8660208285010111156114ee575f80fd5b60209290920196919550909350505050565b5f8060408385031215611511575f80fd5b61151a836112f5565b915061152860208401611333565b90509250929050565b5f805f8060808587031215611544575f80fd5b61154d856112f5565b9350602061155c8187016112f5565b935060408601359250606086013567ffffffffffffffff8082111561157f575f80fd5b818801915088601f830112611592575f80fd5b8135818111156115a4576115a4611342565b6115b6601f8201601f19168501611356565b915080825289848285010111156115cb575f80fd5b80848401858401375f8482840101525080935050505092959194509250565b5f80604083850312156115fb575f80fd5b611604836112f5565b9150611528602084016112f5565b600181811c9082168061162657607f821691505b60208210810361164457634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f600182016116835761168361165e565b5060010190565b601f8211156105d9575f81815260208120601f850160051c810160208610156116b05750805b601f850160051c820191505b818110156116cf578281556001016116bc565b505050505050565b67ffffffffffffffff8311156116ef576116ef611342565b611703836116fd8354611612565b8361168a565b5f601f841160018114611734575f851561171d5750838201355b5f19600387901b1c1916600186901b1783556110b6565b5f83815260209020601f19861690835b828110156117645786850135825560209485019460019092019101611744565b5086821015611780575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b808201808211156104845761048461165e565b818103818111156104845761048461165e565b5f83516117c981846020880161127f565b8351908301906117dd81836020880161127f565b01949350505050565b5f816117f4576117f461165e565b505f190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061182d908301846112a1565b9695505050505050565b5f60208284031215611847575f80fd5b8151610bf58161124f56fea26469706673582212200073bfbb82cd643a247a3d9494e001fc0b8d63b9f8efbc712bc1b7412768c08864736f6c63430008140033697066733a2f2f516d58693656586b6b793154655374727354754a366a54715344465a5a7571507850664e4472736754554b4333752f000000000000000000000000e0e92cd4be3ae4bbb81b0a863a08f4a382fe146c
Deployed Bytecode
0x608060405260043610610161575f3560e01c806359173a07116100cd57806395d89b4111610087578063c87b56dd11610062578063c87b56dd146103c7578063d5abeb01146103e6578063e985e9c5146103fb578063f2fde38b1461041a575f80fd5b806395d89b4114610381578063a22cb46514610395578063b88d4fde146103b4575f80fd5b806359173a07146102e75780636352211e1461030057806370a082311461031f578063715018a61461033e5780637c928fe9146103525780638da5cb5b14610365575f80fd5b806323b872dd1161011e57806323b872dd1461024f578063372c12b1146102625780633ccfd60b1461028d57806341cda203146102a157806342842e0e146102b557806355f804b3146102c8575f80fd5b806301ffc9a71461016557806306fdde0314610199578063081812fc146101ba578063095ea7b3146101f15780630a7a68811461020657806318160ddd14610225575b5f80fd5b348015610170575f80fd5b5061018461017f366004611264565b610439565b60405190151581526020015b60405180910390f35b3480156101a4575f80fd5b506101ad61048a565b60405161019091906112cc565b3480156101c5575f80fd5b506101d96101d43660046112de565b61051a565b6040516001600160a01b039091168152602001610190565b6102046101ff36600461130b565b610553565b005b348015610211575f80fd5b50610204610220366004611387565b610563565b348015610230575f80fd5b50610241600254600154035f190190565b604051908152602001610190565b61020461025d366004611442565b6105de565b34801561026d575f80fd5b5061024161027c36600461147b565b600d6020525f908152604090205481565b348015610298575f80fd5b50610204610739565b3480156102ac575f80fd5b50610241601481565b6102046102c3366004611442565b6107e2565b3480156102d3575f80fd5b506102046102e2366004611494565b6107fc565b3480156102f2575f80fd5b50600c546101849060ff1681565b34801561030b575f80fd5b506101d961031a3660046112de565b610811565b34801561032a575f80fd5b5061024161033936600461147b565b61081b565b348015610349575f80fd5b5061020461085f565b6102046103603660046112de565b610870565b348015610370575f80fd5b505f546001600160a01b03166101d9565b34801561038c575f80fd5b506101ad610ab6565b3480156103a0575f80fd5b506102046103af366004611500565b610ac5565b6102046103c2366004611531565b610b30565b3480156103d2575f80fd5b506101ad6103e13660046112de565b610b71565b3480156103f1575f80fd5b50610241600b5481565b348015610406575f80fd5b506101846104153660046115ea565b610bfc565b348015610425575f80fd5b5061020461043436600461147b565b610c29565b5f6301ffc9a760e01b6001600160e01b03198316148061046957506380ac58cd60e01b6001600160e01b03198316145b806104845750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606003805461049990611612565b80601f01602080910402602001604051908101604052809291908181526020018280546104c590611612565b80156105105780601f106104e757610100808354040283529160200191610510565b820191905f5260205f20905b8154815290600101906020018083116104f357829003601f168201915b5050505050905090565b5f61052482610c63565b610538576105386333d1c03960e21b610cae565b505f908152600760205260409020546001600160a01b031690565b61055f82826001610cb6565b5050565b61056b610d57565b600c805460ff19168315151790555f5b81518110156105d9576014600d5f84848151811061059b5761059b61164a565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f208190555080806105d190611672565b91505061057b565b505050565b5f6105e882610d83565b6001600160a01b03948516949091508116841461060e5761060e62a1148160e81b610cae565b5f8281526007602052604090208054338082146001600160a01b038816909114176106515761063d8633610bfc565b61065157610651632ce44b5f60e11b610cae565b801561065b575f82555b6001600160a01b038681165f9081526006602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260056020526040812091909155600160e11b841690036106e857600184015f8181526005602052604081205490036106e65760015481146106e6575f8181526005602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f0361073057610730633a954ecd60e21b610cae565b50505050505050565b610741610d57565b610749610e1d565b6040515f90339047908381818185875af1925050503d805f8114610788576040519150601f19603f3d011682016040523d82523d5f602084013e61078d565b606091505b50509050806107d55760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b60448201526064015b60405180910390fd5b506107e06001600a55565b565b6105d983838360405180602001604052805f815250610b30565b610804610d57565b600e6105d98284836116d7565b5f61048482610d83565b5f6001600160a01b03821661083a5761083a6323d3ad8160e21b610cae565b506001600160a01b03165f9081526006602052604090205467ffffffffffffffff1690565b610867610d57565b6107e05f610e76565b3233146108bf5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016107cc565b600c5460ff166109115760405162461bcd60e51b815260206004820152601b60248201527f66726565206d696e7420686173206e6f7420626567756e20796574000000000060448201526064016107cc565b335f908152600d60205260409020546109775760405162461bcd60e51b815260206004820152602260248201527f796f7520617265206e6f7420656c696769626c6520666f722077686974654c696044820152611cdd60f21b60648201526084016107cc565b335f908152600d60205260409020548111156109d55760405162461bcd60e51b815260206004820152601a60248201527f6e6f7420656c696769626c6520666f722077686974654c69737400000000000060448201526064016107cc565b5f8111610a245760405162461bcd60e51b815260206004820152601b60248201527f6d696e74206d757374206d6f7265207468616e203020746f6b656e000000000060448201526064016107cc565b600b5481610a38600254600154035f190190565b610a429190611792565b1115610a855760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b60448201526064016107cc565b335f908152600d602052604081208054839290610aa39084906117a5565b90915550610ab390503382610ec5565b50565b60606004805461049990611612565b335f8181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b3b8484846105de565b6001600160a01b0383163b15610b6b57610b5784848484610ede565b610b6b57610b6b6368d2bf6b60e11b610cae565b50505050565b6060610b7c82610c63565b610b9957604051630a14c4b560e41b815260040160405180910390fd5b5f610ba2610fbc565b905080515f03610bc05760405180602001604052805f815250610bf5565b80610bd4610bcf6001866117a5565b610fcb565b604051602001610be59291906117b8565b6040516020818303038152906040525b9392505050565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205460ff1690565b610c31610d57565b6001600160a01b038116610c5a57604051631e4fbdf760e01b81525f60048201526024016107cc565b610ab381610e76565b5f81600111610ca957600154821015610ca9575f5b505f8281526005602052604081205490819003610c9f57610c98836117e6565b9250610c78565b600160e01b161590505b919050565b805f5260045ffd5b5f610cc083610811565b9050818015610cd85750336001600160a01b03821614155b15610cfb57610ce78133610bfc565b610cfb57610cfb6367d9dca160e11b610cae565b5f8381526007602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f546001600160a01b031633146107e05760405163118cdaa760e01b81523360048201526024016107cc565b5f81600111610e0d57505f81815260056020526040902054805f03610dfb576001548210610dbb57610dbb636f96cda160e11b610cae565b5b505f19015f818152600560205260409020548015610dbc57600160e01b81165f03610de657919050565b610df6636f96cda160e11b610cae565b610dbc565b600160e01b81165f03610e0d57919050565b610ca9636f96cda160e11b610cae565b6002600a5403610e6f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107cc565b6002600a55565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61055f828260405180602001604052805f81525061105b565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290610f129033908990889088906004016117fb565b6020604051808303815f875af1925050508015610f4c575060408051601f3d908101601f19168201909252610f4991810190611837565b60015b610f9f573d808015610f79576040519150601f19603f3d011682016040523d82523d5f602084013e610f7e565b606091505b5080515f03610f9757610f976368d2bf6b60e11b610cae565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600e805461049990611612565b60605f610fd7836110bd565b60010190505f8167ffffffffffffffff811115610ff657610ff6611342565b6040519080825280601f01601f191660200182016040528015611020576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461102a57509392505050565b6110658383611194565b6001600160a01b0383163b156105d9576001548281035b61108e5f868380600101945086610ede565b6110a2576110a26368d2bf6b60e11b610cae565b81811061107c5781600154146110b6575f80fd5b5050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106110fb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611127576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061114557662386f26fc10000830492506010015b6305f5e100831061115d576305f5e100830492506008015b612710831061117157612710830492506004015b60648310611183576064830492506002015b600a83106104845760010192915050565b6001545f8290036111af576111af63b562e8dd60e01b610cae565b5f8181526005602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526006909252822080546801000000000000000186020190559081900361120c5761120c622e076360e81b610cae565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103611211575060015550505050565b6001600160e01b031981168114610ab3575f80fd5b5f60208284031215611274575f80fd5b8135610bf58161124f565b5f5b83811015611299578181015183820152602001611281565b50505f910152565b5f81518084526112b881602086016020860161127f565b601f01601f19169290920160200192915050565b602081525f610bf560208301846112a1565b5f602082840312156112ee575f80fd5b5035919050565b80356001600160a01b0381168114610ca9575f80fd5b5f806040838503121561131c575f80fd5b611325836112f5565b946020939093013593505050565b80358015158114610ca9575f80fd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561137f5761137f611342565b604052919050565b5f8060408385031215611398575f80fd5b6113a183611333565b915060208084013567ffffffffffffffff808211156113be575f80fd5b818601915086601f8301126113d1575f80fd5b8135818111156113e3576113e3611342565b8060051b91506113f4848301611356565b818152918301840191848101908984111561140d575f80fd5b938501935b8385101561143257611423856112f5565b82529385019390850190611412565b8096505050505050509250929050565b5f805f60608486031215611454575f80fd5b61145d846112f5565b925061146b602085016112f5565b9150604084013590509250925092565b5f6020828403121561148b575f80fd5b610bf5826112f5565b5f80602083850312156114a5575f80fd5b823567ffffffffffffffff808211156114bc575f80fd5b818501915085601f8301126114cf575f80fd5b8135818111156114dd575f80fd5b8660208285010111156114ee575f80fd5b60209290920196919550909350505050565b5f8060408385031215611511575f80fd5b61151a836112f5565b915061152860208401611333565b90509250929050565b5f805f8060808587031215611544575f80fd5b61154d856112f5565b9350602061155c8187016112f5565b935060408601359250606086013567ffffffffffffffff8082111561157f575f80fd5b818801915088601f830112611592575f80fd5b8135818111156115a4576115a4611342565b6115b6601f8201601f19168501611356565b915080825289848285010111156115cb575f80fd5b80848401858401375f8482840101525080935050505092959194509250565b5f80604083850312156115fb575f80fd5b611604836112f5565b9150611528602084016112f5565b600181811c9082168061162657607f821691505b60208210810361164457634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f600182016116835761168361165e565b5060010190565b601f8211156105d9575f81815260208120601f850160051c810160208610156116b05750805b601f850160051c820191505b818110156116cf578281556001016116bc565b505050505050565b67ffffffffffffffff8311156116ef576116ef611342565b611703836116fd8354611612565b8361168a565b5f601f841160018114611734575f851561171d5750838201355b5f19600387901b1c1916600186901b1783556110b6565b5f83815260209020601f19861690835b828110156117645786850135825560209485019460019092019101611744565b5086821015611780575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b808201808211156104845761048461165e565b818103818111156104845761048461165e565b5f83516117c981846020880161127f565b8351908301906117dd81836020880161127f565b01949350505050565b5f816117f4576117f461165e565b505f190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061182d908301846112a1565b9695505050505050565b5f60208284031215611847575f80fd5b8151610bf58161124f56fea26469706673582212200073bfbb82cd643a247a3d9494e001fc0b8d63b9f8efbc712bc1b7412768c08864736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000E0E92CD4Be3AE4BBb81B0A863a08F4A382Fe146C
-----Decoded View---------------
Arg [0] : initialOwner (address): 0xE0E92CD4Be3AE4BBb81B0A863a08F4A382Fe146C
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000E0E92CD4Be3AE4BBb81B0A863a08F4A382Fe146C
Deployed Bytecode Sourcemap
88362:2475:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48088:639;;;;;;;;;;-1:-1:-1;48088:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;48088:639:0;;;;;;;;48990:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;56230:227::-;;;;;;;;;;-1:-1:-1;56230:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;56230:227:0;1533:203:1;55947:124:0;;;;;;:::i;:::-;;:::i;:::-;;89563:259;;;;;;;;;;-1:-1:-1;89563:259:0;;;;;:::i;:::-;;:::i;44192:573::-;;;;;;;;;;;;44636:12;;89922:1;44620:13;:28;-1:-1:-1;;44620:46:0;;44192:573;;;;3926:25:1;;;3914:2;3899:18;44192:573:0;3780:177:1;60502:3523:0;;;;;;:::i;:::-;;:::i;88544:44::-;;;;;;;;;;-1:-1:-1;88544:44:0;;;;;:::i;:::-;;;;;;;;;;;;;;90649:185;;;;;;;;;;;;;:::i;88422:42::-;;;;;;;;;;;;88462:2;88422:42;;64121:193;;;;;;:::i;:::-;;:::i;90535:106::-;;;;;;;;;;-1:-1:-1;90535:106:0;;;;;:::i;:::-;;:::i;88513:22::-;;;;;;;;;;-1:-1:-1;88513:22:0;;;;;;;;50392:152;;;;;;;;;;-1:-1:-1;50392:152:0;;;;;:::i;:::-;;:::i;45916:242::-;;;;;;;;;;-1:-1:-1;45916:242:0;;;;;:::i;:::-;;:::i;26664:103::-;;;;;;;;;;;;;:::i;89001:554::-;;;;;;:::i;:::-;;:::i;25989:87::-;;;;;;;;;;-1:-1:-1;26035:7:0;26062:6;-1:-1:-1;;;;;26062:6:0;25989:87;;49166:104;;;;;;;;;;;;;:::i;56797:234::-;;;;;;;;;;-1:-1:-1;56797:234:0;;;;;:::i;:::-;;:::i;64912:416::-;;;;;;:::i;:::-;;:::i;90061:466::-;;;;;;;;;;-1:-1:-1;90061:466:0;;;;;:::i;:::-;;:::i;88473:31::-;;;;;;;;;;;;;;;;57188:164;;;;;;;;;;-1:-1:-1;57188:164:0;;;;;:::i;:::-;;:::i;26922:220::-;;;;;;;;;;-1:-1:-1;26922:220:0;;;;;:::i;:::-;;:::i;48088:639::-;48173:4;-1:-1:-1;;;;;;;;;48497:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;48574:25:0;;;48497:102;:179;;;-1:-1:-1;;;;;;;;;;48651:25:0;;;48497:179;48477:199;48088:639;-1:-1:-1;;48088:639:0:o;48990:100::-;49044:13;49077:5;49070:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48990:100;:::o;56230:227::-;56306:7;56331:16;56339:7;56331;:16::i;:::-;56326:73;;56349:50;-1:-1:-1;;;56349:7:0;:50::i;:::-;-1:-1:-1;56419:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;56419:30:0;;56230:227::o;55947:124::-;56036:27;56045:2;56049:7;56058:4;56036:8;:27::i;:::-;55947:124;;:::o;89563:259::-;25875:13;:11;:13::i;:::-;89675:10:::1;:16:::0;;-1:-1:-1;;89675:16:0::1;::::0;::::1;;;::::0;;-1:-1:-1;89702:113:0::1;89726:9;:16;89722:1;:20;89702:113;;;88462:2;89764:9;:23;89774:9;89784:1;89774:12;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;89764:23:0::1;-1:-1:-1::0;;;;;89764:23:0::1;;;;;;;;;;;;:39;;;;89744:3;;;;;:::i;:::-;;;;89702:113;;;;89563:259:::0;;:::o;60502:3523::-;60644:27;60674;60693:7;60674:18;:27::i;:::-;-1:-1:-1;;;;;60829:22:0;;;;60644:57;;-1:-1:-1;60889:45:0;;;;60885:95;;60936:44;-1:-1:-1;;;60936:7:0;:44::i;:::-;60994:27;59610:24;;;:15;:24;;;;;59838:26;;86187:10;59235:30;;;-1:-1:-1;;;;;58928:28:0;;59213:20;;;59210:56;61180:189;;61273:43;61290:4;86187:10;57188:164;:::i;61273:43::-;61268:101;;61318:51;-1:-1:-1;;;61318:7:0;:51::i;:::-;61518:15;61515:160;;;61658:1;61637:19;61630:30;61515:160;-1:-1:-1;;;;;62055:24:0;;;;;;;:18;:24;;;;;;62053:26;;-1:-1:-1;;62053:26:0;;;62124:22;;;;;;;;;62122:24;;-1:-1:-1;62122:24:0;;;55049:11;55024:23;55020:41;55007:63;-1:-1:-1;;;55007:63:0;62417:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;62712:47:0;;:52;;62708:627;;62817:1;62807:11;;62785:19;62940:30;;;:17;:30;;;;;;:35;;62936:384;;63078:13;;63063:11;:28;63059:242;;63225:30;;;;:17;:30;;;;;:52;;;63059:242;62766:569;62708:627;-1:-1:-1;;;;;63467:20:0;;63847:7;63467:20;63777:4;63719:25;63448:16;;63584:299;63908:8;63920:1;63908:13;63904:58;;63923:39;-1:-1:-1;;;63923:7:0;:39::i;:::-;60633:3392;;;;60502:3523;;;:::o;90649:185::-;25875:13;:11;:13::i;:::-;22408:21:::1;:19;:21::i;:::-;90731:49:::2;::::0;90713:12:::2;::::0;90731:10:::2;::::0;90754:21:::2;::::0;90713:12;90731:49;90713:12;90731:49;90754:21;90731:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90712:68;;;90799:7;90791:35;;;::::0;-1:-1:-1;;;90791:35:0;;7793:2:1;90791:35:0::2;::::0;::::2;7775:21:1::0;7832:2;7812:18;;;7805:30;-1:-1:-1;;;7851:18:1;;;7844:45;7906:18;;90791:35:0::2;;;;;;;;;90701:133;22452:20:::1;21846:1:::0;22972:7;:22;22789:213;22452:20:::1;90649:185::o:0;64121:193::-;64267:39;64284:4;64290:2;64294:7;64267:39;;;;;;;;;;;;:16;:39::i;90535:106::-;25875:13;:11;:13::i;:::-;90610::::1;:23;90626:7:::0;;90610:13;:23:::1;:::i;50392:152::-:0;50464:7;50507:27;50526:7;50507:18;:27::i;45916:242::-;45988:7;-1:-1:-1;;;;;46012:19:0;;46008:69;;46033:44;-1:-1:-1;;;46033:7:0;:44::i;:::-;-1:-1:-1;;;;;;46095:25:0;;;;;:18;:25;;;;;;38676:13;46095:55;;45916:242::o;26664:103::-;25875:13;:11;:13::i;:::-;26729:30:::1;26756:1;26729:18;:30::i;89001:554::-:0;88902:9;88915:10;88902:23;88894:66;;;;-1:-1:-1;;;88894:66:0;;10195:2:1;88894:66:0;;;10177:21:1;10234:2;10214:18;;;10207:30;10273:32;10253:18;;;10246:60;10323:18;;88894:66:0;9993:354:1;88894:66:0;89084:10:::1;::::0;::::1;;89076:50;;;::::0;-1:-1:-1;;;89076:50:0;;10554:2:1;89076:50:0::1;::::0;::::1;10536:21:1::0;10593:2;10573:18;;;10566:30;10632:29;10612:18;;;10605:57;10679:18;;89076:50:0::1;10352:351:1::0;89076:50:0::1;89169:10;89183:1;89159:21:::0;;;:9:::1;:21;::::0;;;;;89137:109:::1;;;::::0;-1:-1:-1;;;89137:109:0;;10910:2:1;89137:109:0::1;::::0;::::1;10892:21:1::0;10949:2;10929:18;;;10922:30;10988:34;10968:18;;;10961:62;-1:-1:-1;;;11039:18:1;;;11032:32;11081:19;;89137:109:0::1;10708:398:1::0;89137:109:0::1;89285:10;89275:21;::::0;;;:9:::1;:21;::::0;;;;;89265:31;::::1;;89257:70;;;::::0;-1:-1:-1;;;89257:70:0;;11313:2:1;89257:70:0::1;::::0;::::1;11295:21:1::0;11352:2;11332:18;;;11325:30;11391:28;11371:18;;;11364:56;11437:18;;89257:70:0::1;11111:350:1::0;89257:70:0::1;89355:1;89346:6;:10;89338:50;;;::::0;-1:-1:-1;;;89338:50:0;;11668:2:1;89338:50:0::1;::::0;::::1;11650:21:1::0;11707:2;11687:18;;;11680:30;11746:29;11726:18;;;11719:57;11793:18;;89338:50:0::1;11466:351:1::0;89338:50:0::1;89433:9;;89423:6;89407:13;44636:12:::0;;89922:1;44620:13;:28;-1:-1:-1;;44620:46:0;;44192:573;89407:13:::1;:22;;;;:::i;:::-;:35;;89399:66;;;::::0;-1:-1:-1;;;89399:66:0;;12154:2:1;89399:66:0::1;::::0;::::1;12136:21:1::0;12193:2;12173:18;;;12166:30;-1:-1:-1;;;12212:18:1;;;12205:48;12270:18;;89399:66:0::1;11952:342:1::0;89399:66:0::1;89486:10;89476:21;::::0;;;:9:::1;:21;::::0;;;;:31;;89501:6;;89476:21;:31:::1;::::0;89501:6;;89476:31:::1;:::i;:::-;::::0;;;-1:-1:-1;89518:29:0::1;::::0;-1:-1:-1;89528:10:0::1;89540:6:::0;89518:9:::1;:29::i;:::-;89001:554:::0;:::o;49166:104::-;49222:13;49255:7;49248:14;;;;;:::i;56797:234::-;86187:10;56892:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;56892:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;56892:60:0;;;;;;;;;;56968:55;;540:41:1;;;56892:49:0;;86187:10;56968:55;;513:18:1;56968:55:0;;;;;;;56797:234;;:::o;64912:416::-;65087:31;65100:4;65106:2;65110:7;65087:12;:31::i;:::-;-1:-1:-1;;;;;65133:14:0;;;:19;65129:192;;65172:56;65203:4;65209:2;65213:7;65222:5;65172:30;:56::i;:::-;65167:154;;65249:56;-1:-1:-1;;;65249:7:0;:56::i;:::-;64912:416;;;;:::o;90061:466::-;90179:13;90215:16;90223:7;90215;:16::i;:::-;90210:59;;90240:29;;-1:-1:-1;;;90240:29:0;;;;;;;;;;;90210:59;90282:21;90306:10;:8;:10::i;:::-;90282:34;;90353:7;90347:21;90372:1;90347:26;:172;;;;;;;;;;;;;;;;;90439:7;90448:29;90465:11;90475:1;90465:7;:11;:::i;:::-;90448:16;:29::i;:::-;90422:56;;;;;;;;;:::i;:::-;;;;;;;;;;;;;90347:172;90327:192;90061:466;-1:-1:-1;;;90061:466:0:o;57188:164::-;-1:-1:-1;;;;;57309:25:0;;;57285:4;57309:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;57188:164::o;26922:220::-;25875:13;:11;:13::i;:::-;-1:-1:-1;;;;;27007:22:0;::::1;27003:93;;27053:31;::::0;-1:-1:-1;;;27053:31:0;;27081:1:::1;27053:31;::::0;::::1;1679:51:1::0;1652:18;;27053:31:0::1;1533:203:1::0;27003:93:0::1;27106:28;27125:8;27106:18;:28::i;57610:475::-:0;57675:11;57722:7;89922:1;57703:26;57699:379;;57867:13;;57857:7;:23;57853:214;;;57901:14;57934:60;-1:-1:-1;57951:26:0;;;;:17;:26;;;;;;;57941:42;;;57934:60;;57985:9;;;:::i;:::-;;;57934:60;;;-1:-1:-1;;;58022:24:0;:29;;-1:-1:-1;57853:214:0;57610:475;;;:::o;88119:165::-;88220:13;88214:4;88207:27;88261:4;88255;88248:18;79534:474;79663:13;79679:16;79687:7;79679;:16::i;:::-;79663:32;;79712:13;:45;;;;-1:-1:-1;86187:10:0;-1:-1:-1;;;;;79729:28:0;;;;79712:45;79708:201;;;79777:44;79794:5;86187:10;57188:164;:::i;79777:44::-;79772:137;;79842:51;-1:-1:-1;;;79842:7:0;:51::i;:::-;79921:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;79921:35:0;-1:-1:-1;;;;;79921:35:0;;;;;;;;;79972:28;;79921:24;;79972:28;;;;;;;79652:356;79534:474;;;:::o;26154:166::-;26035:7;26062:6;-1:-1:-1;;;;;26062:6:0;86187:10;26214:23;26210:103;;26261:40;;-1:-1:-1;;;26261:40:0;;86187:10;26261:40;;;1679:51:1;1652:18;;26261:40:0;1533:203:1;51877:2213:0;51944:14;51994:7;89922:1;51975:26;51971:2054;;-1:-1:-1;52027:26:0;;;;:17;:26;;;;;;52354:6;52364:1;52354:11;52350:1292;;52401:13;;52390:7;:24;52386:77;;52416:47;-1:-1:-1;;;52416:7:0;:47::i;:::-;53020:607;-1:-1:-1;;;53116:9:0;53098:28;;;;:17;:28;;;;;;53172:25;;53020:607;53172:25;-1:-1:-1;;;53224:6:0;:24;53252:1;53224:29;53220:48;;51877:2213;;;:::o;53220:48::-;53560:47;-1:-1:-1;;;53560:7:0;:47::i;:::-;53020:607;;52350:1292;-1:-1:-1;;;53969:6:0;:24;53997:1;53969:29;53965:48;;51877:2213;;;:::o;53965:48::-;54035:47;-1:-1:-1;;;54035:7:0;:47::i;22488:293::-;21890:1;22622:7;;:19;22614:63;;;;-1:-1:-1;;;22614:63:0;;13276:2:1;22614:63:0;;;13258:21:1;13315:2;13295:18;;;13288:30;13354:33;13334:18;;;13327:61;13405:18;;22614:63:0;13074:355:1;22614:63:0;21890:1;22755:7;:18;22488:293::o;27302:191::-;27376:16;27395:6;;-1:-1:-1;;;;;27412:17:0;;;-1:-1:-1;;;;;;27412:17:0;;;;;;27445:40;;27395:6;;;;;;;27445:40;;27376:16;27445:40;27365:128;27302:191;:::o;74728:112::-;74805:27;74815:2;74819:8;74805:27;;;;;;;;;;;;:9;:27::i;67412:691::-;67596:88;;-1:-1:-1;;;67596:88:0;;67575:4;;-1:-1:-1;;;;;67596:45:0;;;;;:88;;86187:10;;67663:4;;67669:7;;67678:5;;67596:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67596:88:0;;;;;;;;-1:-1:-1;;67596:88:0;;;;;;;;;;;;:::i;:::-;;;67592:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67879:6;:13;67896:1;67879:18;67875:115;;67918:56;-1:-1:-1;;;67918:7:0;:56::i;:::-;68062:6;68056:13;68047:6;68043:2;68039:15;68032:38;67592:504;-1:-1:-1;;;;;;67755:64:0;-1:-1:-1;;;67755:64:0;;-1:-1:-1;67412:691:0;;;;;;:::o;89939:114::-;89999:13;90032;90025:20;;;;;:::i;17528:718::-;17584:13;17635:14;17652:17;17663:5;17652:10;:17::i;:::-;17672:1;17652:21;17635:38;;17688:20;17722:6;17711:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17711:18:0;-1:-1:-1;17688:41:0;-1:-1:-1;17853:28:0;;;17869:2;17853:28;17910:290;-1:-1:-1;;17942:5:0;-1:-1:-1;;;18079:2:0;18068:14;;18063:32;17942:5;18050:46;18142:2;18133:11;;;-1:-1:-1;18163:21:0;17910:290;18163:21;-1:-1:-1;18221:6:0;17528:718;-1:-1:-1;;;17528:718:0:o;73857:787::-;73988:19;73994:2;73998:8;73988:5;:19::i;:::-;-1:-1:-1;;;;;74049:14:0;;;:19;74045:581;;74103:13;;74151:14;;;74184:242;74215:62;74254:1;74258:2;74262:7;;;;;;74271:5;74215:30;:62::i;:::-;74210:176;;74306:56;-1:-1:-1;;;74306:7:0;:56::i;:::-;74421:3;74413:5;:11;74184:242;;74597:3;74580:13;;:20;74576:34;;74602:8;;;74576:34;74070:556;;73857:787;;;:::o;13932:948::-;13985:7;;-1:-1:-1;;;14063:17:0;;14059:106;;-1:-1:-1;;;14101:17:0;;;-1:-1:-1;14147:2:0;14137:12;14059:106;14192:8;14183:5;:17;14179:106;;14230:8;14221:17;;;-1:-1:-1;14267:2:0;14257:12;14179:106;14312:8;14303:5;:17;14299:106;;14350:8;14341:17;;;-1:-1:-1;14387:2:0;14377:12;14299:106;14432:7;14423:5;:16;14419:103;;14469:7;14460:16;;;-1:-1:-1;14505:1:0;14495:11;14419:103;14549:7;14540:5;:16;14536:103;;14586:7;14577:16;;;-1:-1:-1;14622:1:0;14612:11;14536:103;14666:7;14657:5;:16;14653:103;;14703:7;14694:16;;;-1:-1:-1;14739:1:0;14729:11;14653:103;14783:7;14774:5;:16;14770:68;;14821:1;14811:11;14866:6;13932:948;-1:-1:-1;;13932:948:0:o;68565:2399::-;68661:13;;68638:20;68689:13;;;68685:53;;68704:34;-1:-1:-1;;;68704:7:0;:34::i;:::-;69251:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;54875:28:0;;55049:11;55024:23;55020:41;55493:1;55480:15;;55454:24;55450:46;55017:52;55007:63;;69251:173;;;69642:22;;;:18;:22;;;;;:71;;69680:32;69668:45;;69642:71;;;54875:28;69903:13;;;69899:54;;69918:35;-1:-1:-1;;;69918:7:0;:35::i;:::-;69984:23;;;;70163:676;70582:7;70538:8;70493:1;70427:25;70364:1;70299;70268:358;70834:3;70821:9;;;;;;:16;70163:676;;-1:-1:-1;70855:13:0;:19;-1:-1:-1;89702:113:0::1;89563:259:::0;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;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;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;2178:160::-;2243:20;;2299:13;;2292:21;2282:32;;2272:60;;2328:1;2325;2318:12;2343:127;2404:10;2399:3;2395:20;2392:1;2385:31;2435:4;2432:1;2425:15;2459:4;2456:1;2449:15;2475:275;2546:2;2540:9;2611:2;2592:13;;-1:-1:-1;;2588:27:1;2576:40;;2646:18;2631:34;;2667:22;;;2628:62;2625:88;;;2693:18;;:::i;:::-;2729:2;2722:22;2475:275;;-1:-1:-1;2475:275:1:o;2755:1020::-;2845:6;2853;2906:2;2894:9;2885:7;2881:23;2877:32;2874:52;;;2922:1;2919;2912:12;2874:52;2945:26;2961:9;2945:26;:::i;:::-;2935:36;;2990:2;3043;3032:9;3028:18;3015:32;3066:18;3107:2;3099:6;3096:14;3093:34;;;3123:1;3120;3113:12;3093:34;3161:6;3150:9;3146:22;3136:32;;3206:7;3199:4;3195:2;3191:13;3187:27;3177:55;;3228:1;3225;3218:12;3177:55;3264:2;3251:16;3286:2;3282;3279:10;3276:36;;;3292:18;;:::i;:::-;3338:2;3335:1;3331:10;3321:20;;3361:28;3385:2;3381;3377:11;3361:28;:::i;:::-;3423:15;;;3493:11;;;3489:20;;;3454:12;;;;3521:19;;;3518:39;;;3553:1;3550;3543:12;3518:39;3577:11;;;;3597:148;3613:6;3608:3;3605:15;3597:148;;;3679:23;3698:3;3679:23;:::i;:::-;3667:36;;3630:12;;;;3723;;;;3597:148;;;3764:5;3754:15;;;;;;;;2755:1020;;;;;:::o;3962:328::-;4039:6;4047;4055;4108:2;4096:9;4087:7;4083:23;4079:32;4076:52;;;4124:1;4121;4114:12;4076:52;4147:29;4166:9;4147:29;:::i;:::-;4137:39;;4195:38;4229:2;4218:9;4214:18;4195:38;:::i;:::-;4185:48;;4280:2;4269:9;4265:18;4252:32;4242:42;;3962:328;;;;;:::o;4295:186::-;4354:6;4407:2;4395:9;4386:7;4382:23;4378:32;4375:52;;;4423:1;4420;4413:12;4375:52;4446:29;4465:9;4446:29;:::i;4486:592::-;4557:6;4565;4618:2;4606:9;4597:7;4593:23;4589:32;4586:52;;;4634:1;4631;4624:12;4586:52;4674:9;4661:23;4703:18;4744:2;4736:6;4733:14;4730:34;;;4760:1;4757;4750:12;4730:34;4798:6;4787:9;4783:22;4773:32;;4843:7;4836:4;4832:2;4828:13;4824:27;4814:55;;4865:1;4862;4855:12;4814:55;4905:2;4892:16;4931:2;4923:6;4920:14;4917:34;;;4947:1;4944;4937:12;4917:34;4992:7;4987:2;4978:6;4974:2;4970:15;4966:24;4963:37;4960:57;;;5013:1;5010;5003:12;4960:57;5044:2;5036:11;;;;;5066:6;;-1:-1:-1;4486:592:1;;-1:-1:-1;;;;4486:592:1:o;5083:254::-;5148:6;5156;5209:2;5197:9;5188:7;5184:23;5180:32;5177:52;;;5225:1;5222;5215:12;5177:52;5248:29;5267:9;5248:29;:::i;:::-;5238:39;;5296:35;5327:2;5316:9;5312:18;5296:35;:::i;:::-;5286:45;;5083:254;;;;;:::o;5342:980::-;5437:6;5445;5453;5461;5514:3;5502:9;5493:7;5489:23;5485:33;5482:53;;;5531:1;5528;5521:12;5482:53;5554:29;5573:9;5554:29;:::i;:::-;5544:39;;5602:2;5623:38;5657:2;5646:9;5642:18;5623:38;:::i;:::-;5613:48;;5708:2;5697:9;5693:18;5680:32;5670:42;;5763:2;5752:9;5748:18;5735:32;5786:18;5827:2;5819:6;5816:14;5813:34;;;5843:1;5840;5833:12;5813:34;5881:6;5870:9;5866:22;5856:32;;5926:7;5919:4;5915:2;5911:13;5907:27;5897:55;;5948:1;5945;5938:12;5897:55;5984:2;5971:16;6006:2;6002;5999:10;5996:36;;;6012:18;;:::i;:::-;6054:53;6097:2;6078:13;;-1:-1:-1;;6074:27:1;6070:36;;6054:53;:::i;:::-;6041:66;;6130:2;6123:5;6116:17;6170:7;6165:2;6160;6156;6152:11;6148:20;6145:33;6142:53;;;6191:1;6188;6181:12;6142:53;6246:2;6241;6237;6233:11;6228:2;6221:5;6217:14;6204:45;6290:1;6285:2;6280;6273:5;6269:14;6265:23;6258:34;;6311:5;6301:15;;;;;5342:980;;;;;;;:::o;6327:260::-;6395:6;6403;6456:2;6444:9;6435:7;6431:23;6427:32;6424:52;;;6472:1;6469;6462:12;6424:52;6495:29;6514:9;6495:29;:::i;:::-;6485:39;;6543:38;6577:2;6566:9;6562:18;6543:38;:::i;6592:380::-;6671:1;6667:12;;;;6714;;;6735:61;;6789:4;6781:6;6777:17;6767:27;;6735:61;6842:2;6834:6;6831:14;6811:18;6808:38;6805:161;;6888:10;6883:3;6879:20;6876:1;6869:31;6923:4;6920:1;6913:15;6951:4;6948:1;6941:15;6805:161;;6592:380;;;:::o;6977:127::-;7038:10;7033:3;7029:20;7026:1;7019:31;7069:4;7066:1;7059:15;7093:4;7090:1;7083:15;7109:127;7170:10;7165:3;7161:20;7158:1;7151:31;7201:4;7198:1;7191:15;7225:4;7222:1;7215:15;7241:135;7280:3;7301:17;;;7298:43;;7321:18;;:::i;:::-;-1:-1:-1;7368:1:1;7357:13;;7241:135::o;8061:545::-;8163:2;8158:3;8155:11;8152:448;;;8199:1;8224:5;8220:2;8213:17;8269:4;8265:2;8255:19;8339:2;8327:10;8323:19;8320:1;8316:27;8310:4;8306:38;8375:4;8363:10;8360:20;8357:47;;;-1:-1:-1;8398:4:1;8357:47;8453:2;8448:3;8444:12;8441:1;8437:20;8431:4;8427:31;8417:41;;8508:82;8526:2;8519:5;8516:13;8508:82;;;8571:17;;;8552:1;8541:13;8508:82;;;8512:3;;;8061:545;;;:::o;8782:1206::-;8906:18;8901:3;8898:27;8895:53;;;8928:18;;:::i;:::-;8957:94;9047:3;9007:38;9039:4;9033:11;9007:38;:::i;:::-;9001:4;8957:94;:::i;:::-;9077:1;9102:2;9097:3;9094:11;9119:1;9114:616;;;;9774:1;9791:3;9788:93;;;-1:-1:-1;9847:19:1;;;9834:33;9788:93;-1:-1:-1;;8739:1:1;8735:11;;;8731:24;8727:29;8717:40;8763:1;8759:11;;;8714:57;9894:78;;9087:895;;9114:616;8008:1;8001:14;;;8045:4;8032:18;;-1:-1:-1;;9150:17:1;;;9251:9;9273:229;9287:7;9284:1;9281:14;9273:229;;;9376:19;;;9363:33;9348:49;;9483:4;9468:20;;;;9436:1;9424:14;;;;9303:12;9273:229;;;9277:3;9530;9521:7;9518:16;9515:159;;;9654:1;9650:6;9644:3;9638;9635:1;9631:11;9627:21;9623:34;9619:39;9606:9;9601:3;9597:19;9584:33;9580:79;9572:6;9565:95;9515:159;;;9717:1;9711:3;9708:1;9704:11;9700:19;9694:4;9687:33;9087:895;;8782:1206;;;:::o;11822:125::-;11887:9;;;11908:10;;;11905:36;;;11921:18;;:::i;12299:128::-;12366:9;;;12387:11;;;12384:37;;;12401:18;;:::i;12432:496::-;12611:3;12649:6;12643:13;12665:66;12724:6;12719:3;12712:4;12704:6;12700:17;12665:66;:::i;:::-;12794:13;;12753:16;;;;12816:70;12794:13;12753:16;12863:4;12851:17;;12816:70;:::i;:::-;12902:20;;12432:496;-1:-1:-1;;;;12432:496:1:o;12933:136::-;12972:3;13000:5;12990:39;;13009:18;;:::i;:::-;-1:-1:-1;;;13045:18:1;;12933:136::o;13434:489::-;-1:-1:-1;;;;;13703:15:1;;;13685:34;;13755:15;;13750:2;13735:18;;13728:43;13802:2;13787:18;;13780:34;;;13850:3;13845:2;13830:18;;13823:31;;;13628:4;;13871:46;;13897:19;;13889:6;13871:46;:::i;:::-;13863:54;13434:489;-1:-1:-1;;;;;;13434:489:1:o;13928:249::-;13997:6;14050:2;14038:9;14029:7;14025:23;14021:32;14018:52;;;14066:1;14063;14056:12;14018:52;14098:9;14092:16;14117:30;14141:5;14117:30;:::i
Swarm Source
ipfs://0073bfbb82cd643a247a3d9494e001fc0b8d63b9f8efbc712bc1b7412768c088
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.