ERC-721
Overview
Max Total Supply
391 ELON
Holders
74
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 ELONLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Elons
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-08 */ // 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/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File: @openzeppelin/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // 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: operator-filter-registry/src/lib/Constants.sol pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: operator-filter-registry/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File: operator-filter-registry/src/OperatorFilterer.sol pragma solidity ^0.8.13; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: operator-filter-registry/src/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} } // 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/extensions/IERC721ABurnable.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; } // File: erc721a/contracts/extensions/IERC721AQueryable.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // 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: erc721a/contracts/extensions/ERC721ABurnable.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } } // File: erc721a/contracts/extensions/ERC721AQueryable.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // File: elon_deafult.sol pragma solidity ^0.8.11; /* ___________.____ ________ _______ _________ \_ _____/| | \_____ \ \ \ / _____/ | __)_ | | / | \ / | \ \_____ \ | \| |___/ | \/ | \/ \ /_______ /|_______ \_______ /\____|__ /_______ / \/ \/ \/ \/ \/ */ contract Elons is ERC721A, DefaultOperatorFilterer, Ownable, ERC2981 { using SafeMath for uint256; uint public constant MAX_SUPPLY = 10000; uint public PRICE = 0.00 ether; uint256 public mintLimit = 2; string private BASE_URI; uint256 public maxPerWallet = 100; constructor(string memory initBaseURI) ERC721A("Elons", "ELON") { updateBaseUri(initBaseURI); } function updateBaseUri(string memory baseUri) public onlyOwner { BASE_URI = baseUri; } function updatePrice(uint price) public onlyOwner { PRICE = price; } function updateMaxPerWallet(uint256 newMaxPerWallet) public onlyOwner { maxPerWallet = newMaxPerWallet; } function updateMintLimit(uint256 newMintLimit) public onlyOwner { mintLimit = newMintLimit; } function ownerMint(address to, uint256 quantity) public onlyOwner { _safeMint(to, quantity); } // MINT function mint(uint256 quantity) external payable { require( quantity <= mintLimit, "Too many tokens for one transaction" ); require( PRICE * quantity <= msg.value, "Insufficient funds sent" ); require( balanceOf(msg.sender) + quantity <= maxPerWallet, "Too many tokens for one wallet" ); secureMint(quantity); } function secureMint(uint256 quantity) internal { require( quantity > 0, "Quantity cannot be zero" ); require( totalSupply().add(quantity) < MAX_SUPPLY, "No items left to mint" ); _safeMint(msg.sender, quantity); } // END // OS function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function supportsInterface(bytes4 interfaceId) public view virtual override (ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } // END function withdraw() public onlyOwner { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } function _baseURI() internal view override returns (string memory) { return BASE_URI; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"maxPerWallet","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":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"updateBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxPerWallet","type":"uint256"}],"name":"updateMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintLimit","type":"uint256"}],"name":"updateMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600b556002600c556064600e553480156200002057600080fd5b5060405162001efc38038062001efc833981016040819052620000439162000306565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600160405180604001604052806005815260200164456c6f6e7360d81b8152506040518060400160405280600481526020016322a627a760e11b8152508160029081620000a691906200046a565b506003620000b582826200046a565b506000805550506daaeb6d7670e522a718067333cd4e3b15620002015780156200014f57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200013057600080fd5b505af115801562000145573d6000803e3d6000fd5b5050505062000201565b6001600160a01b03821615620001a05760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000115565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001e757600080fd5b505af1158015620001fc573d6000803e3d6000fd5b505050505b506200020f90503362000221565b6200021a8162000273565b5062000536565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200027d6200028f565b600d6200028b82826200046a565b5050565b6008546001600160a01b03163314620002ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200031a57600080fd5b82516001600160401b03808211156200033257600080fd5b818501915085601f8301126200034757600080fd5b8151818111156200035c576200035c620002f0565b604051601f8201601f19908116603f01168101908382118183101715620003875762000387620002f0565b816040528281528886848701011115620003a057600080fd5b600093505b82841015620003c45784840186015181850187015292850192620003a5565b600086848301015280965050505050505092915050565b600181811c90821680620003f057607f821691505b6020821081036200041157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200046557600081815260208120601f850160051c81016020861015620004405750805b601f850160051c820191505b8181101562000461578281556001016200044c565b5050505b505050565b81516001600160401b03811115620004865762000486620002f0565b6200049e81620004978454620003db565b8462000417565b602080601f831160018114620004d65760008415620004bd5750858301515b600019600386901b1c1916600185901b17855562000461565b600085815260208120601f198616915b828110156200050757888601518255948401946001909101908401620004e6565b5085821015620005265787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6119b680620005466000396000f3fe6080604052600436106101cd5760003560e01c806370a08231116100f7578063a0712d6811610095578063e01d55c511610064578063e01d55c5146104db578063e985e9c5146104fb578063f2fde38b1461051b578063fecfda491461053b57600080fd5b8063a0712d6814610475578063a22cb46514610488578063b88d4fde146104a8578063c87b56dd146104bb57600080fd5b80638d859f3e116100d15780638d859f3e146104165780638da5cb5b1461042c57806395d89b411461044a578063996517cf1461045f57600080fd5b806370a08231146103c1578063715018a6146103e15780638d6cc56d146103f657600080fd5b806332cb6b0c1161016f57806342842e0e1161013e57806342842e0e14610358578063453c23101461036b578063484b973c146103815780636352211e146103a157600080fd5b806332cb6b0c146102eb57806339f7e37f146103015780633ccfd60b1461032157806341f434341461033657600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461027657806323b872dd146102995780632a55205a146102ac57600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611417565b61055b565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c61057b565b6040516101fe9190611484565b34801561023557600080fd5b50610249610244366004611497565b61060d565b6040516001600160a01b0390911681526020016101fe565b61027461026f3660046114cc565b610651565b005b34801561028257600080fd5b50600154600054035b6040519081526020016101fe565b6102746102a73660046114f6565b61066a565b3480156102b857600080fd5b506102cc6102c7366004611532565b610695565b604080516001600160a01b0390931683526020830191909152016101fe565b3480156102f757600080fd5b5061028b61271081565b34801561030d57600080fd5b5061027461031c3660046115e0565b610741565b34801561032d57600080fd5b50610274610759565b34801561034257600080fd5b506102496daaeb6d7670e522a718067333cd4e81565b6102746103663660046114f6565b610790565b34801561037757600080fd5b5061028b600e5481565b34801561038d57600080fd5b5061027461039c3660046114cc565b6107b5565b3480156103ad57600080fd5b506102496103bc366004611497565b6107c7565b3480156103cd57600080fd5b5061028b6103dc366004611629565b6107d2565b3480156103ed57600080fd5b50610274610821565b34801561040257600080fd5b50610274610411366004611497565b610835565b34801561042257600080fd5b5061028b600b5481565b34801561043857600080fd5b506008546001600160a01b0316610249565b34801561045657600080fd5b5061021c610842565b34801561046b57600080fd5b5061028b600c5481565b610274610483366004611497565b610851565b34801561049457600080fd5b506102746104a3366004611652565b610982565b6102746104b6366004611689565b610996565b3480156104c757600080fd5b5061021c6104d6366004611497565b6109c3565b3480156104e757600080fd5b506102746104f6366004611497565b610a47565b34801561050757600080fd5b506101f2610516366004611705565b610a54565b34801561052757600080fd5b50610274610536366004611629565b610a82565b34801561054757600080fd5b50610274610556366004611497565b610af8565b600061056682610b05565b80610575575061057582610b53565b92915050565b60606002805461058a90611738565b80601f01602080910402602001604051908101604052809291908181526020018280546105b690611738565b80156106035780601f106105d857610100808354040283529160200191610603565b820191906000526020600020905b8154815290600101906020018083116105e657829003601f168201915b5050505050905090565b600061061882610b88565b610635576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161065b81610baf565b6106658383610c68565b505050565b826001600160a01b03811633146106845761068433610baf565b61068f848484610d08565b50505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161070a5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610729906001600160601b031687611788565b610733919061179f565b915196919550909350505050565b610749610ea1565b600d6107558282611807565b5050565b610761610ea1565b6040514790339082156108fc029083906000818181858888f19350505050158015610755573d6000803e3d6000fd5b826001600160a01b03811633146107aa576107aa33610baf565b61068f848484610efb565b6107bd610ea1565b6107558282610f16565b600061057582610f30565b60006001600160a01b0382166107fb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610829610ea1565b6108336000610f97565b565b61083d610ea1565b600b55565b60606003805461058a90611738565b600c548111156108b45760405162461bcd60e51b815260206004820152602360248201527f546f6f206d616e7920746f6b656e7320666f72206f6e65207472616e7361637460448201526234b7b760e91b60648201526084015b60405180910390fd5b3481600b546108c39190611788565b11156109115760405162461bcd60e51b815260206004820152601760248201527f496e73756666696369656e742066756e64732073656e7400000000000000000060448201526064016108ab565b600e548161091e336107d2565b61092891906118c7565b11156109765760405162461bcd60e51b815260206004820152601e60248201527f546f6f206d616e7920746f6b656e7320666f72206f6e652077616c6c6574000060448201526064016108ab565b61097f81610fe9565b50565b8161098c81610baf565b61066583836110a2565b836001600160a01b03811633146109b0576109b033610baf565b6109bc8585858561110e565b5050505050565b60606109ce82610b88565b6109eb57604051630a14c4b560e41b815260040160405180910390fd5b60006109f5611152565b90508051600003610a155760405180602001604052806000815250610a40565b80610a1f84611161565b604051602001610a309291906118da565b6040516020818303038152906040525b9392505050565b610a4f610ea1565b600c55565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610a8a610ea1565b6001600160a01b038116610aef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ab565b61097f81610f97565b610b00610ea1565b600e55565b60006301ffc9a760e01b6001600160e01b031983161480610b3657506380ac58cd60e01b6001600160e01b03198316145b806105755750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061057557506301ffc9a760e01b6001600160e01b0319831614610575565b6000805482108015610575575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b1561097f57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c409190611909565b61097f57604051633b79c77360e21b81526001600160a01b03821660048201526024016108ab565b6000610c73826107c7565b9050336001600160a01b03821614610cac57610c8f8133610a54565b610cac576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d1382610f30565b9050836001600160a01b0316816001600160a01b031614610d465760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d9357610d768633610a54565b610d9357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610dba57604051633a954ecd60e21b815260040160405180910390fd5b8015610dc557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e5757600184016000818152600460205260408120549003610e55576000548114610e555760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b031633146108335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ab565b61066583838360405180602001604052806000815250610996565b6107558282604051806020016040528060008152506111a5565b600081600054811015610f7e5760008181526004602052604081205490600160e01b82169003610f7c575b80600003610a40575060001901600081815260046020526040902054610f5b565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081116110395760405162461bcd60e51b815260206004820152601760248201527f5175616e746974792063616e6e6f74206265207a65726f00000000000000000060448201526064016108ab565b6127106110538261104d6001546000540390565b9061120b565b106110985760405162461bcd60e51b8152602060048201526015602482015274139bc81a5d195b5cc81b19599d081d1bc81b5a5b9d605a1b60448201526064016108ab565b61097f3382610f16565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61111984848461066a565b6001600160a01b0383163b1561068f5761113584848484611217565b61068f576040516368d2bf6b60e11b815260040160405180910390fd5b6060600d805461058a90611738565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061117b5750819003601f19909101908152919050565b6111af8383611303565b6001600160a01b0383163b15610665576000548281035b6111d96000868380600101945086611217565b6111f6576040516368d2bf6b60e11b815260040160405180910390fd5b8181106111c65781600054146109bc57600080fd5b6000610a4082846118c7565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061124c903390899088908890600401611926565b6020604051808303816000875af1925050508015611287575060408051601f3d908101601f1916820190925261128491810190611963565b60015b6112e5573d8080156112b5576040519150601f19603f3d011682016040523d82523d6000602084013e6112ba565b606091505b5080516000036112dd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008054908290036113285760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146113d757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161139f565b50816000036113f857604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461097f57600080fd5b60006020828403121561142957600080fd5b8135610a4081611401565b60005b8381101561144f578181015183820152602001611437565b50506000910152565b60008151808452611470816020860160208601611434565b601f01601f19169290920160200192915050565b602081526000610a406020830184611458565b6000602082840312156114a957600080fd5b5035919050565b80356001600160a01b03811681146114c757600080fd5b919050565b600080604083850312156114df57600080fd5b6114e8836114b0565b946020939093013593505050565b60008060006060848603121561150b57600080fd5b611514846114b0565b9250611522602085016114b0565b9150604084013590509250925092565b6000806040838503121561154557600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561158557611585611554565b604051601f8501601f19908116603f011681019082821181831017156115ad576115ad611554565b816040528093508581528686860111156115c657600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156115f257600080fd5b813567ffffffffffffffff81111561160957600080fd5b8201601f8101841361161a57600080fd5b6112fb8482356020840161156a565b60006020828403121561163b57600080fd5b610a40826114b0565b801515811461097f57600080fd5b6000806040838503121561166557600080fd5b61166e836114b0565b9150602083013561167e81611644565b809150509250929050565b6000806000806080858703121561169f57600080fd5b6116a8856114b0565b93506116b6602086016114b0565b925060408501359150606085013567ffffffffffffffff8111156116d957600080fd5b8501601f810187136116ea57600080fd5b6116f98782356020840161156a565b91505092959194509250565b6000806040838503121561171857600080fd5b611721836114b0565b915061172f602084016114b0565b90509250929050565b600181811c9082168061174c57607f821691505b60208210810361176c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761057557610575611772565b6000826117bc57634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561066557600081815260208120601f850160051c810160208610156117e85750805b601f850160051c820191505b81811015610e99578281556001016117f4565b815167ffffffffffffffff81111561182157611821611554565b6118358161182f8454611738565b846117c1565b602080601f83116001811461186a57600084156118525750858301515b600019600386901b1c1916600185901b178555610e99565b600085815260208120601f198616915b828110156118995788860151825594840194600190910190840161187a565b50858210156118b75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561057557610575611772565b600083516118ec818460208801611434565b835190830190611900818360208801611434565b01949350505050565b60006020828403121561191b57600080fd5b8151610a4081611644565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061195990830184611458565b9695505050505050565b60006020828403121561197557600080fd5b8151610a408161140156fea264697066735822122089a1a363e2d09c82722d9421c90c3db21e10ca60693c9f8ca3bfd70df5b841bc64736f6c6343000812003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c806370a08231116100f7578063a0712d6811610095578063e01d55c511610064578063e01d55c5146104db578063e985e9c5146104fb578063f2fde38b1461051b578063fecfda491461053b57600080fd5b8063a0712d6814610475578063a22cb46514610488578063b88d4fde146104a8578063c87b56dd146104bb57600080fd5b80638d859f3e116100d15780638d859f3e146104165780638da5cb5b1461042c57806395d89b411461044a578063996517cf1461045f57600080fd5b806370a08231146103c1578063715018a6146103e15780638d6cc56d146103f657600080fd5b806332cb6b0c1161016f57806342842e0e1161013e57806342842e0e14610358578063453c23101461036b578063484b973c146103815780636352211e146103a157600080fd5b806332cb6b0c146102eb57806339f7e37f146103015780633ccfd60b1461032157806341f434341461033657600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461027657806323b872dd146102995780632a55205a146102ac57600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611417565b61055b565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c61057b565b6040516101fe9190611484565b34801561023557600080fd5b50610249610244366004611497565b61060d565b6040516001600160a01b0390911681526020016101fe565b61027461026f3660046114cc565b610651565b005b34801561028257600080fd5b50600154600054035b6040519081526020016101fe565b6102746102a73660046114f6565b61066a565b3480156102b857600080fd5b506102cc6102c7366004611532565b610695565b604080516001600160a01b0390931683526020830191909152016101fe565b3480156102f757600080fd5b5061028b61271081565b34801561030d57600080fd5b5061027461031c3660046115e0565b610741565b34801561032d57600080fd5b50610274610759565b34801561034257600080fd5b506102496daaeb6d7670e522a718067333cd4e81565b6102746103663660046114f6565b610790565b34801561037757600080fd5b5061028b600e5481565b34801561038d57600080fd5b5061027461039c3660046114cc565b6107b5565b3480156103ad57600080fd5b506102496103bc366004611497565b6107c7565b3480156103cd57600080fd5b5061028b6103dc366004611629565b6107d2565b3480156103ed57600080fd5b50610274610821565b34801561040257600080fd5b50610274610411366004611497565b610835565b34801561042257600080fd5b5061028b600b5481565b34801561043857600080fd5b506008546001600160a01b0316610249565b34801561045657600080fd5b5061021c610842565b34801561046b57600080fd5b5061028b600c5481565b610274610483366004611497565b610851565b34801561049457600080fd5b506102746104a3366004611652565b610982565b6102746104b6366004611689565b610996565b3480156104c757600080fd5b5061021c6104d6366004611497565b6109c3565b3480156104e757600080fd5b506102746104f6366004611497565b610a47565b34801561050757600080fd5b506101f2610516366004611705565b610a54565b34801561052757600080fd5b50610274610536366004611629565b610a82565b34801561054757600080fd5b50610274610556366004611497565b610af8565b600061056682610b05565b80610575575061057582610b53565b92915050565b60606002805461058a90611738565b80601f01602080910402602001604051908101604052809291908181526020018280546105b690611738565b80156106035780601f106105d857610100808354040283529160200191610603565b820191906000526020600020905b8154815290600101906020018083116105e657829003601f168201915b5050505050905090565b600061061882610b88565b610635576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161065b81610baf565b6106658383610c68565b505050565b826001600160a01b03811633146106845761068433610baf565b61068f848484610d08565b50505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161070a5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610729906001600160601b031687611788565b610733919061179f565b915196919550909350505050565b610749610ea1565b600d6107558282611807565b5050565b610761610ea1565b6040514790339082156108fc029083906000818181858888f19350505050158015610755573d6000803e3d6000fd5b826001600160a01b03811633146107aa576107aa33610baf565b61068f848484610efb565b6107bd610ea1565b6107558282610f16565b600061057582610f30565b60006001600160a01b0382166107fb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610829610ea1565b6108336000610f97565b565b61083d610ea1565b600b55565b60606003805461058a90611738565b600c548111156108b45760405162461bcd60e51b815260206004820152602360248201527f546f6f206d616e7920746f6b656e7320666f72206f6e65207472616e7361637460448201526234b7b760e91b60648201526084015b60405180910390fd5b3481600b546108c39190611788565b11156109115760405162461bcd60e51b815260206004820152601760248201527f496e73756666696369656e742066756e64732073656e7400000000000000000060448201526064016108ab565b600e548161091e336107d2565b61092891906118c7565b11156109765760405162461bcd60e51b815260206004820152601e60248201527f546f6f206d616e7920746f6b656e7320666f72206f6e652077616c6c6574000060448201526064016108ab565b61097f81610fe9565b50565b8161098c81610baf565b61066583836110a2565b836001600160a01b03811633146109b0576109b033610baf565b6109bc8585858561110e565b5050505050565b60606109ce82610b88565b6109eb57604051630a14c4b560e41b815260040160405180910390fd5b60006109f5611152565b90508051600003610a155760405180602001604052806000815250610a40565b80610a1f84611161565b604051602001610a309291906118da565b6040516020818303038152906040525b9392505050565b610a4f610ea1565b600c55565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610a8a610ea1565b6001600160a01b038116610aef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ab565b61097f81610f97565b610b00610ea1565b600e55565b60006301ffc9a760e01b6001600160e01b031983161480610b3657506380ac58cd60e01b6001600160e01b03198316145b806105755750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061057557506301ffc9a760e01b6001600160e01b0319831614610575565b6000805482108015610575575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b1561097f57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c409190611909565b61097f57604051633b79c77360e21b81526001600160a01b03821660048201526024016108ab565b6000610c73826107c7565b9050336001600160a01b03821614610cac57610c8f8133610a54565b610cac576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d1382610f30565b9050836001600160a01b0316816001600160a01b031614610d465760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d9357610d768633610a54565b610d9357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610dba57604051633a954ecd60e21b815260040160405180910390fd5b8015610dc557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e5757600184016000818152600460205260408120549003610e55576000548114610e555760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b031633146108335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ab565b61066583838360405180602001604052806000815250610996565b6107558282604051806020016040528060008152506111a5565b600081600054811015610f7e5760008181526004602052604081205490600160e01b82169003610f7c575b80600003610a40575060001901600081815260046020526040902054610f5b565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081116110395760405162461bcd60e51b815260206004820152601760248201527f5175616e746974792063616e6e6f74206265207a65726f00000000000000000060448201526064016108ab565b6127106110538261104d6001546000540390565b9061120b565b106110985760405162461bcd60e51b8152602060048201526015602482015274139bc81a5d195b5cc81b19599d081d1bc81b5a5b9d605a1b60448201526064016108ab565b61097f3382610f16565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61111984848461066a565b6001600160a01b0383163b1561068f5761113584848484611217565b61068f576040516368d2bf6b60e11b815260040160405180910390fd5b6060600d805461058a90611738565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061117b5750819003601f19909101908152919050565b6111af8383611303565b6001600160a01b0383163b15610665576000548281035b6111d96000868380600101945086611217565b6111f6576040516368d2bf6b60e11b815260040160405180910390fd5b8181106111c65781600054146109bc57600080fd5b6000610a4082846118c7565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061124c903390899088908890600401611926565b6020604051808303816000875af1925050508015611287575060408051601f3d908101601f1916820190925261128491810190611963565b60015b6112e5573d8080156112b5576040519150601f19603f3d011682016040523d82523d6000602084013e6112ba565b606091505b5080516000036112dd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008054908290036113285760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146113d757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161139f565b50816000036113f857604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461097f57600080fd5b60006020828403121561142957600080fd5b8135610a4081611401565b60005b8381101561144f578181015183820152602001611437565b50506000910152565b60008151808452611470816020860160208601611434565b601f01601f19169290920160200192915050565b602081526000610a406020830184611458565b6000602082840312156114a957600080fd5b5035919050565b80356001600160a01b03811681146114c757600080fd5b919050565b600080604083850312156114df57600080fd5b6114e8836114b0565b946020939093013593505050565b60008060006060848603121561150b57600080fd5b611514846114b0565b9250611522602085016114b0565b9150604084013590509250925092565b6000806040838503121561154557600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561158557611585611554565b604051601f8501601f19908116603f011681019082821181831017156115ad576115ad611554565b816040528093508581528686860111156115c657600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156115f257600080fd5b813567ffffffffffffffff81111561160957600080fd5b8201601f8101841361161a57600080fd5b6112fb8482356020840161156a565b60006020828403121561163b57600080fd5b610a40826114b0565b801515811461097f57600080fd5b6000806040838503121561166557600080fd5b61166e836114b0565b9150602083013561167e81611644565b809150509250929050565b6000806000806080858703121561169f57600080fd5b6116a8856114b0565b93506116b6602086016114b0565b925060408501359150606085013567ffffffffffffffff8111156116d957600080fd5b8501601f810187136116ea57600080fd5b6116f98782356020840161156a565b91505092959194509250565b6000806040838503121561171857600080fd5b611721836114b0565b915061172f602084016114b0565b90509250929050565b600181811c9082168061174c57607f821691505b60208210810361176c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761057557610575611772565b6000826117bc57634e487b7160e01b600052601260045260246000fd5b500490565b601f82111561066557600081815260208120601f850160051c810160208610156117e85750805b601f850160051c820191505b81811015610e99578281556001016117f4565b815167ffffffffffffffff81111561182157611821611554565b6118358161182f8454611738565b846117c1565b602080601f83116001811461186a57600084156118525750858301515b600019600386901b1c1916600185901b178555610e99565b600085815260208120601f198616915b828110156118995788860151825594840194600190910190840161187a565b50858210156118b75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561057557610575611772565b600083516118ec818460208801611434565b835190830190611900818360208801611434565b01949350505050565b60006020828403121561191b57600080fd5b8151610a4081611644565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061195990830184611458565b9695505050505050565b60006020828403121561197557600080fd5b8151610a408161140156fea264697066735822122089a1a363e2d09c82722d9421c90c3db21e10ca60693c9f8ca3bfd70df5b841bc64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initBaseURI (string):
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
105817:3493:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108768:266;;;;;;;;;;-1:-1:-1;108768:266:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;108768:266:0;;;;;;;;66213:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;72704:218::-;;;;;;;;;;-1:-1:-1;72704:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;72704:218:0;1533:203:1;107853:206:0;;;;;;:::i;:::-;;:::i;:::-;;61964:323;;;;;;;;;;-1:-1:-1;62238:12:0;;62025:7;62222:13;:28;61964:323;;;2324:25:1;;;2312:2;2297:18;61964:323:0;2178:177:1;108067:212:0;;;;;;:::i;:::-;;:::i;26740:442::-;;;;;;;;;;-1:-1:-1;26740:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3138:32:1;;;3120:51;;3202:2;3187:18;;3180:34;;;;3093:18;26740:442:0;2946:274:1;105951:39:0;;;;;;;;;;;;105985:5;105951:39;;106260:100;;;;;;;;;;-1:-1:-1;106260:100:0;;;;;:::i;:::-;;:::i;109054:140::-;;;;;;;;;;;;;:::i;40565:143::-;;;;;;;;;;;;32981:42;40565:143;;108287:220;;;;;;:::i;:::-;;:::i;106099:33::-;;;;;;;;;;;;;;;;106700:108;;;;;;;;;;-1:-1:-1;106700:108:0;;;;;:::i;:::-;;:::i;67606:152::-;;;;;;;;;;-1:-1:-1;67606:152:0;;;;;:::i;:::-;;:::i;63148:233::-;;;;;;;;;;-1:-1:-1;63148:233:0;;;;;:::i;:::-;;:::i;32013:103::-;;;;;;;;;;;;;:::i;106368:82::-;;;;;;;;;;-1:-1:-1;106368:82:0;;;;;:::i;:::-;;:::i;105997:30::-;;;;;;;;;;;;;;;;31365:87;;;;;;;;;;-1:-1:-1;31438:6:0;;-1:-1:-1;;;;;31438:6:0;31365:87;;66389:104;;;;;;;;;;;;;:::i;106034:28::-;;;;;;;;;;;;;;;;106827:458;;;;;;:::i;:::-;;:::i;107637:208::-;;;;;;;;;;-1:-1:-1;107637:208:0;;;;;:::i;:::-;;:::i;108515:245::-;;;;;;:::i;:::-;;:::i;66599:318::-;;;;;;;;;;-1:-1:-1;66599:318:0;;;;;:::i;:::-;;:::i;106585:107::-;;;;;;;;;;-1:-1:-1;106585:107:0;;;;;:::i;:::-;;:::i;73653:164::-;;;;;;;;;;-1:-1:-1;73653:164:0;;;;;:::i;:::-;;:::i;32271:201::-;;;;;;;;;;-1:-1:-1;32271:201:0;;;;;:::i;:::-;;:::i;106458:119::-;;;;;;;;;;-1:-1:-1;106458:119:0;;;;;:::i;:::-;;:::i;108768:266::-;108917:4;108946:38;108972:11;108946:25;:38::i;:::-;:80;;;;108988:38;109014:11;108988:25;:38::i;:::-;108939:87;108768:266;-1:-1:-1;;108768:266:0:o;66213:100::-;66267:13;66300:5;66293:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66213:100;:::o;72704:218::-;72780:7;72805:16;72813:7;72805;:16::i;:::-;72800:64;;72830:34;;-1:-1:-1;;;72830:34:0;;;;;;;;;;;72800:64;-1:-1:-1;72884:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;72884:30:0;;72704:218::o;107853:206::-;107993:8;42347:30;42368:8;42347:20;:30::i;:::-;108019:32:::1;108033:8;108043:7;108019:13;:32::i;:::-;107853:206:::0;;;:::o;108067:212::-;108212:4;-1:-1:-1;;;;;42073:18:0;;42081:10;42073:18;42069:83;;42108:32;42129:10;42108:20;:32::i;:::-;108234:37:::1;108253:4;108259:2;108263:7;108234:18;:37::i;:::-;108067:212:::0;;;;:::o;26740:442::-;26837:7;26895:27;;;:17;:27;;;;;;;;26866:56;;;;;;;;;-1:-1:-1;;;;;26866:56:0;;;;;-1:-1:-1;;;26866:56:0;;;-1:-1:-1;;;;;26866:56:0;;;;;;;;26837:7;;26935:92;;-1:-1:-1;26986:29:0;;;;;;;;;26996:19;26986:29;-1:-1:-1;;;;;26986:29:0;;;;-1:-1:-1;;;26986:29:0;;-1:-1:-1;;;;;26986:29:0;;;;;26935:92;27077:23;;;;27039:21;;27548:5;;27064:36;;-1:-1:-1;;;;;27064:36:0;:10;:36;:::i;:::-;27063:58;;;;:::i;:::-;27142:16;;;;;-1:-1:-1;26740:442:0;;-1:-1:-1;;;;26740:442:0:o;106260:100::-;31251:13;:11;:13::i;:::-;106334:8:::1;:18;106345:7:::0;106334:8;:18:::1;:::i;:::-;;106260:100:::0;:::o;109054:140::-;31251:13;:11;:13::i;:::-;109149:37:::1;::::0;109117:21:::1;::::0;109157:10:::1;::::0;109149:37;::::1;;;::::0;109117:21;;109102:12:::1;109149:37:::0;109102:12;109149:37;109117:21;109157:10;109149:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;108287:220:::0;108436:4;-1:-1:-1;;;;;42073:18:0;;42081:10;42073:18;42069:83;;42108:32;42129:10;42108:20;:32::i;:::-;108458:41:::1;108481:4;108487:2;108491:7;108458:22;:41::i;106700:108::-:0;31251:13;:11;:13::i;:::-;106777:23:::1;106787:2;106791:8;106777:9;:23::i;67606:152::-:0;67678:7;67721:27;67740:7;67721:18;:27::i;63148:233::-;63220:7;-1:-1:-1;;;;;63244:19:0;;63240:60;;63272:28;;-1:-1:-1;;;63272:28:0;;;;;;;;;;;63240:60;-1:-1:-1;;;;;;63318:25:0;;;;;:18;:25;;;;;;57307:13;63318:55;;63148:233::o;32013:103::-;31251:13;:11;:13::i;:::-;32078:30:::1;32105:1;32078:18;:30::i;:::-;32013:103::o:0;106368:82::-;31251:13;:11;:13::i;:::-;106429:5:::1;:13:::0;106368:82::o;66389:104::-;66445:13;66478:7;66471:14;;;;;:::i;106827:458::-;106921:9;;106909:8;:21;;106887:106;;;;-1:-1:-1;;;106887:106:0;;9579:2:1;106887:106:0;;;9561:21:1;9618:2;9598:18;;;9591:30;9657:34;9637:18;;;9630:62;-1:-1:-1;;;9708:18:1;;;9701:33;9751:19;;106887:106:0;;;;;;;;;107046:9;107034:8;107026:5;;:16;;;;:::i;:::-;:29;;107004:103;;;;-1:-1:-1;;;107004:103:0;;9983:2:1;107004:103:0;;;9965:21:1;10022:2;10002:18;;;9995:30;10061:25;10041:18;;;10034:53;10104:18;;107004:103:0;9781:347:1;107004:103:0;107176:12;;107164:8;107140:21;107150:10;107140:9;:21::i;:::-;:32;;;;:::i;:::-;:48;;107118:128;;;;-1:-1:-1;;;107118:128:0;;10465:2:1;107118:128:0;;;10447:21:1;10504:2;10484:18;;;10477:30;10543:32;10523:18;;;10516:60;10593:18;;107118:128:0;10263:354:1;107118:128:0;107257:20;107268:8;107257:10;:20::i;:::-;106827:458;:::o;107637:208::-;107768:8;42347:30;42368:8;42347:20;:30::i;:::-;107794:43:::1;107818:8;107828;107794:23;:43::i;108515:245::-:0;108683:4;-1:-1:-1;;;;;42073:18:0;;42081:10;42073:18;42069:83;;42108:32;42129:10;42108:20;:32::i;:::-;108705:47:::1;108728:4;108734:2;108738:7;108747:4;108705:22;:47::i;:::-;108515:245:::0;;;;;:::o;66599:318::-;66672:13;66703:16;66711:7;66703;:16::i;:::-;66698:59;;66728:29;;-1:-1:-1;;;66728:29:0;;;;;;;;;;;66698:59;66770:21;66794:10;:8;:10::i;:::-;66770:34;;66828:7;66822:21;66847:1;66822:26;:87;;;;;;;;;;;;;;;;;66875:7;66884:18;66894:7;66884:9;:18::i;:::-;66858:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;66822:87;66815:94;66599:318;-1:-1:-1;;;66599:318:0:o;106585:107::-;31251:13;:11;:13::i;:::-;106660:9:::1;:24:::0;106585:107::o;73653:164::-;-1:-1:-1;;;;;73774:25:0;;;73750:4;73774:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;73653:164::o;32271:201::-;31251:13;:11;:13::i;:::-;-1:-1:-1;;;;;32360:22:0;::::1;32352:73;;;::::0;-1:-1:-1;;;32352:73:0;;11325:2:1;32352:73:0::1;::::0;::::1;11307:21:1::0;11364:2;11344:18;;;11337:30;11403:34;11383:18;;;11376:62;-1:-1:-1;;;11454:18:1;;;11447:36;11500:19;;32352:73:0::1;11123:402:1::0;32352:73:0::1;32436:28;32455:8;32436:18;:28::i;106458:119::-:0;31251:13;:11;:13::i;:::-;106539:12:::1;:30:::0;106458:119::o;65311:639::-;65396:4;-1:-1:-1;;;;;;;;;65720:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;65797:25:0;;;65720:102;:179;;;-1:-1:-1;;;;;;;;65874:25:0;-1:-1:-1;;;65874:25:0;;65311:639::o;26470:215::-;26572:4;-1:-1:-1;;;;;;26596:41:0;;-1:-1:-1;;;26596:41:0;;:81;;-1:-1:-1;;;;;;;;;;24131:40:0;;;26641:36;24022:157;74075:282;74140:4;74230:13;;74220:7;:23;74177:153;;;;-1:-1:-1;;74281:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;74281:44:0;:49;;74075:282::o;42490:647::-;32981:42;42681:45;:49;42677:453;;42980:67;;-1:-1:-1;;;42980:67:0;;43031:4;42980:67;;;11742:34:1;-1:-1:-1;;;;;11812:15:1;;11792:18;;;11785:43;32981:42:0;;42980;;11677:18:1;;42980:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42975:144;;43075:28;;-1:-1:-1;;;43075:28:0;;-1:-1:-1;;;;;1697:32:1;;43075:28:0;;;1679:51:1;1652:18;;43075:28:0;1533:203:1;72137:408:0;72226:13;72242:16;72250:7;72242;:16::i;:::-;72226:32;-1:-1:-1;96470:10:0;-1:-1:-1;;;;;72275:28:0;;;72271:175;;72323:44;72340:5;96470:10;73653:164;:::i;72323:44::-;72318:128;;72395:35;;-1:-1:-1;;;72395:35:0;;;;;;;;;;;72318:128;72458:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;72458:35:0;-1:-1:-1;;;;;72458:35:0;;;;;;;;;72509:28;;72458:24;;72509:28;;;;;;;72215:330;72137:408;;:::o;76343:2825::-;76485:27;76515;76534:7;76515:18;:27::i;:::-;76485:57;;76600:4;-1:-1:-1;;;;;76559:45:0;76575:19;-1:-1:-1;;;;;76559:45:0;;76555:86;;76613:28;;-1:-1:-1;;;76613:28:0;;;;;;;;;;;76555:86;76655:27;75451:24;;;:15;:24;;;;;75679:26;;96470:10;75076:30;;;-1:-1:-1;;;;;74769:28:0;;75054:20;;;75051:56;76841:180;;76934:43;76951:4;96470:10;73653:164;:::i;76934:43::-;76929:92;;76986:35;;-1:-1:-1;;;76986:35:0;;;;;;;;;;;76929:92;-1:-1:-1;;;;;77038:16:0;;77034:52;;77063:23;;-1:-1:-1;;;77063:23:0;;;;;;;;;;;77034:52;77235:15;77232:160;;;77375:1;77354:19;77347:30;77232:160;-1:-1:-1;;;;;77772:24:0;;;;;;;:18;:24;;;;;;77770:26;;-1:-1:-1;;77770:26:0;;;77841:22;;;;;;;;;77839:24;;-1:-1:-1;77839:24:0;;;70995:11;70970:23;70966:41;70953:63;-1:-1:-1;;;70953:63:0;78134:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;78429:47:0;;:52;;78425:627;;78534:1;78524:11;;78502:19;78657:30;;;:17;:30;;;;;;:35;;78653:384;;78795:13;;78780:11;:28;78776:242;;78942:30;;;;:17;:30;;;;;:52;;;78776:242;78483:569;78425:627;79099:7;79095:2;-1:-1:-1;;;;;79080:27:0;79089:4;-1:-1:-1;;;;;79080:27:0;;;;;;;;;;;79118:42;76474:2694;;;76343:2825;;;:::o;31530:132::-;31438:6;;-1:-1:-1;;;;;31438:6:0;96470:10;31594:23;31586:68;;;;-1:-1:-1;;;31586:68:0;;12291:2:1;31586:68:0;;;12273:21:1;;;12310:18;;;12303:30;12369:34;12349:18;;;12342:62;12421:18;;31586:68:0;12089:356:1;79264:193:0;79410:39;79427:4;79433:2;79437:7;79410:39;;;;;;;;;;;;:16;:39::i;90215:112::-;90292:27;90302:2;90306:8;90292:27;;;;;;;;;;;;:9;:27::i;68761:1275::-;68828:7;68863;68965:13;;68958:4;:20;68954:1015;;;69003:14;69020:23;;;:17;:23;;;;;;;-1:-1:-1;;;69109:24:0;;:29;;69105:845;;69774:113;69781:6;69791:1;69781:11;69774:113;;-1:-1:-1;;;69852:6:0;69834:25;;;;:17;:25;;;;;;69774:113;;69105:845;68980:989;68954:1015;69997:31;;-1:-1:-1;;;69997:31:0;;;;;;;;;;;32632:191;32725:6;;;-1:-1:-1;;;;;32742:17:0;;;-1:-1:-1;;;;;;32742:17:0;;;;;;;32775:40;;32725:6;;;32742:17;32725:6;;32775:40;;32706:16;;32775:40;32695:128;32632:191;:::o;107293:317::-;107384:1;107373:8;:12;107351:86;;;;-1:-1:-1;;;107351:86:0;;12652:2:1;107351:86:0;;;12634:21:1;12691:2;12671:18;;;12664:30;12730:25;12710:18;;;12703:53;12773:18;;107351:86:0;12450:347:1;107351:86:0;105985:5;107470:27;107488:8;107470:13;62238:12;;62025:7;62222:13;:28;;61964:323;107470:13;:17;;:27::i;:::-;:40;107448:112;;;;-1:-1:-1;;;107448:112:0;;13004:2:1;107448:112:0;;;12986:21:1;13043:2;13023:18;;;13016:30;-1:-1:-1;;;13062:18:1;;;13055:51;13123:18;;107448:112:0;12802:345:1;107448:112:0;107571:31;107581:10;107593:8;107571:9;:31::i;73262:234::-;96470:10;73357:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;73357:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;73357:60:0;;;;;;;;;;73433:55;;540:41:1;;;73357:49:0;;96470:10;73433:55;;513:18:1;73433:55:0;;;;;;;73262:234;;:::o;80055:407::-;80230:31;80243:4;80249:2;80253:7;80230:12;:31::i;:::-;-1:-1:-1;;;;;80276:14:0;;;:19;80272:183;;80315:56;80346:4;80352:2;80356:7;80365:5;80315:30;:56::i;:::-;80310:145;;80399:40;;-1:-1:-1;;;80399:40:0;;;;;;;;;;;109202:101;109254:13;109287:8;109280:15;;;;;:::i;96590:1745::-;96655:17;97089:4;97082;97076:11;97072:22;97181:1;97175:4;97168:15;97256:4;97253:1;97249:12;97242:19;;;97338:1;97333:3;97326:14;97442:3;97681:5;97663:428;97729:1;97724:3;97720:11;97713:18;;97900:2;97894:4;97890:13;97886:2;97882:22;97877:3;97869:36;97994:2;97984:13;;98051:25;97663:428;98051:25;-1:-1:-1;98121:13:0;;;-1:-1:-1;;98236:14:0;;;98298:19;;;98236:14;96590:1745;-1:-1:-1;96590:1745:0:o;89442:689::-;89573:19;89579:2;89583:8;89573:5;:19::i;:::-;-1:-1:-1;;;;;89634:14:0;;;:19;89630:483;;89674:11;89688:13;89736:14;;;89769:233;89800:62;89839:1;89843:2;89847:7;;;;;;89856:5;89800:30;:62::i;:::-;89795:167;;89898:40;;-1:-1:-1;;;89898:40:0;;;;;;;;;;;89795:167;89997:3;89989:5;:11;89769:233;;90084:3;90067:13;;:20;90063:34;;90089:8;;;18075:98;18133:7;18160:5;18164:1;18160;:5;:::i;82546:716::-;82730:88;;-1:-1:-1;;;82730:88:0;;82709:4;;-1:-1:-1;;;;;82730:45:0;;;;;:88;;96470:10;;82797:4;;82803:7;;82812:5;;82730:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82730:88:0;;;;;;;;-1:-1:-1;;82730:88:0;;;;;;;;;;;;:::i;:::-;;;82726:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83013:6;:13;83030:1;83013:18;83009:235;;83059:40;;-1:-1:-1;;;83059:40:0;;;;;;;;;;;83009:235;83202:6;83196:13;83187:6;83183:2;83179:15;83172:38;82726:529;-1:-1:-1;;;;;;82889:64:0;-1:-1:-1;;;82889:64:0;;-1:-1:-1;82726:529:0;82546:716;;;;;;:::o;83724:2966::-;83797:20;83820:13;;;83848;;;83844:44;;83870:18;;-1:-1:-1;;;83870:18:0;;;;;;;;;;;83844:44;-1:-1:-1;;;;;84376:22:0;;;;;;:18;:22;;;;57445:2;84376:22;;;:71;;84414:32;84402:45;;84376:71;;;84690:31;;;:17;:31;;;;;-1:-1:-1;71426:15:0;;71400:24;71396:46;70995:11;70970:23;70966:41;70963:52;70953:63;;84690:173;;84925:23;;;;84690:31;;84376:22;;85690:25;84376:22;;85543:335;86204:1;86190:12;86186:20;86144:346;86245:3;86236:7;86233:16;86144:346;;86463:7;86453:8;86450:1;86423:25;86420:1;86417;86412:59;86298:1;86285:15;86144:346;;;86148:77;86523:8;86535:1;86523:13;86519:45;;86545:19;;-1:-1:-1;;;86545:19:0;;;;;;;;;;;86519:45;86581:13;:19;-1:-1:-1;107853:206: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:248::-;2761:6;2769;2822:2;2810:9;2801:7;2797:23;2793:32;2790:52;;;2838:1;2835;2828:12;2790:52;-1:-1:-1;;2861:23:1;;;2931:2;2916:18;;;2903:32;;-1:-1:-1;2693:248:1:o;3225:127::-;3286:10;3281:3;3277:20;3274:1;3267:31;3317:4;3314:1;3307:15;3341:4;3338:1;3331:15;3357:632;3422:5;3452:18;3493:2;3485:6;3482:14;3479:40;;;3499:18;;:::i;:::-;3574:2;3568:9;3542:2;3628:15;;-1:-1:-1;;3624:24:1;;;3650:2;3620:33;3616:42;3604:55;;;3674:18;;;3694:22;;;3671:46;3668:72;;;3720:18;;:::i;:::-;3760:10;3756:2;3749:22;3789:6;3780:15;;3819:6;3811;3804:22;3859:3;3850:6;3845:3;3841:16;3838:25;3835:45;;;3876:1;3873;3866:12;3835:45;3926:6;3921:3;3914:4;3906:6;3902:17;3889:44;3981:1;3974:4;3965:6;3957;3953:19;3949:30;3942:41;;;;3357:632;;;;;:::o;3994:451::-;4063:6;4116:2;4104:9;4095:7;4091:23;4087:32;4084:52;;;4132:1;4129;4122:12;4084:52;4172:9;4159:23;4205:18;4197:6;4194:30;4191:50;;;4237:1;4234;4227:12;4191:50;4260:22;;4313:4;4305:13;;4301:27;-1:-1:-1;4291:55:1;;4342:1;4339;4332:12;4291:55;4365:74;4431:7;4426:2;4413:16;4408:2;4404;4400:11;4365:74;:::i;4690:186::-;4749:6;4802:2;4790:9;4781:7;4777:23;4773:32;4770:52;;;4818:1;4815;4808:12;4770:52;4841:29;4860:9;4841:29;:::i;4881:118::-;4967:5;4960:13;4953:21;4946:5;4943:32;4933:60;;4989:1;4986;4979:12;5004:315;5069:6;5077;5130:2;5118:9;5109:7;5105:23;5101:32;5098:52;;;5146:1;5143;5136:12;5098:52;5169:29;5188:9;5169:29;:::i;:::-;5159:39;;5248:2;5237:9;5233:18;5220:32;5261:28;5283:5;5261:28;:::i;:::-;5308:5;5298:15;;;5004:315;;;;;:::o;5324:667::-;5419:6;5427;5435;5443;5496:3;5484:9;5475:7;5471:23;5467:33;5464:53;;;5513:1;5510;5503:12;5464:53;5536:29;5555:9;5536:29;:::i;:::-;5526:39;;5584:38;5618:2;5607:9;5603:18;5584:38;:::i;:::-;5574:48;;5669:2;5658:9;5654:18;5641:32;5631:42;;5724:2;5713:9;5709:18;5696:32;5751:18;5743:6;5740:30;5737:50;;;5783:1;5780;5773:12;5737:50;5806:22;;5859:4;5851:13;;5847:27;-1:-1:-1;5837:55:1;;5888:1;5885;5878:12;5837:55;5911:74;5977:7;5972:2;5959:16;5954:2;5950;5946:11;5911:74;:::i;:::-;5901:84;;;5324:667;;;;;;;:::o;5996:260::-;6064:6;6072;6125:2;6113:9;6104:7;6100:23;6096:32;6093:52;;;6141:1;6138;6131:12;6093:52;6164:29;6183:9;6164:29;:::i;:::-;6154:39;;6212:38;6246:2;6235:9;6231:18;6212:38;:::i;:::-;6202:48;;5996:260;;;;;:::o;6261:380::-;6340:1;6336:12;;;;6383;;;6404:61;;6458:4;6450:6;6446:17;6436:27;;6404:61;6511:2;6503:6;6500:14;6480:18;6477:38;6474:161;;6557:10;6552:3;6548:20;6545:1;6538:31;6592:4;6589:1;6582:15;6620:4;6617:1;6610:15;6474:161;;6261:380;;;:::o;6646:127::-;6707:10;6702:3;6698:20;6695:1;6688:31;6738:4;6735:1;6728:15;6762:4;6759:1;6752:15;6778:168;6851:9;;;6882;;6899:15;;;6893:22;;6879:37;6869:71;;6920:18;;:::i;6951:217::-;6991:1;7017;7007:132;;7061:10;7056:3;7052:20;7049:1;7042:31;7096:4;7093:1;7086:15;7124:4;7121:1;7114:15;7007:132;-1:-1:-1;7153:9:1;;6951:217::o;7299:545::-;7401:2;7396:3;7393:11;7390:448;;;7437:1;7462:5;7458:2;7451:17;7507:4;7503:2;7493:19;7577:2;7565:10;7561:19;7558:1;7554:27;7548:4;7544:38;7613:4;7601:10;7598:20;7595:47;;;-1:-1:-1;7636:4:1;7595:47;7691:2;7686:3;7682:12;7679:1;7675:20;7669:4;7665:31;7655:41;;7746:82;7764:2;7757:5;7754:13;7746:82;;;7809:17;;;7790:1;7779:13;7746:82;;8020:1352;8146:3;8140:10;8173:18;8165:6;8162:30;8159:56;;;8195:18;;:::i;:::-;8224:97;8314:6;8274:38;8306:4;8300:11;8274:38;:::i;:::-;8268:4;8224:97;:::i;:::-;8376:4;;8440:2;8429:14;;8457:1;8452:663;;;;9159:1;9176:6;9173:89;;;-1:-1:-1;9228:19:1;;;9222:26;9173:89;-1:-1:-1;;7977:1:1;7973:11;;;7969:24;7965:29;7955:40;8001:1;7997:11;;;7952:57;9275:81;;8422:944;;8452:663;7246:1;7239:14;;;7283:4;7270:18;;-1:-1:-1;;8488:20:1;;;8606:236;8620:7;8617:1;8614:14;8606:236;;;8709:19;;;8703:26;8688:42;;8801:27;;;;8769:1;8757:14;;;;8636:19;;8606:236;;;8610:3;8870:6;8861:7;8858:19;8855:201;;;8931:19;;;8925:26;-1:-1:-1;;9014:1:1;9010:14;;;9026:3;9006:24;9002:37;8998:42;8983:58;8968:74;;8855:201;-1:-1:-1;;;;;9102:1:1;9086:14;;;9082:22;9069:36;;-1:-1:-1;8020:1352:1:o;10133:125::-;10198:9;;;10219:10;;;10216:36;;;10232:18;;:::i;10622:496::-;10801:3;10839:6;10833:13;10855:66;10914:6;10909:3;10902:4;10894:6;10890:17;10855:66;:::i;:::-;10984:13;;10943:16;;;;11006:70;10984:13;10943:16;11053:4;11041:17;;11006:70;:::i;:::-;11092:20;;10622:496;-1:-1:-1;;;;10622:496:1:o;11839:245::-;11906:6;11959:2;11947:9;11938:7;11934:23;11930:32;11927:52;;;11975:1;11972;11965:12;11927:52;12007:9;12001:16;12026:28;12048:5;12026:28;:::i;13152:489::-;-1:-1:-1;;;;;13421:15:1;;;13403:34;;13473:15;;13468:2;13453:18;;13446:43;13520:2;13505:18;;13498:34;;;13568:3;13563:2;13548:18;;13541:31;;;13346:4;;13589:46;;13615:19;;13607:6;13589:46;:::i;:::-;13581:54;13152:489;-1:-1:-1;;;;;;13152:489:1:o;13646:249::-;13715:6;13768:2;13756:9;13747:7;13743:23;13739:32;13736:52;;;13784:1;13781;13774:12;13736:52;13816:9;13810:16;13835:30;13859:5;13835:30;:::i
Swarm Source
ipfs://89a1a363e2d09c82722d9421c90c3db21e10ca60693c9f8ca3bfd70df5b841bc
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.