Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0.0077 ETH
Eth Value
$19.31 (@ $2,507.72/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 484 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20765913 | 46 days ago | IN | 0 ETH | 0.00019223 | ||||
Set Approval For... | 18024619 | 430 days ago | IN | 0 ETH | 0.00047231 | ||||
Set Approval For... | 18024617 | 430 days ago | IN | 0 ETH | 0.0008272 | ||||
Set Approval For... | 17545870 | 497 days ago | IN | 0 ETH | 0.00061205 | ||||
Set Approval For... | 17529965 | 499 days ago | IN | 0 ETH | 0.00128559 | ||||
Set Approval For... | 17491349 | 504 days ago | IN | 0 ETH | 0.00087376 | ||||
Set Approval For... | 17462339 | 509 days ago | IN | 0 ETH | 0.00063474 | ||||
Set Approval For... | 17440051 | 512 days ago | IN | 0 ETH | 0.00092519 | ||||
Set Approval For... | 17050543 | 567 days ago | IN | 0 ETH | 0.00130549 | ||||
Set Approval For... | 17001347 | 574 days ago | IN | 0 ETH | 0.00084395 | ||||
Safe Transfer Fr... | 16994449 | 575 days ago | IN | 0 ETH | 0.00213047 | ||||
Safe Transfer Fr... | 16989140 | 575 days ago | IN | 0 ETH | 0.00208919 | ||||
Set Approval For... | 16987443 | 576 days ago | IN | 0 ETH | 0.00126337 | ||||
Mint | 16980233 | 577 days ago | IN | 0.0077 ETH | 0.00277496 | ||||
Withdraw | 16972500 | 578 days ago | IN | 0 ETH | 0.00056833 | ||||
Mint | 16964542 | 579 days ago | IN | 0.0154 ETH | 0.00147656 | ||||
Transfer From | 16964445 | 579 days ago | IN | 0 ETH | 0.00105676 | ||||
Set Approval For... | 16956571 | 580 days ago | IN | 0 ETH | 0.00091565 | ||||
Transfer From | 16953985 | 580 days ago | IN | 0 ETH | 0.0015484 | ||||
Set Approval For... | 16943659 | 582 days ago | IN | 0 ETH | 0.00102373 | ||||
Set Approval For... | 16943528 | 582 days ago | IN | 0 ETH | 0.00106516 | ||||
Mint | 16940501 | 582 days ago | IN | 0.0231 ETH | 0.0030538 | ||||
Set Cost | 16938800 | 582 days ago | IN | 0 ETH | 0.00077202 | ||||
Transfer From | 16938013 | 583 days ago | IN | 0 ETH | 0.00204614 | ||||
Set Approval For... | 16934884 | 583 days ago | IN | 0 ETH | 0.00211725 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
16972500 | 578 days ago | 0.0535 ETH |
Loading...
Loading
Contract Name:
MegaDegenNft
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-26 */ // File: @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = MathUpgradeable.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, MathUpgradeable.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool result) { if (_startTokenId() <= tokenId) { if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) _revert(MintZeroQuantity.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; do { assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) _revert(bytes4(0)); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } } // File: contracts/megadegen/Megadegen.sol pragma solidity ^0.8.19; contract MegaDegenNft is ERC721A, Ownable { using StringsUpgradeable for uint256; event Minted(address indexed _from, uint256 _amount, uint256 _value); address extendingContract; string public baseApiURI; //Utility bool public paused = false; //General Settings uint16 public maxMintAmountPerTransaction = 4; uint16 public maxMintAmountPerWallet = 4; //Inventory uint256 public maxSupply = 5000; uint256 public freeSupply = 1500; //Prices uint256 public cost = 0.01 ether; modifier supplyCheck(uint256 _amount) { require(totalSupply() + _amount <= maxSupply, "Exceeds Supply"); _; } constructor(string memory _baseUrl) ERC721A("MEGADEGENNFT", "MDNFT") { baseApiURI = _baseUrl; } //This function will be used to extend the project with more capabilities function setExternalContract(address _bAddress) public onlyOwner { extendingContract = _bAddress; } //this function can be called only from the extending contract function mintExternal(address _address, uint256 _mintAmount) external supplyCheck(_mintAmount) { require( msg.sender == extendingContract, "Sorry you don't have permission to mint" ); _safeMint(_address, _mintAmount); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } // public function mint(uint256 _mintAmount) public payable supplyCheck(_mintAmount) { if (msg.sender != owner()) { uint256 ownerTokenCount = balanceOf(msg.sender); require(!paused); require(_mintAmount > 0, "Mint amount should be greater than 0"); require( _mintAmount <= maxMintAmountPerTransaction, "Sorry you cant mint this amount at once" ); require( (ownerTokenCount + _mintAmount) <= maxMintAmountPerWallet, "Sorry you cant mint more" ); if (totalSupply() < freeSupply) { if (((totalSupply() + _mintAmount)) > freeSupply) { uint256 f = (totalSupply() + _mintAmount) - freeSupply; if (f > 0) { require(msg.value >= cost * f, "Insuffient funds"); } } } else { require(msg.value >= cost * _mintAmount, "Insuffient funds"); } } _mintLoop(msg.sender, _mintAmount); emit Minted(msg.sender, _mintAmount, msg.value); } function test(uint256 _mintAmount) public view returns (uint256) { uint256 f = (totalSupply() + _mintAmount) - freeSupply; return f; } function gift(address _to, uint256 _mintAmount) public onlyOwner supplyCheck(_mintAmount) { _mintLoop(_to, _mintAmount); } function airdrop(address[] memory _airdropAddresses) public onlyOwner supplyCheck(_airdropAddresses.length) { for (uint256 i = 0; i < _airdropAddresses.length; i++) { address to = _airdropAddresses[i]; _mintLoop(to, 1); } } function _baseURI() internal view virtual override returns (string memory) { return baseApiURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString())) : ""; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmountPerTransaction(uint16 _amount) public onlyOwner { maxMintAmountPerTransaction = _amount; } function setMaxMintAmountPerWallet(uint16 _amount) public onlyOwner { maxMintAmountPerWallet = _amount; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseApiURI = _newBaseURI; } function togglePause() public onlyOwner { paused = !paused; } function _mintLoop(address _receiver, uint256 _mintAmount) internal { _safeMint(_receiver, _mintAmount); } function withdraw() public payable onlyOwner { (bool hq, ) = payable(owner()).call{value: address(this).balance}(""); require(hq); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseUrl","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseApiURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeSupply","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":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTransaction","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerWallet","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bAddress","type":"address"}],"name":"setExternalContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxMintAmountPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setmaxMintAmountPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"test","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052600b805464ffffffffff19166304000400179055611388600c556105dc600d55662386f26fc10000600e553480156200003c57600080fd5b5060405162002257380380620022578339810160408190526200005f9162000152565b6040518060400160405280600c81526020016b135151d0511151d15393919560a21b81525060405180604001604052806005815260200164135113919560da1b8152508160029081620000b39190620002b6565b506003620000c28282620002b6565b50506000805550620000d433620000ea565b600a620000e28282620002b6565b505062000382565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200016657600080fd5b82516001600160401b03808211156200017e57600080fd5b818501915085601f8301126200019357600080fd5b815181811115620001a857620001a86200013c565b604051601f8201601f19908116603f01168101908382118183101715620001d357620001d36200013c565b816040528281528886848701011115620001ec57600080fd5b600093505b82841015620002105784840186015181850187015292850192620001f1565b600086848301015280965050505050505092915050565b600181811c908216806200023c57607f821691505b6020821081036200025d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002b157600081815260208120601f850160051c810160208610156200028c5750805b601f850160051c820191505b81811015620002ad5782815560010162000298565b5050505b505050565b81516001600160401b03811115620002d257620002d26200013c565b620002ea81620002e3845462000227565b8462000263565b602080601f831160018114620003225760008415620003095750858301515b600019600386901b1c1916600185901b178555620002ad565b600085815260208120601f198616915b82811015620003535788860151825594840194600190910190840162000332565b5085821015620003725787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611ec580620003926000396000f3fe60806040526004361061021a5760003560e01c8063715018a611610123578063c4ae3168116100ab578063dc33e6811161006f578063dc33e681146105c1578063e97800cb146105e1578063e985e9c514610601578063f2fde38b14610621578063f4da18461461064157600080fd5b8063c4ae316814610536578063c87b56dd1461054b578063cbce4c971461056b578063cef117291461058b578063d5abeb01146105ab57600080fd5b8063a0712d68116100f2578063a0712d681461049b578063a22cb465146104ae578063b88d4fde146104ce578063bbb89744146104e1578063bc951b911461051457600080fd5b8063715018a614610433578063729ad39e146104485780638da5cb5b1461046857806395d89b411461048657600080fd5b806329e99f07116101a657806344a0d68a1161017557806344a0d68a1461039957806355f804b3146103b95780635c975abb146103d95780636352211e146103f357806370a082311461041357600080fd5b806329e99f07146103495780633ccfd60b1461036957806341827f131461037157806342842e0e1461038657600080fd5b806309e7fe1b116101ed57806309e7fe1b146102c357806313faede6146102e357806318160ddd1461030757806323b872dd1461032057806324a6ab0c1461033357600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611828565b610661565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106b3565b60405161024b9190611895565b34801561028257600080fd5b506102966102913660046118a8565b610745565b6040516001600160a01b03909116815260200161024b565b6102c16102bc3660046118d8565b610780565b005b3480156102cf57600080fd5b506102c16102de366004611902565b610790565b3480156102ef57600080fd5b506102f9600e5481565b60405190815260200161024b565b34801561031357600080fd5b50600154600054036102f9565b6102c161032e36600461191d565b6107ba565b34801561033f57600080fd5b506102f9600d5481565b34801561035557600080fd5b506102f96103643660046118a8565b61091f565b6102c161094e565b34801561037d57600080fd5b506102696109ca565b6102c161039436600461191d565b610a58565b3480156103a557600080fd5b506102c16103b43660046118a8565b610a78565b3480156103c557600080fd5b506102c16103d43660046119f8565b610a85565b3480156103e557600080fd5b50600b5461023f9060ff1681565b3480156103ff57600080fd5b5061029661040e3660046118a8565b610a99565b34801561041f57600080fd5b506102f961042e366004611902565b610aa4565b34801561043f57600080fd5b506102c1610aea565b34801561045457600080fd5b506102c1610463366004611a41565b610afe565b34801561047457600080fd5b506008546001600160a01b0316610296565b34801561049257600080fd5b50610269610b92565b6102c16104a93660046118a8565b610ba1565b3480156104ba57600080fd5b506102c16104c9366004611aee565b610e89565b6102c16104dc366004611b2a565b610ef5565b3480156104ed57600080fd5b50600b5461050190610100900461ffff1681565b60405161ffff909116815260200161024b565b34801561052057600080fd5b50600b54610501906301000000900461ffff1681565b34801561054257600080fd5b506102c1610f36565b34801561055757600080fd5b506102696105663660046118a8565b610f52565b34801561057757600080fd5b506102c16105863660046118d8565b61101c565b34801561059757600080fd5b506102c16105a6366004611ba6565b611068565b3480156105b757600080fd5b506102f9600c5481565b3480156105cd57600080fd5b506102f96105dc366004611902565b611092565b3480156105ed57600080fd5b506102c16105fc366004611ba6565b6110bd565b34801561060d57600080fd5b5061023f61061c366004611bca565b6110e3565b34801561062d57600080fd5b506102c161063c366004611902565b611111565b34801561064d57600080fd5b506102c161065c3660046118d8565b611187565b60006301ffc9a760e01b6001600160e01b03198316148061069257506380ac58cd60e01b6001600160e01b03198316145b806106ad5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106c290611bfd565b80601f01602080910402602001604051908101604052809291908181526020018280546106ee90611bfd565b801561073b5780601f106107105761010080835404028352916020019161073b565b820191906000526020600020905b81548152906001019060200180831161071e57829003601f168201915b5050505050905090565b600061075082611235565b610764576107646333d1c03960e21b61127a565b506000908152600660205260409020546001600160a01b031690565b61078c82826001611284565b5050565b610798611327565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006107c582611381565b6001600160a01b0394851694909150811684146107eb576107eb62a1148160e81b61127a565b60008281526006602052604090208054338082146001600160a01b0388169091141761082f5761081b86336110e3565b61082f5761082f632ce44b5f60e11b61127a565b801561083a57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036108cc576001840160008181526004602052604081205490036108ca5760005481146108ca5760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361091657610916633a954ecd60e21b61127a565b50505050505050565b600080600d54836109336001546000540390565b61093d9190611c4d565b6109479190611c60565b9392505050565b610956611327565b600061096a6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d80600081146109b4576040519150601f19603f3d011682016040523d82523d6000602084013e6109b9565b606091505b50509050806109c757600080fd5b50565b600a80546109d790611bfd565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0390611bfd565b8015610a505780601f10610a2557610100808354040283529160200191610a50565b820191906000526020600020905b815481529060010190602001808311610a3357829003601f168201915b505050505081565b610a7383838360405180602001604052806000815250610ef5565b505050565b610a80611327565b600e55565b610a8d611327565b600a61078c8282611cc1565b60006106ad82611381565b60006001600160a01b038216610ac457610ac46323d3ad8160e21b61127a565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610af2611327565b610afc6000611417565b565b610b06611327565b8051600c5481610b196001546000540390565b610b239190611c4d565b1115610b4a5760405162461bcd60e51b8152600401610b4190611d81565b60405180910390fd5b60005b8251811015610a73576000838281518110610b6a57610b6a611da9565b60200260200101519050610b7f816001611469565b5080610b8a81611dbf565b915050610b4d565b6060600380546106c290611bfd565b80600c5481610bb36001546000540390565b610bbd9190611c4d565b1115610bdb5760405162461bcd60e51b8152600401610b4190611d81565b6008546001600160a01b03163314610e41576000610bf833610aa4565b600b5490915060ff1615610c0b57600080fd5b60008311610c675760405162461bcd60e51b8152602060048201526024808201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686044820152630616e20360e41b6064820152608401610b41565b600b54610100900461ffff16831115610cd25760405162461bcd60e51b815260206004820152602760248201527f536f72727920796f752063616e74206d696e74207468697320616d6f756e74206044820152666174206f6e636560c81b6064820152608401610b41565b600b546301000000900461ffff16610cea8483611c4d565b1115610d385760405162461bcd60e51b815260206004820152601860248201527f536f72727920796f752063616e74206d696e74206d6f726500000000000000006044820152606401610b41565b600d54600154600054031015610def57600d5483610d596001546000540390565b610d639190611c4d565b1115610dea576000600d5484610d7c6001546000540390565b610d869190611c4d565b610d909190611c60565b90508015610de85780600e54610da69190611dd8565b341015610de85760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610b41565b505b610e3f565b82600e54610dfd9190611dd8565b341015610e3f5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610b41565b505b610e4b3383611469565b6040805183815234602082015233917f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff910160405180910390a25050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f008484846107ba565b6001600160a01b0383163b15610f3057610f1c84848484611473565b610f3057610f306368d2bf6b60e11b61127a565b50505050565b610f3e611327565b600b805460ff19811660ff90911615179055565b6060610f5d82611235565b610fc15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b41565b6000610fcb611556565b90506000815111610feb5760405180602001604052806000815250610947565b80610ff584611565565b604051602001611006929190611def565b6040516020818303038152906040529392505050565b611024611327565b80600c54816110366001546000540390565b6110409190611c4d565b111561105e5760405162461bcd60e51b8152600401610b4190611d81565b610a738383611469565b611070611327565b600b805461ffff90921663010000000264ffff00000019909216919091179055565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166106ad565b6110c5611327565b600b805461ffff9092166101000262ffff0019909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b611119611327565b6001600160a01b03811661117e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b41565b6109c781611417565b80600c54816111996001546000540390565b6111a39190611c4d565b11156111c15760405162461bcd60e51b8152600401610b4190611d81565b6009546001600160a01b0316331461122b5760405162461bcd60e51b815260206004820152602760248201527f536f72727920796f7520646f6e27742068617665207065726d697373696f6e206044820152661d1bc81b5a5b9d60ca1b6064820152608401610b41565b610a7383836115f8565b600080548210156112755760005b506000828152600460205260408120549081900361126b5761126483611e1e565b9250611243565b600160e01b161590505b919050565b8060005260046000fd5b600061128f83610a99565b90508180156112a75750336001600160a01b03821614155b156112ca576112b681336110e3565b6112ca576112ca6367d9dca160e11b61127a565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b03163314610afc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b41565b600081815260046020526040812054908190036113f45760005482106113b1576113b1636f96cda160e11b61127a565b5b506000190160008181526004602052604090205480156113b257600160e01b81166000036113df57919050565b6113ef636f96cda160e11b61127a565b6113b2565b600160e01b811660000361140757919050565b611275636f96cda160e11b61127a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61078c82826115f8565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906114a8903390899088908890600401611e35565b6020604051808303816000875af19250505080156114e3575060408051601f3d908101601f191682019092526114e091810190611e72565b60015b611538573d808015611511576040519150601f19603f3d011682016040523d82523d6000602084013e611516565b606091505b508051600003611530576115306368d2bf6b60e11b61127a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a80546106c290611bfd565b6060600061157283611612565b600101905060008167ffffffffffffffff81111561159257611592611959565b6040519080825280601f01601f1916602001820160405280156115bc576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846115c657509392505050565b61078c8282604051806020016040528060008152506116ea565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116515772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061167d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061169b57662386f26fc10000830492506010015b6305f5e10083106116b3576305f5e100830492506008015b61271083106116c757612710830492506004015b606483106116d9576064830492506002015b600a83106106ad5760010192915050565b6116f48383611753565b6001600160a01b0383163b15610a73576000548281035b61171e6000868380600101945086611473565b611732576117326368d2bf6b60e11b61127a565b81811061170b57816000541461174c5761174c600061127a565b5050505050565b600080549082900361176f5761176f63b562e8dd60e01b61127a565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036117cd576117cd622e076360e81b61127a565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036117d2575060005550505050565b6001600160e01b0319811681146109c757600080fd5b60006020828403121561183a57600080fd5b813561094781611812565b60005b83811015611860578181015183820152602001611848565b50506000910152565b60008151808452611881816020860160208601611845565b601f01601f19169290920160200192915050565b6020815260006109476020830184611869565b6000602082840312156118ba57600080fd5b5035919050565b80356001600160a01b038116811461127557600080fd5b600080604083850312156118eb57600080fd5b6118f4836118c1565b946020939093013593505050565b60006020828403121561191457600080fd5b610947826118c1565b60008060006060848603121561193257600080fd5b61193b846118c1565b9250611949602085016118c1565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561199857611998611959565b604052919050565b600067ffffffffffffffff8311156119ba576119ba611959565b6119cd601f8401601f191660200161196f565b90508281528383830111156119e157600080fd5b828260208301376000602084830101529392505050565b600060208284031215611a0a57600080fd5b813567ffffffffffffffff811115611a2157600080fd5b8201601f81018413611a3257600080fd5b61154e848235602084016119a0565b60006020808385031215611a5457600080fd5b823567ffffffffffffffff80821115611a6c57600080fd5b818501915085601f830112611a8057600080fd5b813581811115611a9257611a92611959565b8060051b9150611aa384830161196f565b8181529183018401918481019088841115611abd57600080fd5b938501935b83851015611ae257611ad3856118c1565b82529385019390850190611ac2565b98975050505050505050565b60008060408385031215611b0157600080fd5b611b0a836118c1565b915060208301358015158114611b1f57600080fd5b809150509250929050565b60008060008060808587031215611b4057600080fd5b611b49856118c1565b9350611b57602086016118c1565b925060408501359150606085013567ffffffffffffffff811115611b7a57600080fd5b8501601f81018713611b8b57600080fd5b611b9a878235602084016119a0565b91505092959194509250565b600060208284031215611bb857600080fd5b813561ffff8116811461094757600080fd5b60008060408385031215611bdd57600080fd5b611be6836118c1565b9150611bf4602084016118c1565b90509250929050565b600181811c90821680611c1157607f821691505b602082108103611c3157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106ad576106ad611c37565b818103818111156106ad576106ad611c37565b601f821115610a7357600081815260208120601f850160051c81016020861015611c9a5750805b601f850160051c820191505b81811015611cb957828155600101611ca6565b505050505050565b815167ffffffffffffffff811115611cdb57611cdb611959565b611cef81611ce98454611bfd565b84611c73565b602080601f831160018114611d245760008415611d0c5750858301515b600019600386901b1c1916600185901b178555611cb9565b600085815260208120601f198616915b82811015611d5357888601518255948401946001909101908401611d34565b5085821015611d715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252600e908201526d4578636565647320537570706c7960901b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201611dd157611dd1611c37565b5060010190565b80820281158282048414176106ad576106ad611c37565b60008351611e01818460208801611845565b835190830190611e15818360208801611845565b01949350505050565b600081611e2d57611e2d611c37565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e6890830184611869565b9695505050505050565b600060208284031215611e8457600080fd5b81516109478161181256fea2646970667358221220ad7cfcec1fb42241b5585f3ac5c3f248128cf794d2e551b1448915d47454f5b964736f6c634300081300330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f73776d323933636e65612e657865637574652d6170692e61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f70726f642f6170692f76312f6e66742f6d656761646567656e2f00000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c8063715018a611610123578063c4ae3168116100ab578063dc33e6811161006f578063dc33e681146105c1578063e97800cb146105e1578063e985e9c514610601578063f2fde38b14610621578063f4da18461461064157600080fd5b8063c4ae316814610536578063c87b56dd1461054b578063cbce4c971461056b578063cef117291461058b578063d5abeb01146105ab57600080fd5b8063a0712d68116100f2578063a0712d681461049b578063a22cb465146104ae578063b88d4fde146104ce578063bbb89744146104e1578063bc951b911461051457600080fd5b8063715018a614610433578063729ad39e146104485780638da5cb5b1461046857806395d89b411461048657600080fd5b806329e99f07116101a657806344a0d68a1161017557806344a0d68a1461039957806355f804b3146103b95780635c975abb146103d95780636352211e146103f357806370a082311461041357600080fd5b806329e99f07146103495780633ccfd60b1461036957806341827f131461037157806342842e0e1461038657600080fd5b806309e7fe1b116101ed57806309e7fe1b146102c357806313faede6146102e357806318160ddd1461030757806323b872dd1461032057806324a6ab0c1461033357600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611828565b610661565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106b3565b60405161024b9190611895565b34801561028257600080fd5b506102966102913660046118a8565b610745565b6040516001600160a01b03909116815260200161024b565b6102c16102bc3660046118d8565b610780565b005b3480156102cf57600080fd5b506102c16102de366004611902565b610790565b3480156102ef57600080fd5b506102f9600e5481565b60405190815260200161024b565b34801561031357600080fd5b50600154600054036102f9565b6102c161032e36600461191d565b6107ba565b34801561033f57600080fd5b506102f9600d5481565b34801561035557600080fd5b506102f96103643660046118a8565b61091f565b6102c161094e565b34801561037d57600080fd5b506102696109ca565b6102c161039436600461191d565b610a58565b3480156103a557600080fd5b506102c16103b43660046118a8565b610a78565b3480156103c557600080fd5b506102c16103d43660046119f8565b610a85565b3480156103e557600080fd5b50600b5461023f9060ff1681565b3480156103ff57600080fd5b5061029661040e3660046118a8565b610a99565b34801561041f57600080fd5b506102f961042e366004611902565b610aa4565b34801561043f57600080fd5b506102c1610aea565b34801561045457600080fd5b506102c1610463366004611a41565b610afe565b34801561047457600080fd5b506008546001600160a01b0316610296565b34801561049257600080fd5b50610269610b92565b6102c16104a93660046118a8565b610ba1565b3480156104ba57600080fd5b506102c16104c9366004611aee565b610e89565b6102c16104dc366004611b2a565b610ef5565b3480156104ed57600080fd5b50600b5461050190610100900461ffff1681565b60405161ffff909116815260200161024b565b34801561052057600080fd5b50600b54610501906301000000900461ffff1681565b34801561054257600080fd5b506102c1610f36565b34801561055757600080fd5b506102696105663660046118a8565b610f52565b34801561057757600080fd5b506102c16105863660046118d8565b61101c565b34801561059757600080fd5b506102c16105a6366004611ba6565b611068565b3480156105b757600080fd5b506102f9600c5481565b3480156105cd57600080fd5b506102f96105dc366004611902565b611092565b3480156105ed57600080fd5b506102c16105fc366004611ba6565b6110bd565b34801561060d57600080fd5b5061023f61061c366004611bca565b6110e3565b34801561062d57600080fd5b506102c161063c366004611902565b611111565b34801561064d57600080fd5b506102c161065c3660046118d8565b611187565b60006301ffc9a760e01b6001600160e01b03198316148061069257506380ac58cd60e01b6001600160e01b03198316145b806106ad5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106c290611bfd565b80601f01602080910402602001604051908101604052809291908181526020018280546106ee90611bfd565b801561073b5780601f106107105761010080835404028352916020019161073b565b820191906000526020600020905b81548152906001019060200180831161071e57829003601f168201915b5050505050905090565b600061075082611235565b610764576107646333d1c03960e21b61127a565b506000908152600660205260409020546001600160a01b031690565b61078c82826001611284565b5050565b610798611327565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006107c582611381565b6001600160a01b0394851694909150811684146107eb576107eb62a1148160e81b61127a565b60008281526006602052604090208054338082146001600160a01b0388169091141761082f5761081b86336110e3565b61082f5761082f632ce44b5f60e11b61127a565b801561083a57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036108cc576001840160008181526004602052604081205490036108ca5760005481146108ca5760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361091657610916633a954ecd60e21b61127a565b50505050505050565b600080600d54836109336001546000540390565b61093d9190611c4d565b6109479190611c60565b9392505050565b610956611327565b600061096a6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d80600081146109b4576040519150601f19603f3d011682016040523d82523d6000602084013e6109b9565b606091505b50509050806109c757600080fd5b50565b600a80546109d790611bfd565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0390611bfd565b8015610a505780601f10610a2557610100808354040283529160200191610a50565b820191906000526020600020905b815481529060010190602001808311610a3357829003601f168201915b505050505081565b610a7383838360405180602001604052806000815250610ef5565b505050565b610a80611327565b600e55565b610a8d611327565b600a61078c8282611cc1565b60006106ad82611381565b60006001600160a01b038216610ac457610ac46323d3ad8160e21b61127a565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610af2611327565b610afc6000611417565b565b610b06611327565b8051600c5481610b196001546000540390565b610b239190611c4d565b1115610b4a5760405162461bcd60e51b8152600401610b4190611d81565b60405180910390fd5b60005b8251811015610a73576000838281518110610b6a57610b6a611da9565b60200260200101519050610b7f816001611469565b5080610b8a81611dbf565b915050610b4d565b6060600380546106c290611bfd565b80600c5481610bb36001546000540390565b610bbd9190611c4d565b1115610bdb5760405162461bcd60e51b8152600401610b4190611d81565b6008546001600160a01b03163314610e41576000610bf833610aa4565b600b5490915060ff1615610c0b57600080fd5b60008311610c675760405162461bcd60e51b8152602060048201526024808201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686044820152630616e20360e41b6064820152608401610b41565b600b54610100900461ffff16831115610cd25760405162461bcd60e51b815260206004820152602760248201527f536f72727920796f752063616e74206d696e74207468697320616d6f756e74206044820152666174206f6e636560c81b6064820152608401610b41565b600b546301000000900461ffff16610cea8483611c4d565b1115610d385760405162461bcd60e51b815260206004820152601860248201527f536f72727920796f752063616e74206d696e74206d6f726500000000000000006044820152606401610b41565b600d54600154600054031015610def57600d5483610d596001546000540390565b610d639190611c4d565b1115610dea576000600d5484610d7c6001546000540390565b610d869190611c4d565b610d909190611c60565b90508015610de85780600e54610da69190611dd8565b341015610de85760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610b41565b505b610e3f565b82600e54610dfd9190611dd8565b341015610e3f5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610b41565b505b610e4b3383611469565b6040805183815234602082015233917f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff910160405180910390a25050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610f008484846107ba565b6001600160a01b0383163b15610f3057610f1c84848484611473565b610f3057610f306368d2bf6b60e11b61127a565b50505050565b610f3e611327565b600b805460ff19811660ff90911615179055565b6060610f5d82611235565b610fc15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b41565b6000610fcb611556565b90506000815111610feb5760405180602001604052806000815250610947565b80610ff584611565565b604051602001611006929190611def565b6040516020818303038152906040529392505050565b611024611327565b80600c54816110366001546000540390565b6110409190611c4d565b111561105e5760405162461bcd60e51b8152600401610b4190611d81565b610a738383611469565b611070611327565b600b805461ffff90921663010000000264ffff00000019909216919091179055565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166106ad565b6110c5611327565b600b805461ffff9092166101000262ffff0019909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b611119611327565b6001600160a01b03811661117e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b41565b6109c781611417565b80600c54816111996001546000540390565b6111a39190611c4d565b11156111c15760405162461bcd60e51b8152600401610b4190611d81565b6009546001600160a01b0316331461122b5760405162461bcd60e51b815260206004820152602760248201527f536f72727920796f7520646f6e27742068617665207065726d697373696f6e206044820152661d1bc81b5a5b9d60ca1b6064820152608401610b41565b610a7383836115f8565b600080548210156112755760005b506000828152600460205260408120549081900361126b5761126483611e1e565b9250611243565b600160e01b161590505b919050565b8060005260046000fd5b600061128f83610a99565b90508180156112a75750336001600160a01b03821614155b156112ca576112b681336110e3565b6112ca576112ca6367d9dca160e11b61127a565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b03163314610afc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b41565b600081815260046020526040812054908190036113f45760005482106113b1576113b1636f96cda160e11b61127a565b5b506000190160008181526004602052604090205480156113b257600160e01b81166000036113df57919050565b6113ef636f96cda160e11b61127a565b6113b2565b600160e01b811660000361140757919050565b611275636f96cda160e11b61127a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61078c82826115f8565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906114a8903390899088908890600401611e35565b6020604051808303816000875af19250505080156114e3575060408051601f3d908101601f191682019092526114e091810190611e72565b60015b611538573d808015611511576040519150601f19603f3d011682016040523d82523d6000602084013e611516565b606091505b508051600003611530576115306368d2bf6b60e11b61127a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a80546106c290611bfd565b6060600061157283611612565b600101905060008167ffffffffffffffff81111561159257611592611959565b6040519080825280601f01601f1916602001820160405280156115bc576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846115c657509392505050565b61078c8282604051806020016040528060008152506116ea565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116515772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061167d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061169b57662386f26fc10000830492506010015b6305f5e10083106116b3576305f5e100830492506008015b61271083106116c757612710830492506004015b606483106116d9576064830492506002015b600a83106106ad5760010192915050565b6116f48383611753565b6001600160a01b0383163b15610a73576000548281035b61171e6000868380600101945086611473565b611732576117326368d2bf6b60e11b61127a565b81811061170b57816000541461174c5761174c600061127a565b5050505050565b600080549082900361176f5761176f63b562e8dd60e01b61127a565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036117cd576117cd622e076360e81b61127a565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036117d2575060005550505050565b6001600160e01b0319811681146109c757600080fd5b60006020828403121561183a57600080fd5b813561094781611812565b60005b83811015611860578181015183820152602001611848565b50506000910152565b60008151808452611881816020860160208601611845565b601f01601f19169290920160200192915050565b6020815260006109476020830184611869565b6000602082840312156118ba57600080fd5b5035919050565b80356001600160a01b038116811461127557600080fd5b600080604083850312156118eb57600080fd5b6118f4836118c1565b946020939093013593505050565b60006020828403121561191457600080fd5b610947826118c1565b60008060006060848603121561193257600080fd5b61193b846118c1565b9250611949602085016118c1565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561199857611998611959565b604052919050565b600067ffffffffffffffff8311156119ba576119ba611959565b6119cd601f8401601f191660200161196f565b90508281528383830111156119e157600080fd5b828260208301376000602084830101529392505050565b600060208284031215611a0a57600080fd5b813567ffffffffffffffff811115611a2157600080fd5b8201601f81018413611a3257600080fd5b61154e848235602084016119a0565b60006020808385031215611a5457600080fd5b823567ffffffffffffffff80821115611a6c57600080fd5b818501915085601f830112611a8057600080fd5b813581811115611a9257611a92611959565b8060051b9150611aa384830161196f565b8181529183018401918481019088841115611abd57600080fd5b938501935b83851015611ae257611ad3856118c1565b82529385019390850190611ac2565b98975050505050505050565b60008060408385031215611b0157600080fd5b611b0a836118c1565b915060208301358015158114611b1f57600080fd5b809150509250929050565b60008060008060808587031215611b4057600080fd5b611b49856118c1565b9350611b57602086016118c1565b925060408501359150606085013567ffffffffffffffff811115611b7a57600080fd5b8501601f81018713611b8b57600080fd5b611b9a878235602084016119a0565b91505092959194509250565b600060208284031215611bb857600080fd5b813561ffff8116811461094757600080fd5b60008060408385031215611bdd57600080fd5b611be6836118c1565b9150611bf4602084016118c1565b90509250929050565b600181811c90821680611c1157607f821691505b602082108103611c3157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106ad576106ad611c37565b818103818111156106ad576106ad611c37565b601f821115610a7357600081815260208120601f850160051c81016020861015611c9a5750805b601f850160051c820191505b81811015611cb957828155600101611ca6565b505050505050565b815167ffffffffffffffff811115611cdb57611cdb611959565b611cef81611ce98454611bfd565b84611c73565b602080601f831160018114611d245760008415611d0c5750858301515b600019600386901b1c1916600185901b178555611cb9565b600085815260208120601f198616915b82811015611d5357888601518255948401946001909101908401611d34565b5085821015611d715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252600e908201526d4578636565647320537570706c7960901b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060018201611dd157611dd1611c37565b5060010190565b80820281158282048414176106ad576106ad611c37565b60008351611e01818460208801611845565b835190830190611e15818360208801611845565b01949350505050565b600081611e2d57611e2d611c37565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e6890830184611869565b9695505050505050565b600060208284031215611e8457600080fd5b81516109478161181256fea2646970667358221220ad7cfcec1fb42241b5585f3ac5c3f248128cf794d2e551b1448915d47454f5b964736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000005668747470733a2f2f73776d323933636e65612e657865637574652d6170692e61702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f70726f642f6170692f76312f6e66742f6d656761646567656e2f00000000000000000000
-----Decoded View---------------
Arg [0] : _baseUrl (string): https://swm293cnea.execute-api.ap-southeast-1.amazonaws.com/prod/api/v1/nft/megadegen/
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000056
Arg [2] : 68747470733a2f2f73776d323933636e65612e657865637574652d6170692e61
Arg [3] : 702d736f757468656173742d312e616d617a6f6e6177732e636f6d2f70726f64
Arg [4] : 2f6170692f76312f6e66742f6d656761646567656e2f00000000000000000000
Deployed Bytecode Sourcemap
72723:4837:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37375:639;;;;;;;;;;-1:-1:-1;37375:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;37375:639:0;;;;;;;;38277:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;45311:227::-;;;;;;;;;;-1:-1:-1;45311:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;45311:227:0;1533:203:1;45028:124:0;;;;;;:::i;:::-;;:::i;:::-;;73619:113;;;;;;;;;;-1:-1:-1;73619:113:0;;;;;:::i;:::-;;:::i;73242:32::-;;;;;;;;;;;;;;;;;;;2515:25:1;;;2503:2;2488:18;73242:32:0;2369:177:1;34019:323:0;;;;;;;;;;-1:-1:-1;34293:12:0;;34080:7;34277:13;:28;34019:323;;49045:3523;;;;;;:::i;:::-;;:::i;73189:32::-;;;;;;;;;;;;;;;;75451:157;;;;;;;;;;-1:-1:-1;75451:157:0;;;;;:::i;:::-;;:::i;77402:155::-;;;:::i;72926:24::-;;;;;;;;;;;;;:::i;52664:193::-;;;;;;:::i;:::-;;:::i;76718:86::-;;;;;;;;;;-1:-1:-1;76718:86:0;;;;;:::i;:::-;;:::i;77076:107::-;;;;;;;;;;-1:-1:-1;77076:107:0;;;;;:::i;:::-;;:::i;72974:26::-;;;;;;;;;;-1:-1:-1;72974:26:0;;;;;;;;39679:152;;;;;;;;;;-1:-1:-1;39679:152:0;;;;;:::i;:::-;;:::i;35203:242::-;;;;;;;;;;-1:-1:-1;35203:242:0;;;;;:::i;:::-;;:::i;18065:103::-;;;;;;;;;;;;;:::i;75792:304::-;;;;;;;;;;-1:-1:-1;75792:304:0;;;;;:::i;:::-;;:::i;17417:87::-;;;;;;;;;;-1:-1:-1;17490:6:0;;-1:-1:-1;;;;;17490:6:0;17417:87;;38453:104;;;;;;;;;;;;;:::i;74252:1191::-;;;;;;:::i;:::-;;:::i;45878:234::-;;;;;;;;;;-1:-1:-1;45878:234:0;;;;;:::i;:::-;;:::i;53455:416::-;;;;;;:::i;:::-;;:::i;73033:45::-;;;;;;;;;;-1:-1:-1;73033:45:0;;;;;;;;;;;;;;6319:6:1;6307:19;;;6289:38;;6277:2;6262:18;73033:45:0;6145:188:1;73085:40:0;;;;;;;;;;-1:-1:-1;73085:40:0;;;;;;;;;;;77191:75;;;;;;;;;;;;;:::i;76223:487::-;;;;;;;;;;-1:-1:-1;76223:487:0;;;;;:::i;:::-;;:::i;75616:168::-;;;;;;;;;;-1:-1:-1;75616:168:0;;;;;:::i;:::-;;:::i;76949:119::-;;;;;;;;;;-1:-1:-1;76949:119:0;;;;;:::i;:::-;;:::i;73151:31::-;;;;;;;;;;;;;;;;74116:113;;;;;;;;;;-1:-1:-1;74116:113:0;;;;;:::i;:::-;;:::i;76812:129::-;;;;;;;;;;-1:-1:-1;76812:129:0;;;;;:::i;:::-;;:::i;46269:164::-;;;;;;;;;;-1:-1:-1;46269:164:0;;;;;:::i;:::-;;:::i;18323:201::-;;;;;;;;;;-1:-1:-1;18323:201:0;;;;;:::i;:::-;;:::i;73808:300::-;;;;;;;;;;-1:-1:-1;73808:300:0;;;;;:::i;:::-;;:::i;37375:639::-;37460:4;-1:-1:-1;;;;;;;;;37784:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;37861:25:0;;;37784:102;:179;;;-1:-1:-1;;;;;;;;;;37938:25:0;;;37784:179;37764:199;37375:639;-1:-1:-1;;37375:639:0:o;38277:100::-;38331:13;38364:5;38357:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38277:100;:::o;45311:227::-;45387:7;45412:16;45420:7;45412;:16::i;:::-;45407:73;;45430:50;-1:-1:-1;;;45430:7:0;:50::i;:::-;-1:-1:-1;45500:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;45500:30:0;;45311:227::o;45028:124::-;45117:27;45126:2;45130:7;45139:4;45117:8;:27::i;:::-;45028:124;;:::o;73619:113::-;17303:13;:11;:13::i;:::-;73695:17:::1;:29:::0;;-1:-1:-1;;;;;;73695:29:0::1;-1:-1:-1::0;;;;;73695:29:0;;;::::1;::::0;;;::::1;::::0;;73619:113::o;49045:3523::-;49187:27;49217;49236:7;49217:18;:27::i;:::-;-1:-1:-1;;;;;49372:22:0;;;;49187:57;;-1:-1:-1;49432:45:0;;;;49428:95;;49479:44;-1:-1:-1;;;49479:7:0;:44::i;:::-;49537:27;48153:24;;;:15;:24;;;;;48381:26;;70537:10;47778:30;;;-1:-1:-1;;;;;47471:28:0;;47756:20;;;47753:56;49723:189;;49816:43;49833:4;70537:10;46269:164;:::i;49816:43::-;49811:101;;49861:51;-1:-1:-1;;;49861:7:0;:51::i;:::-;50061:15;50058:160;;;50201:1;50180:19;50173:30;50058:160;-1:-1:-1;;;;;50598:24:0;;;;;;;:18;:24;;;;;;50596:26;;-1:-1:-1;;50596:26:0;;;50667:22;;;;;;;;;50665:24;;-1:-1:-1;50665:24:0;;;44130:11;44105:23;44101:41;44088:63;-1:-1:-1;;;44088:63:0;50960:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;51255:47:0;;:52;;51251:627;;51360:1;51350:11;;51328:19;51483:30;;;:17;:30;;;;;;:35;;51479:384;;51621:13;;51606:11;:28;51602:242;;51768:30;;;;:17;:30;;;;;:52;;;51602:242;51309:569;51251:627;-1:-1:-1;;;;;52010:20:0;;52390:7;52010:20;52320:4;52262:25;51991:16;;52127:299;52451:8;52463:1;52451:13;52447:58;;52466:39;-1:-1:-1;;;52466:7:0;:39::i;:::-;49176:3392;;;;49045:3523;;;:::o;75451:157::-;75507:7;75527:9;75571:10;;75556:11;75540:13;34293:12;;34080:7;34277:13;:28;;34019:323;75540:13;:27;;;;:::i;:::-;75539:42;;;;:::i;:::-;75527:54;75451:157;-1:-1:-1;;;75451:157:0:o;77402:155::-;17303:13;:11;:13::i;:::-;77459:7:::1;77480;17490:6:::0;;-1:-1:-1;;;;;17490:6:0;;17417:87;77480:7:::1;-1:-1:-1::0;;;;;77472:21:0::1;77501;77472:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77458:69;;;77546:2;77538:11;;;::::0;::::1;;77447:110;77402:155::o:0;72926:24::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;52664:193::-;52810:39;52827:4;52833:2;52837:7;52810:39;;;;;;;;;;;;:16;:39::i;:::-;52664:193;;;:::o;76718:86::-;17303:13;:11;:13::i;:::-;76781:4:::1;:15:::0;76718:86::o;77076:107::-;17303:13;:11;:13::i;:::-;77151:10:::1;:24;77164:11:::0;77151:10;:24:::1;:::i;39679:152::-:0;39751:7;39794:27;39813:7;39794:18;:27::i;35203:242::-;35275:7;-1:-1:-1;;;;;35299:19:0;;35295:69;;35320:44;-1:-1:-1;;;35320:7:0;:44::i;:::-;-1:-1:-1;;;;;;35382:25:0;;;;;:18;:25;;;;;;29362:13;35382:55;;35203:242::o;18065:103::-;17303:13;:11;:13::i;:::-;18130:30:::1;18157:1;18130:18;:30::i;:::-;18065:103::o:0;75792:304::-;17303:13;:11;:13::i;:::-;75901:17:::1;:24;73367:9;;73356:7;73340:13;34293:12:::0;;34080:7;34277:13;:28;;34019:323;73340:13:::1;:23;;;;:::i;:::-;:36;;73332:63;;;;-1:-1:-1::0;;;73332:63:0::1;;;;;;;:::i;:::-;;;;;;;;;75948:9:::2;75943:146;75967:17;:24;75963:1;:28;75943:146;;;76013:10;76026:17;76044:1;76026:20;;;;;;;;:::i;:::-;;;;;;;76013:33;;76061:16;76071:2;76075:1;76061:9;:16::i;:::-;-1:-1:-1::0;75993:3:0;::::2;::::0;::::2;:::i;:::-;;;;75943:146;;38453:104:::0;38509:13;38542:7;38535:14;;;;;:::i;74252:1191::-;74314:11;73367:9;;73356:7;73340:13;34293:12;;34080:7;34277:13;:28;;34019:323;73340:13;:23;;;;:::i;:::-;:36;;73332:63;;;;-1:-1:-1;;;73332:63:0;;;;;;;:::i;:::-;17490:6;;-1:-1:-1;;;;;17490:6:0;74342:10:::1;:21;74338:993;;74380:23;74406:21;74416:10;74406:9;:21::i;:::-;74453:6;::::0;74380:47;;-1:-1:-1;74453:6:0::1;;74452:7;74444:16;;;::::0;::::1;;74497:1;74483:11;:15;74475:64;;;::::0;-1:-1:-1;;;74475:64:0;;10891:2:1;74475:64:0::1;::::0;::::1;10873:21:1::0;10930:2;10910:18;;;10903:30;10969:34;10949:18;;;10942:62;-1:-1:-1;;;11020:18:1;;;11013:34;11064:19;;74475:64:0::1;10689:400:1::0;74475:64:0::1;74595:27;::::0;::::1;::::0;::::1;;;74580:42:::0;::::1;;74554:143;;;::::0;-1:-1:-1;;;74554:143:0;;11296:2:1;74554:143:0::1;::::0;::::1;11278:21:1::0;11335:2;11315:18;;;11308:30;11374:34;11354:18;;;11347:62;-1:-1:-1;;;11425:18:1;;;11418:37;11472:19;;74554:143:0::1;11094:403:1::0;74554:143:0::1;74773:22;::::0;;;::::1;;;74739:29;74757:11:::0;74739:15;:29:::1;:::i;:::-;74738:57;;74712:143;;;::::0;-1:-1:-1;;;74712:143:0;;11704:2:1;74712:143:0::1;::::0;::::1;11686:21:1::0;11743:2;11723:18;;;11716:30;11782:26;11762:18;;;11755:54;11826:18;;74712:143:0::1;11502:348:1::0;74712:143:0::1;74892:10;::::0;34293:12;;34080:7;34277:13;:28;74876:26:::1;74872:448;;;74961:10;;74945:11;74929:13;34293:12:::0;;34080:7;34277:13;:28;;34019:323;74929:13:::1;:27;;;;:::i;:::-;74927:44;74923:281;;;74996:9;75040:10;;75025:11;75009:13;34293:12:::0;;34080:7;34277:13;:28;;34019:323;75009:13:::1;:27;;;;:::i;:::-;75008:42;;;;:::i;:::-;74996:54:::0;-1:-1:-1;75077:5:0;;75073:112:::1;;75139:1;75132:4;;:8;;;;:::i;:::-;75119:9;:21;;75111:50;;;::::0;-1:-1:-1;;;75111:50:0;;12230:2:1;75111:50:0::1;::::0;::::1;12212:21:1::0;12269:2;12249:18;;;12242:30;-1:-1:-1;;;12288:18:1;;;12281:46;12344:18;;75111:50:0::1;12028:340:1::0;75111:50:0::1;74973:231;74923:281;74872:448;;;75272:11;75265:4;;:18;;;;:::i;:::-;75252:9;:31;;75244:60;;;::::0;-1:-1:-1;;;75244:60:0;;12230:2:1;75244:60:0::1;::::0;::::1;12212:21:1::0;12269:2;12249:18;;;12242:30;-1:-1:-1;;;12288:18:1;;;12281:46;12344:18;;75244:60:0::1;12028:340:1::0;75244:60:0::1;74365:966;74338:993;75343:34;75353:10;75365:11;75343:9;:34::i;:::-;75393:42;::::0;;12547:25:1;;;75425:9:0::1;12603:2:1::0;12588:18;;12581:34;75400:10:0::1;::::0;75393:42:::1;::::0;12520:18:1;75393:42:0::1;;;;;;;74252:1191:::0;;:::o;45878:234::-;70537:10;45973:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;45973:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;45973:60:0;;;;;;;;;;46049:55;;540:41:1;;;45973:49:0;;70537:10;46049:55;;513:18:1;46049:55:0;;;;;;;45878:234;;:::o;53455:416::-;53630:31;53643:4;53649:2;53653:7;53630:12;:31::i;:::-;-1:-1:-1;;;;;53676:14:0;;;:19;53672:192;;53715:56;53746:4;53752:2;53756:7;53765:5;53715:30;:56::i;:::-;53710:154;;53792:56;-1:-1:-1;;;53792:7:0;:56::i;:::-;53455:416;;;;:::o;77191:75::-;17303:13;:11;:13::i;:::-;77252:6:::1;::::0;;-1:-1:-1;;77242:16:0;::::1;77252:6;::::0;;::::1;77251:7;77242:16;::::0;;77191:75::o;76223:487::-;76341:13;76394:16;76402:7;76394;:16::i;:::-;76372:113;;;;-1:-1:-1;;;76372:113:0;;12828:2:1;76372:113:0;;;12810:21:1;12867:2;12847:18;;;12840:30;12906:34;12886:18;;;12879:62;-1:-1:-1;;;12957:18:1;;;12950:45;13012:19;;76372:113:0;12626:411:1;76372:113:0;76496:28;76527:10;:8;:10::i;:::-;76496:41;;76599:1;76574:14;76568:28;:32;:134;;;;;;;;;;;;;;;;;76644:14;76660:18;:7;:16;:18::i;:::-;76627:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;76548:154;76223:487;-1:-1:-1;;;76223:487:0:o;75616:168::-;17303:13;:11;:13::i;:::-;75720:11:::1;73367:9;;73356:7;73340:13;34293:12:::0;;34080:7;34277:13;:28;;34019:323;73340:13:::1;:23;;;;:::i;:::-;:36;;73332:63;;;;-1:-1:-1::0;;;73332:63:0::1;;;;;;;:::i;:::-;75749:27:::2;75759:3;75764:11;75749:9;:27::i;76949:119::-:0;17303:13;:11;:13::i;:::-;77028:22:::1;:32:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;77028:32:0;;::::1;::::0;;;::::1;::::0;;76949:119::o;74116:113::-;-1:-1:-1;;;;;35616:25:0;;74174:7;35616:25;;;:18;:25;;29500:2;35616:25;;;;29362:13;35616:50;;35615:82;74201:20;35527:178;76812:129;17303:13;:11;:13::i;:::-;76896:27:::1;:37:::0;;::::1;::::0;;::::1;;;-1:-1:-1::0;;76896:37:0;;::::1;::::0;;;::::1;::::0;;76812:129::o;46269:164::-;-1:-1:-1;;;;;46390:25:0;;;46366:4;46390:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;46269:164::o;18323:201::-;17303:13;:11;:13::i;:::-;-1:-1:-1;;;;;18412:22:0;::::1;18404:73;;;::::0;-1:-1:-1;;;18404:73:0;;13745:2:1;18404:73:0::1;::::0;::::1;13727:21:1::0;13784:2;13764:18;;;13757:30;13823:34;13803:18;;;13796:62;-1:-1:-1;;;13874:18:1;;;13867:36;13920:19;;18404:73:0::1;13543:402:1::0;18404:73:0::1;18488:28;18507:8;18488:18;:28::i;73808:300::-:0;73908:11;73367:9;;73356:7;73340:13;34293:12;;34080:7;34277:13;:28;;34019:323;73340:13;:23;;;;:::i;:::-;:36;;73332:63;;;;-1:-1:-1;;;73332:63:0;;;;;;;:::i;:::-;73973:17:::1;::::0;-1:-1:-1;;;;;73973:17:0::1;73959:10;:31;73937:120;;;::::0;-1:-1:-1;;;73937:120:0;;14152:2:1;73937:120:0::1;::::0;::::1;14134:21:1::0;14191:2;14171:18;;;14164:30;14230:34;14210:18;;;14203:62;-1:-1:-1;;;14281:18:1;;;14274:37;14328:19;;73937:120:0::1;13950:403:1::0;73937:120:0::1;74068:32;74078:8;74088:11;74068:9;:32::i;46691:368::-:0;46756:11;46841:13;;46831:7;:23;46827:214;;;46875:14;46908:60;-1:-1:-1;46925:26:0;;;;:17;:26;;;;;;;46915:42;;;46908:60;;46959:9;;;:::i;:::-;;;46908:60;;;-1:-1:-1;;;46996:24:0;:29;;-1:-1:-1;46827:214:0;46691:368;;;:::o;72469:165::-;72570:13;72564:4;72557:27;72611:4;72605;72598:18;63902:474;64031:13;64047:16;64055:7;64047;:16::i;:::-;64031:32;;64080:13;:45;;;;-1:-1:-1;70537:10:0;-1:-1:-1;;;;;64097:28:0;;;;64080:45;64076:201;;;64145:44;64162:5;70537:10;46269:164;:::i;64145:44::-;64140:137;;64210:51;-1:-1:-1;;;64210:7:0;:51::i;:::-;64289:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;64289:35:0;-1:-1:-1;;;;;64289:35:0;;;;;;;;;64340:28;;64289:24;;64340:28;;;;;;;64020:356;63902:474;;;:::o;17582:132::-;17490:6;;-1:-1:-1;;;;;17490:6:0;70537:10;17646:23;17638:68;;;;-1:-1:-1;;;17638:68:0;;14701:2:1;17638:68:0;;;14683:21:1;;;14720:18;;;14713:30;14779:34;14759:18;;;14752:62;14831:18;;17638:68:0;14499:356:1;41159:2012:0;41309:26;;;;:17;:26;;;;;;;41435:11;;;41431:1292;;41482:13;;41471:7;:24;41467:77;;41497:47;-1:-1:-1;;;41497:7:0;:47::i;:::-;42101:607;-1:-1:-1;;;42197:9:0;42179:28;;;;:17;:28;;;;;;42253:25;;42101:607;42253:25;-1:-1:-1;;;42305:6:0;:24;42333:1;42305:29;42301:48;;41159:2012;;;:::o;42301:48::-;42641:47;-1:-1:-1;;;42641:7:0;:47::i;:::-;42101:607;;41431:1292;-1:-1:-1;;;43050:6:0;:24;43078:1;43050:29;43046:48;;41159:2012;;;:::o;43046:48::-;43116:47;-1:-1:-1;;;43116:7:0;:47::i;18684:191::-;18777:6;;;-1:-1:-1;;;;;18794:17:0;;;-1:-1:-1;;;;;;18794:17:0;;;;;;;18827:40;;18777:6;;;18794:17;18777:6;;18827:40;;18758:16;;18827:40;18747:128;18684:191;:::o;77274:120::-;77353:33;77363:9;77374:11;77353:9;:33::i;55955:691::-;56139:88;;-1:-1:-1;;;56139:88:0;;56118:4;;-1:-1:-1;;;;;56139:45:0;;;;;:88;;70537:10;;56206:4;;56212:7;;56221:5;;56139:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56139:88:0;;;;;;;;-1:-1:-1;;56139:88:0;;;;;;;;;;;;:::i;:::-;;;56135:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56422:6;:13;56439:1;56422:18;56418:115;;56461:56;-1:-1:-1;;;56461:7:0;:56::i;:::-;56605:6;56599:13;56590:6;56586:2;56582:15;56575:38;56135:504;-1:-1:-1;;;;;;56298:64:0;-1:-1:-1;;;56298:64:0;;-1:-1:-1;56135:504:0;55955:691;;;;;;:::o;76104:111::-;76164:13;76197:10;76190:17;;;;;:::i;13373:727::-;13429:13;13480:14;13497:28;13519:5;13497:21;:28::i;:::-;13528:1;13497:32;13480:49;;13544:20;13578:6;13567:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13567:18:0;-1:-1:-1;13544:41:0;-1:-1:-1;13709:28:0;;;13725:2;13709:28;13766:288;-1:-1:-1;;13798:5:0;-1:-1:-1;;;13935:2:0;13924:14;;13919:30;13798:5;13906:44;13996:2;13987:11;;;-1:-1:-1;14017:21:0;13766:288;14017:21;-1:-1:-1;14075:6:0;13373:727;-1:-1:-1;;;13373:727:0:o;62984:112::-;63061:27;63071:2;63075:8;63061:27;;;;;;;;;;;;:9;:27::i;10205:922::-;10258:7;;-1:-1:-1;;;10336:15:0;;10332:102;;-1:-1:-1;;;10372:15:0;;;-1:-1:-1;10416:2:0;10406:12;10332:102;10461:6;10452:5;:15;10448:102;;10497:6;10488:15;;;-1:-1:-1;10532:2:0;10522:12;10448:102;10577:6;10568:5;:15;10564:102;;10613:6;10604:15;;;-1:-1:-1;10648:2:0;10638:12;10564:102;10693:5;10684;:14;10680:99;;10728:5;10719:14;;;-1:-1:-1;10762:1:0;10752:11;10680:99;10806:5;10797;:14;10793:99;;10841:5;10832:14;;;-1:-1:-1;10875:1:0;10865:11;10793:99;10919:5;10910;:14;10906:99;;10954:5;10945:14;;;-1:-1:-1;10988:1:0;10978:11;10906:99;11032:5;11023;:14;11019:66;;11068:1;11058:11;11113:6;10205:922;-1:-1:-1;;10205:922:0:o;62192:708::-;62323:19;62329:2;62333:8;62323:5;:19::i;:::-;-1:-1:-1;;;;;62384:14:0;;;:19;62380:502;;62424:11;62438:13;62486:14;;;62519:242;62550:62;62589:1;62593:2;62597:7;;;;;;62606:5;62550:30;:62::i;:::-;62545:176;;62641:56;-1:-1:-1;;;62641:7:0;:56::i;:::-;62756:3;62748:5;:11;62519:242;;62843:3;62826:13;;:20;62822:44;;62848:18;62863:1;62848:7;:18::i;:::-;62405:477;;62192:708;;;:::o;57108:2305::-;57181:20;57204:13;;;57232;;;57228:53;;57247:34;-1:-1:-1;;;57247:7:0;:34::i;:::-;57794:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;43956:28:0;;44130:11;44105:23;44101:41;44574:1;44561:15;;44535:24;44531:46;44098:52;44088:63;;57794:173;;;58185:22;;;:18;:22;;;;;:71;;58223:32;58211:45;;58185:71;;;43956:28;58446:13;;;58442:54;;58461:35;-1:-1:-1;;;58461:7:0;:35::i;:::-;58527:23;;;:12;58612:676;59031:7;58987:8;58942:1;58876:25;58813:1;58748;58717:358;59283:3;59270:9;;;;;;:16;58612:676;;-1:-1:-1;59304:13:0;:19;-1:-1:-1;52664:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1919:254;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2178:186::-;2237:6;2290:2;2278:9;2269:7;2265:23;2261:32;2258:52;;;2306:1;2303;2296:12;2258:52;2329:29;2348:9;2329:29;:::i;2551:328::-;2628:6;2636;2644;2697:2;2685:9;2676:7;2672:23;2668:32;2665:52;;;2713:1;2710;2703:12;2665:52;2736:29;2755:9;2736:29;:::i;:::-;2726:39;;2784:38;2818:2;2807:9;2803:18;2784:38;:::i;:::-;2774:48;;2869:2;2858:9;2854:18;2841:32;2831:42;;2551:328;;;;;:::o;2884:127::-;2945:10;2940:3;2936:20;2933:1;2926:31;2976:4;2973:1;2966:15;3000:4;2997:1;2990:15;3016:275;3087:2;3081:9;3152:2;3133:13;;-1:-1:-1;;3129:27:1;3117:40;;3187:18;3172:34;;3208:22;;;3169:62;3166:88;;;3234:18;;:::i;:::-;3270:2;3263:22;3016:275;;-1:-1:-1;3016:275:1:o;3296:407::-;3361:5;3395:18;3387:6;3384:30;3381:56;;;3417:18;;:::i;:::-;3455:57;3500:2;3479:15;;-1:-1:-1;;3475:29:1;3506:4;3471:40;3455:57;:::i;:::-;3446:66;;3535:6;3528:5;3521:21;3575:3;3566:6;3561:3;3557:16;3554:25;3551:45;;;3592:1;3589;3582:12;3551:45;3641:6;3636:3;3629:4;3622:5;3618:16;3605:43;3695:1;3688:4;3679:6;3672:5;3668:18;3664:29;3657:40;3296:407;;;;;:::o;3708:451::-;3777:6;3830:2;3818:9;3809:7;3805:23;3801:32;3798:52;;;3846:1;3843;3836:12;3798:52;3886:9;3873:23;3919:18;3911:6;3908:30;3905:50;;;3951:1;3948;3941:12;3905:50;3974:22;;4027:4;4019:13;;4015:27;-1:-1:-1;4005:55:1;;4056:1;4053;4046:12;4005:55;4079:74;4145:7;4140:2;4127:16;4122:2;4118;4114:11;4079:74;:::i;4164:952::-;4248:6;4279:2;4322;4310:9;4301:7;4297:23;4293:32;4290:52;;;4338:1;4335;4328:12;4290:52;4378:9;4365:23;4407:18;4448:2;4440:6;4437:14;4434:34;;;4464:1;4461;4454:12;4434:34;4502:6;4491:9;4487:22;4477:32;;4547:7;4540:4;4536:2;4532:13;4528:27;4518:55;;4569:1;4566;4559:12;4518:55;4605:2;4592:16;4627:2;4623;4620:10;4617:36;;;4633:18;;:::i;:::-;4679:2;4676:1;4672:10;4662:20;;4702:28;4726:2;4722;4718:11;4702:28;:::i;:::-;4764:15;;;4834:11;;;4830:20;;;4795:12;;;;4862:19;;;4859:39;;;4894:1;4891;4884:12;4859:39;4918:11;;;;4938:148;4954:6;4949:3;4946:15;4938:148;;;5020:23;5039:3;5020:23;:::i;:::-;5008:36;;4971:12;;;;5064;;;;4938:148;;;5105:5;4164:952;-1:-1:-1;;;;;;;;4164:952:1:o;5121:347::-;5186:6;5194;5247:2;5235:9;5226:7;5222:23;5218:32;5215:52;;;5263:1;5260;5253:12;5215:52;5286:29;5305:9;5286:29;:::i;:::-;5276:39;;5365:2;5354:9;5350:18;5337:32;5412:5;5405:13;5398:21;5391:5;5388:32;5378:60;;5434:1;5431;5424:12;5378:60;5457:5;5447:15;;;5121:347;;;;;:::o;5473:667::-;5568:6;5576;5584;5592;5645:3;5633:9;5624:7;5620:23;5616:33;5613:53;;;5662:1;5659;5652:12;5613:53;5685:29;5704:9;5685:29;:::i;:::-;5675:39;;5733:38;5767:2;5756:9;5752:18;5733:38;:::i;:::-;5723:48;;5818:2;5807:9;5803:18;5790:32;5780:42;;5873:2;5862:9;5858:18;5845:32;5900:18;5892:6;5889:30;5886:50;;;5932:1;5929;5922:12;5886:50;5955:22;;6008:4;6000:13;;5996:27;-1:-1:-1;5986:55:1;;6037:1;6034;6027:12;5986:55;6060:74;6126:7;6121:2;6108:16;6103:2;6099;6095:11;6060:74;:::i;:::-;6050:84;;;5473:667;;;;;;;:::o;6338:272::-;6396:6;6449:2;6437:9;6428:7;6424:23;6420:32;6417:52;;;6465:1;6462;6455:12;6417:52;6504:9;6491:23;6554:6;6547:5;6543:18;6536:5;6533:29;6523:57;;6576:1;6573;6566:12;6615:260;6683:6;6691;6744:2;6732:9;6723:7;6719:23;6715:32;6712:52;;;6760:1;6757;6750:12;6712:52;6783:29;6802:9;6783:29;:::i;:::-;6773:39;;6831:38;6865:2;6854:9;6850:18;6831:38;:::i;:::-;6821:48;;6615:260;;;;;:::o;6880:380::-;6959:1;6955:12;;;;7002;;;7023:61;;7077:4;7069:6;7065:17;7055:27;;7023:61;7130:2;7122:6;7119:14;7099:18;7096:38;7093:161;;7176:10;7171:3;7167:20;7164:1;7157:31;7211:4;7208:1;7201:15;7239:4;7236:1;7229:15;7093:161;;6880:380;;;:::o;7265:127::-;7326:10;7321:3;7317:20;7314:1;7307:31;7357:4;7354:1;7347:15;7381:4;7378:1;7371:15;7397:125;7462:9;;;7483:10;;;7480:36;;;7496:18;;:::i;7527:128::-;7594:9;;;7615:11;;;7612:37;;;7629:18;;:::i;7996:545::-;8098:2;8093:3;8090:11;8087:448;;;8134:1;8159:5;8155:2;8148:17;8204:4;8200:2;8190:19;8274:2;8262:10;8258:19;8255:1;8251:27;8245:4;8241:38;8310:4;8298:10;8295:20;8292:47;;;-1:-1:-1;8333:4:1;8292:47;8388:2;8383:3;8379:12;8376:1;8372:20;8366:4;8362:31;8352:41;;8443:82;8461:2;8454:5;8451:13;8443:82;;;8506:17;;;8487:1;8476:13;8443:82;;;8447:3;;;7996:545;;;:::o;8717:1352::-;8843:3;8837:10;8870:18;8862:6;8859:30;8856:56;;;8892:18;;:::i;:::-;8921:97;9011:6;8971:38;9003:4;8997:11;8971:38;:::i;:::-;8965:4;8921:97;:::i;:::-;9073:4;;9137:2;9126:14;;9154:1;9149:663;;;;9856:1;9873:6;9870:89;;;-1:-1:-1;9925:19:1;;;9919:26;9870:89;-1:-1:-1;;8674:1:1;8670:11;;;8666:24;8662:29;8652:40;8698:1;8694:11;;;8649:57;9972:81;;9119:944;;9149:663;7943:1;7936:14;;;7980:4;7967:18;;-1:-1:-1;;9185:20:1;;;9303:236;9317:7;9314:1;9311:14;9303:236;;;9406:19;;;9400:26;9385:42;;9498:27;;;;9466:1;9454:14;;;;9333:19;;9303:236;;;9307:3;9567:6;9558:7;9555:19;9552:201;;;9628:19;;;9622:26;-1:-1:-1;;9711:1:1;9707:14;;;9723:3;9703:24;9699:37;9695:42;9680:58;9665:74;;9552:201;-1:-1:-1;;;;;9799:1:1;9783:14;;;9779:22;9766:36;;-1:-1:-1;8717:1352:1:o;10074:338::-;10276:2;10258:21;;;10315:2;10295:18;;;10288:30;-1:-1:-1;;;10349:2:1;10334:18;;10327:44;10403:2;10388:18;;10074:338::o;10417:127::-;10478:10;10473:3;10469:20;10466:1;10459:31;10509:4;10506:1;10499:15;10533:4;10530:1;10523:15;10549:135;10588:3;10609:17;;;10606:43;;10629:18;;:::i;:::-;-1:-1:-1;10676:1:1;10665:13;;10549:135::o;11855:168::-;11928:9;;;11959;;11976:15;;;11970:22;;11956:37;11946:71;;11997:18;;:::i;13042:496::-;13221:3;13259:6;13253:13;13275:66;13334:6;13329:3;13322:4;13314:6;13310:17;13275:66;:::i;:::-;13404:13;;13363:16;;;;13426:70;13404:13;13363:16;13473:4;13461:17;;13426:70;:::i;:::-;13512:20;;13042:496;-1:-1:-1;;;;13042:496:1:o;14358:136::-;14397:3;14425:5;14415:39;;14434:18;;:::i;:::-;-1:-1:-1;;;14470:18:1;;14358:136::o;14860:489::-;-1:-1:-1;;;;;15129:15:1;;;15111:34;;15181:15;;15176:2;15161:18;;15154:43;15228:2;15213:18;;15206:34;;;15276:3;15271:2;15256:18;;15249:31;;;15054:4;;15297:46;;15323:19;;15315:6;15297:46;:::i;:::-;15289:54;14860:489;-1:-1:-1;;;;;;14860:489:1:o;15354:249::-;15423:6;15476:2;15464:9;15455:7;15451:23;15447:32;15444:52;;;15492:1;15489;15482:12;15444:52;15524:9;15518:16;15543:30;15567:5;15543:30;:::i
Swarm Source
ipfs://ad7cfcec1fb42241b5585f3ac5c3f248128cf794d2e551b1448915d47454f5b9
Loading...
Loading
Loading...
Loading
OVERVIEW
5000 NFTs, 1500 Free, 3500 at 0.01ETH. Party Like Degen Probably NothingReveal 27th March 2023Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,507.72 | 0.0077 | $19.31 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.