Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 74 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 19427266 | 176 days ago | IN | 0 ETH | 0.00247187 | ||||
Safe Transfer Fr... | 16811746 | 543 days ago | IN | 0 ETH | 0.00077335 | ||||
Safe Transfer Fr... | 16811743 | 543 days ago | IN | 0 ETH | 0.00113538 | ||||
Safe Transfer Fr... | 16811740 | 543 days ago | IN | 0 ETH | 0.00112814 | ||||
Set Approval For... | 16808238 | 544 days ago | IN | 0 ETH | 0.00117884 | ||||
Mint | 16572365 | 577 days ago | IN | 0.05 ETH | 0.002111 | ||||
Safe Transfer Fr... | 16497192 | 587 days ago | IN | 0 ETH | 0.00116709 | ||||
Withdraw | 16414232 | 599 days ago | IN | 0 ETH | 0.00063169 | ||||
Mint | 16320665 | 612 days ago | IN | 0.05 ETH | 0.00136072 | ||||
Safe Transfer Fr... | 16300060 | 615 days ago | IN | 0 ETH | 0.00129958 | ||||
Transfer From | 16300050 | 615 days ago | IN | 0 ETH | 0.0012303 | ||||
Transfer From | 16300024 | 615 days ago | IN | 0 ETH | 0.00265821 | ||||
Transfer From | 16291257 | 616 days ago | IN | 0 ETH | 0.00308473 | ||||
Transfer From | 16284323 | 617 days ago | IN | 0 ETH | 0.00254565 | ||||
Mint | 16282348 | 617 days ago | IN | 0.05 ETH | 0.00128321 | ||||
Transfer From | 16262862 | 620 days ago | IN | 0 ETH | 0.00075994 | ||||
Transfer From | 16255670 | 621 days ago | IN | 0 ETH | 0.00121357 | ||||
Transfer From | 16255464 | 621 days ago | IN | 0 ETH | 0.00128172 | ||||
Transfer From | 16247064 | 622 days ago | IN | 0 ETH | 0.00090246 | ||||
Mint | 16240903 | 623 days ago | IN | 0.15 ETH | 0.00160157 | ||||
Set Approval For... | 16227024 | 625 days ago | IN | 0 ETH | 0.00093578 | ||||
Mint | 16225364 | 625 days ago | IN | 0.05 ETH | 0.00095968 | ||||
Mint | 16224775 | 625 days ago | IN | 0.05 ETH | 0.00111614 | ||||
Mint | 16219232 | 626 days ago | IN | 0.05 ETH | 0.00398332 | ||||
Mint | 16213037 | 627 days ago | IN | 0.05 ETH | 0.00108222 |
Loading...
Loading
Contract Name:
Musiverse
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-01-15 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: contracts/Musiverse.sol pragma solidity >=0.8.9 <0.9.0; contract Musiverse is ERC721A, Ownable { using Strings for uint256; string public uriPrefix = "ipfs://QmV8og58HgNQVCU413dx8wWQ5W9ZryxuNXmgudaP33Rgxg/"; string public uriSuffix = '.json'; string public hiddenMetadataUri = "ipfs://hidden/"; uint256 public cost = 0.05 ether; uint256 public maxSupply = 1700; uint256 public maxMintAmountPerTx = 5; uint256 public maxMintAmountPerWallet = 10; bool public paused = false; bool public revealed = true; constructor() ERC721A("Musiverse","Musiverse") {} modifier mintCompliance(uint256 _mintAmount) { require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, 'Invalid mint amount!'); require(totalSupply() + _mintAmount <= maxSupply, 'Max supply exceeded!'); _; } modifier mintPriceCompliance(uint256 _mintAmount) { require(msg.value >= cost * _mintAmount, 'Insufficient funds!'); _; } function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount) { require(!paused,"The contract is paused!"); require(balanceOf(_msgSender()) + _mintAmount <= maxMintAmountPerWallet, 'Wallet limit exceeded!'); _safeMint(_msgSender(), _mintAmount); } function mintForAddress(uint256 _mintAmount, address _receiver) public onlyOwner { require(totalSupply() + _mintAmount <= maxSupply, 'Max supply exceeded!'); _safeMint(_receiver, _mintAmount); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function setCost(uint256 _cost) public onlyOwner { cost = _cost; } function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } function setMaxMintAmountPerWallet(uint256 _maxMintAmountPerWallet) public onlyOwner { maxMintAmountPerWallet = _maxMintAmountPerWallet; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function setPaused(bool _state) public onlyOwner { paused = _state; } function withdraw() public onlyOwner { payable(0xC53BEEbd69fd63A6D7C1ab87815A5f0c52372DB3).transfer(address(this).balance); } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } /// @dev walletOf() function shouldn't be called on-chain due to gas consumption function walletOf(address _owner) external view returns(uint256[] memory){ uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = 1; uint256 ownedTokenIndex = 0; while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) { address currentTokenOwner = ownerOf(currentTokenId); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerWallet","type":"uint256"}],"name":"setMaxMintAmountPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e060405260366080818152906200203960a039805162000029916009916020909101906200018e565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200005891600a916200018e565b5060408051808201909152600e8082526d697066733a2f2f68696464656e2f60901b60209092019182526200009091600b916200018e565b5066b1a2bc2ec50000600c556106a4600d556005600e55600a600f556010805461ffff1916610100179055348015620000c857600080fd5b506040805180820182526009808252684d757369766572736560b81b6020808401828152855180870190965292855284015281519192916200010d916002916200018e565b508051620001239060039060208401906200018e565b505060016000555062000136336200013c565b62000271565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019c9062000234565b90600052602060002090601f016020900481019282620001c057600085556200020b565b82601f10620001db57805160ff19168380011785556200020b565b828001600101855582156200020b579182015b828111156200020b578251825591602001919060010190620001ee565b50620002199291506200021d565b5090565b5b808211156200021957600081556001016200021e565b600181811c908216806200024957607f821691505b602082108114156200026b57634e487b7160e01b600052602260045260246000fd5b50919050565b611db880620002816000396000f3fe6080604052600436106102305760003560e01c80636f8b44b01161012e578063a45ba8e7116100ab578063d5abeb011161006f578063d5abeb0114610614578063e0a808531461062a578063e985e9c51461064a578063efbd73f414610693578063f2fde38b146106b357600080fd5b8063a45ba8e714610596578063b071401b146105ab578063b88d4fde146105cb578063bc951b91146105de578063c87b56dd146105f457600080fd5b80638da5cb5b116100f25780638da5cb5b1461051a57806394354fd01461053857806395d89b411461054e578063a0712d6814610563578063a22cb4651461057657600080fd5b80636f8b44b01461048557806370a08231146104a5578063715018a6146104c5578063766b7d09146104da5780637ec4a659146104fa57600080fd5b806323b872dd116101bc578063518302271161018057806351830227146104025780635503a0e8146104215780635c975abb1461043657806362b99ad4146104505780636352211e1461046557600080fd5b806323b872dd146103875780633ccfd60b1461039a57806342842e0e146103af57806344a0d68a146103c25780634fdd43cb146103e257600080fd5b806313faede61161020357806313faede6146102d957806316ba10e0146102fd57806316c38b3c1461031d57806318160ddd1461033d5780631982640c1461035a57600080fd5b806301ffc9a71461023557806306fdde031461026a578063081812fc1461028c578063095ea7b3146102c4575b600080fd5b34801561024157600080fd5b5061025561025036600461182d565b6106d3565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f610725565b60405161026191906118a2565b34801561029857600080fd5b506102ac6102a73660046118b5565b6107b7565b6040516001600160a01b039091168152602001610261565b6102d76102d23660046118ea565b6107fb565b005b3480156102e557600080fd5b506102ef600c5481565b604051908152602001610261565b34801561030957600080fd5b506102d76103183660046119a0565b61089b565b34801561032957600080fd5b506102d76103383660046119f9565b6108ba565b34801561034957600080fd5b5060015460005403600019016102ef565b34801561036657600080fd5b5061037a610375366004611a14565b6108d5565b6040516102619190611a2f565b6102d7610395366004611a73565b6109b6565b3480156103a657600080fd5b506102d7610b47565b6102d76103bd366004611a73565b610b92565b3480156103ce57600080fd5b506102d76103dd3660046118b5565b610bb2565b3480156103ee57600080fd5b506102d76103fd3660046119a0565b610bbf565b34801561040e57600080fd5b5060105461025590610100900460ff1681565b34801561042d57600080fd5b5061027f610bda565b34801561044257600080fd5b506010546102559060ff1681565b34801561045c57600080fd5b5061027f610c68565b34801561047157600080fd5b506102ac6104803660046118b5565b610c75565b34801561049157600080fd5b506102d76104a03660046118b5565b610c80565b3480156104b157600080fd5b506102ef6104c0366004611a14565b610c8d565b3480156104d157600080fd5b506102d7610cdc565b3480156104e657600080fd5b506102d76104f53660046118b5565b610cf0565b34801561050657600080fd5b506102d76105153660046119a0565b610cfd565b34801561052657600080fd5b506008546001600160a01b03166102ac565b34801561054457600080fd5b506102ef600e5481565b34801561055a57600080fd5b5061027f610d18565b6102d76105713660046118b5565b610d27565b34801561058257600080fd5b506102d7610591366004611aaf565b610ef1565b3480156105a257600080fd5b5061027f610f5d565b3480156105b757600080fd5b506102d76105c63660046118b5565b610f6a565b6102d76105d9366004611ae2565b610f77565b3480156105ea57600080fd5b506102ef600f5481565b34801561060057600080fd5b5061027f61060f3660046118b5565b610fc1565b34801561062057600080fd5b506102ef600d5481565b34801561063657600080fd5b506102d76106453660046119f9565b611130565b34801561065657600080fd5b50610255610665366004611b5e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561069f57600080fd5b506102d76106ae366004611b88565b611152565b3480156106bf57600080fd5b506102d76106ce366004611a14565b6111c4565b60006301ffc9a760e01b6001600160e01b03198316148061070457506380ac58cd60e01b6001600160e01b03198316145b8061071f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461073490611bab565b80601f016020809104026020016040519081016040528092919081815260200182805461076090611bab565b80156107ad5780601f10610782576101008083540402835291602001916107ad565b820191906000526020600020905b81548152906001019060200180831161079057829003601f168201915b5050505050905090565b60006107c28261123a565b6107df576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061080682610c75565b9050336001600160a01b0382161461083f576108228133610665565b61083f576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6108a361126f565b80516108b690600a90602084019061177e565b5050565b6108c261126f565b6010805460ff1916911515919091179055565b606060006108e283610c8d565b905060008167ffffffffffffffff8111156108ff576108ff611914565b604051908082528060200260200182016040528015610928578160200160208202803683370190505b509050600160005b83811080156109415750600d548211155b156109ac57600061095183610c75565b9050866001600160a01b0316816001600160a01b03161415610999578284838151811061098057610980611be6565b60209081029190910101528161099581611c12565b9250505b826109a381611c12565b93505050610930565b5090949350505050565b60006109c1826112c9565b9050836001600160a01b0316816001600160a01b0316146109f45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610a4157610a248633610665565b610a4157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a6857604051633a954ecd60e21b815260040160405180910390fd5b8015610a7357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610afe5760018401600081815260046020526040902054610afc576000548114610afc5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610b4f61126f565b60405173c53beebd69fd63a6d7c1ab87815a5f0c52372db3904780156108fc02916000818181858888f19350505050158015610b8f573d6000803e3d6000fd5b50565b610bad83838360405180602001604052806000815250610f77565b505050565b610bba61126f565b600c55565b610bc761126f565b80516108b690600b90602084019061177e565b600a8054610be790611bab565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1390611bab565b8015610c605780601f10610c3557610100808354040283529160200191610c60565b820191906000526020600020905b815481529060010190602001808311610c4357829003601f168201915b505050505081565b60098054610be790611bab565b600061071f826112c9565b610c8861126f565b600d55565b60006001600160a01b038216610cb6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ce461126f565b610cee6000611332565b565b610cf861126f565b600f55565b610d0561126f565b80516108b690600990602084019061177e565b60606003805461073490611bab565b80600081118015610d3a5750600e548111155b610d825760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b60448201526064015b60405180910390fd5b600d546001546000548391900360001901610d9d9190611c2d565b1115610de25760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610d79565b8180600c54610df19190611c45565b341015610e365760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610d79565b60105460ff1615610e895760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610d79565b600f5483610e9633610c8d565b610ea09190611c2d565b1115610ee75760405162461bcd60e51b815260206004820152601660248201527557616c6c6574206c696d69742065786365656465642160501b6044820152606401610d79565b610bad3384611384565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b8054610be790611bab565b610f7261126f565b600e55565b610f828484846109b6565b6001600160a01b0383163b15610fbb57610f9e8484848461139e565b610fbb576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fcc8261123a565b6110305760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d79565b601054610100900460ff166110d157600b805461104c90611bab565b80601f016020809104026020016040519081016040528092919081815260200182805461107890611bab565b80156110c55780601f1061109a576101008083540402835291602001916110c5565b820191906000526020600020905b8154815290600101906020018083116110a857829003601f168201915b50505050509050919050565b60006110db611496565b905060008151116110fb5760405180602001604052806000815250611129565b80611105846114a5565b600a60405160200161111993929190611c64565b6040516020818303038152906040525b9392505050565b61113861126f565b601080549115156101000261ff0019909216919091179055565b61115a61126f565b600d5460015460005484919003600019016111759190611c2d565b11156111ba5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610d79565b6108b68183611384565b6111cc61126f565b6001600160a01b0381166112315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d79565b610b8f81611332565b60008160011115801561124e575060005482105b801561071f575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610cee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d79565b600081806001116113195760005481101561131957600081815260046020526040902054600160e01b8116611317575b806111295750600019016000818152600460205260409020546112f9565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6108b6828260405180602001604052806000815250611542565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906113d3903390899088908890600401611d28565b602060405180830381600087803b1580156113ed57600080fd5b505af192505050801561141d575060408051601f3d908101601f1916820190925261141a91810190611d65565b60015b611478573d80801561144b576040519150601f19603f3d011682016040523d82523d6000602084013e611450565b606091505b508051611470576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606009805461073490611bab565b606060006114b2836115af565b600101905060008167ffffffffffffffff8111156114d2576114d2611914565b6040519080825280601f01601f1916602001820160405280156114fc576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846115355761153a565b611506565b509392505050565b61154c8383611687565b6001600160a01b0383163b15610bad576000548281035b611576600086838060010194508661139e565b611593576040516368d2bf6b60e11b815260040160405180910390fd5b8181106115635781600054146115a857600080fd5b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106115ee5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061161a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061163857662386f26fc10000830492506010015b6305f5e1008310611650576305f5e100830492506008015b612710831061166457612710830492506004015b60648310611676576064830492506002015b600a831061071f5760010192915050565b600054816116a85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461175757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161171f565b508161177557604051622e076360e81b815260040160405180910390fd5b60005550505050565b82805461178a90611bab565b90600052602060002090601f0160209004810192826117ac57600085556117f2565b82601f106117c557805160ff19168380011785556117f2565b828001600101855582156117f2579182015b828111156117f25782518255916020019190600101906117d7565b506117fe929150611802565b5090565b5b808211156117fe5760008155600101611803565b6001600160e01b031981168114610b8f57600080fd5b60006020828403121561183f57600080fd5b813561112981611817565b60005b8381101561186557818101518382015260200161184d565b83811115610fbb5750506000910152565b6000815180845261188e81602086016020860161184a565b601f01601f19169290920160200192915050565b6020815260006111296020830184611876565b6000602082840312156118c757600080fd5b5035919050565b80356001600160a01b03811681146118e557600080fd5b919050565b600080604083850312156118fd57600080fd5b611906836118ce565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561194557611945611914565b604051601f8501601f19908116603f0116810190828211818310171561196d5761196d611914565b8160405280935085815286868601111561198657600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156119b257600080fd5b813567ffffffffffffffff8111156119c957600080fd5b8201601f810184136119da57600080fd5b61148e8482356020840161192a565b803580151581146118e557600080fd5b600060208284031215611a0b57600080fd5b611129826119e9565b600060208284031215611a2657600080fd5b611129826118ce565b6020808252825182820181905260009190848201906040850190845b81811015611a6757835183529284019291840191600101611a4b565b50909695505050505050565b600080600060608486031215611a8857600080fd5b611a91846118ce565b9250611a9f602085016118ce565b9150604084013590509250925092565b60008060408385031215611ac257600080fd5b611acb836118ce565b9150611ad9602084016119e9565b90509250929050565b60008060008060808587031215611af857600080fd5b611b01856118ce565b9350611b0f602086016118ce565b925060408501359150606085013567ffffffffffffffff811115611b3257600080fd5b8501601f81018713611b4357600080fd5b611b528782356020840161192a565b91505092959194509250565b60008060408385031215611b7157600080fd5b611b7a836118ce565b9150611ad9602084016118ce565b60008060408385031215611b9b57600080fd5b82359150611ad9602084016118ce565b600181811c90821680611bbf57607f821691505b60208210811415611be057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611c2657611c26611bfc565b5060010190565b60008219821115611c4057611c40611bfc565b500190565b6000816000190483118215151615611c5f57611c5f611bfc565b500290565b600084516020611c778285838a0161184a565b855191840191611c8a8184848a0161184a565b8554920191600090600181811c9080831680611ca757607f831692505b858310811415611cc557634e487b7160e01b85526022600452602485fd5b808015611cd95760018114611cea57611d17565b60ff19851688528388019550611d17565b60008b81526020902060005b85811015611d0f5781548a820152908401908801611cf6565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d5b90830184611876565b9695505050505050565b600060208284031215611d7757600080fd5b81516111298161181756fea2646970667358221220d2bc2f2f41b2dd50fa158adb4a74f928055baa720fa5c7e4a8a2dcb911f0fd1264736f6c63430008090033697066733a2f2f516d56386f67353848674e515643553431336478387757513557395a727978754e586d67756461503333526778672f
Deployed Bytecode
0x6080604052600436106102305760003560e01c80636f8b44b01161012e578063a45ba8e7116100ab578063d5abeb011161006f578063d5abeb0114610614578063e0a808531461062a578063e985e9c51461064a578063efbd73f414610693578063f2fde38b146106b357600080fd5b8063a45ba8e714610596578063b071401b146105ab578063b88d4fde146105cb578063bc951b91146105de578063c87b56dd146105f457600080fd5b80638da5cb5b116100f25780638da5cb5b1461051a57806394354fd01461053857806395d89b411461054e578063a0712d6814610563578063a22cb4651461057657600080fd5b80636f8b44b01461048557806370a08231146104a5578063715018a6146104c5578063766b7d09146104da5780637ec4a659146104fa57600080fd5b806323b872dd116101bc578063518302271161018057806351830227146104025780635503a0e8146104215780635c975abb1461043657806362b99ad4146104505780636352211e1461046557600080fd5b806323b872dd146103875780633ccfd60b1461039a57806342842e0e146103af57806344a0d68a146103c25780634fdd43cb146103e257600080fd5b806313faede61161020357806313faede6146102d957806316ba10e0146102fd57806316c38b3c1461031d57806318160ddd1461033d5780631982640c1461035a57600080fd5b806301ffc9a71461023557806306fdde031461026a578063081812fc1461028c578063095ea7b3146102c4575b600080fd5b34801561024157600080fd5b5061025561025036600461182d565b6106d3565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f610725565b60405161026191906118a2565b34801561029857600080fd5b506102ac6102a73660046118b5565b6107b7565b6040516001600160a01b039091168152602001610261565b6102d76102d23660046118ea565b6107fb565b005b3480156102e557600080fd5b506102ef600c5481565b604051908152602001610261565b34801561030957600080fd5b506102d76103183660046119a0565b61089b565b34801561032957600080fd5b506102d76103383660046119f9565b6108ba565b34801561034957600080fd5b5060015460005403600019016102ef565b34801561036657600080fd5b5061037a610375366004611a14565b6108d5565b6040516102619190611a2f565b6102d7610395366004611a73565b6109b6565b3480156103a657600080fd5b506102d7610b47565b6102d76103bd366004611a73565b610b92565b3480156103ce57600080fd5b506102d76103dd3660046118b5565b610bb2565b3480156103ee57600080fd5b506102d76103fd3660046119a0565b610bbf565b34801561040e57600080fd5b5060105461025590610100900460ff1681565b34801561042d57600080fd5b5061027f610bda565b34801561044257600080fd5b506010546102559060ff1681565b34801561045c57600080fd5b5061027f610c68565b34801561047157600080fd5b506102ac6104803660046118b5565b610c75565b34801561049157600080fd5b506102d76104a03660046118b5565b610c80565b3480156104b157600080fd5b506102ef6104c0366004611a14565b610c8d565b3480156104d157600080fd5b506102d7610cdc565b3480156104e657600080fd5b506102d76104f53660046118b5565b610cf0565b34801561050657600080fd5b506102d76105153660046119a0565b610cfd565b34801561052657600080fd5b506008546001600160a01b03166102ac565b34801561054457600080fd5b506102ef600e5481565b34801561055a57600080fd5b5061027f610d18565b6102d76105713660046118b5565b610d27565b34801561058257600080fd5b506102d7610591366004611aaf565b610ef1565b3480156105a257600080fd5b5061027f610f5d565b3480156105b757600080fd5b506102d76105c63660046118b5565b610f6a565b6102d76105d9366004611ae2565b610f77565b3480156105ea57600080fd5b506102ef600f5481565b34801561060057600080fd5b5061027f61060f3660046118b5565b610fc1565b34801561062057600080fd5b506102ef600d5481565b34801561063657600080fd5b506102d76106453660046119f9565b611130565b34801561065657600080fd5b50610255610665366004611b5e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561069f57600080fd5b506102d76106ae366004611b88565b611152565b3480156106bf57600080fd5b506102d76106ce366004611a14565b6111c4565b60006301ffc9a760e01b6001600160e01b03198316148061070457506380ac58cd60e01b6001600160e01b03198316145b8061071f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461073490611bab565b80601f016020809104026020016040519081016040528092919081815260200182805461076090611bab565b80156107ad5780601f10610782576101008083540402835291602001916107ad565b820191906000526020600020905b81548152906001019060200180831161079057829003601f168201915b5050505050905090565b60006107c28261123a565b6107df576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061080682610c75565b9050336001600160a01b0382161461083f576108228133610665565b61083f576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6108a361126f565b80516108b690600a90602084019061177e565b5050565b6108c261126f565b6010805460ff1916911515919091179055565b606060006108e283610c8d565b905060008167ffffffffffffffff8111156108ff576108ff611914565b604051908082528060200260200182016040528015610928578160200160208202803683370190505b509050600160005b83811080156109415750600d548211155b156109ac57600061095183610c75565b9050866001600160a01b0316816001600160a01b03161415610999578284838151811061098057610980611be6565b60209081029190910101528161099581611c12565b9250505b826109a381611c12565b93505050610930565b5090949350505050565b60006109c1826112c9565b9050836001600160a01b0316816001600160a01b0316146109f45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610a4157610a248633610665565b610a4157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a6857604051633a954ecd60e21b815260040160405180910390fd5b8015610a7357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610afe5760018401600081815260046020526040902054610afc576000548114610afc5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610b4f61126f565b60405173c53beebd69fd63a6d7c1ab87815a5f0c52372db3904780156108fc02916000818181858888f19350505050158015610b8f573d6000803e3d6000fd5b50565b610bad83838360405180602001604052806000815250610f77565b505050565b610bba61126f565b600c55565b610bc761126f565b80516108b690600b90602084019061177e565b600a8054610be790611bab565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1390611bab565b8015610c605780601f10610c3557610100808354040283529160200191610c60565b820191906000526020600020905b815481529060010190602001808311610c4357829003601f168201915b505050505081565b60098054610be790611bab565b600061071f826112c9565b610c8861126f565b600d55565b60006001600160a01b038216610cb6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ce461126f565b610cee6000611332565b565b610cf861126f565b600f55565b610d0561126f565b80516108b690600990602084019061177e565b60606003805461073490611bab565b80600081118015610d3a5750600e548111155b610d825760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b60448201526064015b60405180910390fd5b600d546001546000548391900360001901610d9d9190611c2d565b1115610de25760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610d79565b8180600c54610df19190611c45565b341015610e365760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610d79565b60105460ff1615610e895760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610d79565b600f5483610e9633610c8d565b610ea09190611c2d565b1115610ee75760405162461bcd60e51b815260206004820152601660248201527557616c6c6574206c696d69742065786365656465642160501b6044820152606401610d79565b610bad3384611384565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b8054610be790611bab565b610f7261126f565b600e55565b610f828484846109b6565b6001600160a01b0383163b15610fbb57610f9e8484848461139e565b610fbb576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fcc8261123a565b6110305760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d79565b601054610100900460ff166110d157600b805461104c90611bab565b80601f016020809104026020016040519081016040528092919081815260200182805461107890611bab565b80156110c55780601f1061109a576101008083540402835291602001916110c5565b820191906000526020600020905b8154815290600101906020018083116110a857829003601f168201915b50505050509050919050565b60006110db611496565b905060008151116110fb5760405180602001604052806000815250611129565b80611105846114a5565b600a60405160200161111993929190611c64565b6040516020818303038152906040525b9392505050565b61113861126f565b601080549115156101000261ff0019909216919091179055565b61115a61126f565b600d5460015460005484919003600019016111759190611c2d565b11156111ba5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610d79565b6108b68183611384565b6111cc61126f565b6001600160a01b0381166112315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d79565b610b8f81611332565b60008160011115801561124e575060005482105b801561071f575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610cee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d79565b600081806001116113195760005481101561131957600081815260046020526040902054600160e01b8116611317575b806111295750600019016000818152600460205260409020546112f9565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6108b6828260405180602001604052806000815250611542565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906113d3903390899088908890600401611d28565b602060405180830381600087803b1580156113ed57600080fd5b505af192505050801561141d575060408051601f3d908101601f1916820190925261141a91810190611d65565b60015b611478573d80801561144b576040519150601f19603f3d011682016040523d82523d6000602084013e611450565b606091505b508051611470576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606009805461073490611bab565b606060006114b2836115af565b600101905060008167ffffffffffffffff8111156114d2576114d2611914565b6040519080825280601f01601f1916602001820160405280156114fc576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846115355761153a565b611506565b509392505050565b61154c8383611687565b6001600160a01b0383163b15610bad576000548281035b611576600086838060010194508661139e565b611593576040516368d2bf6b60e11b815260040160405180910390fd5b8181106115635781600054146115a857600080fd5b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106115ee5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061161a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061163857662386f26fc10000830492506010015b6305f5e1008310611650576305f5e100830492506008015b612710831061166457612710830492506004015b60648310611676576064830492506002015b600a831061071f5760010192915050565b600054816116a85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461175757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161171f565b508161177557604051622e076360e81b815260040160405180910390fd5b60005550505050565b82805461178a90611bab565b90600052602060002090601f0160209004810192826117ac57600085556117f2565b82601f106117c557805160ff19168380011785556117f2565b828001600101855582156117f2579182015b828111156117f25782518255916020019190600101906117d7565b506117fe929150611802565b5090565b5b808211156117fe5760008155600101611803565b6001600160e01b031981168114610b8f57600080fd5b60006020828403121561183f57600080fd5b813561112981611817565b60005b8381101561186557818101518382015260200161184d565b83811115610fbb5750506000910152565b6000815180845261188e81602086016020860161184a565b601f01601f19169290920160200192915050565b6020815260006111296020830184611876565b6000602082840312156118c757600080fd5b5035919050565b80356001600160a01b03811681146118e557600080fd5b919050565b600080604083850312156118fd57600080fd5b611906836118ce565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561194557611945611914565b604051601f8501601f19908116603f0116810190828211818310171561196d5761196d611914565b8160405280935085815286868601111561198657600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156119b257600080fd5b813567ffffffffffffffff8111156119c957600080fd5b8201601f810184136119da57600080fd5b61148e8482356020840161192a565b803580151581146118e557600080fd5b600060208284031215611a0b57600080fd5b611129826119e9565b600060208284031215611a2657600080fd5b611129826118ce565b6020808252825182820181905260009190848201906040850190845b81811015611a6757835183529284019291840191600101611a4b565b50909695505050505050565b600080600060608486031215611a8857600080fd5b611a91846118ce565b9250611a9f602085016118ce565b9150604084013590509250925092565b60008060408385031215611ac257600080fd5b611acb836118ce565b9150611ad9602084016119e9565b90509250929050565b60008060008060808587031215611af857600080fd5b611b01856118ce565b9350611b0f602086016118ce565b925060408501359150606085013567ffffffffffffffff811115611b3257600080fd5b8501601f81018713611b4357600080fd5b611b528782356020840161192a565b91505092959194509250565b60008060408385031215611b7157600080fd5b611b7a836118ce565b9150611ad9602084016118ce565b60008060408385031215611b9b57600080fd5b82359150611ad9602084016118ce565b600181811c90821680611bbf57607f821691505b60208210811415611be057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611c2657611c26611bfc565b5060010190565b60008219821115611c4057611c40611bfc565b500190565b6000816000190483118215151615611c5f57611c5f611bfc565b500290565b600084516020611c778285838a0161184a565b855191840191611c8a8184848a0161184a565b8554920191600090600181811c9080831680611ca757607f831692505b858310811415611cc557634e487b7160e01b85526022600452602485fd5b808015611cd95760018114611cea57611d17565b60ff19851688528388019550611d17565b60008b81526020902060005b85811015611d0f5781548a820152908401908801611cf6565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d5b90830184611876565b9695505050505050565b600060208284031215611d7757600080fd5b81516111298161181756fea2646970667358221220d2bc2f2f41b2dd50fa158adb4a74f928055baa720fa5c7e4a8a2dcb911f0fd1264736f6c63430008090033
Deployed Bytecode Sourcemap
79892:3994:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46790:639;;;;;;;;;;-1:-1:-1;46790:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;46790:639:0;;;;;;;;47692:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;54183:218::-;;;;;;;;;;-1:-1:-1;54183:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;54183:218:0;1528:203:1;53616:408:0;;;;;;:::i;:::-;;:::i;:::-;;80154:32;;;;;;;;;;;;;;;;;;;2319:25:1;;;2307:2;2292:18;80154:32:0;2173:177:1;82701:100:0;;;;;;;;;;-1:-1:-1;82701:100:0;;;;;:::i;:::-;;:::i;82807:77::-;;;;;;;;;;-1:-1:-1;82807:77:0;;;;;:::i;:::-;;:::i;43443:323::-;;;;;;;;;;-1:-1:-1;81438:1:0;43717:12;43504:7;43701:13;:28;-1:-1:-1;;43701:46:0;43443:323;;83227:656;;;;;;;;;;-1:-1:-1;83227:656:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;57822:2825::-;;;;;;:::i;:::-;;:::i;82890:135::-;;;;;;;;;;;;;:::i;60743:193::-;;;;;;:::i;:::-;;:::i;82089:74::-;;;;;;;;;;-1:-1:-1;82089:74:0;;;;;:::i;:::-;;:::i;82457:132::-;;;;;;;;;;-1:-1:-1;82457:132:0;;;;;:::i;:::-;;:::i;80349:27::-;;;;;;;;;;-1:-1:-1;80349:27:0;;;;;;;;;;;80057:33;;;;;;;;;;;;;:::i;80318:26::-;;;;;;;;;;-1:-1:-1;80318:26:0;;;;;;;;79970:82;;;;;;;;;;;;;:::i;49085:152::-;;;;;;;;;;-1:-1:-1;49085:152:0;;;;;:::i;:::-;;:::i;81989:94::-;;;;;;;;;;-1:-1:-1;81989:94:0;;;;;:::i;:::-;;:::i;44627:233::-;;;;;;;;;;-1:-1:-1;44627:233:0;;;;;:::i;:::-;;:::i;27569:103::-;;;;;;;;;;;;;:::i;82305:146::-;;;;;;;;;;-1:-1:-1;82305:146:0;;;;;:::i;:::-;;:::i;82595:100::-;;;;;;;;;;-1:-1:-1;82595:100:0;;;;;:::i;:::-;;:::i;26921:87::-;;;;;;;;;;-1:-1:-1;26994:6:0;;-1:-1:-1;;;;;26994:6:0;26921:87;;80227:37;;;;;;;;;;;;;;;;47868:104;;;;;;;;;;;;;:::i;80815:314::-;;;;;;:::i;:::-;;:::i;54741:234::-;;;;;;;;;;-1:-1:-1;54741:234:0;;;;;:::i;:::-;;:::i;80095:50::-;;;;;;;;;;;;;:::i;82169:130::-;;;;;;;;;;-1:-1:-1;82169:130:0;;;;;:::i;:::-;;:::i;61534:407::-;;;;;;:::i;:::-;;:::i;80269:42::-;;;;;;;;;;;;;;;;81451:445;;;;;;;;;;-1:-1:-1;81451:445:0;;;;;:::i;:::-;;:::i;80191:31::-;;;;;;;;;;;;;;;;81902:81;;;;;;;;;;-1:-1:-1;81902:81:0;;;;;:::i;:::-;;:::i;55132:164::-;;;;;;;;;;-1:-1:-1;55132:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;55253:25:0;;;55229:4;55253:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;55132:164;81137:207;;;;;;;;;;-1:-1:-1;81137:207:0;;;;;:::i;:::-;;:::i;27827:201::-;;;;;;;;;;-1:-1:-1;27827:201:0;;;;;:::i;:::-;;:::i;46790:639::-;46875:4;-1:-1:-1;;;;;;;;;47199:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;47276:25:0;;;47199:102;:179;;;-1:-1:-1;;;;;;;;;;47353:25:0;;;47199:179;47179:199;46790:639;-1:-1:-1;;46790:639:0:o;47692:100::-;47746:13;47779:5;47772:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47692:100;:::o;54183:218::-;54259:7;54284:16;54292:7;54284;:16::i;:::-;54279:64;;54309:34;;-1:-1:-1;;;54309:34:0;;;;;;;;;;;54279:64;-1:-1:-1;54363:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;54363:30:0;;54183:218::o;53616:408::-;53705:13;53721:16;53729:7;53721;:16::i;:::-;53705:32;-1:-1:-1;77949:10:0;-1:-1:-1;;;;;53754:28:0;;;53750:175;;53802:44;53819:5;77949:10;55132:164;:::i;53802:44::-;53797:128;;53874:35;;-1:-1:-1;;;53874:35:0;;;;;;;;;;;53797:128;53937:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;53937:35:0;-1:-1:-1;;;;;53937:35:0;;;;;;;;;53988:28;;53937:24;;53988:28;;;;;;;53694:330;53616:408;;:::o;82701:100::-;26807:13;:11;:13::i;:::-;82773:22;;::::1;::::0;:9:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;:::-;;82701:100:::0;:::o;82807:77::-;26807:13;:11;:13::i;:::-;82863:6:::1;:15:::0;;-1:-1:-1;;82863:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;82807:77::o;83227:656::-;83283:16;83311:23;83337:17;83347:6;83337:9;:17::i;:::-;83311:43;;83365:30;83412:15;83398:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83398:30:0;-1:-1:-1;83365:63:0;-1:-1:-1;83464:1:0;83439:22;83516:327;83541:15;83523;:33;:64;;;;;83578:9;;83560:14;:27;;83523:64;83516:327;;;83600:25;83628:23;83636:14;83628:7;:23::i;:::-;83600:51;;83689:6;-1:-1:-1;;;;;83668:27:0;:17;-1:-1:-1;;;;;83668:27:0;;83664:139;;;83745:14;83712:13;83726:15;83712:30;;;;;;;;:::i;:::-;;;;;;;;;;:47;83774:17;;;;:::i;:::-;;;;83664:139;83815:16;;;;:::i;:::-;;;;83589:254;83516:327;;;-1:-1:-1;83862:13:0;;83227:656;-1:-1:-1;;;;83227:656:0:o;57822:2825::-;57964:27;57994;58013:7;57994:18;:27::i;:::-;57964:57;;58079:4;-1:-1:-1;;;;;58038:45:0;58054:19;-1:-1:-1;;;;;58038:45:0;;58034:86;;58092:28;;-1:-1:-1;;;58092:28:0;;;;;;;;;;;58034:86;58134:27;56930:24;;;:15;:24;;;;;57158:26;;77949:10;56555:30;;;-1:-1:-1;;;;;56248:28:0;;56533:20;;;56530:56;58320:180;;58413:43;58430:4;77949:10;55132:164;:::i;58413:43::-;58408:92;;58465:35;;-1:-1:-1;;;58465:35:0;;;;;;;;;;;58408:92;-1:-1:-1;;;;;58517:16:0;;58513:52;;58542:23;;-1:-1:-1;;;58542:23:0;;;;;;;;;;;58513:52;58714:15;58711:160;;;58854:1;58833:19;58826:30;58711:160;-1:-1:-1;;;;;59251:24:0;;;;;;;:18;:24;;;;;;59249:26;;-1:-1:-1;;59249:26:0;;;59320:22;;;;;;;;;59318:24;;-1:-1:-1;59318:24:0;;;52474:11;52449:23;52445:41;52432:63;-1:-1:-1;;;52432:63:0;59613:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;59908:47:0;;59904:627;;60013:1;60003:11;;59981:19;60136:30;;;:17;:30;;;;;;60132:384;;60274:13;;60259:11;:28;60255:242;;60421:30;;;;:17;:30;;;;;:52;;;60255:242;59962:569;59904:627;60578:7;60574:2;-1:-1:-1;;;;;60559:27:0;60568:4;-1:-1:-1;;;;;60559:27:0;;;;;;;;;;;57953:2694;;;57822:2825;;;:::o;82890:135::-;26807:13;:11;:13::i;:::-;82936:83:::1;::::0;82944:42:::1;::::0;82997:21:::1;82936:83:::0;::::1;;;::::0;::::1;::::0;;;82997:21;82944:42;82936:83;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;82890:135::o:0;60743:193::-;60889:39;60906:4;60912:2;60916:7;60889:39;;;;;;;;;;;;:16;:39::i;:::-;60743:193;;;:::o;82089:74::-;26807:13;:11;:13::i;:::-;82145:4:::1;:12:::0;82089:74::o;82457:132::-;26807:13;:11;:13::i;:::-;82545:38;;::::1;::::0;:17:::1;::::0;:38:::1;::::0;::::1;::::0;::::1;:::i;80057:33::-:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;79970:82::-;;;;;;;:::i;49085:152::-;49157:7;49200:27;49219:7;49200:18;:27::i;81989:94::-;26807:13;:11;:13::i;:::-;82055:9:::1;:22:::0;81989:94::o;44627:233::-;44699:7;-1:-1:-1;;;;;44723:19:0;;44719:60;;44751:28;;-1:-1:-1;;;44751:28:0;;;;;;;;;;;44719:60;-1:-1:-1;;;;;;44797:25:0;;;;;:18;:25;;;;;;38786:13;44797:55;;44627:233::o;27569:103::-;26807:13;:11;:13::i;:::-;27634:30:::1;27661:1;27634:18;:30::i;:::-;27569:103::o:0;82305:146::-;26807:13;:11;:13::i;:::-;82397:22:::1;:48:::0;82305:146::o;82595:100::-;26807:13;:11;:13::i;:::-;82667:22;;::::1;::::0;:9:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;47868:104::-:0;47924:13;47957:7;47950:14;;;;;:::i;80815:314::-;80880:11;80512:1;80498:11;:15;:52;;;;;80532:18;;80517:11;:33;;80498:52;80490:85;;;;-1:-1:-1;;;80490:85:0;;7537:2:1;80490:85:0;;;7519:21:1;7576:2;7556:18;;;7549:30;-1:-1:-1;;;7595:18:1;;;7588:50;7655:18;;80490:85:0;;;;;;;;;80621:9;;81438:1;43717:12;43504:7;43701:13;80606:11;;43701:28;;-1:-1:-1;;43701:46:0;80590:27;;;;:::i;:::-;:40;;80582:73;;;;-1:-1:-1;;;80582:73:0;;8019:2:1;80582:73:0;;;8001:21:1;8058:2;8038:18;;;8031:30;-1:-1:-1;;;8077:18:1;;;8070:50;8137:18;;80582:73:0;7817:344:1;80582:73:0;80913:11:::1;80760;80753:4;;:18;;;;:::i;:::-;80740:9;:31;;80732:63;;;::::0;-1:-1:-1;;;80732:63:0;;8541:2:1;80732:63:0::1;::::0;::::1;8523:21:1::0;8580:2;8560:18;;;8553:30;-1:-1:-1;;;8599:18:1;;;8592:49;8658:18;;80732:63:0::1;8339:343:1::0;80732:63:0::1;80942:6:::2;::::0;::::2;;80941:7;80933:42;;;::::0;-1:-1:-1;;;80933:42:0;;8889:2:1;80933:42:0::2;::::0;::::2;8871:21:1::0;8928:2;8908:18;;;8901:30;8967:25;8947:18;;;8940:53;9010:18;;80933:42:0::2;8687:347:1::0;80933:42:0::2;81031:22;::::0;81016:11;80990:23:::2;77949:10:::0;44627:233;:::i;80990:23::-:2;:37;;;;:::i;:::-;:63;;80982:98;;;::::0;-1:-1:-1;;;80982:98:0;;9241:2:1;80982:98:0::2;::::0;::::2;9223:21:1::0;9280:2;9260:18;;;9253:30;-1:-1:-1;;;9299:18:1;;;9292:52;9361:18;;80982:98:0::2;9039:346:1::0;80982:98:0::2;81087:36;77949:10:::0;81111:11:::2;81087:9;:36::i;54741:234::-:0;77949:10;54836:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;54836:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;54836:60:0;;;;;;;;;;54912:55;;540:41:1;;;54836:49:0;;77949:10;54912:55;;513:18:1;54912:55:0;;;;;;;54741:234;;:::o;80095:50::-;;;;;;;:::i;82169:130::-;26807:13;:11;:13::i;:::-;82253:18:::1;:40:::0;82169:130::o;61534:407::-;61709:31;61722:4;61728:2;61732:7;61709:12;:31::i;:::-;-1:-1:-1;;;;;61755:14:0;;;:19;61751:183;;61794:56;61825:4;61831:2;61835:7;61844:5;61794:30;:56::i;:::-;61789:145;;61878:40;;-1:-1:-1;;;61878:40:0;;;;;;;;;;;61789:145;61534:407;;;;:::o;81451:445::-;81525:13;81555:17;81563:8;81555:7;:17::i;:::-;81547:77;;;;-1:-1:-1;;;81547:77:0;;9592:2:1;81547:77:0;;;9574:21:1;9631:2;9611:18;;;9604:30;9670:34;9650:18;;;9643:62;-1:-1:-1;;;9721:18:1;;;9714:45;9776:19;;81547:77:0;9390:411:1;81547:77:0;81637:8;;;;;;;81633:64;;81672:17;81665:24;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81451:445;;;:::o;81633:64::-;81705:28;81736:10;:8;:10::i;:::-;81705:41;;81791:1;81766:14;81760:28;:32;:130;;;;;;;;;;;;;;;;;81828:14;81844:19;:8;:17;:19::i;:::-;81865:9;81811:64;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;81760:130;81753:137;81451:445;-1:-1:-1;;;81451:445:0:o;81902:81::-;26807:13;:11;:13::i;:::-;81960:8:::1;:17:::0;;;::::1;;;;-1:-1:-1::0;;81960:17:0;;::::1;::::0;;;::::1;::::0;;81902:81::o;81137:207::-;26807:13;:11;:13::i;:::-;81264:9:::1;::::0;81438:1;43717:12;43504:7;43701:13;81249:11;;43701:28;;-1:-1:-1;;43701:46:0;81233:27:::1;;;;:::i;:::-;:40;;81225:73;;;::::0;-1:-1:-1;;;81225:73:0;;8019:2:1;81225:73:0::1;::::0;::::1;8001:21:1::0;8058:2;8038:18;;;8031:30;-1:-1:-1;;;8077:18:1;;;8070:50;8137:18;;81225:73:0::1;7817:344:1::0;81225:73:0::1;81305:33;81315:9;81326:11;81305:9;:33::i;27827:201::-:0;26807:13;:11;:13::i;:::-;-1:-1:-1;;;;;27916:22:0;::::1;27908:73;;;::::0;-1:-1:-1;;;27908:73:0;;11666:2:1;27908:73:0::1;::::0;::::1;11648:21:1::0;11705:2;11685:18;;;11678:30;11744:34;11724:18;;;11717:62;-1:-1:-1;;;11795:18:1;;;11788:36;11841:19;;27908:73:0::1;11464:402:1::0;27908:73:0::1;27992:28;28011:8;27992:18;:28::i;55554:282::-:0;55619:4;55675:7;81438:1;55656:26;;:66;;;;;55709:13;;55699:7;:23;55656:66;:153;;;;-1:-1:-1;;55760:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;55760:44:0;:49;;55554:282::o;27086:132::-;26994:6;;-1:-1:-1;;;;;26994:6:0;77949:10;27150:23;27142:68;;;;-1:-1:-1;;;27142:68:0;;12073:2:1;27142:68:0;;;12055:21:1;;;12092:18;;;12085:30;12151:34;12131:18;;;12124:62;12203:18;;27142:68:0;11871:356:1;50240:1275:0;50307:7;50342;;81438:1;50391:23;50387:1061;;50444:13;;50437:4;:20;50433:1015;;;50482:14;50499:23;;;:17;:23;;;;;;-1:-1:-1;;;50588:24:0;;50584:845;;51253:113;51260:11;51253:113;;-1:-1:-1;;;51331:6:0;51313:25;;;;:17;:25;;;;;;51253:113;;50584:845;50459:989;50433:1015;51476:31;;-1:-1:-1;;;51476:31:0;;;;;;;;;;;28188:191;28281:6;;;-1:-1:-1;;;;;28298:17:0;;;-1:-1:-1;;;;;;28298:17:0;;;;;;;28331:40;;28281:6;;;28298:17;28281:6;;28331:40;;28262:16;;28331:40;28251:128;28188:191;:::o;71694:112::-;71771:27;71781:2;71785:8;71771:27;;;;;;;;;;;;:9;:27::i;64025:716::-;64209:88;;-1:-1:-1;;;64209:88:0;;64188:4;;-1:-1:-1;;;;;64209:45:0;;;;;:88;;77949:10;;64276:4;;64282:7;;64291:5;;64209:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64209:88:0;;;;;;;;-1:-1:-1;;64209:88:0;;;;;;;;;;;;:::i;:::-;;;64205:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64492:13:0;;64488:235;;64538:40;;-1:-1:-1;;;64538:40:0;;;;;;;;;;;64488:235;64681:6;64675:13;64666:6;64662:2;64658:15;64651:38;64205:529;-1:-1:-1;;;;;;64368:64:0;-1:-1:-1;;;64368:64:0;;-1:-1:-1;64205:529:0;64025:716;;;;;;:::o;83031:104::-;83091:13;83120:9;83113:16;;;;;:::i;13338:716::-;13394:13;13445:14;13462:17;13473:5;13462:10;:17::i;:::-;13482:1;13462:21;13445:38;;13498:20;13532:6;13521:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13521:18:0;-1:-1:-1;13498:41:0;-1:-1:-1;13663:28:0;;;13679:2;13663:28;13720:288;-1:-1:-1;;13752:5:0;-1:-1:-1;;;13889:2:0;13878:14;;13873:30;13752:5;13860:44;13950:2;13941:11;;;-1:-1:-1;13975:10:0;13971:21;;13987:5;;13971:21;13720:288;;;-1:-1:-1;14029:6:0;13338:716;-1:-1:-1;;;13338:716:0:o;70921:689::-;71052:19;71058:2;71062:8;71052:5;:19::i;:::-;-1:-1:-1;;;;;71113:14:0;;;:19;71109:483;;71153:11;71167:13;71215:14;;;71248:233;71279:62;71318:1;71322:2;71326:7;;;;;;71335:5;71279:30;:62::i;:::-;71274:167;;71377:40;;-1:-1:-1;;;71377:40:0;;;;;;;;;;;71274:167;71476:3;71468:5;:11;71248:233;;71563:3;71546:13;;:20;71542:34;;71568:8;;;71542:34;71134:458;;70921:689;;;:::o;10204:922::-;10257:7;;-1:-1:-1;;;10335:15:0;;10331:102;;-1:-1:-1;;;10371:15:0;;;-1:-1:-1;10415:2:0;10405:12;10331:102;10460:6;10451:5;:15;10447:102;;10496:6;10487:15;;;-1:-1:-1;10531:2:0;10521:12;10447:102;10576:6;10567:5;:15;10563:102;;10612:6;10603:15;;;-1:-1:-1;10647:2:0;10637:12;10563:102;10692:5;10683;:14;10679:99;;10727:5;10718:14;;;-1:-1:-1;10761:1:0;10751:11;10679:99;10805:5;10796;:14;10792:99;;10840:5;10831:14;;;-1:-1:-1;10874:1:0;10864:11;10792:99;10918:5;10909;:14;10905:99;;10953:5;10944:14;;;-1:-1:-1;10987:1:0;10977:11;10905:99;11031:5;11022;:14;11018:66;;11067:1;11057:11;11112:6;10204:922;-1:-1:-1;;10204:922:0:o;65203:2966::-;65276:20;65299:13;65327;65323:44;;65349:18;;-1:-1:-1;;;65349:18:0;;;;;;;;;;;65323:44;-1:-1:-1;;;;;65855:22:0;;;;;;:18;:22;;;;38924:2;65855:22;;;:71;;65893:32;65881:45;;65855:71;;;66169:31;;;:17;:31;;;;;-1:-1:-1;52905:15:0;;52879:24;52875:46;52474:11;52449:23;52445:41;52442:52;52432:63;;66169:173;;66404:23;;;;66169:31;;65855:22;;67169:25;65855:22;;67022:335;67683:1;67669:12;67665:20;67623:346;67724:3;67715:7;67712:16;67623:346;;67942:7;67932:8;67929:1;67902:25;67899:1;67896;67891:59;67777:1;67764:15;67623:346;;;-1:-1:-1;68002:13:0;67998:45;;68024:19;;-1:-1:-1;;;68024:19:0;;;;;;;;;;;67998:45;68060:13;:19;-1:-1:-1;60743:193:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:127::-;2416:10;2411:3;2407:20;2404:1;2397:31;2447:4;2444:1;2437:15;2471:4;2468:1;2461:15;2487:632;2552:5;2582:18;2623:2;2615:6;2612:14;2609:40;;;2629:18;;:::i;:::-;2704:2;2698:9;2672:2;2758:15;;-1:-1:-1;;2754:24:1;;;2780:2;2750:33;2746:42;2734:55;;;2804:18;;;2824:22;;;2801:46;2798:72;;;2850:18;;:::i;:::-;2890:10;2886:2;2879:22;2919:6;2910:15;;2949:6;2941;2934:22;2989:3;2980:6;2975:3;2971:16;2968:25;2965:45;;;3006:1;3003;2996:12;2965:45;3056:6;3051:3;3044:4;3036:6;3032:17;3019:44;3111:1;3104:4;3095:6;3087;3083:19;3079:30;3072:41;;;;2487:632;;;;;:::o;3124:451::-;3193:6;3246:2;3234:9;3225:7;3221:23;3217:32;3214:52;;;3262:1;3259;3252:12;3214:52;3302:9;3289:23;3335:18;3327:6;3324:30;3321:50;;;3367:1;3364;3357:12;3321:50;3390:22;;3443:4;3435:13;;3431:27;-1:-1:-1;3421:55:1;;3472:1;3469;3462:12;3421:55;3495:74;3561:7;3556:2;3543:16;3538:2;3534;3530:11;3495:74;:::i;3580:160::-;3645:20;;3701:13;;3694:21;3684:32;;3674:60;;3730:1;3727;3720:12;3745:180;3801:6;3854:2;3842:9;3833:7;3829:23;3825:32;3822:52;;;3870:1;3867;3860:12;3822:52;3893:26;3909:9;3893:26;:::i;3930:186::-;3989:6;4042:2;4030:9;4021:7;4017:23;4013:32;4010:52;;;4058:1;4055;4048:12;4010:52;4081:29;4100:9;4081:29;:::i;4121:632::-;4292:2;4344:21;;;4414:13;;4317:18;;;4436:22;;;4263:4;;4292:2;4515:15;;;;4489:2;4474:18;;;4263:4;4558:169;4572:6;4569:1;4566:13;4558:169;;;4633:13;;4621:26;;4702:15;;;;4667:12;;;;4594:1;4587:9;4558:169;;;-1:-1:-1;4744:3:1;;4121:632;-1:-1:-1;;;;;;4121:632:1:o;4758:328::-;4835:6;4843;4851;4904:2;4892:9;4883:7;4879:23;4875:32;4872:52;;;4920:1;4917;4910:12;4872:52;4943:29;4962:9;4943:29;:::i;:::-;4933:39;;4991:38;5025:2;5014:9;5010:18;4991:38;:::i;:::-;4981:48;;5076:2;5065:9;5061:18;5048:32;5038:42;;4758:328;;;;;:::o;5091:254::-;5156:6;5164;5217:2;5205:9;5196:7;5192:23;5188:32;5185:52;;;5233:1;5230;5223:12;5185:52;5256:29;5275:9;5256:29;:::i;:::-;5246:39;;5304:35;5335:2;5324:9;5320:18;5304:35;:::i;:::-;5294:45;;5091:254;;;;;:::o;5350:667::-;5445:6;5453;5461;5469;5522:3;5510:9;5501:7;5497:23;5493:33;5490:53;;;5539:1;5536;5529:12;5490:53;5562:29;5581:9;5562:29;:::i;:::-;5552:39;;5610:38;5644:2;5633:9;5629:18;5610:38;:::i;:::-;5600:48;;5695:2;5684:9;5680:18;5667:32;5657:42;;5750:2;5739:9;5735:18;5722:32;5777:18;5769:6;5766:30;5763:50;;;5809:1;5806;5799:12;5763:50;5832:22;;5885:4;5877:13;;5873:27;-1:-1:-1;5863:55:1;;5914:1;5911;5904:12;5863:55;5937:74;6003:7;5998:2;5985:16;5980:2;5976;5972:11;5937:74;:::i;:::-;5927:84;;;5350:667;;;;;;;:::o;6022:260::-;6090:6;6098;6151:2;6139:9;6130:7;6126:23;6122:32;6119:52;;;6167:1;6164;6157:12;6119:52;6190:29;6209:9;6190:29;:::i;:::-;6180:39;;6238:38;6272:2;6261:9;6257:18;6238:38;:::i;6287:254::-;6355:6;6363;6416:2;6404:9;6395:7;6391:23;6387:32;6384:52;;;6432:1;6429;6422:12;6384:52;6468:9;6455:23;6445:33;;6497:38;6531:2;6520:9;6516:18;6497:38;:::i;6546:380::-;6625:1;6621:12;;;;6668;;;6689:61;;6743:4;6735:6;6731:17;6721:27;;6689:61;6796:2;6788:6;6785:14;6765:18;6762:38;6759:161;;;6842:10;6837:3;6833:20;6830:1;6823:31;6877:4;6874:1;6867:15;6905:4;6902:1;6895:15;6759:161;;6546:380;;;:::o;6931:127::-;6992:10;6987:3;6983:20;6980:1;6973:31;7023:4;7020:1;7013:15;7047:4;7044:1;7037:15;7063:127;7124:10;7119:3;7115:20;7112:1;7105:31;7155:4;7152:1;7145:15;7179:4;7176:1;7169:15;7195:135;7234:3;-1:-1:-1;;7255:17:1;;7252:43;;;7275:18;;:::i;:::-;-1:-1:-1;7322:1:1;7311:13;;7195:135::o;7684:128::-;7724:3;7755:1;7751:6;7748:1;7745:13;7742:39;;;7761:18;;:::i;:::-;-1:-1:-1;7797:9:1;;7684:128::o;8166:168::-;8206:7;8272:1;8268;8264:6;8260:14;8257:1;8254:21;8249:1;8242:9;8235:17;8231:45;8228:71;;;8279:18;;:::i;:::-;-1:-1:-1;8319:9:1;;8166:168::o;9932:1527::-;10156:3;10194:6;10188:13;10220:4;10233:51;10277:6;10272:3;10267:2;10259:6;10255:15;10233:51;:::i;:::-;10347:13;;10306:16;;;;10369:55;10347:13;10306:16;10391:15;;;10369:55;:::i;:::-;10513:13;;10446:20;;;10486:1;;10573;10595:18;;;;10648;;;;10675:93;;10753:4;10743:8;10739:19;10727:31;;10675:93;10816:2;10806:8;10803:16;10783:18;10780:40;10777:167;;;-1:-1:-1;;;10843:33:1;;10899:4;10896:1;10889:15;10929:4;10850:3;10917:17;10777:167;10960:18;10987:110;;;;11111:1;11106:328;;;;10953:481;;10987:110;-1:-1:-1;;11022:24:1;;11008:39;;11067:20;;;;-1:-1:-1;10987:110:1;;11106:328;9879:1;9872:14;;;9916:4;9903:18;;11201:1;11215:169;11229:8;11226:1;11223:15;11215:169;;;11311:14;;11296:13;;;11289:37;11354:16;;;;11246:10;;11215:169;;;11219:3;;11415:8;11408:5;11404:20;11397:27;;10953:481;-1:-1:-1;11450:3:1;;9932:1527;-1:-1:-1;;;;;;;;;;;9932:1527:1:o;12232:489::-;-1:-1:-1;;;;;12501:15:1;;;12483:34;;12553:15;;12548:2;12533:18;;12526:43;12600:2;12585:18;;12578:34;;;12648:3;12643:2;12628:18;;12621:31;;;12426:4;;12669:46;;12695:19;;12687:6;12669:46;:::i;:::-;12661:54;12232:489;-1:-1:-1;;;;;;12232:489:1:o;12726:249::-;12795:6;12848:2;12836:9;12827:7;12823:23;12819:32;12816:52;;;12864:1;12861;12854:12;12816:52;12896:9;12890:16;12915:30;12939:5;12915:30;:::i
Swarm Source
ipfs://d2bc2f2f41b2dd50fa158adb4a74f928055baa720fa5c7e4a8a2dcb911f0fd12
Loading...
Loading
Loading...
Loading
OVERVIEW
Musiverse builds and embraces the new generation of Web3-Music communities.Our Keys let You enter parties, concerts, and meet-ups, own music and be part of the music industry’s first DAO!As for social utility, the Keys function as a lifetime pass to all of our music & Web3...Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BSC | 100.00% | $507.39 | 0.05 | $25.37 |
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.