ERC-721
Overview
Max Total Supply
632 FAKECOLLECTION
Holders
122
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 FAKECOLLECTIONLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FakeCollection
Compiler Version
v0.8.19+commit.7dd6d404
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_FakeCollection.sol pragma solidity ^0.8.19; contract FakeCollection is ERC721A, Ownable { event Mint(address indexed _from); // State of mint enum MintType { NOTSTARTED, PUBLIC } MintType public mintType = MintType.NOTSTARTED; uint256 public constant maxSupply = 6999; uint256 public constant price = 0.0049 ether; uint256 public constant maxClaimable = 500; // limit per address uint256 public constant limitPerTxn = 10; constructor() ERC721A("Fake Collection", "FAKECOLLECTION") {} // MODIFIERS modifier isPublicSale() { require(mintType == MintType.PUBLIC, 'Public sale not started!'); _; } // FUNCTIONS SETTERS function setMintType(MintType _type) external onlyOwner { mintType = _type; } function mint(uint256 quantity) external payable isPublicSale { require(quantity > 0, "Should be greater than 0"); require(quantity <= limitPerTxn, "Exceeded the limit"); require(totalSupply() + quantity <= maxSupply, "Not enough tokens left"); if (totalSupply() >= maxClaimable) { require(msg.value >= (price * quantity), "Not enough ether sent"); } _mint(msg.sender, quantity); emit Mint(msg.sender); } // // metadata URI string private _baseTokenURI; 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, _toString(id), ".json")); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function withdraw() 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":"_from","type":"address"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitPerTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxClaimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintType","outputs":[{"internalType":"enum FakeCollection.MintType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"enum FakeCollection.MintType","name":"_type","type":"uint8"}],"name":"setMintType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526008805460ff60a01b191690553480156200001e57600080fd5b506040518060400160405280600f81526020016e2330b5b29021b7b63632b1ba34b7b760891b8152506040518060400160405280600e81526020016d2320a5a2a1a7a62622a1aa24a7a760911b81525081600290816200007f91906200019d565b5060036200008e82826200019d565b50506000805550620000a033620000a6565b62000269565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200012357607f821691505b6020821081036200014457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019857600081815260208120601f850160051c81016020861015620001735750805b601f850160051c820191505b8181101562000194578281556001016200017f565b5050505b505050565b81516001600160401b03811115620001b957620001b9620000f8565b620001d181620001ca84546200010e565b846200014a565b602080601f831160018114620002095760008415620001f05750858301515b600019600386901b1c1916600185901b17855562000194565b600085815260208120601f198616915b828110156200023a5788860151825594840194600190910190840162000219565b5085821015620002595787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6116fa80620002796000396000f3fe6080604052600436106101815760003560e01c8063715018a6116100d1578063a22cb4651161008a578063d5abeb0111610064578063d5abeb0114610418578063e985e9c51461042e578063f03f80c31461044e578063f2fde38b1461046457600080fd5b8063a22cb465146103c5578063b88d4fde146103e5578063c87b56dd146103f857600080fd5b8063715018a6146103215780638da5cb5b1461033657806395d89b411461035457806396286f9a14610369578063a035b1fe14610397578063a0712d68146103b257600080fd5b806323b872dd1161013e57806355f804b31161011857806355f804b3146102a15780635d9a1b85146102c15780636352211e146102e157806370a082311461030157600080fd5b806323b872dd146102665780633ccfd60b1461027957806342842e0e1461028e57600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b3146102155780630cf3772a1461022a57806318160ddd1461024d575b600080fd5b34801561019257600080fd5b506101a66101a13660046110ea565b610484565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d06104d6565b6040516101b29190611157565b3480156101e957600080fd5b506101fd6101f836600461116a565b610568565b6040516001600160a01b0390911681526020016101b2565b61022861022336600461119f565b6105ac565b005b34801561023657600080fd5b5061023f600a81565b6040519081526020016101b2565b34801561025957600080fd5b506001546000540361023f565b6102286102743660046111c9565b61064c565b34801561028557600080fd5b506102286107e5565b61022861029c3660046111c9565b610880565b3480156102ad57600080fd5b506102286102bc366004611205565b6108a0565b3480156102cd57600080fd5b506102286102dc366004611277565b6108b5565b3480156102ed57600080fd5b506101fd6102fc36600461116a565b6108ea565b34801561030d57600080fd5b5061023f61031c366004611298565b6108f5565b34801561032d57600080fd5b50610228610944565b34801561034257600080fd5b506008546001600160a01b03166101fd565b34801561036057600080fd5b506101d0610958565b34801561037557600080fd5b5060085461038a90600160a01b900460ff1681565b6040516101b291906112c9565b3480156103a357600080fd5b5061023f661168862766400081565b6102286103c036600461116a565b610967565b3480156103d157600080fd5b506102286103e03660046112f1565b610b71565b6102286103f3366004611343565b610bdd565b34801561040457600080fd5b506101d061041336600461116a565b610c27565b34801561042457600080fd5b5061023f611b5781565b34801561043a57600080fd5b506101a661044936600461141f565b610cc2565b34801561045a57600080fd5b5061023f6101f481565b34801561047057600080fd5b5061022861047f366004611298565b610cf0565b60006301ffc9a760e01b6001600160e01b0319831614806104b557506380ac58cd60e01b6001600160e01b03198316145b806104d05750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546104e590611452565b80601f016020809104026020016040519081016040528092919081815260200182805461051190611452565b801561055e5780601f106105335761010080835404028352916020019161055e565b820191906000526020600020905b81548152906001019060200180831161054157829003601f168201915b5050505050905090565b600061057382610d66565b610590576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105b7826108ea565b9050336001600160a01b038216146105f0576105d38133610cc2565b6105f0576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061065782610d8d565b9050836001600160a01b0316816001600160a01b03161461068a5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176106d7576106ba8633610cc2565b6106d757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166106fe57604051633a954ecd60e21b815260040160405180910390fd5b801561070957600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361079b576001840160008181526004602052604081205490036107995760005481146107995760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6107ed610dfb565b604051600090339047908381818185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b505090508061087d5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064015b60405180910390fd5b50565b61089b83838360405180602001604052806000815250610bdd565b505050565b6108a8610dfb565b600961089b8284836114d2565b6108bd610dfb565b6008805482919060ff60a01b1916600160a01b8360018111156108e2576108e26112b3565b021790555050565b60006104d082610d8d565b60006001600160a01b03821661091e576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61094c610dfb565b6109566000610e55565b565b6060600380546104e590611452565b6001600854600160a01b900460ff166001811115610987576109876112b3565b146109d45760405162461bcd60e51b815260206004820152601860248201527f5075626c69632073616c65206e6f7420737461727465642100000000000000006044820152606401610874565b60008111610a245760405162461bcd60e51b815260206004820152601860248201527f53686f756c642062652067726561746572207468616e203000000000000000006044820152606401610874565b600a811115610a6a5760405162461bcd60e51b8152602060048201526012602482015271115e18d959591959081d1a19481b1a5b5a5d60721b6044820152606401610874565b611b5781610a7b6001546000540390565b610a8591906115a9565b1115610acc5760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b6044820152606401610874565b6101f4610adc6001546000540390565b10610b3957610af28166116886276640006115bc565b341015610b395760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b6044820152606401610874565b610b433382610ea7565b60405133907f3c3284d117c92d0b1699230960384e794dcba184cc48ff114fe4fed20c9b056590600090a250565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610be884848461064c565b6001600160a01b0383163b15610c2157610c0484848484610fa5565b610c21576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610c3282610d66565b610c905760405162461bcd60e51b815260206004820152602960248201527f4d657461646174613a2055524920717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610874565b6009610c9b83611090565b604051602001610cac9291906115d3565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610cf8610dfb565b6001600160a01b038116610d5d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610874565b61087d81610e55565b60008054821080156104d0575050600090815260046020526040902054600160e01b161590565b600081600054811015610de25760008181526004602052604081205490600160e01b82169003610de0575b80600003610dd9575060001901600081815260046020526040902054610db8565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6008546001600160a01b031633146109565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610874565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000805490829003610ecc5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114610f7b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101610f43565b5081600003610f9c57604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610fda90339089908890889060040161166a565b6020604051808303816000875af1925050508015611015575060408051601f3d908101601f19168201909252611012918101906116a7565b60015b611073573d808015611043576040519150601f19603f3d011682016040523d82523d6000602084013e611048565b606091505b50805160000361106b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806110aa5750819003601f19909101908152919050565b6001600160e01b03198116811461087d57600080fd5b6000602082840312156110fc57600080fd5b8135610dd9816110d4565b60005b8381101561112257818101518382015260200161110a565b50506000910152565b60008151808452611143816020860160208601611107565b601f01601f19169290920160200192915050565b602081526000610dd9602083018461112b565b60006020828403121561117c57600080fd5b5035919050565b80356001600160a01b038116811461119a57600080fd5b919050565b600080604083850312156111b257600080fd5b6111bb83611183565b946020939093013593505050565b6000806000606084860312156111de57600080fd5b6111e784611183565b92506111f560208501611183565b9150604084013590509250925092565b6000806020838503121561121857600080fd5b823567ffffffffffffffff8082111561123057600080fd5b818501915085601f83011261124457600080fd5b81358181111561125357600080fd5b86602082850101111561126557600080fd5b60209290920196919550909350505050565b60006020828403121561128957600080fd5b813560028110610dd957600080fd5b6000602082840312156112aa57600080fd5b610dd982611183565b634e487b7160e01b600052602160045260246000fd5b60208101600283106112eb57634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561130457600080fd5b61130d83611183565b91506020830135801515811461132257600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561135957600080fd5b61136285611183565b935061137060208601611183565b925060408501359150606085013567ffffffffffffffff8082111561139457600080fd5b818701915087601f8301126113a857600080fd5b8135818111156113ba576113ba61132d565b604051601f8201601f19908116603f011681019083821181831017156113e2576113e261132d565b816040528281528a60208487010111156113fb57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561143257600080fd5b61143b83611183565b915061144960208401611183565b90509250929050565b600181811c9082168061146657607f821691505b60208210810361148657634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561089b57600081815260208120601f850160051c810160208610156114b35750805b601f850160051c820191505b818110156107dd578281556001016114bf565b67ffffffffffffffff8311156114ea576114ea61132d565b6114fe836114f88354611452565b8361148c565b6000601f841160018114611532576000851561151a5750838201355b600019600387901b1c1916600186901b17835561158c565b600083815260209020601f19861690835b828110156115635786850135825560209485019460019092019101611543565b50868210156115805760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104d0576104d0611593565b80820281158282048414176104d0576104d0611593565b60008084546115e181611452565b600182811680156115f9576001811461160e5761163d565b60ff198416875282151583028701945061163d565b8860005260208060002060005b858110156116345781548a82015290840190820161161b565b50505082870194505b505050508351611651818360208801611107565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061169d9083018461112b565b9695505050505050565b6000602082840312156116b957600080fd5b8151610dd9816110d456fea264697066735822122027073c92f4b0ff6f44bd73f50f79e8830295d472cf60fbb3f42b8928630c9c6f64736f6c63430008130033
Deployed Bytecode
0x6080604052600436106101815760003560e01c8063715018a6116100d1578063a22cb4651161008a578063d5abeb0111610064578063d5abeb0114610418578063e985e9c51461042e578063f03f80c31461044e578063f2fde38b1461046457600080fd5b8063a22cb465146103c5578063b88d4fde146103e5578063c87b56dd146103f857600080fd5b8063715018a6146103215780638da5cb5b1461033657806395d89b411461035457806396286f9a14610369578063a035b1fe14610397578063a0712d68146103b257600080fd5b806323b872dd1161013e57806355f804b31161011857806355f804b3146102a15780635d9a1b85146102c15780636352211e146102e157806370a082311461030157600080fd5b806323b872dd146102665780633ccfd60b1461027957806342842e0e1461028e57600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b3146102155780630cf3772a1461022a57806318160ddd1461024d575b600080fd5b34801561019257600080fd5b506101a66101a13660046110ea565b610484565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d06104d6565b6040516101b29190611157565b3480156101e957600080fd5b506101fd6101f836600461116a565b610568565b6040516001600160a01b0390911681526020016101b2565b61022861022336600461119f565b6105ac565b005b34801561023657600080fd5b5061023f600a81565b6040519081526020016101b2565b34801561025957600080fd5b506001546000540361023f565b6102286102743660046111c9565b61064c565b34801561028557600080fd5b506102286107e5565b61022861029c3660046111c9565b610880565b3480156102ad57600080fd5b506102286102bc366004611205565b6108a0565b3480156102cd57600080fd5b506102286102dc366004611277565b6108b5565b3480156102ed57600080fd5b506101fd6102fc36600461116a565b6108ea565b34801561030d57600080fd5b5061023f61031c366004611298565b6108f5565b34801561032d57600080fd5b50610228610944565b34801561034257600080fd5b506008546001600160a01b03166101fd565b34801561036057600080fd5b506101d0610958565b34801561037557600080fd5b5060085461038a90600160a01b900460ff1681565b6040516101b291906112c9565b3480156103a357600080fd5b5061023f661168862766400081565b6102286103c036600461116a565b610967565b3480156103d157600080fd5b506102286103e03660046112f1565b610b71565b6102286103f3366004611343565b610bdd565b34801561040457600080fd5b506101d061041336600461116a565b610c27565b34801561042457600080fd5b5061023f611b5781565b34801561043a57600080fd5b506101a661044936600461141f565b610cc2565b34801561045a57600080fd5b5061023f6101f481565b34801561047057600080fd5b5061022861047f366004611298565b610cf0565b60006301ffc9a760e01b6001600160e01b0319831614806104b557506380ac58cd60e01b6001600160e01b03198316145b806104d05750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546104e590611452565b80601f016020809104026020016040519081016040528092919081815260200182805461051190611452565b801561055e5780601f106105335761010080835404028352916020019161055e565b820191906000526020600020905b81548152906001019060200180831161054157829003601f168201915b5050505050905090565b600061057382610d66565b610590576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105b7826108ea565b9050336001600160a01b038216146105f0576105d38133610cc2565b6105f0576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061065782610d8d565b9050836001600160a01b0316816001600160a01b03161461068a5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176106d7576106ba8633610cc2565b6106d757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166106fe57604051633a954ecd60e21b815260040160405180910390fd5b801561070957600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361079b576001840160008181526004602052604081205490036107995760005481146107995760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6107ed610dfb565b604051600090339047908381818185875af1925050503d806000811461082f576040519150601f19603f3d011682016040523d82523d6000602084013e610834565b606091505b505090508061087d5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064015b60405180910390fd5b50565b61089b83838360405180602001604052806000815250610bdd565b505050565b6108a8610dfb565b600961089b8284836114d2565b6108bd610dfb565b6008805482919060ff60a01b1916600160a01b8360018111156108e2576108e26112b3565b021790555050565b60006104d082610d8d565b60006001600160a01b03821661091e576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61094c610dfb565b6109566000610e55565b565b6060600380546104e590611452565b6001600854600160a01b900460ff166001811115610987576109876112b3565b146109d45760405162461bcd60e51b815260206004820152601860248201527f5075626c69632073616c65206e6f7420737461727465642100000000000000006044820152606401610874565b60008111610a245760405162461bcd60e51b815260206004820152601860248201527f53686f756c642062652067726561746572207468616e203000000000000000006044820152606401610874565b600a811115610a6a5760405162461bcd60e51b8152602060048201526012602482015271115e18d959591959081d1a19481b1a5b5a5d60721b6044820152606401610874565b611b5781610a7b6001546000540390565b610a8591906115a9565b1115610acc5760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b6044820152606401610874565b6101f4610adc6001546000540390565b10610b3957610af28166116886276640006115bc565b341015610b395760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b6044820152606401610874565b610b433382610ea7565b60405133907f3c3284d117c92d0b1699230960384e794dcba184cc48ff114fe4fed20c9b056590600090a250565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610be884848461064c565b6001600160a01b0383163b15610c2157610c0484848484610fa5565b610c21576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610c3282610d66565b610c905760405162461bcd60e51b815260206004820152602960248201527f4d657461646174613a2055524920717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610874565b6009610c9b83611090565b604051602001610cac9291906115d3565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610cf8610dfb565b6001600160a01b038116610d5d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610874565b61087d81610e55565b60008054821080156104d0575050600090815260046020526040902054600160e01b161590565b600081600054811015610de25760008181526004602052604081205490600160e01b82169003610de0575b80600003610dd9575060001901600081815260046020526040902054610db8565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6008546001600160a01b031633146109565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610874565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000805490829003610ecc5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114610f7b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101610f43565b5081600003610f9c57604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610fda90339089908890889060040161166a565b6020604051808303816000875af1925050508015611015575060408051601f3d908101601f19168201909252611012918101906116a7565b60015b611073573d808015611043576040519150601f19603f3d011682016040523d82523d6000602084013e611048565b606091505b50805160000361106b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806110aa5750819003601f19909101908152919050565b6001600160e01b03198116811461087d57600080fd5b6000602082840312156110fc57600080fd5b8135610dd9816110d4565b60005b8381101561112257818101518382015260200161110a565b50506000910152565b60008151808452611143816020860160208601611107565b601f01601f19169290920160200192915050565b602081526000610dd9602083018461112b565b60006020828403121561117c57600080fd5b5035919050565b80356001600160a01b038116811461119a57600080fd5b919050565b600080604083850312156111b257600080fd5b6111bb83611183565b946020939093013593505050565b6000806000606084860312156111de57600080fd5b6111e784611183565b92506111f560208501611183565b9150604084013590509250925092565b6000806020838503121561121857600080fd5b823567ffffffffffffffff8082111561123057600080fd5b818501915085601f83011261124457600080fd5b81358181111561125357600080fd5b86602082850101111561126557600080fd5b60209290920196919550909350505050565b60006020828403121561128957600080fd5b813560028110610dd957600080fd5b6000602082840312156112aa57600080fd5b610dd982611183565b634e487b7160e01b600052602160045260246000fd5b60208101600283106112eb57634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561130457600080fd5b61130d83611183565b91506020830135801515811461132257600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561135957600080fd5b61136285611183565b935061137060208601611183565b925060408501359150606085013567ffffffffffffffff8082111561139457600080fd5b818701915087601f8301126113a857600080fd5b8135818111156113ba576113ba61132d565b604051601f8201601f19908116603f011681019083821181831017156113e2576113e261132d565b816040528281528a60208487010111156113fb57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561143257600080fd5b61143b83611183565b915061144960208401611183565b90509250929050565b600181811c9082168061146657607f821691505b60208210810361148657634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561089b57600081815260208120601f850160051c810160208610156114b35750805b601f850160051c820191505b818110156107dd578281556001016114bf565b67ffffffffffffffff8311156114ea576114ea61132d565b6114fe836114f88354611452565b8361148c565b6000601f841160018114611532576000851561151a5750838201355b600019600387901b1c1916600186901b17835561158c565b600083815260209020601f19861690835b828110156115635786850135825560209485019460019092019101611543565b50868210156115805760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104d0576104d0611593565b80820281158282048414176104d0576104d0611593565b60008084546115e181611452565b600182811680156115f9576001811461160e5761163d565b60ff198416875282151583028701945061163d565b8860005260208060002060005b858110156116345781548a82015290840190820161161b565b50505082870194505b505050508351611651818360208801611107565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061169d9083018461112b565b9695505050505050565b6000602082840312156116b957600080fd5b8151610dd9816110d456fea264697066735822122027073c92f4b0ff6f44bd73f50f79e8830295d472cf60fbb3f42b8928630c9c6f64736f6c63430008130033
Deployed Bytecode Sourcemap
70306:1892: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;;;;;;;;38098:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;44589:218::-;;;;;;;;;;-1:-1:-1;44589:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;44589:218:0;1533:203:1;44022:408:0;;;;;;:::i;:::-;;:::i;:::-;;70677:40;;;;;;;;;;;;70715:2;70677:40;;;;;2324:25:1;;;2312:2;2297:18;70677:40:0;2178:177:1;33849:323:0;;;;;;;;;;-1:-1:-1;34123:12:0;;33910:7;34107:13;:28;33849:323;;48228:2825;;;;;;:::i;:::-;;:::i;72032:163::-;;;;;;;;;;;;;:::i;51149:193::-;;;;;;:::i;:::-;;:::i;71926:100::-;;;;;;;;;;-1:-1:-1;71926:100:0;;;;;:::i;:::-;;:::i;70953:85::-;;;;;;;;;;-1:-1:-1;70953:85: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;17327:87::-;;;;;;;;;;-1:-1:-1;17400:6:0;;-1:-1:-1;;;;;17400:6:0;17327:87;;38274:104;;;;;;;;;;;;;:::i;70455:46::-;;;;;;;;;;-1:-1:-1;70455:46:0;;;;-1:-1:-1;;;70455:46:0;;;;;;;;;;;;;:::i;70555:44::-;;;;;;;;;;;;70587:12;70555:44;;71044:457;;;;;;:::i;:::-;;:::i;45147:234::-;;;;;;;;;;-1:-1:-1;45147:234:0;;;;;:::i;:::-;;:::i;51940:407::-;;;;;;:::i;:::-;;:::i;71568:238::-;;;;;;;;;;-1:-1:-1;71568:238:0;;;;;:::i;:::-;;:::i;70510:40::-;;;;;;;;;;;;70546:4;70510:40;;45538:164;;;;;;;;;;-1:-1:-1;45538:164:0;;;;;:::i;:::-;;:::i;70604:42::-;;;;;;;;;;;;70643:3;70604:42;;18233:201;;;;;;;;;;-1:-1:-1;18233:201:0;;;;;:::i;:::-;;:::i;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;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;;:52;;50310:627;;50419:1;50409:11;;50387:19;50542:30;;;:17;:30;;;;;;:35;;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;;;;;;;;;;;51003:42;48359:2694;;;48228:2825;;;:::o;72032:163::-;17213:13;:11;:13::i;:::-;72097:49:::1;::::0;72079:12:::1;::::0;72097:10:::1;::::0;72120:21:::1;::::0;72079:12;72097:49;72079:12;72097:49;72120:21;72097:10;:49:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72078:68;;;72161:7;72153:36;;;::::0;-1:-1:-1;;;72153:36:0;;6922:2:1;72153:36:0::1;::::0;::::1;6904:21:1::0;6961:2;6941:18;;;6934:30;-1:-1:-1;;;6980:18:1;;;6973:46;7036:18;;72153:36:0::1;;;;;;;;;72071:124;72032:163::o:0;51149:193::-;51295:39;51312:4;51318:2;51322:7;51295:39;;;;;;;;;;;;:16;:39::i;:::-;51149:193;;;:::o;71926:100::-;17213:13;:11;:13::i;:::-;71997::::1;:23;72013:7:::0;;71997:13;:23:::1;:::i;70953:85::-:0;17213:13;:11;:13::i;:::-;71016:8:::1;:16:::0;;71027:5;;71016:8;-1:-1:-1;;;;71016:16:0::1;-1:-1:-1::0;;;71027:5:0;71016:16:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;70953:85:::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;71044:457::-;70864:15;70852:8;;-1:-1:-1;;;70852:8:0;;;;:27;;;;;;;;:::i;:::-;;70844:64;;;;-1:-1:-1;;;70844:64:0;;9325:2:1;70844:64:0;;;9307:21:1;9364:2;9344:18;;;9337:30;9403:26;9383:18;;;9376:54;9447:18;;70844:64:0;9123:348:1;70844:64:0;71132:1:::1;71121:8;:12;71113:49;;;::::0;-1:-1:-1;;;71113:49:0;;9678:2:1;71113:49:0::1;::::0;::::1;9660:21:1::0;9717:2;9697:18;;;9690:30;9756:26;9736:18;;;9729:54;9800:18;;71113:49:0::1;9476:348:1::0;71113:49:0::1;70715:2;71177:8;:23;;71169:54;;;::::0;-1:-1:-1;;;71169:54:0;;10031:2:1;71169:54:0::1;::::0;::::1;10013:21:1::0;10070:2;10050:18;;;10043:30;-1:-1:-1;;;10089:18:1;;;10082:48;10147:18;;71169:54:0::1;9829:342:1::0;71169:54:0::1;70546:4;71254:8;71238:13;34123:12:::0;;33910:7;34107:13;:28;;33849:323;71238:13:::1;:24;;;;:::i;:::-;:37;;71230:72;;;::::0;-1:-1:-1;;;71230:72:0;;10640:2:1;71230:72:0::1;::::0;::::1;10622:21:1::0;10679:2;10659:18;;;10652:30;-1:-1:-1;;;10698:18:1;;;10691:52;10760:18;;71230:72:0::1;10438:346:1::0;71230:72:0::1;70643:3;71319:13;34123:12:::0;;33910:7;34107:13;:28;;33849:323;71319:13:::1;:29;71315:117;;71381:16;71389:8:::0;70587:12:::1;71381:16;:::i;:::-;71367:9;:31;;71359:65;;;::::0;-1:-1:-1;;;71359:65:0;;11164:2:1;71359:65:0::1;::::0;::::1;11146:21:1::0;11203:2;11183:18;;;11176:30;-1:-1:-1;;;11222:18:1;;;11215:51;11283:18;;71359:65:0::1;10962:345:1::0;71359:65:0::1;71440:27;71446:10;71458:8;71440:5;:27::i;:::-;71479:16;::::0;71484:10:::1;::::0;71479:16:::1;::::0;;;::::1;71044:457:::0;:::o;45147:234::-;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;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;71568:238::-;71636:13;71666:11;71674:2;71666:7;:11::i;:::-;71658:65;;;;-1:-1:-1;;;71658:65:0;;11514:2:1;71658:65:0;;;11496:21:1;11553:2;11533:18;;;11526:30;11592:34;11572:18;;;11565:62;-1:-1:-1;;;11643:18:1;;;11636:39;11692:19;;71658:65:0;11312:405:1;71658:65:0;71761:13;71776;71786:2;71776:9;:13::i;:::-;71744:55;;;;;;;;;:::i;:::-;;;;;;;;;;;;;71730:70;;71568:238;;;:::o;45538:164::-;-1:-1:-1;;;;;45659:25:0;;;45635:4;45659:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;45538:164::o;18233:201::-;17213:13;:11;:13::i;:::-;-1:-1:-1;;;;;18322:22:0;::::1;18314:73;;;::::0;-1:-1:-1;;;18314:73:0;;13116:2:1;18314:73:0::1;::::0;::::1;13098:21:1::0;13155:2;13135:18;;;13128:30;13194:34;13174:18;;;13167:62;-1:-1:-1;;;13245:18:1;;;13238:36;13291:19;;18314:73:0::1;12914:402:1::0;18314:73:0::1;18398:28;18417:8;18398:18;:28::i;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;;:29;;40990:845;;41659:113;41666:6;41676:1;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;;;;;;;;;;;17492:132;17400:6;;-1:-1:-1;;;;;17400:6:0;68355:10;17556:23;17548:68;;;;-1:-1:-1;;;17548:68:0;;13523:2:1;17548:68:0;;;13505:21:1;;;13542:18;;;13535:30;13601:34;13581:18;;;13574:62;13653:18;;17548:68:0;13321:356:1;18594:191:0;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;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;;;58033:77;58408:8;58420:1;58408:13;58404:45;;58430:19;;-1:-1:-1;;;58430:19:0;;;;;;;;;;;58404:45;58466:13;:19;-1:-1:-1;51149:193:0;;;:::o;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54898:6;:13;54915:1;54898:18;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;54431:716:0;;;;;;:::o;68475:1745::-;68540:17;68974:4;68967;68961:11;68957:22;69066:1;69060:4;69053:15;69141:4;69138:1;69134:12;69127:19;;;69223:1;69218:3;69211:14;69327:3;69566:5;69548:428;69614:1;69609:3;69605:11;69598:18;;69785:2;69779:4;69775:13;69771:2;69767:22;69762:3;69754:36;69879:2;69869:13;;69936:25;69548:428;69936:25;-1:-1:-1;70006:13:0;;;-1:-1:-1;;70121:14:0;;;70183:19;;;70121:14;68475:1745;-1:-1:-1;68475:1745:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:592::-;2764:6;2772;2825:2;2813:9;2804:7;2800:23;2796:32;2793:52;;;2841:1;2838;2831:12;2793:52;2881:9;2868:23;2910:18;2951:2;2943:6;2940:14;2937:34;;;2967:1;2964;2957:12;2937:34;3005:6;2994:9;2990:22;2980:32;;3050:7;3043:4;3039:2;3035:13;3031:27;3021:55;;3072:1;3069;3062:12;3021:55;3112:2;3099:16;3138:2;3130:6;3127:14;3124:34;;;3154:1;3151;3144:12;3124:34;3199:7;3194:2;3185:6;3181:2;3177:15;3173:24;3170:37;3167:57;;;3220:1;3217;3210:12;3167:57;3251:2;3243:11;;;;;3273:6;;-1:-1:-1;2693:592:1;;-1:-1:-1;;;;2693:592:1:o;3290:269::-;3362:6;3415:2;3403:9;3394:7;3390:23;3386:32;3383:52;;;3431:1;3428;3421:12;3383:52;3470:9;3457:23;3509:1;3502:5;3499:12;3489:40;;3525:1;3522;3515:12;3564:186;3623:6;3676:2;3664:9;3655:7;3651:23;3647:32;3644:52;;;3692:1;3689;3682:12;3644:52;3715:29;3734:9;3715:29;:::i;3755:127::-;3816:10;3811:3;3807:20;3804:1;3797:31;3847:4;3844:1;3837:15;3871:4;3868:1;3861:15;3887:341;4032:2;4017:18;;4065:1;4054:13;;4044:144;;4110:10;4105:3;4101:20;4098:1;4091:31;4145:4;4142:1;4135:15;4173:4;4170:1;4163:15;4044:144;4197:25;;;3887:341;:::o;4233:347::-;4298:6;4306;4359:2;4347:9;4338:7;4334:23;4330:32;4327:52;;;4375:1;4372;4365:12;4327:52;4398:29;4417:9;4398:29;:::i;:::-;4388:39;;4477:2;4466:9;4462:18;4449:32;4524:5;4517:13;4510:21;4503:5;4500:32;4490:60;;4546:1;4543;4536:12;4490:60;4569:5;4559:15;;;4233:347;;;;;:::o;4585:127::-;4646:10;4641:3;4637:20;4634:1;4627:31;4677:4;4674:1;4667:15;4701:4;4698:1;4691:15;4717:1138;4812:6;4820;4828;4836;4889:3;4877:9;4868:7;4864:23;4860:33;4857:53;;;4906:1;4903;4896:12;4857:53;4929:29;4948:9;4929:29;:::i;:::-;4919:39;;4977:38;5011:2;5000:9;4996:18;4977:38;:::i;:::-;4967:48;;5062:2;5051:9;5047:18;5034:32;5024:42;;5117:2;5106:9;5102:18;5089:32;5140:18;5181:2;5173:6;5170:14;5167:34;;;5197:1;5194;5187:12;5167:34;5235:6;5224:9;5220:22;5210:32;;5280:7;5273:4;5269:2;5265:13;5261:27;5251:55;;5302:1;5299;5292:12;5251:55;5338:2;5325:16;5360:2;5356;5353:10;5350:36;;;5366:18;;:::i;:::-;5441:2;5435:9;5409:2;5495:13;;-1:-1:-1;;5491:22:1;;;5515:2;5487:31;5483:40;5471:53;;;5539:18;;;5559:22;;;5536:46;5533:72;;;5585:18;;:::i;:::-;5625:10;5621:2;5614:22;5660:2;5652:6;5645:18;5700:7;5695:2;5690;5686;5682:11;5678:20;5675:33;5672:53;;;5721:1;5718;5711:12;5672:53;5777:2;5772;5768;5764:11;5759:2;5751:6;5747:15;5734:46;5822:1;5817:2;5812;5804:6;5800:15;5796:24;5789:35;5843:6;5833:16;;;;;;;4717:1138;;;;;;;:::o;5860:260::-;5928:6;5936;5989:2;5977:9;5968:7;5964:23;5960:32;5957:52;;;6005:1;6002;5995:12;5957:52;6028:29;6047:9;6028:29;:::i;:::-;6018:39;;6076:38;6110:2;6099:9;6095:18;6076:38;:::i;:::-;6066:48;;5860:260;;;;;:::o;6125:380::-;6204:1;6200:12;;;;6247;;;6268:61;;6322:4;6314:6;6310:17;6300:27;;6268:61;6375:2;6367:6;6364:14;6344:18;6341:38;6338:161;;6421:10;6416:3;6412:20;6409:1;6402:31;6456:4;6453:1;6446:15;6484:4;6481:1;6474:15;6338:161;;6125:380;;;:::o;7191:545::-;7293:2;7288:3;7285:11;7282:448;;;7329:1;7354:5;7350:2;7343:17;7399:4;7395:2;7385:19;7469:2;7457:10;7453:19;7450:1;7446:27;7440:4;7436:38;7505:4;7493:10;7490:20;7487:47;;;-1:-1:-1;7528:4:1;7487:47;7583:2;7578:3;7574:12;7571:1;7567:20;7561:4;7557:31;7547:41;;7638:82;7656:2;7649:5;7646:13;7638:82;;;7701:17;;;7682:1;7671:13;7638:82;;7912:1206;8036:18;8031:3;8028:27;8025:53;;;8058:18;;:::i;:::-;8087:94;8177:3;8137:38;8169:4;8163:11;8137:38;:::i;:::-;8131:4;8087:94;:::i;:::-;8207:1;8232:2;8227:3;8224:11;8249:1;8244:616;;;;8904:1;8921:3;8918:93;;;-1:-1:-1;8977:19:1;;;8964:33;8918:93;-1:-1:-1;;7869:1:1;7865:11;;;7861:24;7857:29;7847:40;7893:1;7889:11;;;7844:57;9024:78;;8217:895;;8244:616;7138:1;7131:14;;;7175:4;7162:18;;-1:-1:-1;;8280:17:1;;;8381:9;8403:229;8417:7;8414:1;8411:14;8403:229;;;8506:19;;;8493:33;8478:49;;8613:4;8598:20;;;;8566:1;8554:14;;;;8433:12;8403:229;;;8407:3;8660;8651:7;8648:16;8645:159;;;8784:1;8780:6;8774:3;8768;8765:1;8761:11;8757:21;8753:34;8749:39;8736:9;8731:3;8727:19;8714:33;8710:79;8702:6;8695:95;8645:159;;;8847:1;8841:3;8838:1;8834:11;8830:19;8824:4;8817:33;8217:895;;;7912:1206;;;:::o;10176:127::-;10237:10;10232:3;10228:20;10225:1;10218:31;10268:4;10265:1;10258:15;10292:4;10289:1;10282:15;10308:125;10373:9;;;10394:10;;;10391:36;;;10407:18;;:::i;10789:168::-;10862:9;;;10893;;10910:15;;;10904:22;;10890:37;10880:71;;10931:18;;:::i;11722:1187::-;11999:3;12028:1;12061:6;12055:13;12091:36;12117:9;12091:36;:::i;:::-;12146:1;12163:18;;;12190:133;;;;12337:1;12332:356;;;;12156:532;;12190:133;-1:-1:-1;;12223:24:1;;12211:37;;12296:14;;12289:22;12277:35;;12268:45;;;-1:-1:-1;12190:133:1;;12332:356;12363:6;12360:1;12353:17;12393:4;12438:2;12435:1;12425:16;12463:1;12477:165;12491:6;12488:1;12485:13;12477:165;;;12569:14;;12556:11;;;12549:35;12612:16;;;;12506:10;;12477:165;;;12481:3;;;12671:6;12666:3;12662:16;12655:23;;12156:532;;;;;12719:6;12713:13;12735:68;12794:8;12789:3;12782:4;12774:6;12770:17;12735:68;:::i;:::-;-1:-1:-1;;;12825:18:1;;12852:22;;;12901:1;12890:13;;11722:1187;-1:-1:-1;;;;11722:1187:1:o;13682:489::-;-1:-1:-1;;;;;13951:15:1;;;13933:34;;14003:15;;13998:2;13983:18;;13976:43;14050:2;14035:18;;14028:34;;;14098:3;14093:2;14078:18;;14071:31;;;13876:4;;14119:46;;14145:19;;14137:6;14119:46;:::i;:::-;14111:54;13682:489;-1:-1:-1;;;;;;13682:489:1:o;14176:249::-;14245:6;14298:2;14286:9;14277:7;14273:23;14269:32;14266:52;;;14314:1;14311;14304:12;14266:52;14346:9;14340:16;14365:30;14389:5;14365:30;:::i
Swarm Source
ipfs://27073c92f4b0ff6f44bd73f50f79e8830295d472cf60fbb3f42b8928630c9c6f
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.