Overview
TokenID
1187
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Princess
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-08-10 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.9.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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.9.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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // 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.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: contracts/Princess.sol pragma solidity ^0.8.18; contract Princess is ERC721A, Ownable { error Paused(); error NotPublic(); error WhitelistEnd(); error NotWhitelisted(); error InsufficientFunds(); error ExceedsMaxSupply(); error ExceedsMaxPerUser(); using Strings for uint256; uint256 public _mintPricePublic = 0.0079 ether; uint256 public _mintPriceWl = 0.0069 ether; uint256 public _maxPerWallet = 5; uint256 public _maxSupply = 2023; bool public _paused = true; bool public whitelistMint = true; bytes32 private _MerkleRoot = 0xb7e57536d98568f93dab93e48c6564f48df9e878a30bac194bd174cab0d02257; string private baseURI; string private _baseExtension = ".json"; mapping(address => uint256) public _walletMintedCount; mapping(address => uint256) public _walletMintedCountWl; constructor( string memory _name, string memory _symbol, string memory _initBaseURI ) ERC721A(_name, _symbol) { setBaseURI(_initBaseURI); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // public mint function mint(uint256 _mintAmount) external payable { if (_paused) revert Paused(); if (totalSupply() + _mintAmount > _maxSupply) revert ExceedsMaxSupply(); if (msg.sender != owner()) { if (whitelistMint) revert NotPublic(); uint256 userMints = _walletMintedCount[msg.sender]; if (_mintAmount + userMints > _maxPerWallet) revert ExceedsMaxPerUser(); if (msg.value < _mintAmount * _mintPricePublic) revert InsufficientFunds(); } _walletMintedCount[msg.sender] += _mintAmount; _mint(msg.sender, _mintAmount); } function WLmint(bytes32[] calldata proof, uint256 _mintAmount) external payable { if (_paused) revert Paused(); if (totalSupply() + _mintAmount > _maxSupply) revert ExceedsMaxSupply(); if (!whitelistMint) revert WhitelistEnd(); uint256 wlMints = _walletMintedCountWl[msg.sender]; if (_mintAmount + wlMints > _maxPerWallet) revert ExceedsMaxPerUser(); if (msg.value < _mintAmount * _mintPriceWl) revert InsufficientFunds(); if (whitelistMint == true) { if (!MerkleProofLib.verify(proof, _MerkleRoot, _leaf())) revert NotWhitelisted(); } _walletMintedCountWl[msg.sender] += _mintAmount; _mint(msg.sender, _mintAmount); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, tokenId.toString(), _baseExtension ) ) : ""; } //only owner function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) external onlyOwner { _baseExtension = _newBaseExtension; } function pause(bool _state) external onlyOwner { _paused = _state; } function setOnlyWhitelisted(bool _state) external onlyOwner { whitelistMint = _state; } function setMaxPerWallet(uint256 _newMaxPerWallet) external onlyOwner { _maxPerWallet = _newMaxPerWallet; } function setMintPriceWl(uint256 _newMintPriceWl) external onlyOwner { _mintPriceWl = _newMintPriceWl; } function setMintPricePublic(uint256 _newMintPricePublic) external onlyOwner { _mintPricePublic = _newMintPricePublic; } function setMaxSupply(uint256 _newMaxSupply) external onlyOwner { _maxSupply = _newMaxSupply; } function setMerkleRoot(bytes32 _NewMerkleRoot) external onlyOwner { _MerkleRoot = _NewMerkleRoot; } function _leaf() internal view returns (bytes32) { return keccak256(abi.encodePacked(msg.sender)); } function withdrawAll() external onlyOwner { uint256 balance = address(this).balance; (bool os, ) = payable(owner()).call{value: balance}(""); require(os, "Withdrawal failed"); } } library MerkleProofLib { /// @dev Returns whether `leaf` exists in the Merkle tree with `root`, given `proof`. function verify( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool isValid) { /// @solidity memory-safe-assembly assembly { if proof.length { // Left shift by 5 is equivalent to multiplying by 0x20. let end := add(proof.offset, shl(5, proof.length)) // Initialize `offset` to the offset of `proof` in the calldata. let offset := proof.offset // Iterate over proof elements to compute root hash. // prettier-ignore for {} 1 {} { // Slot of `leaf` in scratch space. // If the condition is true: 0x20, otherwise: 0x00. let scratch := shl(5, gt(leaf, calldataload(offset))) // Store elements to hash contiguously in scratch space. // Scratch space is 64 bytes (0x00 - 0x3f) and both elements are 32 bytes. mstore(scratch, leaf) mstore(xor(scratch, 0x20), calldataload(offset)) // Reuse `leaf` to store the hash to reduce stack operations. leaf := keccak256(0x00, 0x40) offset := add(offset, 0x20) // prettier-ignore if iszero(lt(offset, end)) { break } } } isValid := eq(leaf, root) } } /// @dev Returns whether all `leafs` exist in the Merkle tree with `root`, /// given `proof` and `flags`. function verifyMultiProof( bytes32[] calldata proof, bytes32 root, bytes32[] calldata leafs, bool[] calldata flags ) internal pure returns (bool isValid) { // Rebuilds the root by consuming and producing values on a queue. // The queue starts with the `leafs` array, and goes into a `hashes` array. // After the process, the last element on the queue is verified // to be equal to the `root`. // // The `flags` array denotes whether the sibling // should be popped from the queue (`flag == true`), or // should be popped from the `proof` (`flag == false`). /// @solidity memory-safe-assembly assembly { // If the number of flags is correct. // prettier-ignore for {} eq(add(leafs.length, proof.length), add(flags.length, 1)) {} { // For the case where `proof.length + leafs.length == 1`. if iszero(flags.length) { // `isValid = (proof.length == 1 ? proof[0] : leafs[0]) == root`. isValid := eq( calldataload( xor(leafs.offset, mul(xor(proof.offset, leafs.offset), proof.length)) ), root ) break } // We can use the free memory space for the queue. // We don't need to allocate, since the queue is temporary. let hashesFront := mload(0x40) // Copy the leafs into the hashes. // Sometimes, a little memory expansion costs less than branching. // Should cost less, even with a high free memory offset of 0x7d00. // Left shift by 5 is equivalent to multiplying by 0x20. calldatacopy(hashesFront, leafs.offset, shl(5, leafs.length)) // Compute the back of the hashes. let hashesBack := add(hashesFront, shl(5, leafs.length)) // This is the end of the memory for the queue. // We recycle `flags.length` to save on stack variables // (this trick may not always save gas). flags.length := add(hashesBack, shl(5, flags.length)) // We don't need to make a copy of `proof.offset` or `flags.offset`, // as they are pass-by-value (this trick may not always save gas). // prettier-ignore for {} 1 {} { // Pop from `hashes`. let a := mload(hashesFront) // Pop from `hashes`. let b := mload(add(hashesFront, 0x20)) hashesFront := add(hashesFront, 0x40) // If the flag is false, load the next proof, // else, pops from the queue. if iszero(calldataload(flags.offset)) { // Loads the next proof. b := calldataload(proof.offset) proof.offset := add(proof.offset, 0x20) // Unpop from `hashes`. hashesFront := sub(hashesFront, 0x20) } // Advance to the next flag offset. flags.offset := add(flags.offset, 0x20) // Slot of `a` in scratch space. // If the condition is true: 0x20, otherwise: 0x00. let scratch := shl(5, gt(a, b)) // Hash the scratch space and push the result onto the queue. mstore(scratch, a) mstore(xor(scratch, 0x20), b) mstore(hashesBack, keccak256(0x00, 0x40)) hashesBack := add(hashesBack, 0x20) // prettier-ignore if iszero(lt(hashesBack, flags.length)) { break } } // Checks if the last value in the queue is same as the root. isValid := eq(mload(sub(hashesBack, 0x20)), root) break } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"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":"ExceedsMaxPerUser","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotPublic","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"Paused","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"},{"inputs":[],"name":"WhitelistEnd","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"WLmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"_maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintPricePublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintPriceWl","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_walletMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_walletMintedCountWl","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_NewMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintPricePublic","type":"uint256"}],"name":"setMintPricePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintPriceWl","type":"uint256"}],"name":"setMintPriceWl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","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":[],"name":"whitelistMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
661c110215b9c0006009556618838370f34000600a556005600b8190556107e7600c55600d805461ffff19166101011790557fb7e57536d98568f93dab93e48c6564f48df9e878a30bac194bd174cab0d02257600e5560c0604052608090815264173539b7b760d91b60a0526010906200007a908262000265565b503480156200008857600080fd5b506040516200208738038062002087833981016040819052620000ab91620003e0565b82826002620000bb838262000265565b506003620000ca828262000265565b5050600160005550620000dd33620000f1565b620000e88162000143565b50505062000471565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200014d6200015f565b600f6200015b828262000265565b5050565b6008546001600160a01b03163314620001be5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001eb57607f821691505b6020821081036200020c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200026057600081815260208120601f850160051c810160208610156200023b5750805b601f850160051c820191505b818110156200025c5782815560010162000247565b5050505b505050565b81516001600160401b03811115620002815762000281620001c0565b6200029981620002928454620001d6565b8462000212565b602080601f831160018114620002d15760008415620002b85750858301515b600019600386901b1c1916600185901b1785556200025c565b600085815260208120601f198616915b828110156200030257888601518255948401946001909101908401620002e1565b5085821015620003215787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f8301126200034357600080fd5b81516001600160401b0380821115620003605762000360620001c0565b604051601f8301601f19908116603f011681019082821181831017156200038b576200038b620001c0565b81604052838152602092508683858801011115620003a857600080fd5b600091505b83821015620003cc5785820183015181830184015290820190620003ad565b600093810190920192909252949350505050565b600080600060608486031215620003f657600080fd5b83516001600160401b03808211156200040e57600080fd5b6200041c8783880162000331565b945060208601519150808211156200043357600080fd5b620004418783880162000331565b935060408601519150808211156200045857600080fd5b50620004678682870162000331565b9150509250925092565b611c0680620004816000396000f3fe60806040526004361061021a5760003560e01c80636f8b44b01161012357806395d89b41116100ab578063c9321e871161006f578063c9321e87146105db578063da3ef23f146105f1578063e268e4d314610611578063e985e9c514610631578063f2fde38b1461065157600080fd5b806395d89b4114610560578063a0712d6814610575578063a22cb46514610588578063b88d4fde146105a8578063c87b56dd146105bb57600080fd5b80637cb64759116100f25780637cb64759146104d85780637fa8e5e4146104f8578063804f43cd1461050e578063853828b61461052d5780638da5cb5b1461054257600080fd5b80636f8b44b01461045657806370a0823114610476578063715018a61461049657806378331876146104ab57600080fd5b806323b872dd116101a657806342842e0e1161017557806342842e0e146103d0578063446ff4be146103e357806355f804b3146104035780636352211e146104235780636d08c3ae1461044357600080fd5b806323b872dd1461035a5780632847ae821461036d5780632d44a672146103835780633c952764146103b057600080fd5b8063081812fc116101ed578063081812fc146102b8578063095ea7b3146102f057806316c61ccc1461030357806318160ddd1461031d57806322f4596f1461034457600080fd5b806301ffc9a71461021f57806302329a2914610254578063060bbf981461027657806306fdde0314610296575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046115cc565b610671565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f3660046115fe565b6106c3565b005b34801561028257600080fd5b50610274610291366004611619565b6106de565b3480156102a257600080fd5b506102ab6106eb565b60405161024b9190611682565b3480156102c457600080fd5b506102d86102d3366004611619565b61077d565b6040516001600160a01b03909116815260200161024b565b6102746102fe3660046116ac565b6107c1565b34801561030f57600080fd5b50600d5461023f9060ff1681565b34801561032957600080fd5b5060015460005403600019015b60405190815260200161024b565b34801561035057600080fd5b50610336600c5481565b6102746103683660046116d6565b610861565b34801561037957600080fd5b5061033660095481565b34801561038f57600080fd5b5061033661039e366004611712565b60116020526000908152604090205481565b3480156103bc57600080fd5b506102746103cb3660046115fe565b6109fa565b6102746103de3660046116d6565b610a1c565b3480156103ef57600080fd5b506102746103fe366004611619565b610a3c565b34801561040f57600080fd5b5061027461041e3660046117b9565b610a49565b34801561042f57600080fd5b506102d861043e366004611619565b610a61565b610274610451366004611802565b610a6c565b34801561046257600080fd5b50610274610471366004611619565b610c0d565b34801561048257600080fd5b50610336610491366004611712565b610c1a565b3480156104a257600080fd5b50610274610c69565b3480156104b757600080fd5b506103366104c6366004611712565b60126020526000908152604090205481565b3480156104e457600080fd5b506102746104f3366004611619565b610c7d565b34801561050457600080fd5b50610336600b5481565b34801561051a57600080fd5b50600d5461023f90610100900460ff1681565b34801561053957600080fd5b50610274610c8a565b34801561054e57600080fd5b506008546001600160a01b03166102d8565b34801561056c57600080fd5b506102ab610d40565b610274610583366004611619565b610d4f565b34801561059457600080fd5b506102746105a336600461187d565b610e85565b6102746105b63660046118b0565b610ef1565b3480156105c757600080fd5b506102ab6105d6366004611619565b610f35565b3480156105e757600080fd5b50610336600a5481565b3480156105fd57600080fd5b5061027461060c3660046117b9565b611003565b34801561061d57600080fd5b5061027461062c366004611619565b611017565b34801561063d57600080fd5b5061023f61064c36600461192c565b611024565b34801561065d57600080fd5b5061027461066c366004611712565b611052565b60006301ffc9a760e01b6001600160e01b0319831614806106a257506380ac58cd60e01b6001600160e01b03198316145b806106bd5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6106cb6110c8565b600d805460ff1916911515919091179055565b6106e66110c8565b600a55565b6060600280546106fa90611956565b80601f016020809104026020016040519081016040528092919081815260200182805461072690611956565b80156107735780601f1061074857610100808354040283529160200191610773565b820191906000526020600020905b81548152906001019060200180831161075657829003601f168201915b5050505050905090565b600061078882611122565b6107a5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107cc82610a61565b9050336001600160a01b03821614610805576107e88133611024565b610805576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061086c82611157565b9050836001600160a01b0316816001600160a01b03161461089f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176108ec576108cf8633611024565b6108ec57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661091357604051633a954ecd60e21b815260040160405180910390fd5b801561091e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036109b0576001840160008181526004602052604081205490036109ae5760005481146109ae5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610a026110c8565b600d80549115156101000261ff0019909216919091179055565b610a3783838360405180602001604052806000815250610ef1565b505050565b610a446110c8565b600955565b610a516110c8565b600f610a5d82826119d6565b5050565b60006106bd82611157565b600d5460ff1615610a90576040516313d0ff5960e31b815260040160405180910390fd5b600c546001546000548391900360001901610aab9190611aac565b1115610aca5760405163c30436e960e01b815260040160405180910390fd5b600d54610100900460ff16610af25760405163b1db24c760e01b815260040160405180910390fd5b33600090815260126020526040902054600b54610b0f8284611aac565b1115610b2e576040516340aadc2b60e01b815260040160405180910390fd5b600a54610b3b9083611abf565b341015610b5b5760405163356680b760e01b815260040160405180910390fd5b600d54610100900460ff161515600103610bd857610bbb8484600e54610bb66040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905090565b6111c6565b610bd857604051630b094f2760e31b815260040160405180910390fd5b3360009081526012602052604081208054849290610bf7908490611aac565b90915550610c0790503383611200565b50505050565b610c156110c8565b600c55565b60006001600160a01b038216610c43576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610c716110c8565b610c7b60006112fe565b565b610c856110c8565b600e55565b610c926110c8565b476000610ca76008546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610cf1576040519150601f19603f3d011682016040523d82523d6000602084013e610cf6565b606091505b5050905080610a5d5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b60448201526064015b60405180910390fd5b6060600380546106fa90611956565b600d5460ff1615610d73576040516313d0ff5960e31b815260040160405180910390fd5b600c546001546000548391900360001901610d8e9190611aac565b1115610dad5760405163c30436e960e01b815260040160405180910390fd5b6008546001600160a01b03163314610e5357600d54610100900460ff1615610de857604051637002ac7160e11b815260040160405180910390fd5b33600090815260116020526040902054600b54610e058284611aac565b1115610e24576040516340aadc2b60e01b815260040160405180910390fd5b600954610e319083611abf565b341015610e515760405163356680b760e01b815260040160405180910390fd5b505b3360009081526011602052604081208054839290610e72908490611aac565b90915550610e8290503382611200565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610efc848484610861565b6001600160a01b0383163b15610c0757610f1884848484611350565b610c07576040516368d2bf6b60e11b815260040160405180910390fd5b6060610f4082611122565b610fa45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d37565b6000610fae61143c565b90506000815111610fce5760405180602001604052806000815250610ffc565b80610fd88461144b565b6010604051602001610fec93929190611ad6565b6040516020818303038152906040525b9392505050565b61100b6110c8565b6010610a5d82826119d6565b61101f6110c8565b600b55565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61105a6110c8565b6001600160a01b0381166110bf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d37565b610e82816112fe565b6008546001600160a01b03163314610c7b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d37565b600081600111158015611136575060005482105b80156106bd575050600090815260046020526040902054600160e01b161590565b600081806001116111ad576000548110156111ad5760008181526004602052604081205490600160e01b821690036111ab575b80600003610ffc57506000190160008181526004602052604090205461118a565b505b604051636f96cda160e11b815260040160405180910390fd5b600083156111f8578360051b8501855b803580851160051b948552602094851852604060002093018181106111d65750505b501492915050565b60008054908290036112255760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146112d457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161129c565b50816000036112f557604051622e076360e81b815260040160405180910390fd5b60005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611385903390899088908890600401611b76565b6020604051808303816000875af19250505080156113c0575060408051601f3d908101601f191682019092526113bd91810190611bb3565b60015b61141e573d8080156113ee576040519150601f19603f3d011682016040523d82523d6000602084013e6113f3565b606091505b508051600003611416576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f80546106fa90611956565b60606000611458836114de565b600101905060008167ffffffffffffffff8111156114785761147861172d565b6040519080825280601f01601f1916602001820160405280156114a2576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114ac57509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061151d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611549576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061156757662386f26fc10000830492506010015b6305f5e100831061157f576305f5e100830492506008015b612710831061159357612710830492506004015b606483106115a5576064830492506002015b600a83106106bd5760010192915050565b6001600160e01b031981168114610e8257600080fd5b6000602082840312156115de57600080fd5b8135610ffc816115b6565b803580151581146115f957600080fd5b919050565b60006020828403121561161057600080fd5b610ffc826115e9565b60006020828403121561162b57600080fd5b5035919050565b60005b8381101561164d578181015183820152602001611635565b50506000910152565b6000815180845261166e816020860160208601611632565b601f01601f19169290920160200192915050565b602081526000610ffc6020830184611656565b80356001600160a01b03811681146115f957600080fd5b600080604083850312156116bf57600080fd5b6116c883611695565b946020939093013593505050565b6000806000606084860312156116eb57600080fd5b6116f484611695565b925061170260208501611695565b9150604084013590509250925092565b60006020828403121561172457600080fd5b610ffc82611695565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561175e5761175e61172d565b604051601f8501601f19908116603f011681019082821181831017156117865761178661172d565b8160405280935085815286868601111561179f57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156117cb57600080fd5b813567ffffffffffffffff8111156117e257600080fd5b8201601f810184136117f357600080fd5b61143484823560208401611743565b60008060006040848603121561181757600080fd5b833567ffffffffffffffff8082111561182f57600080fd5b818601915086601f83011261184357600080fd5b81358181111561185257600080fd5b8760208260051b850101111561186757600080fd5b6020928301989097509590910135949350505050565b6000806040838503121561189057600080fd5b61189983611695565b91506118a7602084016115e9565b90509250929050565b600080600080608085870312156118c657600080fd5b6118cf85611695565b93506118dd60208601611695565b925060408501359150606085013567ffffffffffffffff81111561190057600080fd5b8501601f8101871361191157600080fd5b61192087823560208401611743565b91505092959194509250565b6000806040838503121561193f57600080fd5b61194883611695565b91506118a760208401611695565b600181811c9082168061196a57607f821691505b60208210810361198a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610a3757600081815260208120601f850160051c810160208610156119b75750805b601f850160051c820191505b818110156109f2578281556001016119c3565b815167ffffffffffffffff8111156119f0576119f061172d565b611a04816119fe8454611956565b84611990565b602080601f831160018114611a395760008415611a215750858301515b600019600386901b1c1916600185901b1785556109f2565b600085815260208120601f198616915b82811015611a6857888601518255948401946001909101908401611a49565b5085821015611a865787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156106bd576106bd611a96565b80820281158282048414176106bd576106bd611a96565b600084516020611ae98285838a01611632565b855191840191611afc8184848a01611632565b8554920191600090611b0d81611956565b60018281168015611b255760018114611b3a57611b66565b60ff1984168752821515830287019450611b66565b896000528560002060005b84811015611b5e57815489820152908301908701611b45565b505082870194505b50929a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ba990830184611656565b9695505050505050565b600060208284031215611bc557600080fd5b8151610ffc816115b656fea26469706673582212205f76aff0b2deceb3b2a03d3a7fc118b4edc266f77c0843288e699d5fa953472e64736f6c63430008120033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000085072696e63657373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696271703763767a73747570716b65343463716770636b6f37646d667474666a757269653773696762776d33737162696c36657a792f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80636f8b44b01161012357806395d89b41116100ab578063c9321e871161006f578063c9321e87146105db578063da3ef23f146105f1578063e268e4d314610611578063e985e9c514610631578063f2fde38b1461065157600080fd5b806395d89b4114610560578063a0712d6814610575578063a22cb46514610588578063b88d4fde146105a8578063c87b56dd146105bb57600080fd5b80637cb64759116100f25780637cb64759146104d85780637fa8e5e4146104f8578063804f43cd1461050e578063853828b61461052d5780638da5cb5b1461054257600080fd5b80636f8b44b01461045657806370a0823114610476578063715018a61461049657806378331876146104ab57600080fd5b806323b872dd116101a657806342842e0e1161017557806342842e0e146103d0578063446ff4be146103e357806355f804b3146104035780636352211e146104235780636d08c3ae1461044357600080fd5b806323b872dd1461035a5780632847ae821461036d5780632d44a672146103835780633c952764146103b057600080fd5b8063081812fc116101ed578063081812fc146102b8578063095ea7b3146102f057806316c61ccc1461030357806318160ddd1461031d57806322f4596f1461034457600080fd5b806301ffc9a71461021f57806302329a2914610254578063060bbf981461027657806306fdde0314610296575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046115cc565b610671565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f3660046115fe565b6106c3565b005b34801561028257600080fd5b50610274610291366004611619565b6106de565b3480156102a257600080fd5b506102ab6106eb565b60405161024b9190611682565b3480156102c457600080fd5b506102d86102d3366004611619565b61077d565b6040516001600160a01b03909116815260200161024b565b6102746102fe3660046116ac565b6107c1565b34801561030f57600080fd5b50600d5461023f9060ff1681565b34801561032957600080fd5b5060015460005403600019015b60405190815260200161024b565b34801561035057600080fd5b50610336600c5481565b6102746103683660046116d6565b610861565b34801561037957600080fd5b5061033660095481565b34801561038f57600080fd5b5061033661039e366004611712565b60116020526000908152604090205481565b3480156103bc57600080fd5b506102746103cb3660046115fe565b6109fa565b6102746103de3660046116d6565b610a1c565b3480156103ef57600080fd5b506102746103fe366004611619565b610a3c565b34801561040f57600080fd5b5061027461041e3660046117b9565b610a49565b34801561042f57600080fd5b506102d861043e366004611619565b610a61565b610274610451366004611802565b610a6c565b34801561046257600080fd5b50610274610471366004611619565b610c0d565b34801561048257600080fd5b50610336610491366004611712565b610c1a565b3480156104a257600080fd5b50610274610c69565b3480156104b757600080fd5b506103366104c6366004611712565b60126020526000908152604090205481565b3480156104e457600080fd5b506102746104f3366004611619565b610c7d565b34801561050457600080fd5b50610336600b5481565b34801561051a57600080fd5b50600d5461023f90610100900460ff1681565b34801561053957600080fd5b50610274610c8a565b34801561054e57600080fd5b506008546001600160a01b03166102d8565b34801561056c57600080fd5b506102ab610d40565b610274610583366004611619565b610d4f565b34801561059457600080fd5b506102746105a336600461187d565b610e85565b6102746105b63660046118b0565b610ef1565b3480156105c757600080fd5b506102ab6105d6366004611619565b610f35565b3480156105e757600080fd5b50610336600a5481565b3480156105fd57600080fd5b5061027461060c3660046117b9565b611003565b34801561061d57600080fd5b5061027461062c366004611619565b611017565b34801561063d57600080fd5b5061023f61064c36600461192c565b611024565b34801561065d57600080fd5b5061027461066c366004611712565b611052565b60006301ffc9a760e01b6001600160e01b0319831614806106a257506380ac58cd60e01b6001600160e01b03198316145b806106bd5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6106cb6110c8565b600d805460ff1916911515919091179055565b6106e66110c8565b600a55565b6060600280546106fa90611956565b80601f016020809104026020016040519081016040528092919081815260200182805461072690611956565b80156107735780601f1061074857610100808354040283529160200191610773565b820191906000526020600020905b81548152906001019060200180831161075657829003601f168201915b5050505050905090565b600061078882611122565b6107a5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107cc82610a61565b9050336001600160a01b03821614610805576107e88133611024565b610805576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061086c82611157565b9050836001600160a01b0316816001600160a01b03161461089f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176108ec576108cf8633611024565b6108ec57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661091357604051633a954ecd60e21b815260040160405180910390fd5b801561091e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036109b0576001840160008181526004602052604081205490036109ae5760005481146109ae5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610a026110c8565b600d80549115156101000261ff0019909216919091179055565b610a3783838360405180602001604052806000815250610ef1565b505050565b610a446110c8565b600955565b610a516110c8565b600f610a5d82826119d6565b5050565b60006106bd82611157565b600d5460ff1615610a90576040516313d0ff5960e31b815260040160405180910390fd5b600c546001546000548391900360001901610aab9190611aac565b1115610aca5760405163c30436e960e01b815260040160405180910390fd5b600d54610100900460ff16610af25760405163b1db24c760e01b815260040160405180910390fd5b33600090815260126020526040902054600b54610b0f8284611aac565b1115610b2e576040516340aadc2b60e01b815260040160405180910390fd5b600a54610b3b9083611abf565b341015610b5b5760405163356680b760e01b815260040160405180910390fd5b600d54610100900460ff161515600103610bd857610bbb8484600e54610bb66040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905090565b6111c6565b610bd857604051630b094f2760e31b815260040160405180910390fd5b3360009081526012602052604081208054849290610bf7908490611aac565b90915550610c0790503383611200565b50505050565b610c156110c8565b600c55565b60006001600160a01b038216610c43576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610c716110c8565b610c7b60006112fe565b565b610c856110c8565b600e55565b610c926110c8565b476000610ca76008546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610cf1576040519150601f19603f3d011682016040523d82523d6000602084013e610cf6565b606091505b5050905080610a5d5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b60448201526064015b60405180910390fd5b6060600380546106fa90611956565b600d5460ff1615610d73576040516313d0ff5960e31b815260040160405180910390fd5b600c546001546000548391900360001901610d8e9190611aac565b1115610dad5760405163c30436e960e01b815260040160405180910390fd5b6008546001600160a01b03163314610e5357600d54610100900460ff1615610de857604051637002ac7160e11b815260040160405180910390fd5b33600090815260116020526040902054600b54610e058284611aac565b1115610e24576040516340aadc2b60e01b815260040160405180910390fd5b600954610e319083611abf565b341015610e515760405163356680b760e01b815260040160405180910390fd5b505b3360009081526011602052604081208054839290610e72908490611aac565b90915550610e8290503382611200565b50565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610efc848484610861565b6001600160a01b0383163b15610c0757610f1884848484611350565b610c07576040516368d2bf6b60e11b815260040160405180910390fd5b6060610f4082611122565b610fa45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d37565b6000610fae61143c565b90506000815111610fce5760405180602001604052806000815250610ffc565b80610fd88461144b565b6010604051602001610fec93929190611ad6565b6040516020818303038152906040525b9392505050565b61100b6110c8565b6010610a5d82826119d6565b61101f6110c8565b600b55565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61105a6110c8565b6001600160a01b0381166110bf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d37565b610e82816112fe565b6008546001600160a01b03163314610c7b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d37565b600081600111158015611136575060005482105b80156106bd575050600090815260046020526040902054600160e01b161590565b600081806001116111ad576000548110156111ad5760008181526004602052604081205490600160e01b821690036111ab575b80600003610ffc57506000190160008181526004602052604090205461118a565b505b604051636f96cda160e11b815260040160405180910390fd5b600083156111f8578360051b8501855b803580851160051b948552602094851852604060002093018181106111d65750505b501492915050565b60008054908290036112255760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146112d457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161129c565b50816000036112f557604051622e076360e81b815260040160405180910390fd5b60005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611385903390899088908890600401611b76565b6020604051808303816000875af19250505080156113c0575060408051601f3d908101601f191682019092526113bd91810190611bb3565b60015b61141e573d8080156113ee576040519150601f19603f3d011682016040523d82523d6000602084013e6113f3565b606091505b508051600003611416576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f80546106fa90611956565b60606000611458836114de565b600101905060008167ffffffffffffffff8111156114785761147861172d565b6040519080825280601f01601f1916602001820160405280156114a2576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114ac57509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061151d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611549576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061156757662386f26fc10000830492506010015b6305f5e100831061157f576305f5e100830492506008015b612710831061159357612710830492506004015b606483106115a5576064830492506002015b600a83106106bd5760010192915050565b6001600160e01b031981168114610e8257600080fd5b6000602082840312156115de57600080fd5b8135610ffc816115b6565b803580151581146115f957600080fd5b919050565b60006020828403121561161057600080fd5b610ffc826115e9565b60006020828403121561162b57600080fd5b5035919050565b60005b8381101561164d578181015183820152602001611635565b50506000910152565b6000815180845261166e816020860160208601611632565b601f01601f19169290920160200192915050565b602081526000610ffc6020830184611656565b80356001600160a01b03811681146115f957600080fd5b600080604083850312156116bf57600080fd5b6116c883611695565b946020939093013593505050565b6000806000606084860312156116eb57600080fd5b6116f484611695565b925061170260208501611695565b9150604084013590509250925092565b60006020828403121561172457600080fd5b610ffc82611695565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561175e5761175e61172d565b604051601f8501601f19908116603f011681019082821181831017156117865761178661172d565b8160405280935085815286868601111561179f57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156117cb57600080fd5b813567ffffffffffffffff8111156117e257600080fd5b8201601f810184136117f357600080fd5b61143484823560208401611743565b60008060006040848603121561181757600080fd5b833567ffffffffffffffff8082111561182f57600080fd5b818601915086601f83011261184357600080fd5b81358181111561185257600080fd5b8760208260051b850101111561186757600080fd5b6020928301989097509590910135949350505050565b6000806040838503121561189057600080fd5b61189983611695565b91506118a7602084016115e9565b90509250929050565b600080600080608085870312156118c657600080fd5b6118cf85611695565b93506118dd60208601611695565b925060408501359150606085013567ffffffffffffffff81111561190057600080fd5b8501601f8101871361191157600080fd5b61192087823560208401611743565b91505092959194509250565b6000806040838503121561193f57600080fd5b61194883611695565b91506118a760208401611695565b600181811c9082168061196a57607f821691505b60208210810361198a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610a3757600081815260208120601f850160051c810160208610156119b75750805b601f850160051c820191505b818110156109f2578281556001016119c3565b815167ffffffffffffffff8111156119f0576119f061172d565b611a04816119fe8454611956565b84611990565b602080601f831160018114611a395760008415611a215750858301515b600019600386901b1c1916600185901b1785556109f2565b600085815260208120601f198616915b82811015611a6857888601518255948401946001909101908401611a49565b5085821015611a865787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156106bd576106bd611a96565b80820281158282048414176106bd576106bd611a96565b600084516020611ae98285838a01611632565b855191840191611afc8184848a01611632565b8554920191600090611b0d81611956565b60018281168015611b255760018114611b3a57611b66565b60ff1984168752821515830287019450611b66565b896000528560002060005b84811015611b5e57815489820152908301908701611b45565b505082870194505b50929a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ba990830184611656565b9695505050505050565b600060208284031215611bc557600080fd5b8151610ffc816115b656fea26469706673582212205f76aff0b2deceb3b2a03d3a7fc118b4edc266f77c0843288e699d5fa953472e64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000085072696e63657373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696271703763767a73747570716b65343463716770636b6f37646d667474666a757269653773696762776d33737162696c36657a792f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Princess
Arg [1] : _symbol (string): P
Arg [2] : _initBaseURI (string): ipfs://bafybeibqp7cvzstupqke44cqgpcko7dmfttfjurie7sigbwm3sqbil6ezy/
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 5072696e63657373000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 5000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [8] : 697066733a2f2f626166796265696271703763767a73747570716b6534346371
Arg [9] : 6770636b6f37646d667474666a757269653773696762776d33737162696c3665
Arg [10] : 7a792f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
72451:4775:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39347:639;;;;;;;;;;-1:-1:-1;39347:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;39347:639:0;;;;;;;;76035:82;;;;;;;;;;-1:-1:-1;76035:82:0;;;;;:::i;:::-;;:::i;:::-;;76363:117;;;;;;;;;;-1:-1:-1;76363:117:0;;;;;:::i;:::-;;:::i;40249:100::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;46740:218::-;;;;;;;;;;-1:-1:-1;46740:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2047:32:1;;;2029:51;;2017:2;2002:18;46740:218:0;1883:203:1;46173:408:0;;;;;;:::i;:::-;;:::i;72906:26::-;;;;;;;;;;-1:-1:-1;72906:26:0;;;;;;;;36000:323;;;;;;;;;;-1:-1:-1;35599:1:0;36274:12;36061:7;36258:13;:28;-1:-1:-1;;36258:46:0;36000:323;;;2674:25:1;;;2662:2;2647:18;36000:323:0;2528:177:1;72867:32:0;;;;;;;;;;;;;;;;50379:2825;;;;;;:::i;:::-;;:::i;72726:46::-;;;;;;;;;;;;;;;;73165:53;;;;;;;;;;-1:-1:-1;73165:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;76125:101;;;;;;;;;;-1:-1:-1;76125:101:0;;;;;:::i;:::-;;:::i;53300:193::-;;;;;;:::i;:::-;;:::i;76488:156::-;;;;;;;;;;-1:-1:-1;76488:156:0;;;;;:::i;:::-;;:::i;75761:104::-;;;;;;;;;;-1:-1:-1;75761:104:0;;;;;:::i;:::-;;:::i;41642:152::-;;;;;;;;;;-1:-1:-1;41642:152:0;;;;;:::i;:::-;;:::i;74304:776::-;;;;;;:::i;:::-;;:::i;76652:109::-;;;;;;;;;;-1:-1:-1;76652:109:0;;;;;:::i;:::-;;:::i;37184:233::-;;;;;;;;;;-1:-1:-1;37184:233:0;;;;;:::i;:::-;;:::i;20126:103::-;;;;;;;;;;;;;:::i;73225:55::-;;;;;;;;;;-1:-1:-1;73225:55:0;;;;;:::i;:::-;;;;;;;;;;;;;;76769:113;;;;;;;;;;-1:-1:-1;76769:113:0;;;;;:::i;:::-;;:::i;72828:32::-;;;;;;;;;;;;;;;;72939;;;;;;;;;;-1:-1:-1;72939:32:0;;;;;;;;;;;77012:211;;;;;;;;;;;;;:::i;19485:87::-;;;;;;;;;;-1:-1:-1;19558:6:0;;-1:-1:-1;;;;;19558:6:0;19485:87;;40425:104;;;;;;;;;;;;;:::i;73635:661::-;;;;;;:::i;:::-;;:::i;47298:234::-;;;;;;;;;;-1:-1:-1;47298:234:0;;;;;:::i;:::-;;:::i;54091:407::-;;;;;;:::i;:::-;;:::i;75092:643::-;;;;;;;;;;-1:-1:-1;75092:643:0;;;;;:::i;:::-;;:::i;72779:42::-;;;;;;;;;;;;;;;;75873:154;;;;;;;;;;-1:-1:-1;75873:154:0;;;;;:::i;:::-;;:::i;76234:121::-;;;;;;;;;;-1:-1:-1;76234:121:0;;;;;:::i;:::-;;:::i;47689:164::-;;;;;;;;;;-1:-1:-1;47689:164:0;;;;;:::i;:::-;;:::i;20384:201::-;;;;;;;;;;-1:-1:-1;20384:201:0;;;;;:::i;:::-;;:::i;39347:639::-;39432:4;-1:-1:-1;;;;;;;;;39756:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;39833:25:0;;;39756:102;:179;;;-1:-1:-1;;;;;;;;;;39910:25:0;;;39756:179;39736:199;39347:639;-1:-1:-1;;39347:639:0:o;76035:82::-;19371:13;:11;:13::i;:::-;76093:7:::1;:16:::0;;-1:-1:-1;;76093:16:0::1;::::0;::::1;;::::0;;;::::1;::::0;;76035:82::o;76363:117::-;19371:13;:11;:13::i;:::-;76442:12:::1;:30:::0;76363:117::o;40249:100::-;40303:13;40336:5;40329:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40249:100;:::o;46740:218::-;46816:7;46841:16;46849:7;46841;:16::i;:::-;46836:64;;46866:34;;-1:-1:-1;;;46866:34:0;;;;;;;;;;;46836:64;-1:-1:-1;46920:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;46920:30:0;;46740:218::o;46173:408::-;46262:13;46278:16;46286:7;46278;:16::i;:::-;46262:32;-1:-1:-1;70506:10:0;-1:-1:-1;;;;;46311:28:0;;;46307:175;;46359:44;46376:5;70506:10;47689:164;:::i;46359:44::-;46354:128;;46431:35;;-1:-1:-1;;;46431:35:0;;;;;;;;;;;46354:128;46494:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;46494:35:0;-1:-1:-1;;;;;46494:35:0;;;;;;;;;46545:28;;46494:24;;46545:28;;;;;;;46251:330;46173:408;;:::o;50379:2825::-;50521:27;50551;50570:7;50551:18;:27::i;:::-;50521:57;;50636:4;-1:-1:-1;;;;;50595:45:0;50611:19;-1:-1:-1;;;;;50595:45:0;;50591:86;;50649:28;;-1:-1:-1;;;50649:28:0;;;;;;;;;;;50591:86;50691:27;49487:24;;;:15;:24;;;;;49715:26;;70506:10;49112:30;;;-1:-1:-1;;;;;48805:28:0;;49090:20;;;49087:56;50877:180;;50970:43;50987:4;70506:10;47689:164;:::i;50970:43::-;50965:92;;51022:35;;-1:-1:-1;;;51022:35:0;;;;;;;;;;;50965:92;-1:-1:-1;;;;;51074:16:0;;51070:52;;51099:23;;-1:-1:-1;;;51099:23:0;;;;;;;;;;;51070:52;51271:15;51268:160;;;51411:1;51390:19;51383:30;51268:160;-1:-1:-1;;;;;51808:24:0;;;;;;;:18;:24;;;;;;51806:26;;-1:-1:-1;;51806:26:0;;;51877:22;;;;;;;;;51875:24;;-1:-1:-1;51875:24:0;;;45031:11;45006:23;45002:41;44989:63;-1:-1:-1;;;44989:63:0;52170:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;52465:47:0;;:52;;52461:627;;52570:1;52560:11;;52538:19;52693:30;;;:17;:30;;;;;;:35;;52689:384;;52831:13;;52816:11;:28;52812:242;;52978:30;;;;:17;:30;;;;;:52;;;52812:242;52519:569;52461:627;53135:7;53131:2;-1:-1:-1;;;;;53116:27:0;53125:4;-1:-1:-1;;;;;53116:27:0;;;;;;;;;;;53154:42;50510:2694;;;50379:2825;;;:::o;76125:101::-;19371:13;:11;:13::i;:::-;76196::::1;:22:::0;;;::::1;;;;-1:-1:-1::0;;76196:22:0;;::::1;::::0;;;::::1;::::0;;76125:101::o;53300:193::-;53446:39;53463:4;53469:2;53473:7;53446:39;;;;;;;;;;;;:16;:39::i;:::-;53300:193;;;:::o;76488:156::-;19371:13;:11;:13::i;:::-;76598:16:::1;:38:::0;76488:156::o;75761:104::-;19371:13;:11;:13::i;:::-;75836:7:::1;:21;75846:11:::0;75836:7;:21:::1;:::i;:::-;;75761:104:::0;:::o;41642:152::-;41714:7;41757:27;41776:7;41757:18;:27::i;74304:776::-;74422:7;;;;74418:28;;;74438:8;;-1:-1:-1;;;74438:8:0;;;;;;;;;;;74418:28;74491:10;;35599:1;36274:12;36061:7;36258:13;74477:11;;36258:28;;-1:-1:-1;;36258:46:0;74461:27;;;;:::i;:::-;:40;74457:71;;;74510:18;;-1:-1:-1;;;74510:18:0;;;;;;;;;;;74457:71;74546:13;;;;;;;74541:41;;74568:14;;-1:-1:-1;;;74568:14:0;;;;;;;;;;;74541:41;74634:10;74595:15;74613:32;;;:20;:32;;;;;;74684:13;;74660:21;74613:32;74660:11;:21;:::i;:::-;:37;74656:69;;;74706:19;;-1:-1:-1;;;74706:19:0;;;;;;;;;;;74656:69;74768:12;;74754:26;;:11;:26;:::i;:::-;74742:9;:38;74738:70;;;74789:19;;-1:-1:-1;;;74789:19:0;;;;;;;;;;;74738:70;74825:13;;;;;;;:21;;:13;:21;74821:151;;74868:50;74890:5;;74897:11;;74910:7;76967:28;;-1:-1:-1;;76984:10:0;12708:2:1;12704:15;12700:53;76967:28:0;;;12688:66:1;76930:7:0;;12770:12:1;;76967:28:0;;;;;;;;;;;;76957:39;;;;;;76950:46;;76890:114;;74910:7;74868:21;:50::i;:::-;74863:97;;74944:16;;-1:-1:-1;;;74944:16:0;;;;;;;;;;;74863:97;75005:10;74984:32;;;;:20;:32;;;;;:47;;75020:11;;74984:32;:47;;75020:11;;74984:47;:::i;:::-;;;;-1:-1:-1;75042:30:0;;-1:-1:-1;75048:10:0;75060:11;75042:5;:30::i;:::-;74407:673;74304:776;;;:::o;76652:109::-;19371:13;:11;:13::i;:::-;76727:10:::1;:26:::0;76652:109::o;37184:233::-;37256:7;-1:-1:-1;;;;;37280:19:0;;37276:60;;37308:28;;-1:-1:-1;;;37308:28:0;;;;;;;;;;;37276:60;-1:-1:-1;;;;;;37354:25:0;;;;;:18;:25;;;;;;31343:13;37354:55;;37184:233::o;20126:103::-;19371:13;:11;:13::i;:::-;20191:30:::1;20218:1;20191:18;:30::i;:::-;20126:103::o:0;76769:113::-;19371:13;:11;:13::i;:::-;76846:11:::1;:28:::0;76769:113::o;77012:211::-;19371:13;:11;:13::i;:::-;77083:21:::1;77065:15;77139:7;19558:6:::0;;-1:-1:-1;;;;;19558:6:0;;19485:87;77139:7:::1;-1:-1:-1::0;;;;;77131:21:0::1;77160:7;77131:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77117:55;;;77191:2;77183:32;;;::::0;-1:-1:-1;;;77183:32:0;;9970:2:1;77183:32:0::1;::::0;::::1;9952:21:1::0;10009:2;9989:18;;;9982:30;-1:-1:-1;;;10028:18:1;;;10021:47;10085:18;;77183:32:0::1;;;;;;;;40425:104:::0;40481:13;40514:7;40507:14;;;;;:::i;73635:661::-;73702:7;;;;73698:28;;;73718:8;;-1:-1:-1;;;73718:8:0;;;;;;;;;;;73698:28;73771:10;;35599:1;36274:12;36061:7;36258:13;73757:11;;36258:28;;-1:-1:-1;;36258:46:0;73741:27;;;;:::i;:::-;:40;73737:71;;;73790:18;;-1:-1:-1;;;73790:18:0;;;;;;;;;;;73737:71;19558:6;;-1:-1:-1;;;;;19558:6:0;73825:10;:21;73821:369;;73867:13;;;;;;;73863:37;;;73889:11;;-1:-1:-1;;;73889:11:0;;;;;;;;;;;73863:37;73956:10;73917:17;73937:30;;;:18;:30;;;;;;74012:13;;73986:23;73937:30;73986:11;:23;:::i;:::-;:39;73982:88;;;74051:19;;-1:-1:-1;;;74051:19:0;;;;;;;;;;;73982:88;74117:16;;74103:30;;:11;:30;:::i;:::-;74091:9;:42;74087:91;;;74159:19;;-1:-1:-1;;;74159:19:0;;;;;;;;;;;74087:91;73848:342;73821:369;74221:10;74202:30;;;;:18;:30;;;;;:45;;74236:11;;74202:30;:45;;74236:11;;74202:45;:::i;:::-;;;;-1:-1:-1;74258:30:0;;-1:-1:-1;74264:10:0;74276:11;74258:5;:30::i;:::-;73635:661;:::o;47298:234::-;70506:10;47393:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;47393:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;47393:60:0;;;;;;;;;;47469:55;;540:41:1;;;47393:49:0;;70506:10;47469:55;;513:18:1;47469:55:0;;;;;;;47298:234;;:::o;54091:407::-;54266:31;54279:4;54285:2;54289:7;54266:12;:31::i;:::-;-1:-1:-1;;;;;54312:14:0;;;:19;54308:183;;54351:56;54382:4;54388:2;54392:7;54401:5;54351:30;:56::i;:::-;54346:145;;54435:40;;-1:-1:-1;;;54435:40:0;;;;;;;;;;;75092:643;75210:13;75263:16;75271:7;75263;:16::i;:::-;75241:113;;;;-1:-1:-1;;;75241:113:0;;10316:2:1;75241:113:0;;;10298:21:1;10355:2;10335:18;;;10328:30;10394:34;10374:18;;;10367:62;-1:-1:-1;;;10445:18:1;;;10438:45;10500:19;;75241:113:0;10114:411:1;75241:113:0;75367:28;75398:10;:8;:10::i;:::-;75367:41;;75470:1;75445:14;75439:28;:32;:288;;;;;;;;;;;;;;;;;75563:14;75604:18;:7;:16;:18::i;:::-;75649:14;75520:166;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;75439:288;75419:308;75092:643;-1:-1:-1;;;75092:643:0:o;75873:154::-;19371:13;:11;:13::i;:::-;75985:14:::1;:34;76002:17:::0;75985:14;:34:::1;:::i;76234:121::-:0;19371:13;:11;:13::i;:::-;76315::::1;:32:::0;76234:121::o;47689:164::-;-1:-1:-1;;;;;47810:25:0;;;47786:4;47810:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;47689:164::o;20384:201::-;19371:13;:11;:13::i;:::-;-1:-1:-1;;;;;20473:22:0;::::1;20465:73;;;::::0;-1:-1:-1;;;20465:73:0;;11993:2:1;20465:73:0::1;::::0;::::1;11975:21:1::0;12032:2;12012:18;;;12005:30;12071:34;12051:18;;;12044:62;-1:-1:-1;;;12122:18:1;;;12115:36;12168:19;;20465:73:0::1;11791:402:1::0;20465:73:0::1;20549:28;20568:8;20549:18;:28::i;19650:132::-:0;19558:6;;-1:-1:-1;;;;;19558:6:0;70506:10;19714:23;19706:68;;;;-1:-1:-1;;;19706:68:0;;12400:2:1;19706:68:0;;;12382:21:1;;;12419:18;;;12412:30;12478:34;12458:18;;;12451:62;12530:18;;19706:68:0;12198:356:1;48111:282:0;48176:4;48232:7;35599:1;48213:26;;:66;;;;;48266:13;;48256:7;:23;48213:66;:153;;;;-1:-1:-1;;48317:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;48317:44:0;:49;;48111:282::o;42797:1275::-;42864:7;42899;;35599:1;42948:23;42944:1061;;43001:13;;42994:4;:20;42990:1015;;;43039:14;43056:23;;;:17;:23;;;;;;;-1:-1:-1;;;43145:24:0;;:29;;43141:845;;43810:113;43817:6;43827:1;43817:11;43810:113;;-1:-1:-1;;;43888:6:0;43870:25;;;;:17;:25;;;;;;43810:113;;43141:845;43016:989;42990:1015;44033:31;;-1:-1:-1;;;44033:31:0;;;;;;;;;;;77351:1506;77478:12;77574;77571:1229;;;77716:12;77713:1;77709:20;77695:12;77691:39;77844:12;77980:805;78176:20;;78167:30;;;78164:1;78160:38;78394:21;;;78457:4;78444:18;;;78437:48;78614:4;78608;78598:21;;78651:17;78740:15;;;77980:805;78730:36;77984:2;;77571:1229;-1:-1:-1;78825:14:0;;77351:1506;-1:-1:-1;;77351:1506:0:o;57760:2966::-;57833:20;57856:13;;;57884;;;57880:44;;57906:18;;-1:-1:-1;;;57906:18:0;;;;;;;;;;;57880:44;-1:-1:-1;;;;;58412:22:0;;;;;;:18;:22;;;;31481:2;58412:22;;;:71;;58450:32;58438:45;;58412:71;;;58726:31;;;:17;:31;;;;;-1:-1:-1;45462:15:0;;45436:24;45432:46;45031:11;45006:23;45002:41;44999:52;44989:63;;58726:173;;58961:23;;;;58726:31;;58412:22;;59726:25;58412:22;;59579:335;60240:1;60226:12;60222:20;60180:346;60281:3;60272:7;60269:16;60180:346;;60499:7;60489:8;60486:1;60459:25;60456:1;60453;60448:59;60334:1;60321:15;60180:346;;;60184:77;60559:8;60571:1;60559:13;60555:45;;60581:19;;-1:-1:-1;;;60581:19:0;;;;;;;;;;;60555:45;60617:13;:19;-1:-1:-1;53300:193:0;;;:::o;20745:191::-;20838:6;;;-1:-1:-1;;;;;20855:17:0;;;-1:-1:-1;;;;;;20855:17:0;;;;;;;20888:40;;20838:6;;;20855:17;20838:6;;20888:40;;20819:16;;20888:40;20808:128;20745:191;:::o;56582:716::-;56766:88;;-1:-1:-1;;;56766:88:0;;56745:4;;-1:-1:-1;;;;;56766:45:0;;;;;:88;;70506:10;;56833:4;;56839:7;;56848:5;;56766:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56766:88:0;;;;;;;;-1:-1:-1;;56766:88:0;;;;;;;;;;;;:::i;:::-;;;56762:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57049:6;:13;57066:1;57049:18;57045:235;;57095:40;;-1:-1:-1;;;57095:40:0;;;;;;;;;;;57045:235;57238:6;57232:13;57223:6;57219:2;57215:15;57208:38;56762:529;-1:-1:-1;;;;;;56925:64:0;-1:-1:-1;;;56925:64:0;;-1:-1:-1;56762:529:0;56582:716;;;;;;:::o;73499:108::-;73559:13;73592:7;73585:14;;;;;:::i;14955:716::-;15011:13;15062:14;15079:17;15090:5;15079:10;:17::i;:::-;15099:1;15079:21;15062:38;;15115:20;15149:6;15138:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15138:18:0;-1:-1:-1;15115:41:0;-1:-1:-1;15280:28:0;;;15296:2;15280:28;15337:288;-1:-1:-1;;15369:5:0;-1:-1:-1;;;15506:2:0;15495:14;;15490:30;15369:5;15477:44;15567:2;15558:11;;;-1:-1:-1;15588:21:0;15337:288;15588:21;-1:-1:-1;15646:6:0;14955:716;-1:-1:-1;;;14955:716:0:o;11789:948::-;11842:7;;-1:-1:-1;;;11920:17:0;;11916:106;;-1:-1:-1;;;11958:17:0;;;-1:-1:-1;12004:2:0;11994:12;11916:106;12049:8;12040:5;:17;12036:106;;12087:8;12078:17;;;-1:-1:-1;12124:2:0;12114:12;12036:106;12169:8;12160:5;:17;12156:106;;12207:8;12198:17;;;-1:-1:-1;12244:2:0;12234:12;12156:106;12289:7;12280:5;:16;12276:103;;12326:7;12317:16;;;-1:-1:-1;12362:1:0;12352:11;12276:103;12406:7;12397:5;:16;12393:103;;12443:7;12434:16;;;-1:-1:-1;12479:1:0;12469:11;12393:103;12523:7;12514:5;:16;12510:103;;12560:7;12551:16;;;-1:-1:-1;12596:1:0;12586:11;12510:103;12640:7;12631:5;:16;12627:68;;12678:1;12668:11;12723:6;11789:948;-1:-1:-1;;11789:948: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:160::-;657:20;;713:13;;706:21;696:32;;686:60;;742:1;739;732:12;686:60;592:160;;;:::o;757:180::-;813:6;866:2;854:9;845:7;841:23;837:32;834:52;;;882:1;879;872:12;834:52;905:26;921:9;905:26;:::i;942:180::-;1001:6;1054:2;1042:9;1033:7;1029:23;1025:32;1022:52;;;1070:1;1067;1060:12;1022:52;-1:-1:-1;1093:23:1;;942:180;-1:-1:-1;942:180:1:o;1127:250::-;1212:1;1222:113;1236:6;1233:1;1230:13;1222:113;;;1312:11;;;1306:18;1293:11;;;1286:39;1258:2;1251:10;1222:113;;;-1:-1:-1;;1369:1:1;1351:16;;1344:27;1127:250::o;1382:271::-;1424:3;1462:5;1456:12;1489:6;1484:3;1477:19;1505:76;1574:6;1567:4;1562:3;1558:14;1551:4;1544:5;1540:16;1505:76;:::i;:::-;1635:2;1614:15;-1:-1:-1;;1610:29:1;1601:39;;;;1642:4;1597:50;;1382:271;-1:-1:-1;;1382:271:1:o;1658:220::-;1807:2;1796:9;1789:21;1770:4;1827:45;1868:2;1857:9;1853:18;1845:6;1827:45;:::i;2091:173::-;2159:20;;-1:-1:-1;;;;;2208:31:1;;2198:42;;2188:70;;2254:1;2251;2244:12;2269:254;2337:6;2345;2398:2;2386:9;2377:7;2373:23;2369:32;2366:52;;;2414:1;2411;2404:12;2366:52;2437:29;2456:9;2437:29;:::i;:::-;2427:39;2513:2;2498:18;;;;2485:32;;-1:-1:-1;;;2269:254:1:o;2710:328::-;2787:6;2795;2803;2856:2;2844:9;2835:7;2831:23;2827:32;2824:52;;;2872:1;2869;2862:12;2824:52;2895:29;2914:9;2895:29;:::i;:::-;2885:39;;2943:38;2977:2;2966:9;2962:18;2943:38;:::i;:::-;2933:48;;3028:2;3017:9;3013:18;3000:32;2990:42;;2710:328;;;;;:::o;3043:186::-;3102:6;3155:2;3143:9;3134:7;3130:23;3126:32;3123:52;;;3171:1;3168;3161:12;3123:52;3194:29;3213:9;3194:29;:::i;3234:127::-;3295:10;3290:3;3286:20;3283:1;3276:31;3326:4;3323:1;3316:15;3350:4;3347:1;3340:15;3366:632;3431:5;3461:18;3502:2;3494:6;3491:14;3488:40;;;3508:18;;:::i;:::-;3583:2;3577:9;3551:2;3637:15;;-1:-1:-1;;3633:24:1;;;3659:2;3629:33;3625:42;3613:55;;;3683:18;;;3703:22;;;3680:46;3677:72;;;3729:18;;:::i;:::-;3769:10;3765:2;3758:22;3798:6;3789:15;;3828:6;3820;3813:22;3868:3;3859:6;3854:3;3850:16;3847:25;3844:45;;;3885:1;3882;3875:12;3844:45;3935:6;3930:3;3923:4;3915:6;3911:17;3898:44;3990:1;3983:4;3974:6;3966;3962:19;3958:30;3951:41;;;;3366:632;;;;;:::o;4003:451::-;4072:6;4125:2;4113:9;4104:7;4100:23;4096:32;4093:52;;;4141:1;4138;4131:12;4093:52;4181:9;4168:23;4214:18;4206:6;4203:30;4200:50;;;4246:1;4243;4236:12;4200:50;4269:22;;4322:4;4314:13;;4310:27;-1:-1:-1;4300:55:1;;4351:1;4348;4341:12;4300:55;4374:74;4440:7;4435:2;4422:16;4417:2;4413;4409:11;4374:74;:::i;4459:689::-;4554:6;4562;4570;4623:2;4611:9;4602:7;4598:23;4594:32;4591:52;;;4639:1;4636;4629:12;4591:52;4679:9;4666:23;4708:18;4749:2;4741:6;4738:14;4735:34;;;4765:1;4762;4755:12;4735:34;4803:6;4792:9;4788:22;4778:32;;4848:7;4841:4;4837:2;4833:13;4829:27;4819:55;;4870:1;4867;4860:12;4819:55;4910:2;4897:16;4936:2;4928:6;4925:14;4922:34;;;4952:1;4949;4942:12;4922:34;5007:7;5000:4;4990:6;4987:1;4983:14;4979:2;4975:23;4971:34;4968:47;4965:67;;;5028:1;5025;5018:12;4965:67;5059:4;5051:13;;;;5083:6;;-1:-1:-1;5121:20:1;;;;5108:34;;4459:689;-1:-1:-1;;;;4459:689:1:o;5338:254::-;5403:6;5411;5464:2;5452:9;5443:7;5439:23;5435:32;5432:52;;;5480:1;5477;5470:12;5432:52;5503:29;5522:9;5503:29;:::i;:::-;5493:39;;5551:35;5582:2;5571:9;5567:18;5551:35;:::i;:::-;5541:45;;5338:254;;;;;:::o;5597:667::-;5692:6;5700;5708;5716;5769:3;5757:9;5748:7;5744:23;5740:33;5737:53;;;5786:1;5783;5776:12;5737:53;5809:29;5828:9;5809:29;:::i;:::-;5799:39;;5857:38;5891:2;5880:9;5876:18;5857:38;:::i;:::-;5847:48;;5942:2;5931:9;5927:18;5914:32;5904:42;;5997:2;5986:9;5982:18;5969:32;6024:18;6016:6;6013:30;6010:50;;;6056:1;6053;6046:12;6010:50;6079:22;;6132:4;6124:13;;6120:27;-1:-1:-1;6110:55:1;;6161:1;6158;6151:12;6110:55;6184:74;6250:7;6245:2;6232:16;6227:2;6223;6219:11;6184:74;:::i;:::-;6174:84;;;5597:667;;;;;;;:::o;6269:260::-;6337:6;6345;6398:2;6386:9;6377:7;6373:23;6369:32;6366:52;;;6414:1;6411;6404:12;6366:52;6437:29;6456:9;6437:29;:::i;:::-;6427:39;;6485:38;6519:2;6508:9;6504:18;6485:38;:::i;6534:380::-;6613:1;6609:12;;;;6656;;;6677:61;;6731:4;6723:6;6719:17;6709:27;;6677:61;6784:2;6776:6;6773:14;6753:18;6750:38;6747:161;;6830:10;6825:3;6821:20;6818:1;6811:31;6865:4;6862:1;6855:15;6893:4;6890:1;6883:15;6747:161;;6534:380;;;:::o;7045:545::-;7147:2;7142:3;7139:11;7136:448;;;7183:1;7208:5;7204:2;7197:17;7253:4;7249:2;7239:19;7323:2;7311:10;7307:19;7304:1;7300:27;7294:4;7290:38;7359:4;7347:10;7344:20;7341:47;;;-1:-1:-1;7382:4:1;7341:47;7437:2;7432:3;7428:12;7425:1;7421:20;7415:4;7411:31;7401:41;;7492:82;7510:2;7503:5;7500:13;7492:82;;;7555:17;;;7536:1;7525:13;7492:82;;7766:1352;7892:3;7886:10;7919:18;7911:6;7908:30;7905:56;;;7941:18;;:::i;:::-;7970:97;8060:6;8020:38;8052:4;8046:11;8020:38;:::i;:::-;8014:4;7970:97;:::i;:::-;8122:4;;8186:2;8175:14;;8203:1;8198:663;;;;8905:1;8922:6;8919:89;;;-1:-1:-1;8974:19:1;;;8968:26;8919:89;-1:-1:-1;;7723:1:1;7719:11;;;7715:24;7711:29;7701:40;7747:1;7743:11;;;7698:57;9021:81;;8168:944;;8198:663;6992:1;6985:14;;;7029:4;7016:18;;-1:-1:-1;;8234:20:1;;;8352:236;8366:7;8363:1;8360:14;8352:236;;;8455:19;;;8449:26;8434:42;;8547:27;;;;8515:1;8503:14;;;;8382:19;;8352:236;;;8356:3;8616:6;8607:7;8604:19;8601:201;;;8677:19;;;8671:26;-1:-1:-1;;8760:1:1;8756:14;;;8772:3;8752:24;8748:37;8744:42;8729:58;8714:74;;8601:201;-1:-1:-1;;;;;8848:1:1;8832:14;;;8828:22;8815:36;;-1:-1:-1;7766:1352:1:o;9123:127::-;9184:10;9179:3;9175:20;9172:1;9165:31;9215:4;9212:1;9205:15;9239:4;9236:1;9229:15;9255:125;9320:9;;;9341:10;;;9338:36;;;9354:18;;:::i;9385:168::-;9458:9;;;9489;;9506:15;;;9500:22;;9486:37;9476:71;;9527:18;;:::i;10530:1256::-;10754:3;10792:6;10786:13;10818:4;10831:64;10888:6;10883:3;10878:2;10870:6;10866:15;10831:64;:::i;:::-;10958:13;;10917:16;;;;10980:68;10958:13;10917:16;11015:15;;;10980:68;:::i;:::-;11137:13;;11070:20;;;11110:1;;11175:36;11137:13;11175:36;:::i;:::-;11230:1;11247:18;;;11274:141;;;;11429:1;11424:337;;;;11240:521;;11274:141;-1:-1:-1;;11309:24:1;;11295:39;;11386:16;;11379:24;11365:39;;11354:51;;;-1:-1:-1;11274:141:1;;11424:337;11455:6;11452:1;11445:17;11503:2;11500:1;11490:16;11528:1;11542:169;11556:8;11553:1;11550:15;11542:169;;;11638:14;;11623:13;;;11616:37;11681:16;;;;11573:10;;11542:169;;;11546:3;;11742:8;11735:5;11731:20;11724:27;;11240:521;-1:-1:-1;11777:3:1;;10530:1256;-1:-1:-1;;;;;;;;;;10530:1256:1:o;12793:489::-;-1:-1:-1;;;;;13062:15:1;;;13044:34;;13114:15;;13109:2;13094:18;;13087:43;13161:2;13146:18;;13139:34;;;13209:3;13204:2;13189:18;;13182:31;;;12987:4;;13230:46;;13256:19;;13248:6;13230:46;:::i;:::-;13222:54;12793:489;-1:-1:-1;;;;;;12793:489:1:o;13287:249::-;13356:6;13409:2;13397:9;13388:7;13384:23;13380:32;13377:52;;;13425:1;13422;13415:12;13377:52;13457:9;13451:16;13476:30;13500:5;13476:30;:::i
Swarm Source
ipfs://5f76aff0b2deceb3b2a03d3a7fc118b4edc266f77c0843288e699d5fa953472e
Loading...
Loading
Loading...
Loading
[ 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.