More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 37 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 18970572 | 304 days ago | IN | 0 ETH | 0.00108898 | ||||
Mint | 18567466 | 361 days ago | IN | 0.16 ETH | 0.00228284 | ||||
Safe Transfer Fr... | 18497101 | 370 days ago | IN | 0 ETH | 0.00078253 | ||||
Mint | 18497085 | 370 days ago | IN | 0.16 ETH | 0.00112932 | ||||
Safe Transfer Fr... | 17778822 | 471 days ago | IN | 0 ETH | 0.00260869 | ||||
Safe Transfer Fr... | 17674748 | 486 days ago | IN | 0 ETH | 0.00088876 | ||||
Crossmint | 17674725 | 486 days ago | IN | 0.16 ETH | 0.00130945 | ||||
Crossmint | 17559142 | 502 days ago | IN | 0.16 ETH | 0.00124992 | ||||
Mint | 17431725 | 520 days ago | IN | 0.16 ETH | 0.0017743 | ||||
Set Approval For... | 17305049 | 538 days ago | IN | 0 ETH | 0.00118899 | ||||
Safe Transfer Fr... | 17097614 | 567 days ago | IN | 0 ETH | 0.00432272 | ||||
Safe Transfer Fr... | 16980882 | 583 days ago | IN | 0 ETH | 0.00077365 | ||||
Safe Transfer Fr... | 16980873 | 583 days ago | IN | 0 ETH | 0.00479209 | ||||
Crossmint | 16814568 | 607 days ago | IN | 0.16 ETH | 0.0020123 | ||||
Gift | 16813671 | 607 days ago | IN | 0 ETH | 0.00187303 | ||||
Safe Transfer Fr... | 16672125 | 627 days ago | IN | 0 ETH | 0.00545857 | ||||
Set Approval For... | 16639885 | 631 days ago | IN | 0 ETH | 0.00145487 | ||||
Crossmint | 16639855 | 631 days ago | IN | 0.48 ETH | 0.00230807 | ||||
Crossmint | 16639810 | 631 days ago | IN | 0.16 ETH | 0.00300412 | ||||
Safe Transfer Fr... | 16636664 | 632 days ago | IN | 0 ETH | 0.00608029 | ||||
Safe Transfer Fr... | 16636120 | 632 days ago | IN | 0 ETH | 0.003723 | ||||
Safe Transfer Fr... | 16636057 | 632 days ago | IN | 0 ETH | 0.00454665 | ||||
Safe Transfer Fr... | 16630961 | 633 days ago | IN | 0 ETH | 0.00720319 | ||||
Safe Transfer Fr... | 16629560 | 633 days ago | IN | 0 ETH | 0.00562295 | ||||
Crossmint | 16628877 | 633 days ago | IN | 0.16 ETH | 0.01808474 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LoveStoryUnicorns
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-02-13 */ // File: @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @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 up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (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; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 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. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); 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 (rounding == Rounding.Up && 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 down. * * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * 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 10, 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 + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = MathUpgradeable.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), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, MathUpgradeable.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) { 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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); 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); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // 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(); // ============================================================= // 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: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // 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()`. * * 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; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @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) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // 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 Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // 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; return packed; } } // Otherwise, the data exists and is not burned. 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. 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) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not 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; 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) ); 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); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // 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 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/LoveStoryUnicorns.sol pragma solidity ^0.8.17; contract LoveStoryUnicorns is ERC721A, Ownable { using StringsUpgradeable for uint256; address extendingContract; address public crossmintAddress; string public baseApiURI; uint16 public maxMintAmountPerTransaction = 20; uint256 public maxSupply = 10000; uint256 public cost = 0.16 ether; bool public paused = true; constructor(string memory _baseUrl) ERC721A("LoveStoryUnicorns", "LSC") { baseApiURI = _baseUrl; } //This function will be used to extend the project with more capabilities function setExtendingContract(address _bAddress) public onlyOwner { extendingContract = _bAddress; } //this function can be called only from the extending contract function mintExternal(address _address, uint256 _mintAmount) external { require( msg.sender == extendingContract, "Sorry you dont have permission to mint" ); _safeMint(_address, _mintAmount); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function mint(uint256 _mintAmount) external payable { if (msg.sender != owner()) { require(!paused); require(_mintAmount > 0, "Mint amount should be greater than 0"); require( _mintAmount <= maxMintAmountPerTransaction, "Sorry you cant mint this amount at once" ); require( totalSupply() + _mintAmount <= maxSupply, "Exceeds Max Supply" ); require(msg.value >= cost * _mintAmount, "Insuffient funds"); } _mintLoop(msg.sender, _mintAmount); } //gift one address multiple Nfts function gift(address _to, uint256 _mintAmount) public onlyOwner { require(totalSupply() + _mintAmount <= maxSupply, "Exceeds Max Supply"); _mintLoop(_to, _mintAmount); } //airdrop many addresses single nft function airdrop(address[] memory _airdropAddresses) public onlyOwner { uint256 total = _airdropAddresses.length; require(totalSupply() + total <= maxSupply, "Exceeds Max Supply"); for (uint256 i = 0; i < total; i++) { address to = _airdropAddresses[i]; _mintLoop(to, 1); } } function _baseURI() internal view virtual override returns (string memory) { return baseApiURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString())) : ""; } //crossmint functions // include a setting function so that you can change this later function setCrossmintAddress(address _crossmintAddress) public onlyOwner { crossmintAddress = _crossmintAddress; } function crossmint(address _to, uint256 _amount) public payable { // NOTE cross mint address // ethereum (all) = 0xdab1a1854214684ace522439684a145e62505233 require(!paused); require(_amount > 0, "Mint amount should be greater than 0"); require( _amount <= maxMintAmountPerTransaction, "Sorry you cant mint this amount at once" ); require(totalSupply() + _amount <= maxSupply, "Exceeds Max Supply"); require(msg.value >= cost * _amount, "Insuffient funds"); require( msg.sender == crossmintAddress, "This function is for Crossmint only." ); _mintLoop(_to, _amount); } //contract functions function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmountPerTransaction(uint16 _amount) public onlyOwner { maxMintAmountPerTransaction = _amount; } function setMaxSupply(uint256 _supply) public onlyOwner { maxSupply = _supply; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseApiURI = _newBaseURI; } function togglePause() public onlyOwner { paused = !paused; } function _mintLoop(address _receiver, uint256 _mintAmount) internal { _safeMint(_receiver, _mintAmount); } function withdraw() public payable onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseUrl","type":"string"}],"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":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseApiURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"crossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"crossmintAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":"maxMintAmountPerTransaction","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_crossmintAddress","type":"address"}],"name":"setCrossmintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bAddress","type":"address"}],"name":"setExtendingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setmaxMintAmountPerTransaction","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":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052600c805461ffff19166014179055612710600d556702386f26fc100000600e55600f805460ff191660011790553480156200003e57600080fd5b506040516200215c3803806200215c833981016040819052620000619162000157565b604051806040016040528060118152602001704c6f766553746f7279556e69636f726e7360781b815250604051806040016040528060038152602001624c534360e81b8152508160029081620000b89190620002bb565b506003620000c78282620002bb565b50506000805550620000d933620000ef565b600b620000e78282620002bb565b505062000387565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200016b57600080fd5b82516001600160401b03808211156200018357600080fd5b818501915085601f8301126200019857600080fd5b815181811115620001ad57620001ad62000141565b604051601f8201601f19908116603f01168101908382118183101715620001d857620001d862000141565b816040528281528886848701011115620001f157600080fd5b600093505b82841015620002155784840186015181850187015292850192620001f6565b600086848301015280965050505050505092915050565b600181811c908216806200024157607f821691505b6020821081036200026257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002b657600081815260208120601f850160051c81016020861015620002915750805b601f850160051c820191505b81811015620002b2578281556001016200029d565b5050505b505050565b81516001600160401b03811115620002d757620002d762000141565b620002ef81620002e884546200022c565b8462000268565b602080601f8311600181146200032757600084156200030e5750858301515b600019600386901b1c1916600185901b178555620002b2565b600085815260208120601f198616915b82811015620003585788860151825594840194600190910190840162000337565b5085821015620003775787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611dc580620003976000396000f3fe60806040526004361061021a5760003560e01c8063715018a611610123578063bbb89744116100ab578063dc33e6811161006f578063dc33e681146105b7578063e97800cb146105d7578063e985e9c5146105f7578063f2fde38b14610617578063f4da18461461063757600080fd5b8063bbb897441461051e578063c4ae31681461054c578063c87b56dd14610561578063cbce4c9714610581578063d5abeb01146105a157600080fd5b806399755624116100f257806399755624146104985780639ccf339d146104b8578063a0712d68146104d8578063a22cb465146104eb578063b88d4fde1461050b57600080fd5b8063715018a614610430578063729ad39e146104455780638da5cb5b1461046557806395d89b411461048357600080fd5b806342842e0e116101a65780635b2a55e4116101755780635b2a55e4146103965780635c975abb146103b65780636352211e146103d05780636f8b44b0146103f057806370a082311461041057600080fd5b806342842e0e1461033057806344a0d68a1461034357806355f804b31461036357806358891a371461038357600080fd5b806313faede6116101ed57806313faede6146102c357806318160ddd146102e757806323b872dd146103005780633ccfd60b1461031357806341827f131461031b57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046116c3565b610657565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106a9565b60405161024b9190611730565b34801561028257600080fd5b50610296610291366004611743565b61073b565b6040516001600160a01b03909116815260200161024b565b6102c16102bc366004611773565b610776565b005b3480156102cf57600080fd5b506102d9600e5481565b60405190815260200161024b565b3480156102f357600080fd5b50600154600054036102d9565b6102c161030e36600461179d565b610786565b6102c16108eb565b34801561032757600080fd5b50610269610967565b6102c161033e36600461179d565b6109f5565b34801561034f57600080fd5b506102c161035e366004611743565b610a15565b34801561036f57600080fd5b506102c161037e366004611878565b610a22565b6102c1610391366004611773565b610a36565b3480156103a257600080fd5b50600a54610296906001600160a01b031681565b3480156103c257600080fd5b50600f5461023f9060ff1681565b3480156103dc57600080fd5b506102966103eb366004611743565b610b8e565b3480156103fc57600080fd5b506102c161040b366004611743565b610b99565b34801561041c57600080fd5b506102d961042b3660046118c1565b610ba6565b34801561043c57600080fd5b506102c1610bec565b34801561045157600080fd5b506102c16104603660046118dc565b610c00565b34801561047157600080fd5b506008546001600160a01b0316610296565b34801561048f57600080fd5b50610269610c8a565b3480156104a457600080fd5b506102c16104b33660046118c1565b610c99565b3480156104c457600080fd5b506102c16104d33660046118c1565b610cc3565b6102c16104e6366004611743565b610ced565b3480156104f757600080fd5b506102c1610506366004611989565b610de8565b6102c16105193660046119c5565b610e54565b34801561052a57600080fd5b50600c546105399061ffff1681565b60405161ffff909116815260200161024b565b34801561055857600080fd5b506102c1610e95565b34801561056d57600080fd5b5061026961057c366004611743565b610eb1565b34801561058d57600080fd5b506102c161059c366004611773565b610f7c565b3480156105ad57600080fd5b506102d9600d5481565b3480156105c357600080fd5b506102d96105d23660046118c1565b610fbd565b3480156105e357600080fd5b506102c16105f2366004611a41565b610fe8565b34801561060357600080fd5b5061023f610612366004611a65565b611008565b34801561062357600080fd5b506102c16106323660046118c1565b611036565b34801561064357600080fd5b506102c1610652366004611773565b6110ac565b60006301ffc9a760e01b6001600160e01b03198316148061068857506380ac58cd60e01b6001600160e01b03198316145b806106a35750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106b890611a98565b80601f01602080910402602001604051908101604052809291908181526020018280546106e490611a98565b80156107315780601f1061070657610100808354040283529160200191610731565b820191906000526020600020905b81548152906001019060200180831161071457829003601f168201915b5050505050905090565b60006107468261111f565b61075a5761075a6333d1c03960e21b611146565b506000908152600660205260409020546001600160a01b031690565b61078282826001611150565b5050565b6000610791826111f3565b6001600160a01b0394851694909150811684146107b7576107b762a1148160e81b611146565b60008281526006602052604090208054338082146001600160a01b038816909114176107fb576107e78633611008565b6107fb576107fb632ce44b5f60e11b611146565b801561080657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610898576001840160008181526004602052604081205490036108965760005481146108965760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4806000036108e2576108e2633a954ecd60e21b611146565b50505050505050565b6108f3611262565b60006109076008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610951576040519150601f19603f3d011682016040523d82523d6000602084013e610956565b606091505b505090508061096457600080fd5b50565b600b805461097490611a98565b80601f01602080910402602001604051908101604052809291908181526020018280546109a090611a98565b80156109ed5780601f106109c2576101008083540402835291602001916109ed565b820191906000526020600020905b8154815290600101906020018083116109d057829003601f168201915b505050505081565b610a1083838360405180602001604052806000815250610e54565b505050565b610a1d611262565b600e55565b610a2a611262565b600b6107828282611b20565b600f5460ff1615610a4657600080fd5b60008111610a6f5760405162461bcd60e51b8152600401610a6690611be0565b60405180910390fd5b600c5461ffff16811115610a955760405162461bcd60e51b8152600401610a6690611c24565b600d5481610aa66001546000540390565b610ab09190611c81565b1115610ace5760405162461bcd60e51b8152600401610a6690611c94565b80600e54610adc9190611cc0565b341015610b1e5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610a66565b600a546001600160a01b03163314610b845760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b6064820152608401610a66565b6107828282611115565b60006106a3826111f3565b610ba1611262565b600d55565b60006001600160a01b038216610bc657610bc66323d3ad8160e21b611146565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610bf4611262565b610bfe60006112bc565b565b610c08611262565b8051600d5481610c1b6001546000540390565b610c259190611c81565b1115610c435760405162461bcd60e51b8152600401610a6690611c94565b60005b81811015610a10576000838281518110610c6257610c62611cd7565b60200260200101519050610c77816001611115565b5080610c8281611ced565b915050610c46565b6060600380546106b890611a98565b610ca1611262565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610ccb611262565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610dde57600f5460ff1615610d0f57600080fd5b60008111610d2f5760405162461bcd60e51b8152600401610a6690611be0565b600c5461ffff16811115610d555760405162461bcd60e51b8152600401610a6690611c24565b600d5481610d666001546000540390565b610d709190611c81565b1115610d8e5760405162461bcd60e51b8152600401610a6690611c94565b80600e54610d9c9190611cc0565b341015610dde5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610a66565b6109643382611115565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e5f848484610786565b6001600160a01b0383163b15610e8f57610e7b8484848461130e565b610e8f57610e8f6368d2bf6b60e11b611146565b50505050565b610e9d611262565b600f805460ff19811660ff90911615179055565b6060610ebc8261111f565b610f205760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a66565b6000610f2a6113f1565b90506000815111610f4a5760405180602001604052806000815250610f75565b80610f5484611400565b604051602001610f65929190611d06565b6040516020818303038152906040525b9392505050565b610f84611262565b600d5481610f956001546000540390565b610f9f9190611c81565b1115610b845760405162461bcd60e51b8152600401610a6690611c94565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166106a3565b610ff0611262565b600c805461ffff191661ffff92909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61103e611262565b6001600160a01b0381166110a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a66565b610964816112bc565b6009546001600160a01b031633146111155760405162461bcd60e51b815260206004820152602660248201527f536f72727920796f7520646f6e742068617665207065726d697373696f6e20746044820152651bc81b5a5b9d60d21b6064820152608401610a66565b6107828282611493565b60008054821080156106a3575050600090815260046020526040902054600160e01b161590565b8060005260046000fd5b600061115b83610b8e565b90508180156111735750336001600160a01b03821614155b15611196576111828133611008565b611196576111966367d9dca160e11b611146565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60008181526004602052604081205490600160e01b82169003611252578060000361124d57600054821061123157611231636f96cda160e11b611146565b5b50600019016000818152600460205260409020548015611232575b919050565b61124d636f96cda160e11b611146565b6008546001600160a01b03163314610bfe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a66565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611343903390899088908890600401611d35565b6020604051808303816000875af192505050801561137e575060408051601f3d908101601f1916820190925261137b91810190611d72565b60015b6113d3573d8080156113ac576040519150601f19603f3d011682016040523d82523d6000602084013e6113b1565b606091505b5080516000036113cb576113cb6368d2bf6b60e11b611146565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600b80546106b890611a98565b6060600061140d836114ad565b600101905060008167ffffffffffffffff81111561142d5761142d6117d9565b6040519080825280601f01601f191660200182016040528015611457576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461146157509392505050565b610782828260405180602001604052806000815250611585565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114ec5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611518576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061153657662386f26fc10000830492506010015b6305f5e100831061154e576305f5e100830492506008015b612710831061156257612710830492506004015b60648310611574576064830492506002015b600a83106106a35760010192915050565b61158f83836115ee565b6001600160a01b0383163b15610a10576000548281035b6115b9600086838060010194508661130e565b6115cd576115cd6368d2bf6b60e11b611146565b8181106115a65781600054146115e7576115e76000611146565b5050505050565b600080549082900361160a5761160a63b562e8dd60e01b611146565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361166857611668622e076360e81b611146565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361166d575060005550505050565b6001600160e01b03198116811461096457600080fd5b6000602082840312156116d557600080fd5b8135610f75816116ad565b60005b838110156116fb5781810151838201526020016116e3565b50506000910152565b6000815180845261171c8160208601602086016116e0565b601f01601f19169290920160200192915050565b602081526000610f756020830184611704565b60006020828403121561175557600080fd5b5035919050565b80356001600160a01b038116811461124d57600080fd5b6000806040838503121561178657600080fd5b61178f8361175c565b946020939093013593505050565b6000806000606084860312156117b257600080fd5b6117bb8461175c565b92506117c96020850161175c565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611818576118186117d9565b604052919050565b600067ffffffffffffffff83111561183a5761183a6117d9565b61184d601f8401601f19166020016117ef565b905082815283838301111561186157600080fd5b828260208301376000602084830101529392505050565b60006020828403121561188a57600080fd5b813567ffffffffffffffff8111156118a157600080fd5b8201601f810184136118b257600080fd5b6113e984823560208401611820565b6000602082840312156118d357600080fd5b610f758261175c565b600060208083850312156118ef57600080fd5b823567ffffffffffffffff8082111561190757600080fd5b818501915085601f83011261191b57600080fd5b81358181111561192d5761192d6117d9565b8060051b915061193e8483016117ef565b818152918301840191848101908884111561195857600080fd5b938501935b8385101561197d5761196e8561175c565b8252938501939085019061195d565b98975050505050505050565b6000806040838503121561199c57600080fd5b6119a58361175c565b9150602083013580151581146119ba57600080fd5b809150509250929050565b600080600080608085870312156119db57600080fd5b6119e48561175c565b93506119f26020860161175c565b925060408501359150606085013567ffffffffffffffff811115611a1557600080fd5b8501601f81018713611a2657600080fd5b611a3587823560208401611820565b91505092959194509250565b600060208284031215611a5357600080fd5b813561ffff81168114610f7557600080fd5b60008060408385031215611a7857600080fd5b611a818361175c565b9150611a8f6020840161175c565b90509250929050565b600181811c90821680611aac57607f821691505b602082108103611acc57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610a1057600081815260208120601f850160051c81016020861015611af95750805b601f850160051c820191505b81811015611b1857828155600101611b05565b505050505050565b815167ffffffffffffffff811115611b3a57611b3a6117d9565b611b4e81611b488454611a98565b84611ad2565b602080601f831160018114611b835760008415611b6b5750858301515b600019600386901b1c1916600185901b178555611b18565b600085815260208120601f198616915b82811015611bb257888601518255948401946001909101908401611b93565b5085821015611bd05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b60208082526027908201527f536f72727920796f752063616e74206d696e74207468697320616d6f756e74206040820152666174206f6e636560c81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156106a3576106a3611c6b565b60208082526012908201527145786365656473204d617820537570706c7960701b604082015260600190565b80820281158282048414176106a3576106a3611c6b565b634e487b7160e01b600052603260045260246000fd5b600060018201611cff57611cff611c6b565b5060010190565b60008351611d188184602088016116e0565b835190830190611d2c8183602088016116e0565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d6890830184611704565b9695505050505050565b600060208284031215611d8457600080fd5b8151610f75816116ad56fea2646970667358221220d77c0a84ef5c9038545f07a00909ef9d962f74e4f5702f2024c07fce191f119564736f6c634300081100330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004568747470733a2f2f75732d63656e7472616c312d6c6f76652d73746f72792d756e69636f726e732e636c6f756466756e6374696f6e732e6e65742f6170702f746f6b656e2f000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c8063715018a611610123578063bbb89744116100ab578063dc33e6811161006f578063dc33e681146105b7578063e97800cb146105d7578063e985e9c5146105f7578063f2fde38b14610617578063f4da18461461063757600080fd5b8063bbb897441461051e578063c4ae31681461054c578063c87b56dd14610561578063cbce4c9714610581578063d5abeb01146105a157600080fd5b806399755624116100f257806399755624146104985780639ccf339d146104b8578063a0712d68146104d8578063a22cb465146104eb578063b88d4fde1461050b57600080fd5b8063715018a614610430578063729ad39e146104455780638da5cb5b1461046557806395d89b411461048357600080fd5b806342842e0e116101a65780635b2a55e4116101755780635b2a55e4146103965780635c975abb146103b65780636352211e146103d05780636f8b44b0146103f057806370a082311461041057600080fd5b806342842e0e1461033057806344a0d68a1461034357806355f804b31461036357806358891a371461038357600080fd5b806313faede6116101ed57806313faede6146102c357806318160ddd146102e757806323b872dd146103005780633ccfd60b1461031357806341827f131461031b57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046116c3565b610657565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106a9565b60405161024b9190611730565b34801561028257600080fd5b50610296610291366004611743565b61073b565b6040516001600160a01b03909116815260200161024b565b6102c16102bc366004611773565b610776565b005b3480156102cf57600080fd5b506102d9600e5481565b60405190815260200161024b565b3480156102f357600080fd5b50600154600054036102d9565b6102c161030e36600461179d565b610786565b6102c16108eb565b34801561032757600080fd5b50610269610967565b6102c161033e36600461179d565b6109f5565b34801561034f57600080fd5b506102c161035e366004611743565b610a15565b34801561036f57600080fd5b506102c161037e366004611878565b610a22565b6102c1610391366004611773565b610a36565b3480156103a257600080fd5b50600a54610296906001600160a01b031681565b3480156103c257600080fd5b50600f5461023f9060ff1681565b3480156103dc57600080fd5b506102966103eb366004611743565b610b8e565b3480156103fc57600080fd5b506102c161040b366004611743565b610b99565b34801561041c57600080fd5b506102d961042b3660046118c1565b610ba6565b34801561043c57600080fd5b506102c1610bec565b34801561045157600080fd5b506102c16104603660046118dc565b610c00565b34801561047157600080fd5b506008546001600160a01b0316610296565b34801561048f57600080fd5b50610269610c8a565b3480156104a457600080fd5b506102c16104b33660046118c1565b610c99565b3480156104c457600080fd5b506102c16104d33660046118c1565b610cc3565b6102c16104e6366004611743565b610ced565b3480156104f757600080fd5b506102c1610506366004611989565b610de8565b6102c16105193660046119c5565b610e54565b34801561052a57600080fd5b50600c546105399061ffff1681565b60405161ffff909116815260200161024b565b34801561055857600080fd5b506102c1610e95565b34801561056d57600080fd5b5061026961057c366004611743565b610eb1565b34801561058d57600080fd5b506102c161059c366004611773565b610f7c565b3480156105ad57600080fd5b506102d9600d5481565b3480156105c357600080fd5b506102d96105d23660046118c1565b610fbd565b3480156105e357600080fd5b506102c16105f2366004611a41565b610fe8565b34801561060357600080fd5b5061023f610612366004611a65565b611008565b34801561062357600080fd5b506102c16106323660046118c1565b611036565b34801561064357600080fd5b506102c1610652366004611773565b6110ac565b60006301ffc9a760e01b6001600160e01b03198316148061068857506380ac58cd60e01b6001600160e01b03198316145b806106a35750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106b890611a98565b80601f01602080910402602001604051908101604052809291908181526020018280546106e490611a98565b80156107315780601f1061070657610100808354040283529160200191610731565b820191906000526020600020905b81548152906001019060200180831161071457829003601f168201915b5050505050905090565b60006107468261111f565b61075a5761075a6333d1c03960e21b611146565b506000908152600660205260409020546001600160a01b031690565b61078282826001611150565b5050565b6000610791826111f3565b6001600160a01b0394851694909150811684146107b7576107b762a1148160e81b611146565b60008281526006602052604090208054338082146001600160a01b038816909114176107fb576107e78633611008565b6107fb576107fb632ce44b5f60e11b611146565b801561080657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610898576001840160008181526004602052604081205490036108965760005481146108965760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4806000036108e2576108e2633a954ecd60e21b611146565b50505050505050565b6108f3611262565b60006109076008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610951576040519150601f19603f3d011682016040523d82523d6000602084013e610956565b606091505b505090508061096457600080fd5b50565b600b805461097490611a98565b80601f01602080910402602001604051908101604052809291908181526020018280546109a090611a98565b80156109ed5780601f106109c2576101008083540402835291602001916109ed565b820191906000526020600020905b8154815290600101906020018083116109d057829003601f168201915b505050505081565b610a1083838360405180602001604052806000815250610e54565b505050565b610a1d611262565b600e55565b610a2a611262565b600b6107828282611b20565b600f5460ff1615610a4657600080fd5b60008111610a6f5760405162461bcd60e51b8152600401610a6690611be0565b60405180910390fd5b600c5461ffff16811115610a955760405162461bcd60e51b8152600401610a6690611c24565b600d5481610aa66001546000540390565b610ab09190611c81565b1115610ace5760405162461bcd60e51b8152600401610a6690611c94565b80600e54610adc9190611cc0565b341015610b1e5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610a66565b600a546001600160a01b03163314610b845760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b6064820152608401610a66565b6107828282611115565b60006106a3826111f3565b610ba1611262565b600d55565b60006001600160a01b038216610bc657610bc66323d3ad8160e21b611146565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610bf4611262565b610bfe60006112bc565b565b610c08611262565b8051600d5481610c1b6001546000540390565b610c259190611c81565b1115610c435760405162461bcd60e51b8152600401610a6690611c94565b60005b81811015610a10576000838281518110610c6257610c62611cd7565b60200260200101519050610c77816001611115565b5080610c8281611ced565b915050610c46565b6060600380546106b890611a98565b610ca1611262565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610ccb611262565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610dde57600f5460ff1615610d0f57600080fd5b60008111610d2f5760405162461bcd60e51b8152600401610a6690611be0565b600c5461ffff16811115610d555760405162461bcd60e51b8152600401610a6690611c24565b600d5481610d666001546000540390565b610d709190611c81565b1115610d8e5760405162461bcd60e51b8152600401610a6690611c94565b80600e54610d9c9190611cc0565b341015610dde5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610a66565b6109643382611115565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e5f848484610786565b6001600160a01b0383163b15610e8f57610e7b8484848461130e565b610e8f57610e8f6368d2bf6b60e11b611146565b50505050565b610e9d611262565b600f805460ff19811660ff90911615179055565b6060610ebc8261111f565b610f205760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a66565b6000610f2a6113f1565b90506000815111610f4a5760405180602001604052806000815250610f75565b80610f5484611400565b604051602001610f65929190611d06565b6040516020818303038152906040525b9392505050565b610f84611262565b600d5481610f956001546000540390565b610f9f9190611c81565b1115610b845760405162461bcd60e51b8152600401610a6690611c94565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166106a3565b610ff0611262565b600c805461ffff191661ffff92909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61103e611262565b6001600160a01b0381166110a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a66565b610964816112bc565b6009546001600160a01b031633146111155760405162461bcd60e51b815260206004820152602660248201527f536f72727920796f7520646f6e742068617665207065726d697373696f6e20746044820152651bc81b5a5b9d60d21b6064820152608401610a66565b6107828282611493565b60008054821080156106a3575050600090815260046020526040902054600160e01b161590565b8060005260046000fd5b600061115b83610b8e565b90508180156111735750336001600160a01b03821614155b15611196576111828133611008565b611196576111966367d9dca160e11b611146565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60008181526004602052604081205490600160e01b82169003611252578060000361124d57600054821061123157611231636f96cda160e11b611146565b5b50600019016000818152600460205260409020548015611232575b919050565b61124d636f96cda160e11b611146565b6008546001600160a01b03163314610bfe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a66565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611343903390899088908890600401611d35565b6020604051808303816000875af192505050801561137e575060408051601f3d908101601f1916820190925261137b91810190611d72565b60015b6113d3573d8080156113ac576040519150601f19603f3d011682016040523d82523d6000602084013e6113b1565b606091505b5080516000036113cb576113cb6368d2bf6b60e11b611146565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600b80546106b890611a98565b6060600061140d836114ad565b600101905060008167ffffffffffffffff81111561142d5761142d6117d9565b6040519080825280601f01601f191660200182016040528015611457576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461146157509392505050565b610782828260405180602001604052806000815250611585565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114ec5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611518576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061153657662386f26fc10000830492506010015b6305f5e100831061154e576305f5e100830492506008015b612710831061156257612710830492506004015b60648310611574576064830492506002015b600a83106106a35760010192915050565b61158f83836115ee565b6001600160a01b0383163b15610a10576000548281035b6115b9600086838060010194508661130e565b6115cd576115cd6368d2bf6b60e11b611146565b8181106115a65781600054146115e7576115e76000611146565b5050505050565b600080549082900361160a5761160a63b562e8dd60e01b611146565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361166857611668622e076360e81b611146565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361166d575060005550505050565b6001600160e01b03198116811461096457600080fd5b6000602082840312156116d557600080fd5b8135610f75816116ad565b60005b838110156116fb5781810151838201526020016116e3565b50506000910152565b6000815180845261171c8160208601602086016116e0565b601f01601f19169290920160200192915050565b602081526000610f756020830184611704565b60006020828403121561175557600080fd5b5035919050565b80356001600160a01b038116811461124d57600080fd5b6000806040838503121561178657600080fd5b61178f8361175c565b946020939093013593505050565b6000806000606084860312156117b257600080fd5b6117bb8461175c565b92506117c96020850161175c565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611818576118186117d9565b604052919050565b600067ffffffffffffffff83111561183a5761183a6117d9565b61184d601f8401601f19166020016117ef565b905082815283838301111561186157600080fd5b828260208301376000602084830101529392505050565b60006020828403121561188a57600080fd5b813567ffffffffffffffff8111156118a157600080fd5b8201601f810184136118b257600080fd5b6113e984823560208401611820565b6000602082840312156118d357600080fd5b610f758261175c565b600060208083850312156118ef57600080fd5b823567ffffffffffffffff8082111561190757600080fd5b818501915085601f83011261191b57600080fd5b81358181111561192d5761192d6117d9565b8060051b915061193e8483016117ef565b818152918301840191848101908884111561195857600080fd5b938501935b8385101561197d5761196e8561175c565b8252938501939085019061195d565b98975050505050505050565b6000806040838503121561199c57600080fd5b6119a58361175c565b9150602083013580151581146119ba57600080fd5b809150509250929050565b600080600080608085870312156119db57600080fd5b6119e48561175c565b93506119f26020860161175c565b925060408501359150606085013567ffffffffffffffff811115611a1557600080fd5b8501601f81018713611a2657600080fd5b611a3587823560208401611820565b91505092959194509250565b600060208284031215611a5357600080fd5b813561ffff81168114610f7557600080fd5b60008060408385031215611a7857600080fd5b611a818361175c565b9150611a8f6020840161175c565b90509250929050565b600181811c90821680611aac57607f821691505b602082108103611acc57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610a1057600081815260208120601f850160051c81016020861015611af95750805b601f850160051c820191505b81811015611b1857828155600101611b05565b505050505050565b815167ffffffffffffffff811115611b3a57611b3a6117d9565b611b4e81611b488454611a98565b84611ad2565b602080601f831160018114611b835760008415611b6b5750858301515b600019600386901b1c1916600185901b178555611b18565b600085815260208120601f198616915b82811015611bb257888601518255948401946001909101908401611b93565b5085821015611bd05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b60208082526027908201527f536f72727920796f752063616e74206d696e74207468697320616d6f756e74206040820152666174206f6e636560c81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156106a3576106a3611c6b565b60208082526012908201527145786365656473204d617820537570706c7960701b604082015260600190565b80820281158282048414176106a3576106a3611c6b565b634e487b7160e01b600052603260045260246000fd5b600060018201611cff57611cff611c6b565b5060010190565b60008351611d188184602088016116e0565b835190830190611d2c8183602088016116e0565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d6890830184611704565b9695505050505050565b600060208284031215611d8457600080fd5b8151610f75816116ad56fea2646970667358221220d77c0a84ef5c9038545f07a00909ef9d962f74e4f5702f2024c07fce191f119564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004568747470733a2f2f75732d63656e7472616c312d6c6f76652d73746f72792d756e69636f726e732e636c6f756466756e6374696f6e732e6e65742f6170702f746f6b656e2f000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseUrl (string): https://us-central1-love-story-unicorns.cloudfunctions.net/app/token/
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [2] : 68747470733a2f2f75732d63656e7472616c312d6c6f76652d73746f72792d75
Arg [3] : 6e69636f726e732e636c6f756466756e6374696f6e732e6e65742f6170702f74
Arg [4] : 6f6b656e2f000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
72026:4835:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37375:639;;;;;;;;;;-1:-1:-1;37375:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;37375:639:0;;;;;;;;38277:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;44704:227::-;;;;;;;;;;-1:-1:-1;44704:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;44704:227:0;1533:203:1;44421:124:0;;;;;;:::i;:::-;;:::i;:::-;;72316:32;;;;;;;;;;;;;;;;;;;2324:25:1;;;2312:2;2297:18;72316:32:0;2178:177:1;34019:323:0;;;;;;;;;;-1:-1:-1;34293:12:0;;34080:7;34277:13;:28;34019:323;;48352:3523;;;;;;:::i;:::-;;:::i;76703:155::-;;;:::i;72193:24::-;;;;;;;;;;;;;:::i;51971:193::-;;;;;;:::i;:::-;;:::i;76044:86::-;;;;;;;;;;-1:-1:-1;76044:86:0;;;;;:::i;:::-;;:::i;76377:107::-;;;;;;;;;;-1:-1:-1;76377:107:0;;;;;:::i;:::-;;:::i;75286:724::-;;;;;;:::i;:::-;;:::i;72155:31::-;;;;;;;;;;-1:-1:-1;72155:31:0;;;;-1:-1:-1;;;;;72155:31:0;;;72355:25;;;;;;;;;;-1:-1:-1;72355:25:0;;;;;;;;39679:152;;;;;;;;;;-1:-1:-1;39679:152:0;;;;;:::i;:::-;;:::i;76275:94::-;;;;;;;;;;-1:-1:-1;76275:94:0;;;;;:::i;:::-;;:::i;35203:242::-;;;;;;;;;;-1:-1:-1;35203:242:0;;;;;:::i;:::-;;:::i;18065:103::-;;;;;;;;;;;;;:::i;74090:342::-;;;;;;;;;;-1:-1:-1;74090:342:0;;;;;:::i;:::-;;:::i;17417:87::-;;;;;;;;;;-1:-1:-1;17490:6:0;;-1:-1:-1;;;;;17490:6:0;17417:87;;38453:104;;;;;;;;;;;;;:::i;75150:128::-;;;;;;;;;;-1:-1:-1;75150:128:0;;;;;:::i;:::-;;:::i;72598:114::-;;;;;;;;;;-1:-1:-1;72598:114:0;;;;;:::i;:::-;;:::i;73168:634::-;;;;;;:::i;:::-;;:::i;45271:234::-;;;;;;;;;;-1:-1:-1;45271:234:0;;;;;:::i;:::-;;:::i;52762:416::-;;;;;;:::i;:::-;;:::i;72224:46::-;;;;;;;;;;-1:-1:-1;72224:46:0;;;;;;;;;;;6319:6:1;6307:19;;;6289:38;;6277:2;6262:18;72224:46:0;6145:188:1;76492:75:0;;;;;;;;;;;;;:::i;74559:487::-;;;;;;;;;;-1:-1:-1;74559:487:0;;;;;:::i;:::-;;:::i;73848:193::-;;;;;;;;;;-1:-1:-1;73848:193:0;;;;;:::i;:::-;;:::i;72277:32::-;;;;;;;;;;;;;;;;73047:113;;;;;;;;;;-1:-1:-1;73047:113:0;;;;;:::i;:::-;;:::i;76138:129::-;;;;;;;;;;-1:-1:-1;76138:129:0;;;;;:::i;:::-;;:::i;45662:164::-;;;;;;;;;;-1:-1:-1;45662:164:0;;;;;:::i;:::-;;:::i;18323:201::-;;;;;;;;;;-1:-1:-1;18323:201:0;;;;;:::i;:::-;;:::i;72788:251::-;;;;;;;;;;-1:-1:-1;72788:251:0;;;;;:::i;:::-;;:::i;37375:639::-;37460:4;-1:-1:-1;;;;;;;;;37784:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;37861:25:0;;;37784:102;:179;;;-1:-1:-1;;;;;;;;;;37938:25:0;;;37784:179;37764:199;37375:639;-1:-1:-1;;37375:639:0:o;38277:100::-;38331:13;38364:5;38357:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38277:100;:::o;44704:227::-;44780:7;44805:16;44813:7;44805;:16::i;:::-;44800:73;;44823:50;-1:-1:-1;;;44823:7:0;:50::i;:::-;-1:-1:-1;44893:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;44893:30:0;;44704:227::o;44421:124::-;44510:27;44519:2;44523:7;44532:4;44510:8;:27::i;:::-;44421:124;;:::o;48352:3523::-;48494:27;48524;48543:7;48524:18;:27::i;:::-;-1:-1:-1;;;;;48679:22:0;;;;48494:57;;-1:-1:-1;48739:45:0;;;;48735:95;;48786:44;-1:-1:-1;;;48786:7:0;:44::i;:::-;48844:27;47460:24;;;:15;:24;;;;;47688:26;;69844:10;47085:30;;;-1:-1:-1;;;;;46778:28:0;;47063:20;;;47060:56;49030:189;;49123:43;49140:4;69844:10;45662:164;:::i;49123:43::-;49118:101;;49168:51;-1:-1:-1;;;49168:7:0;:51::i;:::-;49368:15;49365:160;;;49508:1;49487:19;49480:30;49365:160;-1:-1:-1;;;;;49905:24:0;;;;;;;:18;:24;;;;;;49903:26;;-1:-1:-1;;49903:26:0;;;49974:22;;;;;;;;;49972:24;;-1:-1:-1;49972:24:0;;;43523:11;43498:23;43494:41;43481:63;-1:-1:-1;;;43481:63:0;50267:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;50562:47:0;;:52;;50558:627;;50667:1;50657:11;;50635:19;50790:30;;;:17;:30;;;;;;:35;;50786:384;;50928:13;;50913:11;:28;50909:242;;51075:30;;;;:17;:30;;;;;:52;;;50909:242;50616:569;50558:627;-1:-1:-1;;;;;51317:20:0;;51697:7;51317:20;51627:4;51569:25;51298:16;;51434:299;51758:8;51770:1;51758:13;51754:58;;51773:39;-1:-1:-1;;;51773:7:0;:39::i;:::-;48483:3392;;;;48352:3523;;;:::o;76703:155::-;17303:13;:11;:13::i;:::-;76760:7:::1;76781;17490:6:::0;;-1:-1:-1;;;;;17490:6:0;;17417:87;76781:7:::1;-1:-1:-1::0;;;;;76773:21:0::1;76802;76773:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76759:69;;;76847:2;76839:11;;;::::0;::::1;;76748:110;76703:155::o:0;72193:24::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;51971:193::-;52117:39;52134:4;52140:2;52144:7;52117:39;;;;;;;;;;;;:16;:39::i;:::-;51971:193;;;:::o;76044:86::-;17303:13;:11;:13::i;:::-;76107:4:::1;:15:::0;76044:86::o;76377:107::-;17303:13;:11;:13::i;:::-;76452:10:::1;:24;76465:11:::0;76452:10;:24:::1;:::i;75286:724::-:0;75479:6;;;;75478:7;75470:16;;;;;;75515:1;75505:7;:11;75497:60;;;;-1:-1:-1;;;75497:60:0;;;;;;;:::i;:::-;;;;;;;;;75601:27;;;;75590:38;;;75568:127;;;;-1:-1:-1;;;75568:127:0;;;;;;;:::i;:::-;75741:9;;75730:7;75714:13;34293:12;;34080:7;34277:13;:28;;34019:323;75714:13;:23;;;;:::i;:::-;:36;;75706:67;;;;-1:-1:-1;;;75706:67:0;;;;;;;:::i;:::-;75812:7;75805:4;;:14;;;;:::i;:::-;75792:9;:27;;75784:56;;;;-1:-1:-1;;;75784:56:0;;11476:2:1;75784:56:0;;;11458:21:1;11515:2;11495:18;;;11488:30;-1:-1:-1;;;11534:18:1;;;11527:46;11590:18;;75784:56:0;11274:340:1;75784:56:0;75887:16;;-1:-1:-1;;;;;75887:16:0;75873:10;:30;75851:116;;;;-1:-1:-1;;;75851:116:0;;11821:2:1;75851:116:0;;;11803:21:1;11860:2;11840:18;;;11833:30;11899:34;11879:18;;;11872:62;-1:-1:-1;;;11950:18:1;;;11943:34;11994:19;;75851:116:0;11619:400:1;75851:116:0;75979:23;75989:3;75994:7;75979:9;:23::i;39679:152::-;39751:7;39794:27;39813:7;39794:18;:27::i;76275:94::-;17303:13;:11;:13::i;:::-;76342:9:::1;:19:::0;76275:94::o;35203:242::-;35275:7;-1:-1:-1;;;;;35299:19:0;;35295:69;;35320:44;-1:-1:-1;;;35320:7:0;:44::i;:::-;-1:-1:-1;;;;;;35382:25:0;;;;;:18;:25;;;;;;29362:13;35382:55;;35203:242::o;18065:103::-;17303:13;:11;:13::i;:::-;18130:30:::1;18157:1;18130:18;:30::i;:::-;18065:103::o:0;74090:342::-;17303:13;:11;:13::i;:::-;74187:24;;74255:9:::1;::::0;74187:24;74230:13:::1;34293:12:::0;;34080:7;34277:13;:28;;34019:323;74230:13:::1;:21;;;;:::i;:::-;:34;;74222:65;;;;-1:-1:-1::0;;;74222:65:0::1;;;;;;;:::i;:::-;74303:9;74298:127;74322:5;74318:1;:9;74298:127;;;74349:10;74362:17;74380:1;74362:20;;;;;;;;:::i;:::-;;;;;;;74349:33;;74397:16;74407:2;74411:1;74397:9;:16::i;:::-;-1:-1:-1::0;74329:3:0;::::1;::::0;::::1;:::i;:::-;;;;74298:127;;38453:104:::0;38509:13;38542:7;38535:14;;;;;:::i;75150:128::-;17303:13;:11;:13::i;:::-;75234:16:::1;:36:::0;;-1:-1:-1;;;;;;75234:36:0::1;-1:-1:-1::0;;;;;75234:36:0;;;::::1;::::0;;;::::1;::::0;;75150:128::o;72598:114::-;17303:13;:11;:13::i;:::-;72675:17:::1;:29:::0;;-1:-1:-1;;;;;;72675:29:0::1;-1:-1:-1::0;;;;;72675:29:0;;;::::1;::::0;;;::::1;::::0;;72598:114::o;73168:634::-;17490:6;;-1:-1:-1;;;;;17490:6:0;73235:10;:21;73231:517;;73282:6;;;;73281:7;73273:16;;;;;;73326:1;73312:11;:15;73304:64;;;;-1:-1:-1;;;73304:64:0;;;;;;;:::i;:::-;73424:27;;;;73409:42;;;73383:143;;;;-1:-1:-1;;;73383:143:0;;;;;;;:::i;:::-;73598:9;;73583:11;73567:13;34293:12;;34080:7;34277:13;:28;;34019:323;73567:13;:27;;;;:::i;:::-;:40;;73541:120;;;;-1:-1:-1;;;73541:120:0;;;;;;;:::i;:::-;73704:11;73697:4;;:18;;;;:::i;:::-;73684:9;:31;;73676:60;;;;-1:-1:-1;;;73676:60:0;;11476:2:1;73676:60:0;;;11458:21:1;11515:2;11495:18;;;11488:30;-1:-1:-1;;;11534:18:1;;;11527:46;11590:18;;73676:60:0;11274:340:1;73676:60:0;73760:34;73770:10;73782:11;73760:9;:34::i;45271:234::-;69844:10;45366:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;45366:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;45366:60:0;;;;;;;;;;45442:55;;540:41:1;;;45366:49:0;;69844:10;45442:55;;513:18:1;45442:55:0;;;;;;;45271:234;;:::o;52762:416::-;52937:31;52950:4;52956:2;52960:7;52937:12;:31::i;:::-;-1:-1:-1;;;;;52983:14:0;;;:19;52979:192;;53022:56;53053:4;53059:2;53063:7;53072:5;53022:30;:56::i;:::-;53017:154;;53099:56;-1:-1:-1;;;53099:7:0;:56::i;:::-;52762:416;;;;:::o;76492:75::-;17303:13;:11;:13::i;:::-;76553:6:::1;::::0;;-1:-1:-1;;76543:16:0;::::1;76553:6;::::0;;::::1;76552:7;76543:16;::::0;;76492:75::o;74559:487::-;74677:13;74730:16;74738:7;74730;:16::i;:::-;74708:113;;;;-1:-1:-1;;;74708:113:0;;12498:2:1;74708:113:0;;;12480:21:1;12537:2;12517:18;;;12510:30;12576:34;12556:18;;;12549:62;-1:-1:-1;;;12627:18:1;;;12620:45;12682:19;;74708:113:0;12296:411:1;74708:113:0;74832:28;74863:10;:8;:10::i;:::-;74832:41;;74935:1;74910:14;74904:28;:32;:134;;;;;;;;;;;;;;;;;74980:14;74996:18;:7;:16;:18::i;:::-;74963:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;74904:134;74884:154;74559:487;-1:-1:-1;;;74559:487:0:o;73848:193::-;17303:13;:11;:13::i;:::-;73963:9:::1;;73948:11;73932:13;34293:12:::0;;34080:7;34277:13;:28;;34019:323;73932:13:::1;:27;;;;:::i;:::-;:40;;73924:71;;;;-1:-1:-1::0;;;73924:71:0::1;;;;;;;:::i;73047:113::-:0;-1:-1:-1;;;;;35616:25:0;;73105:7;35616:25;;;:18;:25;;29500:2;35616:25;;;;29362:13;35616:50;;35615:82;73132:20;35527:178;76138:129;17303:13;:11;:13::i;:::-;76222:27:::1;:37:::0;;-1:-1:-1;;76222:37:0::1;;::::0;;;::::1;::::0;;;::::1;::::0;;76138:129::o;45662:164::-;-1:-1:-1;;;;;45783:25:0;;;45759:4;45783:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;45662:164::o;18323:201::-;17303:13;:11;:13::i;:::-;-1:-1:-1;;;;;18412:22:0;::::1;18404:73;;;::::0;-1:-1:-1;;;18404:73:0;;13415:2:1;18404:73:0::1;::::0;::::1;13397:21:1::0;13454:2;13434:18;;;13427:30;13493:34;13473:18;;;13466:62;-1:-1:-1;;;13544:18:1;;;13537:36;13590:19;;18404:73:0::1;13213:402:1::0;18404:73:0::1;18488:28;18507:8;18488:18;:28::i;72788:251::-:0;72905:17;;-1:-1:-1;;;;;72905:17:0;72891:10;:31;72869:119;;;;-1:-1:-1;;;72869:119:0;;13822:2:1;72869:119:0;;;13804:21:1;13861:2;13841:18;;;13834:30;13900:34;13880:18;;;13873:62;-1:-1:-1;;;13951:18:1;;;13944:36;13997:19;;72869:119:0;13620:402:1;72869:119:0;72999:32;73009:8;73019:11;72999:9;:32::i;46084:282::-;46149:4;46239:13;;46229:7;:23;46186:153;;;;-1:-1:-1;;46290:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;46290:44:0;:49;;46084:282::o;71776:165::-;71877:13;71871:4;71864:27;71918:4;71912;71905:18;63209:474;63338:13;63354:16;63362:7;63354;:16::i;:::-;63338:32;;63387:13;:45;;;;-1:-1:-1;69844:10:0;-1:-1:-1;;;;;63404:28:0;;;;63387:45;63383:201;;;63452:44;63469:5;69844:10;45662:164;:::i;63452:44::-;63447:137;;63517:51;-1:-1:-1;;;63517:7:0;:51::i;:::-;63596:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;63596:35:0;-1:-1:-1;;;;;63596:35:0;;;;;;;;;63647:28;;63596:24;;63647:28;;;;;;;63327:356;63209:474;;;:::o;40834:1730::-;40984:26;;;;:17;:26;;;;;;;-1:-1:-1;;;41060:24:0;;:29;;41056:1432;;41199:6;41209:1;41199:11;41195:990;;41250:13;;41239:7;:24;41235:77;;41265:47;-1:-1:-1;;;41265:7:0;:47::i;:::-;41909:257;-1:-1:-1;;;42013:9:0;41995:28;;;;:17;:28;;;;;;42077:25;;41909:257;42077:25;;40834:1730;;;:::o;41056:1432::-;42509:47;-1:-1:-1;;;42509:7:0;:47::i;17582:132::-;17490:6;;-1:-1:-1;;;;;17490:6:0;69844:10;17646:23;17638:68;;;;-1:-1:-1;;;17638:68:0;;14229:2:1;17638:68:0;;;14211:21:1;;;14248:18;;;14241:30;14307:34;14287:18;;;14280:62;14359:18;;17638:68:0;14027:356:1;18684:191:0;18777:6;;;-1:-1:-1;;;;;18794:17:0;;;-1:-1:-1;;;;;;18794:17:0;;;;;;;18827:40;;18777:6;;;18794:17;18777:6;;18827:40;;18758:16;;18827:40;18747:128;18684:191;:::o;55262:691::-;55446:88;;-1:-1:-1;;;55446:88:0;;55425:4;;-1:-1:-1;;;;;55446:45:0;;;;;:88;;69844:10;;55513:4;;55519:7;;55528:5;;55446:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55446:88:0;;;;;;;;-1:-1:-1;;55446:88:0;;;;;;;;;;;;:::i;:::-;;;55442:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55729:6;:13;55746:1;55729:18;55725:115;;55768:56;-1:-1:-1;;;55768:7:0;:56::i;:::-;55912:6;55906:13;55897:6;55893:2;55889:15;55882:38;55442:504;-1:-1:-1;;;;;;55605:64:0;-1:-1:-1;;;55605:64:0;;-1:-1:-1;55442:504:0;55262:691;;;;;;:::o;74440:111::-;74500:13;74533:10;74526:17;;;;;:::i;13373:727::-;13429:13;13480:14;13497:28;13519:5;13497:21;:28::i;:::-;13528:1;13497:32;13480:49;;13544:20;13578:6;13567:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13567:18:0;-1:-1:-1;13544:41:0;-1:-1:-1;13709:28:0;;;13725:2;13709:28;13766:288;-1:-1:-1;;13798:5:0;-1:-1:-1;;;13935:2:0;13924:14;;13919:30;13798:5;13906:44;13996:2;13987:11;;;-1:-1:-1;14017:21:0;13766:288;14017:21;-1:-1:-1;14075:6:0;13373:727;-1:-1:-1;;;13373:727:0:o;62291:112::-;62368:27;62378:2;62382:8;62368:27;;;;;;;;;;;;:9;:27::i;10205:922::-;10258:7;;-1:-1:-1;;;10336:15:0;;10332:102;;-1:-1:-1;;;10372:15:0;;;-1:-1:-1;10416:2:0;10406:12;10332:102;10461:6;10452:5;:15;10448:102;;10497:6;10488:15;;;-1:-1:-1;10532:2:0;10522:12;10448:102;10577:6;10568:5;:15;10564:102;;10613:6;10604:15;;;-1:-1:-1;10648:2:0;10638:12;10564:102;10693:5;10684;:14;10680:99;;10728:5;10719:14;;;-1:-1:-1;10762:1:0;10752:11;10680:99;10806:5;10797;:14;10793:99;;10841:5;10832:14;;;-1:-1:-1;10875:1:0;10865:11;10793:99;10919:5;10910;:14;10906:99;;10954:5;10945:14;;;-1:-1:-1;10988:1:0;10978:11;10906:99;11032:5;11023;:14;11019:66;;11068:1;11058:11;11113:6;10205:922;-1:-1:-1;;10205:922:0:o;61499:708::-;61630:19;61636:2;61640:8;61630:5;:19::i;:::-;-1:-1:-1;;;;;61691:14:0;;;:19;61687:502;;61731:11;61745:13;61793:14;;;61826:242;61857:62;61896:1;61900:2;61904:7;;;;;;61913:5;61857:30;:62::i;:::-;61852:176;;61948:56;-1:-1:-1;;;61948:7:0;:56::i;:::-;62063:3;62055:5;:11;61826:242;;62150:3;62133:13;;:20;62129:44;;62155:18;62170:1;62155:7;:18::i;:::-;61712:477;;61499:708;;;:::o;56415:2305::-;56488:20;56511:13;;;56539;;;56535:53;;56554:34;-1:-1:-1;;;56554:7:0;:34::i;:::-;57101:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;43349:28:0;;43523:11;43498:23;43494:41;43967:1;43954:15;;43928:24;43924:46;43491:52;43481:63;;57101:173;;;57492:22;;;:18;:22;;;;;:71;;57530:32;57518:45;;57492:71;;;43349:28;57753:13;;;57749:54;;57768:35;-1:-1:-1;;;57768:7:0;:35::i;:::-;57834:23;;;:12;57919:676;58338:7;58294:8;58249:1;58183:25;58120:1;58055;58024:358;58590:3;58577:9;;;;;;:16;57919:676;;-1:-1:-1;58611:13:0;:19;-1:-1:-1;51971:193: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;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:127::-;2754:10;2749:3;2745:20;2742:1;2735:31;2785:4;2782:1;2775:15;2809:4;2806:1;2799:15;2825:275;2896:2;2890:9;2961:2;2942:13;;-1:-1:-1;;2938:27:1;2926:40;;2996:18;2981:34;;3017:22;;;2978:62;2975:88;;;3043:18;;:::i;:::-;3079:2;3072:22;2825:275;;-1:-1:-1;2825:275:1:o;3105:407::-;3170:5;3204:18;3196:6;3193:30;3190:56;;;3226:18;;:::i;:::-;3264:57;3309:2;3288:15;;-1:-1:-1;;3284:29:1;3315:4;3280:40;3264:57;:::i;:::-;3255:66;;3344:6;3337:5;3330:21;3384:3;3375:6;3370:3;3366:16;3363:25;3360:45;;;3401:1;3398;3391:12;3360:45;3450:6;3445:3;3438:4;3431:5;3427:16;3414:43;3504:1;3497:4;3488:6;3481:5;3477:18;3473:29;3466:40;3105:407;;;;;:::o;3517:451::-;3586:6;3639:2;3627:9;3618:7;3614:23;3610:32;3607:52;;;3655:1;3652;3645:12;3607:52;3695:9;3682:23;3728:18;3720:6;3717:30;3714:50;;;3760:1;3757;3750:12;3714:50;3783:22;;3836:4;3828:13;;3824:27;-1:-1:-1;3814:55:1;;3865:1;3862;3855:12;3814:55;3888:74;3954:7;3949:2;3936:16;3931:2;3927;3923:11;3888:74;:::i;3973:186::-;4032:6;4085:2;4073:9;4064:7;4060:23;4056:32;4053:52;;;4101:1;4098;4091:12;4053:52;4124:29;4143:9;4124:29;:::i;4164:952::-;4248:6;4279:2;4322;4310:9;4301:7;4297:23;4293:32;4290:52;;;4338:1;4335;4328:12;4290:52;4378:9;4365:23;4407:18;4448:2;4440:6;4437:14;4434:34;;;4464:1;4461;4454:12;4434:34;4502:6;4491:9;4487:22;4477:32;;4547:7;4540:4;4536:2;4532:13;4528:27;4518:55;;4569:1;4566;4559:12;4518:55;4605:2;4592:16;4627:2;4623;4620:10;4617:36;;;4633:18;;:::i;:::-;4679:2;4676:1;4672:10;4662:20;;4702:28;4726:2;4722;4718:11;4702:28;:::i;:::-;4764:15;;;4834:11;;;4830:20;;;4795:12;;;;4862:19;;;4859:39;;;4894:1;4891;4884:12;4859:39;4918:11;;;;4938:148;4954:6;4949:3;4946:15;4938:148;;;5020:23;5039:3;5020:23;:::i;:::-;5008:36;;4971:12;;;;5064;;;;4938:148;;;5105:5;4164:952;-1:-1:-1;;;;;;;;4164:952:1:o;5121:347::-;5186:6;5194;5247:2;5235:9;5226:7;5222:23;5218:32;5215:52;;;5263:1;5260;5253:12;5215:52;5286:29;5305:9;5286:29;:::i;:::-;5276:39;;5365:2;5354:9;5350:18;5337:32;5412:5;5405:13;5398:21;5391:5;5388:32;5378:60;;5434:1;5431;5424:12;5378:60;5457:5;5447:15;;;5121:347;;;;;:::o;5473:667::-;5568:6;5576;5584;5592;5645:3;5633:9;5624:7;5620:23;5616:33;5613:53;;;5662:1;5659;5652:12;5613:53;5685:29;5704:9;5685:29;:::i;:::-;5675:39;;5733:38;5767:2;5756:9;5752:18;5733:38;:::i;:::-;5723:48;;5818:2;5807:9;5803:18;5790:32;5780:42;;5873:2;5862:9;5858:18;5845:32;5900:18;5892:6;5889:30;5886:50;;;5932:1;5929;5922:12;5886:50;5955:22;;6008:4;6000:13;;5996:27;-1:-1:-1;5986:55:1;;6037:1;6034;6027:12;5986:55;6060:74;6126:7;6121:2;6108:16;6103:2;6099;6095:11;6060:74;:::i;:::-;6050:84;;;5473:667;;;;;;;:::o;6338:272::-;6396:6;6449:2;6437:9;6428:7;6424:23;6420:32;6417:52;;;6465:1;6462;6455:12;6417:52;6504:9;6491:23;6554:6;6547:5;6543:18;6536:5;6533:29;6523:57;;6576:1;6573;6566:12;6615:260;6683:6;6691;6744:2;6732:9;6723:7;6719:23;6715:32;6712:52;;;6760:1;6757;6750:12;6712:52;6783:29;6802:9;6783:29;:::i;:::-;6773:39;;6831:38;6865:2;6854:9;6850:18;6831:38;:::i;:::-;6821:48;;6615:260;;;;;:::o;6880:380::-;6959:1;6955:12;;;;7002;;;7023:61;;7077:4;7069:6;7065:17;7055:27;;7023:61;7130:2;7122:6;7119:14;7099:18;7096:38;7093:161;;7176:10;7171:3;7167:20;7164:1;7157:31;7211:4;7208:1;7201:15;7239:4;7236:1;7229:15;7093:161;;6880:380;;;:::o;7601:545::-;7703:2;7698:3;7695:11;7692:448;;;7739:1;7764:5;7760:2;7753:17;7809:4;7805:2;7795:19;7879:2;7867:10;7863:19;7860:1;7856:27;7850:4;7846:38;7915:4;7903:10;7900:20;7897:47;;;-1:-1:-1;7938:4:1;7897:47;7993:2;7988:3;7984:12;7981:1;7977:20;7971:4;7967:31;7957:41;;8048:82;8066:2;8059:5;8056:13;8048:82;;;8111:17;;;8092:1;8081:13;8048:82;;;8052:3;;;7601:545;;;:::o;8322:1352::-;8448:3;8442:10;8475:18;8467:6;8464:30;8461:56;;;8497:18;;:::i;:::-;8526:97;8616:6;8576:38;8608:4;8602:11;8576:38;:::i;:::-;8570:4;8526:97;:::i;:::-;8678:4;;8742:2;8731:14;;8759:1;8754:663;;;;9461:1;9478:6;9475:89;;;-1:-1:-1;9530:19:1;;;9524:26;9475:89;-1:-1:-1;;8279:1:1;8275:11;;;8271:24;8267:29;8257:40;8303:1;8299:11;;;8254:57;9577:81;;8724:944;;8754:663;7548:1;7541:14;;;7585:4;7572:18;;-1:-1:-1;;8790:20:1;;;8908:236;8922:7;8919:1;8916:14;8908:236;;;9011:19;;;9005:26;8990:42;;9103:27;;;;9071:1;9059:14;;;;8938:19;;8908:236;;;8912:3;9172:6;9163:7;9160:19;9157:201;;;9233:19;;;9227:26;-1:-1:-1;;9316:1:1;9312:14;;;9328:3;9308:24;9304:37;9300:42;9285:58;9270:74;;9157:201;-1:-1:-1;;;;;9404:1:1;9388:14;;;9384:22;9371:36;;-1:-1:-1;8322:1352:1:o;9679:400::-;9881:2;9863:21;;;9920:2;9900:18;;;9893:30;9959:34;9954:2;9939:18;;9932:62;-1:-1:-1;;;10025:2:1;10010:18;;10003:34;10069:3;10054:19;;9679:400::o;10084:403::-;10286:2;10268:21;;;10325:2;10305:18;;;10298:30;10364:34;10359:2;10344:18;;10337:62;-1:-1:-1;;;10430:2:1;10415:18;;10408:37;10477:3;10462:19;;10084:403::o;10492:127::-;10553:10;10548:3;10544:20;10541:1;10534:31;10584:4;10581:1;10574:15;10608:4;10605:1;10598:15;10624:125;10689:9;;;10710:10;;;10707:36;;;10723:18;;:::i;10754:342::-;10956:2;10938:21;;;10995:2;10975:18;;;10968:30;-1:-1:-1;;;11029:2:1;11014:18;;11007:48;11087:2;11072:18;;10754:342::o;11101:168::-;11174:9;;;11205;;11222:15;;;11216:22;;11202:37;11192:71;;11243:18;;:::i;12024:127::-;12085:10;12080:3;12076:20;12073:1;12066:31;12116:4;12113:1;12106:15;12140:4;12137:1;12130:15;12156:135;12195:3;12216:17;;;12213:43;;12236:18;;:::i;:::-;-1:-1:-1;12283:1:1;12272:13;;12156:135::o;12712:496::-;12891:3;12929:6;12923:13;12945:66;13004:6;12999:3;12992:4;12984:6;12980:17;12945:66;:::i;:::-;13074:13;;13033:16;;;;13096:70;13074:13;13033:16;13143:4;13131:17;;13096:70;:::i;:::-;13182:20;;12712:496;-1:-1:-1;;;;12712:496:1:o;14388:489::-;-1:-1:-1;;;;;14657:15:1;;;14639:34;;14709:15;;14704:2;14689:18;;14682:43;14756:2;14741:18;;14734:34;;;14804:3;14799:2;14784:18;;14777:31;;;14582:4;;14825:46;;14851:19;;14843:6;14825:46;:::i;:::-;14817:54;14388:489;-1:-1:-1;;;;;;14388:489:1:o;14882:249::-;14951:6;15004:2;14992:9;14983:7;14979:23;14975:32;14972:52;;;15020:1;15017;15010:12;14972:52;15052:9;15046:16;15071:30;15095:5;15071:30;:::i
Swarm Source
ipfs://d77c0a84ef5c9038545f07a00909ef9d962f74e4f5702f2024c07fce191f1195
Loading...
Loading
Loading...
Loading
OVERVIEW
Love Story Unicorns is a collection of 10,000 unique Unicorn NFTs - unique digital collectibles living on the Ethereum blockchain. Your Unicorn doubles as your Love Story membership card, and grants access to members-only benefits, the first of which is access to at least X2 s...Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,052.41 | 1.92 | $5,860.62 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.