Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,420 FCOLLECTION
Holders
321
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FCOLLECTIONLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Fcollection
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-10 */ // File: @openzeppelin/contracts/utils/math/Math.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 Math { 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/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { 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 = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _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, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { 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: erc721a/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: erc721a/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(); 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(); 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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // 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, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @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. * 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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @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(); 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); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (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(); if (to == address(0)) revert TransferToZeroAddress(); _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; } } } } emit Transfer(from, to, tokenId); _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(); } } /** * @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(); } else { 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(); _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: // - `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) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // 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`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _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(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _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(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // 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(); } _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(); 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) } } } // File: contracts/4_Fcollection.sol pragma solidity ^0.8.9; contract Fcollection is ERC721A, Ownable { string _baseTokenURI; bool public isActive = false; uint256 public price = 0.0029 ether; uint256 public MAX_PER_TX = 10; uint256 public MAX_SUPPLY = 6999; uint256 public constant FREE_MAX_SUPPLY = 999; uint256 public constant MAX_PER_TX_FREE = 1; constructor() ERC721A("Fcollection", "FCOLLECTION") {} modifier saleIsOpen { require(totalSupply() <= MAX_SUPPLY, "Sale has ended."); _; } function toggleSaleStatus() public onlyOwner { isActive = !isActive; } function setBaseURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function mint(uint256 _count) public payable saleIsOpen { uint256 mintIndex = totalSupply(); uint256 discountPrice = _count; if (msg.sender != owner()) { require(isActive, "Sale is not active currently."); } require(mintIndex + _count <= MAX_SUPPLY, "Total supply exceeded."); require( _count <= MAX_PER_TX, "Exceeds maximum allowed tokens" ); if (mintIndex > FREE_MAX_SUPPLY) { if (_count > 1) { discountPrice = _count - 1; } if (balanceOf(msg.sender) >= 1 || _count > 1) { require(msg.value >= price * discountPrice, "Insufficient ETH amount sent."); } } _safeMint(msg.sender, _count); } function tokenURI(uint256 id) public view virtual override returns (string memory) { require(_exists(id), "Metadata: URI query for nonexistent token"); return string(abi.encodePacked(_baseTokenURI, Strings.toString(id), ".json")); } function withdrawMoney() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":[],"name":"FREE_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_TX_FREE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","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":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a805460ff19168155660a4d88ddd94000600b55600c55611b57600d553480156200002f57600080fd5b506040518060400160405280600b81526020016a2331b7b63632b1ba34b7b760a91b8152506040518060400160405280600b81526020016a2321a7a62622a1aa24a7a760a91b81525081600290805190602001906200009092919062000110565b508051620000a690600390602084019062000110565b50506000805550620000b833620000be565b620001f3565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011e90620001b6565b90600052602060002090601f0160209004810192826200014257600085556200018d565b82601f106200015d57805160ff19168380011785556200018d565b828001600101855582156200018d579182015b828111156200018d57825182559160200191906001019062000170565b506200019b9291506200019f565b5090565b5b808211156200019b5760008155600101620001a0565b600181811c90821680620001cb57607f821691505b60208210811415620001ed57634e487b7160e01b600052602260045260246000fd5b50919050565b61184580620002036000396000f3fe60806040526004361061019c5760003560e01c806370a08231116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610417578063e985e9c514610437578063f2fde38b14610480578063f43a22dc146104a057600080fd5b8063a22cb465146103cf578063ac446002146103ef578063b88d4fde1461040457600080fd5b80638da5cb5b116100c65780638da5cb5b1461037357806395d89b4114610391578063a035b1fe146103a6578063a0712d68146103bc57600080fd5b806370a0823114610328578063715018a6146103485780638069876d1461035d57600080fd5b806322f3e2d41161015957806342842e0e1161013357806342842e0e146102c0578063463fff79146102d357806355f804b3146102e85780636352211e1461030857600080fd5b806322f3e2d41461027d57806323b872dd1461029757806332cb6b0c146102aa57600080fd5b806301ffc9a7146101a1578063049c5c49146101d657806306fdde03146101ed578063081812fc1461020f578063095ea7b31461024757806318160ddd1461025a575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004611341565b6104b6565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610508565b005b3480156101f957600080fd5b50610202610524565b6040516101cd91906113b6565b34801561021b57600080fd5b5061022f61022a3660046113c9565b6105b6565b6040516001600160a01b0390911681526020016101cd565b6101eb6102553660046113fe565b6105fa565b34801561026657600080fd5b50600154600054035b6040519081526020016101cd565b34801561028957600080fd5b50600a546101c19060ff1681565b6101eb6102a5366004611428565b61069a565b3480156102b657600080fd5b5061026f600d5481565b6101eb6102ce366004611428565b61082b565b3480156102df57600080fd5b5061026f600181565b3480156102f457600080fd5b506101eb6103033660046114f0565b61084b565b34801561031457600080fd5b5061022f6103233660046113c9565b61086a565b34801561033457600080fd5b5061026f610343366004611539565b610875565b34801561035457600080fd5b506101eb6108c4565b34801561036957600080fd5b5061026f6103e781565b34801561037f57600080fd5b506008546001600160a01b031661022f565b34801561039d57600080fd5b506102026108d8565b3480156103b257600080fd5b5061026f600b5481565b6101eb6103ca3660046113c9565b6108e7565b3480156103db57600080fd5b506101eb6103ea366004611554565b610b0f565b3480156103fb57600080fd5b506101eb610b7b565b6101eb610412366004611590565b610c11565b34801561042357600080fd5b506102026104323660046113c9565b610c5b565b34801561044357600080fd5b506101c161045236600461160c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561048c57600080fd5b506101eb61049b366004611539565b610cf6565b3480156104ac57600080fd5b5061026f600c5481565b60006301ffc9a760e01b6001600160e01b0319831614806104e757506380ac58cd60e01b6001600160e01b03198316145b806105025750635b5e139f60e01b6001600160e01b03198316145b92915050565b610510610d6c565b600a805460ff19811660ff90911615179055565b6060600280546105339061163f565b80601f016020809104026020016040519081016040528092919081815260200182805461055f9061163f565b80156105ac5780601f10610581576101008083540402835291602001916105ac565b820191906000526020600020905b81548152906001019060200180831161058f57829003601f168201915b5050505050905090565b60006105c182610dc6565b6105de576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106058261086a565b9050336001600160a01b0382161461063e576106218133610452565b61063e576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106a582610ded565b9050836001600160a01b0316816001600160a01b0316146106d85760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610725576107088633610452565b61072557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661074c57604051633a954ecd60e21b815260040160405180910390fd5b801561075757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166107e257600184016000818152600460205260409020546107e05760005481146107e05760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61084683838360405180602001604052806000815250610c11565b505050565b610853610d6c565b8051610866906009906020840190611292565b5050565b600061050282610ded565b60006001600160a01b03821661089e576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6108cc610d6c565b6108d66000610e55565b565b6060600380546105339061163f565b600d546001546000540311156109365760405162461bcd60e51b815260206004820152600f60248201526e29b0b632903430b99032b73232b21760891b60448201526064015b60405180910390fd5b60006109456001546000540390565b90508161095a6008546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146109c457600a5460ff166109c45760405162461bcd60e51b815260206004820152601d60248201527f53616c65206973206e6f74206163746976652063757272656e746c792e000000604482015260640161092d565b600d546109d18484611690565b1115610a185760405162461bcd60e51b81526020600482015260166024820152752a37ba30b61039bab838363c9032bc31b2b2b232b21760511b604482015260640161092d565b600c54831115610a6a5760405162461bcd60e51b815260206004820152601e60248201527f45786365656473206d6178696d756d20616c6c6f77656420746f6b656e730000604482015260640161092d565b6103e7821115610b05576001831115610a8b57610a886001846116a8565b90505b6001610a9633610875565b101580610aa35750600183115b15610b055780600b54610ab691906116bf565b341015610b055760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e742045544820616d6f756e742073656e742e000000604482015260640161092d565b6108463384610ea7565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b83610d6c565b604051600090339047908381818185875af1925050503d8060008114610bc5576040519150601f19603f3d011682016040523d82523d6000602084013e610bca565b606091505b5050905080610c0e5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161092d565b50565b610c1c84848461069a565b6001600160a01b0383163b15610c5557610c3884848484610ec1565b610c55576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610c6682610dc6565b610cc45760405162461bcd60e51b815260206004820152602960248201527f4d657461646174613a2055524920717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161092d565b6009610ccf83610fb9565b604051602001610ce09291906116fa565b6040516020818303038152906040529050919050565b610cfe610d6c565b6001600160a01b038116610d635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092d565b610c0e81610e55565b6008546001600160a01b031633146108d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161092d565b6000805482108015610502575050600090815260046020526040902054600160e01b161590565b600081600054811015610e3c57600081815260046020526040902054600160e01b8116610e3a575b80610e33575060001901600081815260046020526040902054610e15565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610866828260405180602001604052806000815250611056565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610ef69033908990889088906004016117b5565b602060405180830381600087803b158015610f1057600080fd5b505af1925050508015610f40575060408051601f3d908101601f19168201909252610f3d918101906117f2565b60015b610f9b573d808015610f6e576040519150601f19603f3d011682016040523d82523d6000602084013e610f73565b606091505b508051610f93576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606000610fc6836110c3565b600101905060008167ffffffffffffffff811115610fe657610fe6611464565b6040519080825280601f01601f191660200182016040528015611010576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846110495761104e565b61101a565b509392505050565b611060838361119b565b6001600160a01b0383163b15610846576000548281035b61108a6000868380600101945086610ec1565b6110a7576040516368d2bf6b60e11b815260040160405180910390fd5b8181106110775781600054146110bc57600080fd5b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106111025772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061112e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061114c57662386f26fc10000830492506010015b6305f5e1008310611164576305f5e100830492506008015b612710831061117857612710830492506004015b6064831061118a576064830492506002015b600a83106105025760010192915050565b600054816111bc5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461126b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611233565b508161128957604051622e076360e81b815260040160405180910390fd5b60005550505050565b82805461129e9061163f565b90600052602060002090601f0160209004810192826112c05760008555611306565b82601f106112d957805160ff1916838001178555611306565b82800160010185558215611306579182015b828111156113065782518255916020019190600101906112eb565b50611312929150611316565b5090565b5b808211156113125760008155600101611317565b6001600160e01b031981168114610c0e57600080fd5b60006020828403121561135357600080fd5b8135610e338161132b565b60005b83811015611379578181015183820152602001611361565b83811115610c555750506000910152565b600081518084526113a281602086016020860161135e565b601f01601f19169290920160200192915050565b602081526000610e33602083018461138a565b6000602082840312156113db57600080fd5b5035919050565b80356001600160a01b03811681146113f957600080fd5b919050565b6000806040838503121561141157600080fd5b61141a836113e2565b946020939093013593505050565b60008060006060848603121561143d57600080fd5b611446846113e2565b9250611454602085016113e2565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561149557611495611464565b604051601f8501601f19908116603f011681019082821181831017156114bd576114bd611464565b816040528093508581528686860111156114d657600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561150257600080fd5b813567ffffffffffffffff81111561151957600080fd5b8201601f8101841361152a57600080fd5b610fb18482356020840161147a565b60006020828403121561154b57600080fd5b610e33826113e2565b6000806040838503121561156757600080fd5b611570836113e2565b91506020830135801515811461158557600080fd5b809150509250929050565b600080600080608085870312156115a657600080fd5b6115af856113e2565b93506115bd602086016113e2565b925060408501359150606085013567ffffffffffffffff8111156115e057600080fd5b8501601f810187136115f157600080fd5b6116008782356020840161147a565b91505092959194509250565b6000806040838503121561161f57600080fd5b611628836113e2565b9150611636602084016113e2565b90509250929050565b600181811c9082168061165357607f821691505b6020821081141561167457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156116a3576116a361167a565b500190565b6000828210156116ba576116ba61167a565b500390565b60008160001904831182151516156116d9576116d961167a565b500290565b600081516116f081856020860161135e565b9290920192915050565b600080845481600182811c91508083168061171657607f831692505b602080841082141561173657634e487b7160e01b86526022600452602486fd5b81801561174a576001811461175b57611788565b60ff19861689528489019650611788565b60008b81526020902060005b868110156117805781548b820152908501908301611767565b505084890196505b5050505050506117ac61179b82866116de565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117e89083018461138a565b9695505050505050565b60006020828403121561180457600080fd5b8151610e338161132b56fea26469706673582212206657aab882a13acc542fa329ff9a45a7ec4b6d84199eda6fa1c698e4a866412764736f6c63430008090033
Deployed Bytecode
0x60806040526004361061019c5760003560e01c806370a08231116100ec578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610417578063e985e9c514610437578063f2fde38b14610480578063f43a22dc146104a057600080fd5b8063a22cb465146103cf578063ac446002146103ef578063b88d4fde1461040457600080fd5b80638da5cb5b116100c65780638da5cb5b1461037357806395d89b4114610391578063a035b1fe146103a6578063a0712d68146103bc57600080fd5b806370a0823114610328578063715018a6146103485780638069876d1461035d57600080fd5b806322f3e2d41161015957806342842e0e1161013357806342842e0e146102c0578063463fff79146102d357806355f804b3146102e85780636352211e1461030857600080fd5b806322f3e2d41461027d57806323b872dd1461029757806332cb6b0c146102aa57600080fd5b806301ffc9a7146101a1578063049c5c49146101d657806306fdde03146101ed578063081812fc1461020f578063095ea7b31461024757806318160ddd1461025a575b600080fd5b3480156101ad57600080fd5b506101c16101bc366004611341565b6104b6565b60405190151581526020015b60405180910390f35b3480156101e257600080fd5b506101eb610508565b005b3480156101f957600080fd5b50610202610524565b6040516101cd91906113b6565b34801561021b57600080fd5b5061022f61022a3660046113c9565b6105b6565b6040516001600160a01b0390911681526020016101cd565b6101eb6102553660046113fe565b6105fa565b34801561026657600080fd5b50600154600054035b6040519081526020016101cd565b34801561028957600080fd5b50600a546101c19060ff1681565b6101eb6102a5366004611428565b61069a565b3480156102b657600080fd5b5061026f600d5481565b6101eb6102ce366004611428565b61082b565b3480156102df57600080fd5b5061026f600181565b3480156102f457600080fd5b506101eb6103033660046114f0565b61084b565b34801561031457600080fd5b5061022f6103233660046113c9565b61086a565b34801561033457600080fd5b5061026f610343366004611539565b610875565b34801561035457600080fd5b506101eb6108c4565b34801561036957600080fd5b5061026f6103e781565b34801561037f57600080fd5b506008546001600160a01b031661022f565b34801561039d57600080fd5b506102026108d8565b3480156103b257600080fd5b5061026f600b5481565b6101eb6103ca3660046113c9565b6108e7565b3480156103db57600080fd5b506101eb6103ea366004611554565b610b0f565b3480156103fb57600080fd5b506101eb610b7b565b6101eb610412366004611590565b610c11565b34801561042357600080fd5b506102026104323660046113c9565b610c5b565b34801561044357600080fd5b506101c161045236600461160c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561048c57600080fd5b506101eb61049b366004611539565b610cf6565b3480156104ac57600080fd5b5061026f600c5481565b60006301ffc9a760e01b6001600160e01b0319831614806104e757506380ac58cd60e01b6001600160e01b03198316145b806105025750635b5e139f60e01b6001600160e01b03198316145b92915050565b610510610d6c565b600a805460ff19811660ff90911615179055565b6060600280546105339061163f565b80601f016020809104026020016040519081016040528092919081815260200182805461055f9061163f565b80156105ac5780601f10610581576101008083540402835291602001916105ac565b820191906000526020600020905b81548152906001019060200180831161058f57829003601f168201915b5050505050905090565b60006105c182610dc6565b6105de576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106058261086a565b9050336001600160a01b0382161461063e576106218133610452565b61063e576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106a582610ded565b9050836001600160a01b0316816001600160a01b0316146106d85760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610725576107088633610452565b61072557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661074c57604051633a954ecd60e21b815260040160405180910390fd5b801561075757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166107e257600184016000818152600460205260409020546107e05760005481146107e05760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61084683838360405180602001604052806000815250610c11565b505050565b610853610d6c565b8051610866906009906020840190611292565b5050565b600061050282610ded565b60006001600160a01b03821661089e576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6108cc610d6c565b6108d66000610e55565b565b6060600380546105339061163f565b600d546001546000540311156109365760405162461bcd60e51b815260206004820152600f60248201526e29b0b632903430b99032b73232b21760891b60448201526064015b60405180910390fd5b60006109456001546000540390565b90508161095a6008546001600160a01b031690565b6001600160a01b0316336001600160a01b0316146109c457600a5460ff166109c45760405162461bcd60e51b815260206004820152601d60248201527f53616c65206973206e6f74206163746976652063757272656e746c792e000000604482015260640161092d565b600d546109d18484611690565b1115610a185760405162461bcd60e51b81526020600482015260166024820152752a37ba30b61039bab838363c9032bc31b2b2b232b21760511b604482015260640161092d565b600c54831115610a6a5760405162461bcd60e51b815260206004820152601e60248201527f45786365656473206d6178696d756d20616c6c6f77656420746f6b656e730000604482015260640161092d565b6103e7821115610b05576001831115610a8b57610a886001846116a8565b90505b6001610a9633610875565b101580610aa35750600183115b15610b055780600b54610ab691906116bf565b341015610b055760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e742045544820616d6f756e742073656e742e000000604482015260640161092d565b6108463384610ea7565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b83610d6c565b604051600090339047908381818185875af1925050503d8060008114610bc5576040519150601f19603f3d011682016040523d82523d6000602084013e610bca565b606091505b5050905080610c0e5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161092d565b50565b610c1c84848461069a565b6001600160a01b0383163b15610c5557610c3884848484610ec1565b610c55576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610c6682610dc6565b610cc45760405162461bcd60e51b815260206004820152602960248201527f4d657461646174613a2055524920717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161092d565b6009610ccf83610fb9565b604051602001610ce09291906116fa565b6040516020818303038152906040529050919050565b610cfe610d6c565b6001600160a01b038116610d635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092d565b610c0e81610e55565b6008546001600160a01b031633146108d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161092d565b6000805482108015610502575050600090815260046020526040902054600160e01b161590565b600081600054811015610e3c57600081815260046020526040902054600160e01b8116610e3a575b80610e33575060001901600081815260046020526040902054610e15565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610866828260405180602001604052806000815250611056565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610ef69033908990889088906004016117b5565b602060405180830381600087803b158015610f1057600080fd5b505af1925050508015610f40575060408051601f3d908101601f19168201909252610f3d918101906117f2565b60015b610f9b573d808015610f6e576040519150601f19603f3d011682016040523d82523d6000602084013e610f73565b606091505b508051610f93576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606000610fc6836110c3565b600101905060008167ffffffffffffffff811115610fe657610fe6611464565b6040519080825280601f01601f191660200182016040528015611010576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846110495761104e565b61101a565b509392505050565b611060838361119b565b6001600160a01b0383163b15610846576000548281035b61108a6000868380600101945086610ec1565b6110a7576040516368d2bf6b60e11b815260040160405180910390fd5b8181106110775781600054146110bc57600080fd5b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106111025772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061112e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061114c57662386f26fc10000830492506010015b6305f5e1008310611164576305f5e100830492506008015b612710831061117857612710830492506004015b6064831061118a576064830492506002015b600a83106105025760010192915050565b600054816111bc5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461126b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611233565b508161128957604051622e076360e81b815260040160405180910390fd5b60005550505050565b82805461129e9061163f565b90600052602060002090601f0160209004810192826112c05760008555611306565b82601f106112d957805160ff1916838001178555611306565b82800160010185558215611306579182015b828111156113065782518255916020019190600101906112eb565b50611312929150611316565b5090565b5b808211156113125760008155600101611317565b6001600160e01b031981168114610c0e57600080fd5b60006020828403121561135357600080fd5b8135610e338161132b565b60005b83811015611379578181015183820152602001611361565b83811115610c555750506000910152565b600081518084526113a281602086016020860161135e565b601f01601f19169290920160200192915050565b602081526000610e33602083018461138a565b6000602082840312156113db57600080fd5b5035919050565b80356001600160a01b03811681146113f957600080fd5b919050565b6000806040838503121561141157600080fd5b61141a836113e2565b946020939093013593505050565b60008060006060848603121561143d57600080fd5b611446846113e2565b9250611454602085016113e2565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561149557611495611464565b604051601f8501601f19908116603f011681019082821181831017156114bd576114bd611464565b816040528093508581528686860111156114d657600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561150257600080fd5b813567ffffffffffffffff81111561151957600080fd5b8201601f8101841361152a57600080fd5b610fb18482356020840161147a565b60006020828403121561154b57600080fd5b610e33826113e2565b6000806040838503121561156757600080fd5b611570836113e2565b91506020830135801515811461158557600080fd5b809150509250929050565b600080600080608085870312156115a657600080fd5b6115af856113e2565b93506115bd602086016113e2565b925060408501359150606085013567ffffffffffffffff8111156115e057600080fd5b8501601f810187136115f157600080fd5b6116008782356020840161147a565b91505092959194509250565b6000806040838503121561161f57600080fd5b611628836113e2565b9150611636602084016113e2565b90509250929050565b600181811c9082168061165357607f821691505b6020821081141561167457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156116a3576116a361167a565b500190565b6000828210156116ba576116ba61167a565b500390565b60008160001904831182151516156116d9576116d961167a565b500290565b600081516116f081856020860161135e565b9290920192915050565b600080845481600182811c91508083168061171657607f831692505b602080841082141561173657634e487b7160e01b86526022600452602486fd5b81801561174a576001811461175b57611788565b60ff19861689528489019650611788565b60008b81526020902060005b868110156117805781548b820152908501908301611767565b505084890196505b5050505050506117ac61179b82866116de565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117e89083018461138a565b9695505050505050565b60006020828403121561180457600080fd5b8151610e338161132b56fea26469706673582212206657aab882a13acc542fa329ff9a45a7ec4b6d84199eda6fa1c698e4a866412764736f6c63430008090033
Deployed Bytecode Sourcemap
70302:1936:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37196:639;;;;;;;;;;-1:-1:-1;37196:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;37196:639:0;;;;;;;;70786:78;;;;;;;;;;;;;:::i;:::-;;38098:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;44589:218::-;;;;;;;;;;-1:-1:-1;44589:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1714:32:1;;;1696:51;;1684:2;1669:18;44589:218:0;1550:203:1;44022:408:0;;;;;;:::i;:::-;;:::i;33849:323::-;;;;;;;;;;-1:-1:-1;34123:12:0;;33910:7;34107:13;:28;33849:323;;;2341:25:1;;;2329:2;2314:18;33849:323:0;2195:177:1;70377:28:0;;;;;;;;;;-1:-1:-1;70377:28:0;;;;;;;;48228:2825;;;;;;:::i;:::-;;:::i;70487:32::-;;;;;;;;;;;;;;;;51149:193;;;;;;:::i;:::-;;:::i;70574:43::-;;;;;;;;;;;;70616:1;70574:43;;70870:96;;;;;;;;;;-1:-1:-1;70870:96:0;;;;;:::i;:::-;;:::i;39491:152::-;;;;;;;;;;-1:-1:-1;39491:152:0;;;;;:::i;:::-;;:::i;35033:233::-;;;;;;;;;;-1:-1:-1;35033:233:0;;;;;:::i;:::-;;:::i;17975:103::-;;;;;;;;;;;;;:::i;70524:45::-;;;;;;;;;;;;70566:3;70524:45;;17327:87;;;;;;;;;;-1:-1:-1;17400:6:0;;-1:-1:-1;;;;;17400:6:0;17327:87;;38274:104;;;;;;;;;;;;;:::i;70412:35::-;;;;;;;;;;;;;;;;71086:722;;;;;;:::i;:::-;;:::i;45147:234::-;;;;;;;;;;-1:-1:-1;45147:234:0;;;;;:::i;:::-;;:::i;72067:168::-;;;;;;;;;;;;;:::i;51940:407::-;;;;;;:::i;:::-;;:::i;71814:247::-;;;;;;;;;;-1:-1:-1;71814:247:0;;;;;:::i;:::-;;:::i;45538:164::-;;;;;;;;;;-1:-1:-1;45538:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;45659:25:0;;;45635:4;45659:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;45538:164;18233:201;;;;;;;;;;-1:-1:-1;18233:201:0;;;;;:::i;:::-;;:::i;70452:30::-;;;;;;;;;;;;;;;;37196:639;37281:4;-1:-1:-1;;;;;;;;;37605:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;37682:25:0;;;37605:102;:179;;;-1:-1:-1;;;;;;;;;;37759:25:0;;;37605:179;37585:199;37196:639;-1:-1:-1;;37196:639:0:o;70786:78::-;17213:13;:11;:13::i;:::-;70850:8:::1;::::0;;-1:-1:-1;;70838:20:0;::::1;70850:8;::::0;;::::1;70849:9;70838:20;::::0;;70786:78::o;38098:100::-;38152:13;38185:5;38178:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38098:100;:::o;44589:218::-;44665:7;44690:16;44698:7;44690;:16::i;:::-;44685:64;;44715:34;;-1:-1:-1;;;44715:34:0;;;;;;;;;;;44685:64;-1:-1:-1;44769:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;44769:30:0;;44589:218::o;44022:408::-;44111:13;44127:16;44135:7;44127;:16::i;:::-;44111:32;-1:-1:-1;68355:10:0;-1:-1:-1;;;;;44160:28:0;;;44156:175;;44208:44;44225:5;68355:10;45538:164;:::i;44208:44::-;44203:128;;44280:35;;-1:-1:-1;;;44280:35:0;;;;;;;;;;;44203:128;44343:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;44343:35:0;-1:-1:-1;;;;;44343:35:0;;;;;;;;;44394:28;;44343:24;;44394:28;;;;;;;44100:330;44022:408;;:::o;48228:2825::-;48370:27;48400;48419:7;48400:18;:27::i;:::-;48370:57;;48485:4;-1:-1:-1;;;;;48444:45:0;48460:19;-1:-1:-1;;;;;48444:45:0;;48440:86;;48498:28;;-1:-1:-1;;;48498:28:0;;;;;;;;;;;48440:86;48540:27;47336:24;;;:15;:24;;;;;47564:26;;68355:10;46961:30;;;-1:-1:-1;;;;;46654:28:0;;46939:20;;;46936:56;48726:180;;48819:43;48836:4;68355:10;45538:164;:::i;48819:43::-;48814:92;;48871:35;;-1:-1:-1;;;48871:35:0;;;;;;;;;;;48814:92;-1:-1:-1;;;;;48923:16:0;;48919:52;;48948:23;;-1:-1:-1;;;48948:23:0;;;;;;;;;;;48919:52;49120:15;49117:160;;;49260:1;49239:19;49232:30;49117:160;-1:-1:-1;;;;;49657:24:0;;;;;;;:18;:24;;;;;;49655:26;;-1:-1:-1;;49655:26:0;;;49726:22;;;;;;;;;49724:24;;-1:-1:-1;49724:24:0;;;42880:11;42855:23;42851:41;42838:63;-1:-1:-1;;;42838:63:0;50019:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;50314:47:0;;50310:627;;50419:1;50409:11;;50387:19;50542:30;;;:17;:30;;;;;;50538:384;;50680:13;;50665:11;:28;50661:242;;50827:30;;;;:17;:30;;;;;:52;;;50661:242;50368:569;50310:627;50984:7;50980:2;-1:-1:-1;;;;;50965:27:0;50974:4;-1:-1:-1;;;;;50965:27:0;;;;;;;;;;;48359:2694;;;48228:2825;;;:::o;51149:193::-;51295:39;51312:4;51318:2;51322:7;51295:39;;;;;;;;;;;;:16;:39::i;:::-;51149:193;;;:::o;70870:96::-;17213:13;:11;:13::i;:::-;70937:23;;::::1;::::0;:13:::1;::::0;:23:::1;::::0;::::1;::::0;::::1;:::i;:::-;;70870:96:::0;:::o;39491:152::-;39563:7;39606:27;39625:7;39606:18;:27::i;35033:233::-;35105:7;-1:-1:-1;;;;;35129:19:0;;35125:60;;35157:28;;-1:-1:-1;;;35157:28:0;;;;;;;;;;;35125:60;-1:-1:-1;;;;;;35203:25:0;;;;;:18;:25;;;;;;29192:13;35203:55;;35033:233::o;17975:103::-;17213:13;:11;:13::i;:::-;18040:30:::1;18067:1;18040:18;:30::i;:::-;17975:103::o:0;38274:104::-;38330:13;38363:7;38356:14;;;;;:::i;71086:722::-;70736:10;;34123:12;;33910:7;34107:13;:28;70719:27;;70711:55;;;;-1:-1:-1;;;70711:55:0;;6002:2:1;70711:55:0;;;5984:21:1;6041:2;6021:18;;;6014:30;-1:-1:-1;;;6060:18:1;;;6053:45;6115:18;;70711:55:0;;;;;;;;;71149:17:::1;71169:13;34123:12:::0;;33910:7;34107:13;:28;;33849:323;71169:13:::1;71149:33:::0;-1:-1:-1;71213:6:0;71246:7:::1;17400:6:::0;;-1:-1:-1;;;;;17400:6:0;;17327:87;71246:7:::1;-1:-1:-1::0;;;;;71232:21:0::1;:10;-1:-1:-1::0;;;;;71232:21:0::1;;71228:94;;71272:8;::::0;::::1;;71264:50;;;::::0;-1:-1:-1;;;71264:50:0;;6346:2:1;71264:50:0::1;::::0;::::1;6328:21:1::0;6385:2;6365:18;;;6358:30;6424:31;6404:18;;;6397:59;6473:18;;71264:50:0::1;6144:353:1::0;71264:50:0::1;71360:10;::::0;71338:18:::1;71350:6:::0;71338:9;:18:::1;:::i;:::-;:32;;71330:67;;;::::0;-1:-1:-1;;;71330:67:0;;6969:2:1;71330:67:0::1;::::0;::::1;6951:21:1::0;7008:2;6988:18;;;6981:30;-1:-1:-1;;;7027:18:1;;;7020:52;7089:18;;71330:67:0::1;6767:346:1::0;71330:67:0::1;71430:10;;71420:6;:20;;71404:84;;;::::0;-1:-1:-1;;;71404:84:0;;7320:2:1;71404:84:0::1;::::0;::::1;7302:21:1::0;7359:2;7339:18;;;7332:30;7398:32;7378:18;;;7371:60;7448:18;;71404:84:0::1;7118:354:1::0;71404:84:0::1;70566:3;71501:9;:27;71497:265;;;71552:1;71543:6;:10;71539:63;;;71582:10;71591:1;71582:6:::0;:10:::1;:::i;:::-;71566:26;;71539:63;71641:1;71616:21;71626:10;71616:9;:21::i;:::-;:26;;:40;;;;71655:1;71646:6;:10;71616:40;71612:143;;;71698:13;71690:5;;:21;;;;:::i;:::-;71677:9;:34;;71669:76;;;::::0;-1:-1:-1;;;71669:76:0;;7982:2:1;71669:76:0::1;::::0;::::1;7964:21:1::0;8021:2;8001:18;;;7994:30;8060:31;8040:18;;;8033:59;8109:18;;71669:76:0::1;7780:353:1::0;71669:76:0::1;71773:29;71783:10;71795:6;71773:9;:29::i;45147:234::-:0;68355:10;45242:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;45242:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;45242:60:0;;;;;;;;;;45318:55;;540:41:1;;;45242:49:0;;68355:10;45318:55;;513:18:1;45318:55:0;;;;;;;45147:234;;:::o;72067:168::-;17213:13;:11;:13::i;:::-;72137:49:::1;::::0;72119:12:::1;::::0;72137:10:::1;::::0;72160:21:::1;::::0;72119:12;72137:49;72119:12;72137:49;72160:21;72137:10;:49:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72118:68;;;72201:7;72193:36;;;::::0;-1:-1:-1;;;72193:36:0;;8550:2:1;72193:36:0::1;::::0;::::1;8532:21:1::0;8589:2;8569:18;;;8562:30;-1:-1:-1;;;8608:18:1;;;8601:46;8664:18;;72193:36:0::1;8348:340:1::0;72193:36:0::1;72111:124;72067:168::o:0;51940:407::-;52115:31;52128:4;52134:2;52138:7;52115:12;:31::i;:::-;-1:-1:-1;;;;;52161:14:0;;;:19;52157:183;;52200:56;52231:4;52237:2;52241:7;52250:5;52200:30;:56::i;:::-;52195:145;;52284:40;;-1:-1:-1;;;52284:40:0;;;;;;;;;;;52195:145;51940:407;;;;:::o;71814:247::-;71882:13;71912:11;71920:2;71912:7;:11::i;:::-;71904:65;;;;-1:-1:-1;;;71904:65:0;;8895:2:1;71904:65:0;;;8877:21:1;8934:2;8914:18;;;8907:30;8973:34;8953:18;;;8946:62;-1:-1:-1;;;9024:18:1;;;9017:39;9073:19;;71904:65:0;8693:405:1;71904:65:0;72009:13;72024:20;72041:2;72024:16;:20::i;:::-;71992:62;;;;;;;;;:::i;:::-;;;;;;;;;;;;;71978:77;;71814:247;;;:::o;18233:201::-;17213:13;:11;:13::i;:::-;-1:-1:-1;;;;;18322:22:0;::::1;18314:73;;;::::0;-1:-1:-1;;;18314:73:0;;11045:2:1;18314:73:0::1;::::0;::::1;11027:21:1::0;11084:2;11064:18;;;11057:30;11123:34;11103:18;;;11096:62;-1:-1:-1;;;11174:18:1;;;11167:36;11220:19;;18314:73:0::1;10843:402:1::0;18314:73:0::1;18398:28;18417:8;18398:18;:28::i;17492:132::-:0;17400:6;;-1:-1:-1;;;;;17400:6:0;68355:10;17556:23;17548:68;;;;-1:-1:-1;;;17548:68:0;;11452:2:1;17548:68:0;;;11434:21:1;;;11471:18;;;11464:30;11530:34;11510:18;;;11503:62;11582:18;;17548:68:0;11250:356:1;45960:282:0;46025:4;46115:13;;46105:7;:23;46062:153;;;;-1:-1:-1;;46166:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;46166:44:0;:49;;45960:282::o;40646:1275::-;40713:7;40748;40850:13;;40843:4;:20;40839:1015;;;40888:14;40905:23;;;:17;:23;;;;;;-1:-1:-1;;;40994:24:0;;40990:845;;41659:113;41666:11;41659:113;;-1:-1:-1;;;41737:6:0;41719:25;;;;:17;:25;;;;;;41659:113;;;41805:6;40646:1275;-1:-1:-1;;;40646:1275:0:o;40990:845::-;40865:989;40839:1015;41882:31;;-1:-1:-1;;;41882:31:0;;;;;;;;;;;18594:191;18687:6;;;-1:-1:-1;;;;;18704:17:0;;;-1:-1:-1;;;;;;18704:17:0;;;;;;;18737:40;;18687:6;;;18704:17;18687:6;;18737:40;;18668:16;;18737:40;18657:128;18594:191;:::o;62100:112::-;62177:27;62187:2;62191:8;62177:27;;;;;;;;;;;;:9;:27::i;54431:716::-;54615:88;;-1:-1:-1;;;54615:88:0;;54594:4;;-1:-1:-1;;;;;54615:45:0;;;;;:88;;68355:10;;54682:4;;54688:7;;54697:5;;54615:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54615:88:0;;;;;;;;-1:-1:-1;;54615:88:0;;;;;;;;;;;;:::i;:::-;;;54611:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54898:13:0;;54894:235;;54944:40;;-1:-1:-1;;;54944:40:0;;;;;;;;;;;54894:235;55087:6;55081:13;55072:6;55068:2;55064:15;55057:38;54611:529;-1:-1:-1;;;;;;54774:64:0;-1:-1:-1;;;54774:64:0;;-1:-1:-1;54611:529:0;54431:716;;;;;;:::o;13305:::-;13361:13;13412:14;13429:17;13440:5;13429:10;:17::i;:::-;13449:1;13429:21;13412:38;;13465:20;13499:6;13488:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13488:18:0;-1:-1:-1;13465:41:0;-1:-1:-1;13630:28:0;;;13646:2;13630:28;13687:288;-1:-1:-1;;13719:5:0;-1:-1:-1;;;13856:2:0;13845:14;;13840:30;13719:5;13827:44;13917:2;13908:11;;;-1:-1:-1;13942:10:0;13938:21;;13954:5;;13938:21;13687:288;;;-1:-1:-1;13996:6:0;13305:716;-1:-1:-1;;;13305:716:0:o;61327:689::-;61458:19;61464:2;61468:8;61458:5;:19::i;:::-;-1:-1:-1;;;;;61519:14:0;;;:19;61515:483;;61559:11;61573:13;61621:14;;;61654:233;61685:62;61724:1;61728:2;61732:7;;;;;;61741:5;61685:30;:62::i;:::-;61680:167;;61783:40;;-1:-1:-1;;;61783:40:0;;;;;;;;;;;61680:167;61882:3;61874:5;:11;61654:233;;61969:3;61952:13;;:20;61948:34;;61974:8;;;61948:34;61540:458;;61327:689;;;:::o;10171:922::-;10224:7;;-1:-1:-1;;;10302:15:0;;10298:102;;-1:-1:-1;;;10338:15:0;;;-1:-1:-1;10382:2:0;10372:12;10298:102;10427:6;10418:5;:15;10414:102;;10463:6;10454:15;;;-1:-1:-1;10498:2:0;10488:12;10414:102;10543:6;10534:5;:15;10530:102;;10579:6;10570:15;;;-1:-1:-1;10614:2:0;10604:12;10530:102;10659:5;10650;:14;10646:99;;10694:5;10685:14;;;-1:-1:-1;10728:1:0;10718:11;10646:99;10772:5;10763;:14;10759:99;;10807:5;10798:14;;;-1:-1:-1;10841:1:0;10831:11;10759:99;10885:5;10876;:14;10872:99;;10920:5;10911:14;;;-1:-1:-1;10954:1:0;10944:11;10872:99;10998:5;10989;:14;10985:66;;11034:1;11024:11;11079:6;10171:922;-1:-1:-1;;10171:922:0:o;55609:2966::-;55682:20;55705:13;55733;55729:44;;55755:18;;-1:-1:-1;;;55755:18:0;;;;;;;;;;;55729:44;-1:-1:-1;;;;;56261:22:0;;;;;;:18;:22;;;;29330:2;56261:22;;;:71;;56299:32;56287:45;;56261:71;;;56575:31;;;:17;:31;;;;;-1:-1:-1;43311:15:0;;43285:24;43281:46;42880:11;42855:23;42851:41;42848:52;42838:63;;56575:173;;56810:23;;;;56575:31;;56261:22;;57575:25;56261:22;;57428:335;58089:1;58075:12;58071:20;58029:346;58130:3;58121:7;58118:16;58029:346;;58348:7;58338:8;58335:1;58308:25;58305:1;58302;58297:59;58183:1;58170:15;58029:346;;;-1:-1:-1;58408:13:0;58404:45;;58430:19;;-1:-1:-1;;;58430:19:0;;;;;;;;;;;58404:45;58466:13;:19;-1:-1:-1;51149:193:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::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:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:269::-;908:3;946:5;940:12;973:6;968:3;961:19;989:63;1045:6;1038:4;1033:3;1029:14;1022:4;1015:5;1011:16;989:63;:::i;:::-;1106:2;1085:15;-1:-1:-1;;1081:29:1;1072:39;;;;1113:4;1068:50;;855:269;-1:-1:-1;;855:269:1:o;1129:231::-;1278:2;1267:9;1260:21;1241:4;1298:56;1350:2;1339:9;1335:18;1327:6;1298:56;:::i;1365:180::-;1424:6;1477:2;1465:9;1456:7;1452:23;1448:32;1445:52;;;1493:1;1490;1483:12;1445:52;-1:-1:-1;1516:23:1;;1365:180;-1:-1:-1;1365:180:1:o;1758:173::-;1826:20;;-1:-1:-1;;;;;1875:31:1;;1865:42;;1855:70;;1921:1;1918;1911:12;1855:70;1758:173;;;:::o;1936:254::-;2004:6;2012;2065:2;2053:9;2044:7;2040:23;2036:32;2033:52;;;2081:1;2078;2071:12;2033:52;2104:29;2123:9;2104:29;:::i;:::-;2094:39;2180:2;2165:18;;;;2152:32;;-1:-1:-1;;;1936:254:1:o;2377:328::-;2454:6;2462;2470;2523:2;2511:9;2502:7;2498:23;2494:32;2491:52;;;2539:1;2536;2529:12;2491:52;2562:29;2581:9;2562:29;:::i;:::-;2552:39;;2610:38;2644:2;2633:9;2629:18;2610:38;:::i;:::-;2600:48;;2695:2;2684:9;2680:18;2667:32;2657:42;;2377:328;;;;;:::o;2710:127::-;2771:10;2766:3;2762:20;2759:1;2752:31;2802:4;2799:1;2792:15;2826:4;2823:1;2816:15;2842:632;2907:5;2937:18;2978:2;2970:6;2967:14;2964:40;;;2984:18;;:::i;:::-;3059:2;3053:9;3027:2;3113:15;;-1:-1:-1;;3109:24:1;;;3135:2;3105:33;3101:42;3089:55;;;3159:18;;;3179:22;;;3156:46;3153:72;;;3205:18;;:::i;:::-;3245:10;3241:2;3234:22;3274:6;3265:15;;3304:6;3296;3289:22;3344:3;3335:6;3330:3;3326:16;3323:25;3320:45;;;3361:1;3358;3351:12;3320:45;3411:6;3406:3;3399:4;3391:6;3387:17;3374:44;3466:1;3459:4;3450:6;3442;3438:19;3434:30;3427:41;;;;2842:632;;;;;:::o;3479:451::-;3548:6;3601:2;3589:9;3580:7;3576:23;3572:32;3569:52;;;3617:1;3614;3607:12;3569:52;3657:9;3644:23;3690:18;3682:6;3679:30;3676:50;;;3722:1;3719;3712:12;3676:50;3745:22;;3798:4;3790:13;;3786:27;-1:-1:-1;3776:55:1;;3827:1;3824;3817:12;3776:55;3850:74;3916:7;3911:2;3898:16;3893:2;3889;3885:11;3850:74;:::i;3935:186::-;3994:6;4047:2;4035:9;4026:7;4022:23;4018:32;4015:52;;;4063:1;4060;4053:12;4015:52;4086:29;4105:9;4086:29;:::i;4126:347::-;4191:6;4199;4252:2;4240:9;4231:7;4227:23;4223:32;4220:52;;;4268:1;4265;4258:12;4220:52;4291:29;4310:9;4291:29;:::i;:::-;4281:39;;4370:2;4359:9;4355:18;4342:32;4417:5;4410:13;4403:21;4396:5;4393:32;4383:60;;4439:1;4436;4429:12;4383:60;4462:5;4452:15;;;4126:347;;;;;:::o;4478:667::-;4573:6;4581;4589;4597;4650:3;4638:9;4629:7;4625:23;4621:33;4618:53;;;4667:1;4664;4657:12;4618:53;4690:29;4709:9;4690:29;:::i;:::-;4680:39;;4738:38;4772:2;4761:9;4757:18;4738:38;:::i;:::-;4728:48;;4823:2;4812:9;4808:18;4795:32;4785:42;;4878:2;4867:9;4863:18;4850:32;4905:18;4897:6;4894:30;4891:50;;;4937:1;4934;4927:12;4891:50;4960:22;;5013:4;5005:13;;5001:27;-1:-1:-1;4991:55:1;;5042:1;5039;5032:12;4991:55;5065:74;5131:7;5126:2;5113:16;5108:2;5104;5100:11;5065:74;:::i;:::-;5055:84;;;4478:667;;;;;;;:::o;5150:260::-;5218:6;5226;5279:2;5267:9;5258:7;5254:23;5250:32;5247:52;;;5295:1;5292;5285:12;5247:52;5318:29;5337:9;5318:29;:::i;:::-;5308:39;;5366:38;5400:2;5389:9;5385:18;5366:38;:::i;:::-;5356:48;;5150:260;;;;;:::o;5415:380::-;5494:1;5490:12;;;;5537;;;5558:61;;5612:4;5604:6;5600:17;5590:27;;5558:61;5665:2;5657:6;5654:14;5634:18;5631:38;5628:161;;;5711:10;5706:3;5702:20;5699:1;5692:31;5746:4;5743:1;5736:15;5774:4;5771:1;5764:15;5628:161;;5415:380;;;:::o;6502:127::-;6563:10;6558:3;6554:20;6551:1;6544:31;6594:4;6591:1;6584:15;6618:4;6615:1;6608:15;6634:128;6674:3;6705:1;6701:6;6698:1;6695:13;6692:39;;;6711:18;;:::i;:::-;-1:-1:-1;6747:9:1;;6634:128::o;7477:125::-;7517:4;7545:1;7542;7539:8;7536:34;;;7550:18;;:::i;:::-;-1:-1:-1;7587:9:1;;7477:125::o;7607:168::-;7647:7;7713:1;7709;7705:6;7701:14;7698:1;7695:21;7690:1;7683:9;7676:17;7672:45;7669:71;;;7720:18;;:::i;:::-;-1:-1:-1;7760:9:1;;7607:168::o;9229:185::-;9271:3;9309:5;9303:12;9324:52;9369:6;9364:3;9357:4;9350:5;9346:16;9324:52;:::i;:::-;9392:16;;;;;9229:185;-1:-1:-1;;9229:185:1:o;9537:1301::-;9814:3;9843:1;9876:6;9870:13;9906:3;9928:1;9956:9;9952:2;9948:18;9938:28;;10016:2;10005:9;10001:18;10038;10028:61;;10082:4;10074:6;10070:17;10060:27;;10028:61;10108:2;10156;10148:6;10145:14;10125:18;10122:38;10119:165;;;-1:-1:-1;;;10183:33:1;;10239:4;10236:1;10229:15;10269:4;10190:3;10257:17;10119:165;10300:18;10327:104;;;;10445:1;10440:320;;;;10293:467;;10327:104;-1:-1:-1;;10360:24:1;;10348:37;;10405:16;;;;-1:-1:-1;10327:104:1;;10440:320;9176:1;9169:14;;;9213:4;9200:18;;10535:1;10549:165;10563:6;10560:1;10557:13;10549:165;;;10641:14;;10628:11;;;10621:35;10684:16;;;;10578:10;;10549:165;;;10553:3;;10743:6;10738:3;10734:16;10727:23;;10293:467;;;;;;;10776:56;10801:30;10827:3;10819:6;10801:30;:::i;:::-;-1:-1:-1;;;9479:20:1;;9524:1;9515:11;;9419:113;10776:56;10769:63;9537:1301;-1:-1:-1;;;;;9537:1301:1:o;11611:500::-;-1:-1:-1;;;;;11880:15:1;;;11862:34;;11932:15;;11927:2;11912:18;;11905:43;11979:2;11964:18;;11957:34;;;12027:3;12022:2;12007:18;;12000:31;;;11805:4;;12048:57;;12085:19;;12077:6;12048:57;:::i;:::-;12040:65;11611:500;-1:-1:-1;;;;;;11611:500:1:o;12116:249::-;12185:6;12238:2;12226:9;12217:7;12213:23;12209:32;12206:52;;;12254:1;12251;12244:12;12206:52;12286:9;12280:16;12305:30;12329:5;12305:30;:::i
Swarm Source
ipfs://6657aab882a13acc542fa329ff9a45a7ec4b6d84199eda6fa1c698e4a8664127
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.