ERC-721
Overview
Max Total Supply
270 DSC
Holders
68
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DSCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheDescendentsNFT
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-02-01 */ /** If you need any nft or any custom contract, Reach out to me https://www.upwork.com/freelancers/~01399b0cf32837a684 or on twitter @0xmum1 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the 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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; 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] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @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 The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @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} */ 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. */ 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} */ 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. */ 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. */ 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). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // 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 from 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) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { 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. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // 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 from 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) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ 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 (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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: contract.sol pragma solidity >=0.8.9 <0.9.0; contract TheDescendentsNFT is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; bytes32 public merkleRoot=0x1e2cd46884951a077ec6f35c220ee546afde0f3a616d66b3c4330af8f85f34f1; bytes32 public OGmerkleRoot=0x226294d40600ec5c2c1b96c46a3282bdb854f523073c9c24d9a4c0e9e2c760ca; mapping(address => uint256) public whitelistClaimed; mapping(address => bool) public OGClaimed; uint256 public ogstarts; string public uriPrefix = 'ipfs://bafybeibsou6y7nsfzilzksjpp3aywnqz2dumlbyo2yoqetrmkwdgbdmtra/'; string public uriSuffix = '.json'; string public hiddenMetadataUri; uint256 public ogcount=0; uint256 public cost = 0.035 ether; uint256 public publicCost=0.04 ether; uint256 public OGCost= 0; uint256 public maxSupply=4444; uint256 public maxMintAmountPerTx=2; bool public whitelistMintEnabled = false; bool public OGEnabled= false; bool public publicEnabled= false; bool public revealed = true; constructor () ERC721A("The Descendents", "DSC") Ownable(0xf94233CB61e6C649c1FfB05502f97dbe42240800) { _safeMint(0xf94233CB61e6C649c1FfB05502f97dbe42240800,1); } function calcost(uint256 _mintAmount , bytes32[] memory _merkleProof, bytes32[] memory og ) public view returns (uint256){ uint256 totalCost=0; bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); bool whiteList= MerkleProof.verify(_merkleProof, merkleRoot, leaf); bytes32 addy = keccak256(abi.encodePacked(_msgSender())); bool OG= MerkleProof.verify(og, OGmerkleRoot, addy); if (OG && OGEnabled==true && OGClaimed[_msgSender()] == false && ogcount +1 <100 && ogstarts + 24 hours< block.timestamp){ _mintAmount-=1; } if (whiteList == true &&whitelistMintEnabled== true){ uint256 wlamount; if (whitelistClaimed[msg.sender] + _mintAmount>= maxMintAmountPerTx){ uint256 remainingWL= maxMintAmountPerTx- whitelistClaimed[msg.sender]; wlamount= remainingWL ; } else{ wlamount=_mintAmount; } totalCost += cost * wlamount; _mintAmount -= wlamount; } if (publicEnabled== true ){ totalCost += publicCost* _mintAmount; } return totalCost; } function mint(uint256 _mintAmount, bytes32[] memory _merkleProof, bytes32[] memory og) public payable { // Verify whitelist requirements require(totalSupply() + _mintAmount <= maxSupply, 'Max supply exceeded!'); uint256 totalCost=0; uint256 totalAmount=0; bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); bool whiteList= MerkleProof.verify(_merkleProof, merkleRoot, leaf); bytes32 addy = keccak256(abi.encodePacked(_msgSender())); bool OG= MerkleProof.verify(og, OGmerkleRoot, addy); if (OG && OGEnabled==true && OGClaimed[_msgSender()] == false && ogcount +1 <100 && ogstarts + 24 hours< block.timestamp){ OGClaimed[_msgSender()] = true; ogcount +=1; totalAmount+=1; } if (whiteList == true &&whitelistMintEnabled== true){ uint256 wlamount; if ( whitelistClaimed[msg.sender]+_mintAmount-totalAmount>= maxMintAmountPerTx){ uint256 remainingWL= maxMintAmountPerTx- whitelistClaimed[msg.sender]; wlamount= remainingWL ; } else{ wlamount=_mintAmount-totalAmount; } whitelistClaimed[_msgSender()] += wlamount; totalCost += cost * wlamount; totalAmount += wlamount; } if (publicEnabled== true){ uint256 rem= _mintAmount- totalAmount; totalCost += publicCost*rem; totalAmount+= rem; } require(totalAmount==_mintAmount); require(msg.value>= totalCost, "Insufficient ethers sent"); _safeMint(_msgSender(), totalAmount); } 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'); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } function setWhitelistCost(uint256 _cost) public onlyOwner { cost = _cost; } function setPublicCost(uint256 _cost) public onlyOwner { publicCost = _cost; } function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setMaxWhiteListMint(uint256 val) public onlyOwner{ maxMintAmountPerTx= val; } function setOGMerkleRoot(bytes32 _merkleRoot) public onlyOwner { OGmerkleRoot = _merkleRoot; } function setWhitelistMintEnabled() public onlyOwner { whitelistMintEnabled = !whitelistMintEnabled; } function setPublicSale() public onlyOwner { publicEnabled = !publicEnabled; } function setOGSale() public onlyOwner { OGEnabled= !OGEnabled; ogstarts= block.timestamp; } function withdrawAll() external onlyOwner { uint256 _95percent = address(this).balance*95/100; uint256 _5percent = address(this).balance*5/100; require(payable(0xE37EBAA7E943503218Ebc79df83b7fB47D839A1a).send(_5percent)); require(payable(0xf94233CB61e6C649c1FfB05502f97dbe42240800).send(_95percent)); } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } }
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":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":"","type":"address"}],"name":"OGClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OGCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OGEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OGmerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"og","type":"bytes32[]"}],"name":"calcost","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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"og","type":"bytes32[]"}],"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":"ogcount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogstarts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicEnabled","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":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"val","type":"uint256"}],"name":"setMaxWhiteListMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setOGMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setOGSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setPublicCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicSale","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":"uint256","name":"_cost","type":"uint256"}],"name":"setWhitelistCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setWhitelistMintEnabled","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":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
7f1e2cd46884951a077ec6f35c220ee546afde0f3a616d66b3c4330af8f85f34f1600a557f226294d40600ec5c2c1b96c46a3282bdb854f523073c9c24d9a4c0e9e2c760ca600b556101006040526043608081815290620028b360a039600f906200006b90826200051a565b50604080518082019091526005815264173539b7b760d91b60208201526010906200009790826200051a565b505f6012819055667c585087238000601355668e1bc9bf04000060145560155561115c60165560026017556018805463ffffffff19166301000000179055348015620000e1575f80fd5b5073f94233cb61e6c649c1ffb05502f97dbe422408006040518060400160405280600f81526020016e5468652044657363656e64656e747360881b8152506040518060400160405280600381526020016244534360e81b81525081600290816200014c91906200051a565b5060036200015b82826200051a565b5060015f5550506001600160a01b0381166200019057604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6200019b81620001ca565b5060016009819055620001c49073f94233cb61e6c649c1ffb05502f97dbe42240800906200021b565b62000682565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6200023c828260405180602001604052805f8152506200024060201b60201c565b5050565b6200024c8383620002b3565b6001600160a01b0383163b15620002ae575f548281035b600181019062000278905f908790866200038b565b62000296576040516368d2bf6b60e11b815260040160405180910390fd5b8181106200026357815f5414620002ab575f80fd5b50505b505050565b5f805490829003620002d85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083905f80516020620028f68339815191528180a4600183015b818114620003625780835f5f80516020620028f68339815191525f80a46001016200033c565b50815f036200038357604051622e076360e81b815260040160405180910390fd5b5f5550505050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290620003c1903390899088908890600401620005e2565b6020604051808303815f875af1925050508015620003fe575060408051601f3d908101601f19168201909252620003fb9181019062000652565b60015b6200045e573d8080156200042e576040519150601f19603f3d011682016040523d82523d5f602084013e62000433565b606091505b5080515f0362000456576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620004a457607f821691505b602082108103620004c357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002ae575f81815260208120601f850160051c81016020861015620004f15750805b601f850160051c820191505b818110156200051257828155600101620004fd565b505050505050565b81516001600160401b038111156200053657620005366200047b565b6200054e816200054784546200048f565b84620004c9565b602080601f83116001811462000584575f84156200056c5750858301515b5f19600386901b1c1916600185901b17855562000512565b5f85815260208120601f198616915b82811015620005b45788860151825594840194600190910190840162000593565b5085821015620005d257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f60018060a01b03808716835260208187168185015285604085015260806060850152845191508160808501525f5b828110156200062f5785810182015185820160a00152810162000611565b50505f60a0828501015260a0601f19601f83011684010191505095945050505050565b5f6020828403121562000663575f80fd5b81516001600160e01b0319811681146200067b575f80fd5b9392505050565b61222380620006905f395ff3fe6080604052600436106102d9575f3560e01c806370a0823111610189578063b071401b116100d8578063d5abeb0111610092578063e0a951811161006d578063e0a95181146107cd578063e985e9c5146107e2578063efbd73f414610801578063f2fde38b14610820575f80fd5b8063d5abeb0114610779578063db4bec441461078e578063db8d8db3146107b9575f80fd5b8063b071401b14610565578063b0c7e525146106f4578063b88d4fde14610709578063c87b56dd1461071c578063d4012fb31461073b578063d49479eb1461075a575f80fd5b80638693da201161014357806395d89b411161011e57806395d89b411461068e5780639b001f45146106a2578063a22cb465146106c1578063a45ba8e7146106e0575f80fd5b80638693da20146106475780638da5cb5b1461065c57806394354fd014610679575f80fd5b806370a08231146105a3578063715018a6146105c25780637cb64759146105d65780637ec4a659146105f5578063811d243714610614578063853828b614610633575f80fd5b806342842e0e116102455780635ef3bd8b116101ff5780636352211e116101da5780636352211e1461052d5780636caede3d1461054c5780636d8ee32b146105655780636f8b44b014610584575f80fd5b80635ef3bd8b146104f0578063627a901b1461050557806362b99ad414610519575f80fd5b806342842e0e1461046d578063472fab1b146104805780634c13611a1461049357806351830227146104a85780635503a0e8146104c857806356f8f78c146104dc575f80fd5b806318160ddd1161029657806318160ddd146103c05780631dfcaa48146103da57806323b872dd1461040857806325c2c0201461041b5780632eb4a7ab1461043a57806339d1a4851461044f575f80fd5b806301ffc9a7146102dd57806306fdde0314610311578063081812fc14610332578063095ea7b31461036957806313faede61461037e57806316ba10e0146103a1575b5f80fd5b3480156102e8575f80fd5b506102fc6102f7366004611b1d565b61083f565b60405190151581526020015b60405180910390f35b34801561031c575f80fd5b50610325610890565b6040516103089190611b85565b34801561033d575f80fd5b5061035161034c366004611b97565b610920565b6040516001600160a01b039091168152602001610308565b61037c610377366004611bc9565b610962565b005b348015610389575f80fd5b5061039360135481565b604051908152602001610308565b3480156103ac575f80fd5b5061037c6103bb366004611c8b565b610a00565b3480156103cb575f80fd5b506001545f54035f1901610393565b3480156103e5575f80fd5b506102fc6103f4366004611cd0565b600d6020525f908152604090205460ff1681565b61037c610416366004611ce9565b610a18565b348015610426575f80fd5b5061037c610435366004611b97565b610ba8565b348015610445575f80fd5b50610393600a5481565b34801561045a575f80fd5b506018546102fc90610100900460ff1681565b61037c61047b366004611ce9565b610bb5565b61037c61048e366004611d9f565b610bd4565b34801561049e575f80fd5b5061039360155481565b3480156104b3575f80fd5b506018546102fc906301000000900460ff1681565b3480156104d3575f80fd5b50610325610ee5565b3480156104e7575f80fd5b5061037c610f71565b3480156104fb575f80fd5b50610393600b5481565b348015610510575f80fd5b5061037c610f98565b348015610524575f80fd5b50610325610fb4565b348015610538575f80fd5b50610351610547366004611b97565b610fc1565b348015610557575f80fd5b506018546102fc9060ff1681565b348015610570575f80fd5b5061037c61057f366004611b97565b610fcb565b34801561058f575f80fd5b5061037c61059e366004611b97565b610fd8565b3480156105ae575f80fd5b506103936105bd366004611cd0565b610fe5565b3480156105cd575f80fd5b5061037c611032565b3480156105e1575f80fd5b5061037c6105f0366004611b97565b611045565b348015610600575f80fd5b5061037c61060f366004611c8b565b611052565b34801561061f575f80fd5b5061037c61062e366004611b97565b611066565b34801561063e575f80fd5b5061037c611073565b348015610652575f80fd5b5061039360145481565b348015610667575f80fd5b506008546001600160a01b0316610351565b348015610684575f80fd5b5061039360175481565b348015610699575f80fd5b5061032561111e565b3480156106ad575f80fd5b506018546102fc9062010000900460ff1681565b3480156106cc575f80fd5b5061037c6106db366004611e07565b61112d565b3480156106eb575f80fd5b50610325611198565b3480156106ff575f80fd5b50610393600e5481565b61037c610717366004611e40565b6111a5565b348015610727575f80fd5b50610325610736366004611b97565b6111ef565b348015610746575f80fd5b50610393610755366004611d9f565b6112ba565b348015610765575f80fd5b5061037c610774366004611b97565b61147d565b348015610784575f80fd5b5061039360165481565b348015610799575f80fd5b506103936107a8366004611cd0565b600c6020525f908152604090205481565b3480156107c4575f80fd5b5061037c61148a565b3480156107d8575f80fd5b5061039360125481565b3480156107ed575f80fd5b506102fc6107fc366004611eb7565b6114b3565b34801561080c575f80fd5b5061037c61081b366004611ee8565b6114e0565b34801561082b575f80fd5b5061037c61083a366004611cd0565b611550565b5f6301ffc9a760e01b6001600160e01b03198316148061086f57506380ac58cd60e01b6001600160e01b03198316145b8061088a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461089f90611f09565b80601f01602080910402602001604051908101604052809291908181526020018280546108cb90611f09565b80156109165780601f106108ed57610100808354040283529160200191610916565b820191905f5260205f20905b8154815290600101906020018083116108f957829003601f168201915b5050505050905090565b5f61092a8261158d565b610947576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b5f61096c82610fc1565b9050336001600160a01b038216146109a55761098881336114b3565b6109a5576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a086115bf565b6010610a148282611f86565b5050565b5f610a22826115ec565b9050836001600160a01b0316816001600160a01b031614610a555760405162a1148160e81b815260040160405180910390fd5b5f8281526006602052604090208054338082146001600160a01b03881690911417610aa157610a8486336114b3565b610aa157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ac857604051633a954ecd60e21b815260040160405180910390fd5b8015610ad2575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b84169003610b5e57600184015f818152600460205260408120549003610b5c575f548114610b5c575f8181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610bb06115bf565b600b55565b610bcf83838360405180602001604052805f8152506111a5565b505050565b6016546001545f54859190035f1901610bed9190612056565b1115610c375760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b60448201526064015b60405180910390fd5b5f808033604051602001610c4b9190612069565b6040516020818303038152906040528051906020012090505f610c7186600a5484611655565b90505f33604051602001610c859190612069565b6040516020818303038152906040528051906020012090505f610cab87600b5484611655565b9050808015610cc7575060185460ff6101009091041615156001145b8015610ce25750335f908152600d602052604090205460ff16155b8015610cfc575060646012546001610cfa9190612056565b105b8015610d17575042600e5462015180610d159190612056565b105b15610d5f57335f908152600d60205260408120805460ff191660019081179091556012805491929091610d4b908490612056565b90915550610d5c9050600186612056565b94505b6001831515148015610d78575060185460ff1615156001145b15610e2b57601754335f908152600c60205260408120549091908790610d9f908d90612056565b610da99190612086565b10610dd357335f908152600c6020526040812054601754610dca9190612086565b9150610de09050565b610ddd868b612086565b90505b335f908152600c602052604081208054839290610dfe908490612056565b9091555050601354610e11908290612099565b610e1b9088612056565b9650610e278187612056565b9550505b60185462010000900460ff161515600103610e75575f610e4b868b612086565b905080601454610e5b9190612099565b610e659088612056565b9650610e718187612056565b9550505b888514610e80575f80fd5b85341015610ed05760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74206574686572732073656e7400000000000000006044820152606401610c2e565b610eda338661166a565b505050505050505050565b60108054610ef290611f09565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1e90611f09565b8015610f695780601f10610f4057610100808354040283529160200191610f69565b820191905f5260205f20905b815481529060010190602001808311610f4c57829003601f168201915b505050505081565b610f796115bf565b6018805462ff0000198116620100009182900460ff1615909102179055565b610fa06115bf565b6018805460ff19811660ff90911615179055565b600f8054610ef290611f09565b5f61088a826115ec565b610fd36115bf565b601755565b610fe06115bf565b601655565b5f6001600160a01b03821661100d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b61103a6115bf565b6110435f611683565b565b61104d6115bf565b600a55565b61105a6115bf565b600f610a148282611f86565b61106e6115bf565b601455565b61107b6115bf565b5f606461108947605f612099565b61109391906120b0565b90505f60646110a3476005612099565b6110ad91906120b0565b60405190915073e37ebaa7e943503218ebc79df83b7fb47d839a1a9082156108fc029083905f818181858888f193505050506110e7575f80fd5b60405173f94233cb61e6c649c1ffb05502f97dbe422408009083156108fc029084905f818181858888f19350505050610a14575f80fd5b60606003805461089f90611f09565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60118054610ef290611f09565b6111b0848484610a18565b6001600160a01b0383163b156111e9576111cc848484846116d4565b6111e9576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606111fa8261158d565b61125e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c2e565b5f6112676117bc565b90505f8151116112855760405180602001604052805f8152506112b3565b8061128f846117cb565b60106040516020016112a3939291906120cf565b6040516020818303038152906040525b9392505050565b5f8080336040516020016112ce9190612069565b6040516020818303038152906040528051906020012090505f6112f486600a5484611655565b90505f336040516020016113089190612069565b6040516020818303038152906040528051906020012090505f61132e87600b5484611655565b905080801561134a575060185460ff6101009091041615156001145b80156113655750335f908152600d602052604090205460ff16155b801561137f57506064601254600161137d9190612056565b105b801561139a575042600e54620151806113989190612056565b105b156113ad576113aa60018a612086565b98505b60018315151480156113c6575060185460ff1615156001145b1561144057601754335f908152600c60205260408120549091906113eb908c90612056565b1061141557335f908152600c602052604081205460175461140c9190612086565b91506114189050565b50885b806013546114269190612099565b6114309087612056565b955061143c818b612086565b9950505b60185462010000900460ff16151560010361147057886014546114639190612099565b61146d9086612056565b94505b5092979650505050505050565b6114856115bf565b601355565b6114926115bf565b6018805461ff001981166101009182900460ff161590910217905542600e55565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b6114e86115bf565b6016546001545f54849190035f19016115019190612056565b11156115465760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610c2e565b610a14818361166a565b6115586115bf565b6001600160a01b03811661158157604051631e4fbdf760e01b81525f6004820152602401610c2e565b61158a81611683565b50565b5f8160011115801561159f57505f5482105b801561088a5750505f90815260046020526040902054600160e01b161590565b6008546001600160a01b031633146110435760405163118cdaa760e01b8152336004820152602401610c2e565b5f818060011161163c575f5481101561163c575f8181526004602052604081205490600160e01b8216900361163a575b805f036112b357505f19015f8181526004602052604090205461161c565b505b604051636f96cda160e11b815260040160405180910390fd5b5f82611661858461185b565b14949350505050565b610a14828260405180602001604052805f8152506118a7565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a029061170890339089908890889060040161216a565b6020604051808303815f875af1925050508015611742575060408051601f3d908101601f1916820190925261173f918101906121a6565b60015b61179e573d80801561176f576040519150601f19603f3d011682016040523d82523d5f602084013e611774565b606091505b5080515f03611796576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f805461089f90611f09565b60605f6117d783611910565b60010190505f8167ffffffffffffffff8111156117f6576117f6611bf1565b6040519080825280601f01601f191660200182016040528015611820576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461182a57509392505050565b5f81815b845181101561189f5761188b8286838151811061187e5761187e6121c1565b60200260200101516119e7565b915080611897816121d5565b91505061185f565b509392505050565b6118b18383611a10565b6001600160a01b0383163b15610bcf575f548281035b6118d95f8683806001019450866116d4565b6118f6576040516368d2bf6b60e11b815260040160405180910390fd5b8181106118c757815f5414611909575f80fd5b5050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061194e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061197a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061199857662386f26fc10000830492506010015b6305f5e10083106119b0576305f5e100830492506008015b61271083106119c457612710830492506004015b606483106119d6576064830492506002015b600a831061088a5760010192915050565b5f818310611a01575f8281526020849052604090206112b3565b505f9182526020526040902090565b5f805490829003611a345760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611ae05780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600101611aaa565b50815f03611b0057604051622e076360e81b815260040160405180910390fd5b5f5550505050565b6001600160e01b03198116811461158a575f80fd5b5f60208284031215611b2d575f80fd5b81356112b381611b08565b5f5b83811015611b52578181015183820152602001611b3a565b50505f910152565b5f8151808452611b71816020860160208601611b38565b601f01601f19169290920160200192915050565b602081525f6112b36020830184611b5a565b5f60208284031215611ba7575f80fd5b5035919050565b80356001600160a01b0381168114611bc4575f80fd5b919050565b5f8060408385031215611bda575f80fd5b611be383611bae565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2e57611c2e611bf1565b604052919050565b5f67ffffffffffffffff831115611c4f57611c4f611bf1565b611c62601f8401601f1916602001611c05565b9050828152838383011115611c75575f80fd5b828260208301375f602084830101529392505050565b5f60208284031215611c9b575f80fd5b813567ffffffffffffffff811115611cb1575f80fd5b8201601f81018413611cc1575f80fd5b6117b484823560208401611c36565b5f60208284031215611ce0575f80fd5b6112b382611bae565b5f805f60608486031215611cfb575f80fd5b611d0484611bae565b9250611d1260208501611bae565b9150604084013590509250925092565b5f82601f830112611d31575f80fd5b8135602067ffffffffffffffff821115611d4d57611d4d611bf1565b8160051b611d5c828201611c05565b9283528481018201928281019087851115611d75575f80fd5b83870192505b84831015611d9457823582529183019190830190611d7b565b979650505050505050565b5f805f60608486031215611db1575f80fd5b83359250602084013567ffffffffffffffff80821115611dcf575f80fd5b611ddb87838801611d22565b93506040860135915080821115611df0575f80fd5b50611dfd86828701611d22565b9150509250925092565b5f8060408385031215611e18575f80fd5b611e2183611bae565b915060208301358015158114611e35575f80fd5b809150509250929050565b5f805f8060808587031215611e53575f80fd5b611e5c85611bae565b9350611e6a60208601611bae565b925060408501359150606085013567ffffffffffffffff811115611e8c575f80fd5b8501601f81018713611e9c575f80fd5b611eab87823560208401611c36565b91505092959194509250565b5f8060408385031215611ec8575f80fd5b611ed183611bae565b9150611edf60208401611bae565b90509250929050565b5f8060408385031215611ef9575f80fd5b82359150611edf60208401611bae565b600181811c90821680611f1d57607f821691505b602082108103611f3b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610bcf575f81815260208120601f850160051c81016020861015611f675750805b601f850160051c820191505b81811015610ba057828155600101611f73565b815167ffffffffffffffff811115611fa057611fa0611bf1565b611fb481611fae8454611f09565b84611f41565b602080601f831160018114611fe7575f8415611fd05750858301515b5f19600386901b1c1916600185901b178555610ba0565b5f85815260208120601f198616915b8281101561201557888601518255948401946001909101908401611ff6565b508582101561203257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561088a5761088a612042565b60609190911b6bffffffffffffffffffffffff1916815260140190565b8181038181111561088a5761088a612042565b808202811582820484141761088a5761088a612042565b5f826120ca57634e487b7160e01b5f52601260045260245ffd5b500490565b5f845160206120e18285838a01611b38565b8551918401916120f48184848a01611b38565b85549201915f9061210481611f09565b6001828116801561211c57600181146121315761215a565b60ff198416875282151583028701945061215a565b895f52855f205f5b8481101561215257815489820152908301908701612139565b505082870194505b50929a9950505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061219c90830184611b5a565b9695505050505050565b5f602082840312156121b6575f80fd5b81516112b381611b08565b634e487b7160e01b5f52603260045260245ffd5b5f600182016121e6576121e6612042565b506001019056fea2646970667358221220ad1d9cd7fd066ab6dac4f224c2d8198d413fcf9792afeb36939301a963a6392764736f6c63430008140033697066733a2f2f6261667962656962736f753679376e73667a696c7a6b736a7070336179776e717a3264756d6c62796f32796f716574726d6b77646762646d7472612fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106102d9575f3560e01c806370a0823111610189578063b071401b116100d8578063d5abeb0111610092578063e0a951811161006d578063e0a95181146107cd578063e985e9c5146107e2578063efbd73f414610801578063f2fde38b14610820575f80fd5b8063d5abeb0114610779578063db4bec441461078e578063db8d8db3146107b9575f80fd5b8063b071401b14610565578063b0c7e525146106f4578063b88d4fde14610709578063c87b56dd1461071c578063d4012fb31461073b578063d49479eb1461075a575f80fd5b80638693da201161014357806395d89b411161011e57806395d89b411461068e5780639b001f45146106a2578063a22cb465146106c1578063a45ba8e7146106e0575f80fd5b80638693da20146106475780638da5cb5b1461065c57806394354fd014610679575f80fd5b806370a08231146105a3578063715018a6146105c25780637cb64759146105d65780637ec4a659146105f5578063811d243714610614578063853828b614610633575f80fd5b806342842e0e116102455780635ef3bd8b116101ff5780636352211e116101da5780636352211e1461052d5780636caede3d1461054c5780636d8ee32b146105655780636f8b44b014610584575f80fd5b80635ef3bd8b146104f0578063627a901b1461050557806362b99ad414610519575f80fd5b806342842e0e1461046d578063472fab1b146104805780634c13611a1461049357806351830227146104a85780635503a0e8146104c857806356f8f78c146104dc575f80fd5b806318160ddd1161029657806318160ddd146103c05780631dfcaa48146103da57806323b872dd1461040857806325c2c0201461041b5780632eb4a7ab1461043a57806339d1a4851461044f575f80fd5b806301ffc9a7146102dd57806306fdde0314610311578063081812fc14610332578063095ea7b31461036957806313faede61461037e57806316ba10e0146103a1575b5f80fd5b3480156102e8575f80fd5b506102fc6102f7366004611b1d565b61083f565b60405190151581526020015b60405180910390f35b34801561031c575f80fd5b50610325610890565b6040516103089190611b85565b34801561033d575f80fd5b5061035161034c366004611b97565b610920565b6040516001600160a01b039091168152602001610308565b61037c610377366004611bc9565b610962565b005b348015610389575f80fd5b5061039360135481565b604051908152602001610308565b3480156103ac575f80fd5b5061037c6103bb366004611c8b565b610a00565b3480156103cb575f80fd5b506001545f54035f1901610393565b3480156103e5575f80fd5b506102fc6103f4366004611cd0565b600d6020525f908152604090205460ff1681565b61037c610416366004611ce9565b610a18565b348015610426575f80fd5b5061037c610435366004611b97565b610ba8565b348015610445575f80fd5b50610393600a5481565b34801561045a575f80fd5b506018546102fc90610100900460ff1681565b61037c61047b366004611ce9565b610bb5565b61037c61048e366004611d9f565b610bd4565b34801561049e575f80fd5b5061039360155481565b3480156104b3575f80fd5b506018546102fc906301000000900460ff1681565b3480156104d3575f80fd5b50610325610ee5565b3480156104e7575f80fd5b5061037c610f71565b3480156104fb575f80fd5b50610393600b5481565b348015610510575f80fd5b5061037c610f98565b348015610524575f80fd5b50610325610fb4565b348015610538575f80fd5b50610351610547366004611b97565b610fc1565b348015610557575f80fd5b506018546102fc9060ff1681565b348015610570575f80fd5b5061037c61057f366004611b97565b610fcb565b34801561058f575f80fd5b5061037c61059e366004611b97565b610fd8565b3480156105ae575f80fd5b506103936105bd366004611cd0565b610fe5565b3480156105cd575f80fd5b5061037c611032565b3480156105e1575f80fd5b5061037c6105f0366004611b97565b611045565b348015610600575f80fd5b5061037c61060f366004611c8b565b611052565b34801561061f575f80fd5b5061037c61062e366004611b97565b611066565b34801561063e575f80fd5b5061037c611073565b348015610652575f80fd5b5061039360145481565b348015610667575f80fd5b506008546001600160a01b0316610351565b348015610684575f80fd5b5061039360175481565b348015610699575f80fd5b5061032561111e565b3480156106ad575f80fd5b506018546102fc9062010000900460ff1681565b3480156106cc575f80fd5b5061037c6106db366004611e07565b61112d565b3480156106eb575f80fd5b50610325611198565b3480156106ff575f80fd5b50610393600e5481565b61037c610717366004611e40565b6111a5565b348015610727575f80fd5b50610325610736366004611b97565b6111ef565b348015610746575f80fd5b50610393610755366004611d9f565b6112ba565b348015610765575f80fd5b5061037c610774366004611b97565b61147d565b348015610784575f80fd5b5061039360165481565b348015610799575f80fd5b506103936107a8366004611cd0565b600c6020525f908152604090205481565b3480156107c4575f80fd5b5061037c61148a565b3480156107d8575f80fd5b5061039360125481565b3480156107ed575f80fd5b506102fc6107fc366004611eb7565b6114b3565b34801561080c575f80fd5b5061037c61081b366004611ee8565b6114e0565b34801561082b575f80fd5b5061037c61083a366004611cd0565b611550565b5f6301ffc9a760e01b6001600160e01b03198316148061086f57506380ac58cd60e01b6001600160e01b03198316145b8061088a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461089f90611f09565b80601f01602080910402602001604051908101604052809291908181526020018280546108cb90611f09565b80156109165780601f106108ed57610100808354040283529160200191610916565b820191905f5260205f20905b8154815290600101906020018083116108f957829003601f168201915b5050505050905090565b5f61092a8261158d565b610947576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b5f61096c82610fc1565b9050336001600160a01b038216146109a55761098881336114b3565b6109a5576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a086115bf565b6010610a148282611f86565b5050565b5f610a22826115ec565b9050836001600160a01b0316816001600160a01b031614610a555760405162a1148160e81b815260040160405180910390fd5b5f8281526006602052604090208054338082146001600160a01b03881690911417610aa157610a8486336114b3565b610aa157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ac857604051633a954ecd60e21b815260040160405180910390fd5b8015610ad2575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b84169003610b5e57600184015f818152600460205260408120549003610b5c575f548114610b5c575f8181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610bb06115bf565b600b55565b610bcf83838360405180602001604052805f8152506111a5565b505050565b6016546001545f54859190035f1901610bed9190612056565b1115610c375760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b60448201526064015b60405180910390fd5b5f808033604051602001610c4b9190612069565b6040516020818303038152906040528051906020012090505f610c7186600a5484611655565b90505f33604051602001610c859190612069565b6040516020818303038152906040528051906020012090505f610cab87600b5484611655565b9050808015610cc7575060185460ff6101009091041615156001145b8015610ce25750335f908152600d602052604090205460ff16155b8015610cfc575060646012546001610cfa9190612056565b105b8015610d17575042600e5462015180610d159190612056565b105b15610d5f57335f908152600d60205260408120805460ff191660019081179091556012805491929091610d4b908490612056565b90915550610d5c9050600186612056565b94505b6001831515148015610d78575060185460ff1615156001145b15610e2b57601754335f908152600c60205260408120549091908790610d9f908d90612056565b610da99190612086565b10610dd357335f908152600c6020526040812054601754610dca9190612086565b9150610de09050565b610ddd868b612086565b90505b335f908152600c602052604081208054839290610dfe908490612056565b9091555050601354610e11908290612099565b610e1b9088612056565b9650610e278187612056565b9550505b60185462010000900460ff161515600103610e75575f610e4b868b612086565b905080601454610e5b9190612099565b610e659088612056565b9650610e718187612056565b9550505b888514610e80575f80fd5b85341015610ed05760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74206574686572732073656e7400000000000000006044820152606401610c2e565b610eda338661166a565b505050505050505050565b60108054610ef290611f09565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1e90611f09565b8015610f695780601f10610f4057610100808354040283529160200191610f69565b820191905f5260205f20905b815481529060010190602001808311610f4c57829003601f168201915b505050505081565b610f796115bf565b6018805462ff0000198116620100009182900460ff1615909102179055565b610fa06115bf565b6018805460ff19811660ff90911615179055565b600f8054610ef290611f09565b5f61088a826115ec565b610fd36115bf565b601755565b610fe06115bf565b601655565b5f6001600160a01b03821661100d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b61103a6115bf565b6110435f611683565b565b61104d6115bf565b600a55565b61105a6115bf565b600f610a148282611f86565b61106e6115bf565b601455565b61107b6115bf565b5f606461108947605f612099565b61109391906120b0565b90505f60646110a3476005612099565b6110ad91906120b0565b60405190915073e37ebaa7e943503218ebc79df83b7fb47d839a1a9082156108fc029083905f818181858888f193505050506110e7575f80fd5b60405173f94233cb61e6c649c1ffb05502f97dbe422408009083156108fc029084905f818181858888f19350505050610a14575f80fd5b60606003805461089f90611f09565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60118054610ef290611f09565b6111b0848484610a18565b6001600160a01b0383163b156111e9576111cc848484846116d4565b6111e9576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606111fa8261158d565b61125e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c2e565b5f6112676117bc565b90505f8151116112855760405180602001604052805f8152506112b3565b8061128f846117cb565b60106040516020016112a3939291906120cf565b6040516020818303038152906040525b9392505050565b5f8080336040516020016112ce9190612069565b6040516020818303038152906040528051906020012090505f6112f486600a5484611655565b90505f336040516020016113089190612069565b6040516020818303038152906040528051906020012090505f61132e87600b5484611655565b905080801561134a575060185460ff6101009091041615156001145b80156113655750335f908152600d602052604090205460ff16155b801561137f57506064601254600161137d9190612056565b105b801561139a575042600e54620151806113989190612056565b105b156113ad576113aa60018a612086565b98505b60018315151480156113c6575060185460ff1615156001145b1561144057601754335f908152600c60205260408120549091906113eb908c90612056565b1061141557335f908152600c602052604081205460175461140c9190612086565b91506114189050565b50885b806013546114269190612099565b6114309087612056565b955061143c818b612086565b9950505b60185462010000900460ff16151560010361147057886014546114639190612099565b61146d9086612056565b94505b5092979650505050505050565b6114856115bf565b601355565b6114926115bf565b6018805461ff001981166101009182900460ff161590910217905542600e55565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b6114e86115bf565b6016546001545f54849190035f19016115019190612056565b11156115465760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b6044820152606401610c2e565b610a14818361166a565b6115586115bf565b6001600160a01b03811661158157604051631e4fbdf760e01b81525f6004820152602401610c2e565b61158a81611683565b50565b5f8160011115801561159f57505f5482105b801561088a5750505f90815260046020526040902054600160e01b161590565b6008546001600160a01b031633146110435760405163118cdaa760e01b8152336004820152602401610c2e565b5f818060011161163c575f5481101561163c575f8181526004602052604081205490600160e01b8216900361163a575b805f036112b357505f19015f8181526004602052604090205461161c565b505b604051636f96cda160e11b815260040160405180910390fd5b5f82611661858461185b565b14949350505050565b610a14828260405180602001604052805f8152506118a7565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a029061170890339089908890889060040161216a565b6020604051808303815f875af1925050508015611742575060408051601f3d908101601f1916820190925261173f918101906121a6565b60015b61179e573d80801561176f576040519150601f19603f3d011682016040523d82523d5f602084013e611774565b606091505b5080515f03611796576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f805461089f90611f09565b60605f6117d783611910565b60010190505f8167ffffffffffffffff8111156117f6576117f6611bf1565b6040519080825280601f01601f191660200182016040528015611820576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461182a57509392505050565b5f81815b845181101561189f5761188b8286838151811061187e5761187e6121c1565b60200260200101516119e7565b915080611897816121d5565b91505061185f565b509392505050565b6118b18383611a10565b6001600160a01b0383163b15610bcf575f548281035b6118d95f8683806001019450866116d4565b6118f6576040516368d2bf6b60e11b815260040160405180910390fd5b8181106118c757815f5414611909575f80fd5b5050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061194e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061197a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061199857662386f26fc10000830492506010015b6305f5e10083106119b0576305f5e100830492506008015b61271083106119c457612710830492506004015b606483106119d6576064830492506002015b600a831061088a5760010192915050565b5f818310611a01575f8281526020849052604090206112b3565b505f9182526020526040902090565b5f805490829003611a345760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611ae05780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600101611aaa565b50815f03611b0057604051622e076360e81b815260040160405180910390fd5b5f5550505050565b6001600160e01b03198116811461158a575f80fd5b5f60208284031215611b2d575f80fd5b81356112b381611b08565b5f5b83811015611b52578181015183820152602001611b3a565b50505f910152565b5f8151808452611b71816020860160208601611b38565b601f01601f19169290920160200192915050565b602081525f6112b36020830184611b5a565b5f60208284031215611ba7575f80fd5b5035919050565b80356001600160a01b0381168114611bc4575f80fd5b919050565b5f8060408385031215611bda575f80fd5b611be383611bae565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2e57611c2e611bf1565b604052919050565b5f67ffffffffffffffff831115611c4f57611c4f611bf1565b611c62601f8401601f1916602001611c05565b9050828152838383011115611c75575f80fd5b828260208301375f602084830101529392505050565b5f60208284031215611c9b575f80fd5b813567ffffffffffffffff811115611cb1575f80fd5b8201601f81018413611cc1575f80fd5b6117b484823560208401611c36565b5f60208284031215611ce0575f80fd5b6112b382611bae565b5f805f60608486031215611cfb575f80fd5b611d0484611bae565b9250611d1260208501611bae565b9150604084013590509250925092565b5f82601f830112611d31575f80fd5b8135602067ffffffffffffffff821115611d4d57611d4d611bf1565b8160051b611d5c828201611c05565b9283528481018201928281019087851115611d75575f80fd5b83870192505b84831015611d9457823582529183019190830190611d7b565b979650505050505050565b5f805f60608486031215611db1575f80fd5b83359250602084013567ffffffffffffffff80821115611dcf575f80fd5b611ddb87838801611d22565b93506040860135915080821115611df0575f80fd5b50611dfd86828701611d22565b9150509250925092565b5f8060408385031215611e18575f80fd5b611e2183611bae565b915060208301358015158114611e35575f80fd5b809150509250929050565b5f805f8060808587031215611e53575f80fd5b611e5c85611bae565b9350611e6a60208601611bae565b925060408501359150606085013567ffffffffffffffff811115611e8c575f80fd5b8501601f81018713611e9c575f80fd5b611eab87823560208401611c36565b91505092959194509250565b5f8060408385031215611ec8575f80fd5b611ed183611bae565b9150611edf60208401611bae565b90509250929050565b5f8060408385031215611ef9575f80fd5b82359150611edf60208401611bae565b600181811c90821680611f1d57607f821691505b602082108103611f3b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610bcf575f81815260208120601f850160051c81016020861015611f675750805b601f850160051c820191505b81811015610ba057828155600101611f73565b815167ffffffffffffffff811115611fa057611fa0611bf1565b611fb481611fae8454611f09565b84611f41565b602080601f831160018114611fe7575f8415611fd05750858301515b5f19600386901b1c1916600185901b178555610ba0565b5f85815260208120601f198616915b8281101561201557888601518255948401946001909101908401611ff6565b508582101561203257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561088a5761088a612042565b60609190911b6bffffffffffffffffffffffff1916815260140190565b8181038181111561088a5761088a612042565b808202811582820484141761088a5761088a612042565b5f826120ca57634e487b7160e01b5f52601260045260245ffd5b500490565b5f845160206120e18285838a01611b38565b8551918401916120f48184848a01611b38565b85549201915f9061210481611f09565b6001828116801561211c57600181146121315761215a565b60ff198416875282151583028701945061215a565b895f52855f205f5b8481101561215257815489820152908301908701612139565b505082870194505b50929a9950505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061219c90830184611b5a565b9695505050505050565b5f602082840312156121b6575f80fd5b81516112b381611b08565b634e487b7160e01b5f52603260045260245ffd5b5f600182016121e6576121e6612042565b506001019056fea2646970667358221220ad1d9cd7fd066ab6dac4f224c2d8198d413fcf9792afeb36939301a963a6392764736f6c63430008140033
Deployed Bytecode Sourcemap
89197:6215:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56092:639;;;;;;;;;;-1:-1:-1;56092:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;56092:639:0;;;;;;;;56994:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;63485:218::-;;;;;;;;;;-1:-1:-1;63485:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;63485:218:0;1533:203:1;62918:408:0;;;;;;:::i;:::-;;:::i;:::-;;89838:33;;;;;;;;;;;;;;;;;;;2324:25:1;;;2312:2;2297:18;89838:33:0;2178:177:1;94207:100:0;;;;;;;;;;-1:-1:-1;94207:100:0;;;;;:::i;:::-;;:::i;52745:323::-;;;;;;;;;;-1:-1:-1;93282:1:0;53019:12;52806:7;53003:13;:28;-1:-1:-1;;53003:46:0;52745:323;;89554:41;;;;;;;;;;-1:-1:-1;89554:41:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;67124:2825;;;;;;:::i;:::-;;:::i;94519:102::-;;;;;;;;;;-1:-1:-1;94519:102:0;;;;;:::i;:::-;;:::i;89302:92::-;;;;;;;;;;;;;;;;90068:28;;;;;;;;;;-1:-1:-1;90068:28:0;;;;;;;;;;;70045:193;;;;;;:::i;:::-;;:::i;91447:1516::-;;;;;;:::i;:::-;;:::i;89918:24::-;;;;;;;;;;;;;;;;90138:27;;;;;;;;;;-1:-1:-1;90138:27:0;;;;;;;;;;;89732:33;;;;;;;;;;;;;:::i;94749:85::-;;;;;;;;;;;;;:::i;89399:94::-;;;;;;;;;;;;;;;;94627:115;;;;;;;;;;;;;:::i;89632:95::-;;;;;;;;;;;;;:::i;58387:152::-;;;;;;;;;;-1:-1:-1;58387:152:0;;;;;:::i;:::-;;:::i;90023:40::-;;;;;;;;;;-1:-1:-1;90023:40:0;;;;;;;;94417:94;;;;;;;;;;-1:-1:-1;94417:94:0;;;;;:::i;:::-;;:::i;94001:::-;;;;;;;;;;-1:-1:-1;94001:94:0;;;;;:::i;:::-;;:::i;53929:233::-;;;;;;;;;;-1:-1:-1;53929:233:0;;;;;:::i;:::-;;:::i;36852:103::-;;;;;;;;;;;;;:::i;94313:98::-;;;;;;;;;;-1:-1:-1;94313:98:0;;;;;:::i;:::-;;:::i;94101:100::-;;;;;;;;;;-1:-1:-1;94101:100:0;;;;;:::i;:::-;;:::i;93769:86::-;;;;;;;;;;-1:-1:-1;93769:86:0;;;;;:::i;:::-;;:::i;94956:343::-;;;;;;;;;;;;;:::i;89876:36::-;;;;;;;;;;;;;;;;36177:87;;;;;;;;;;-1:-1:-1;36250:6:0;;-1:-1:-1;;;;;36250:6:0;36177:87;;89981:35;;;;;;;;;;;;;;;;57170:104;;;;;;;;;;;;;:::i;90101:32::-;;;;;;;;;;-1:-1:-1;90101:32:0;;;;;;;;;;;64043:234;;;;;;;;;;-1:-1:-1;64043:234:0;;;;;:::i;:::-;;:::i;89770:31::-;;;;;;;;;;;;;:::i;89600:23::-;;;;;;;;;;;;;;;;70836:407;;;;;;:::i;:::-;;:::i;93295:371::-;;;;;;;;;;-1:-1:-1;93295:371:0;;;;;:::i;:::-;;:::i;90351:1090::-;;;;;;;;;;-1:-1:-1;90351:1090:0;;;;;:::i;:::-;;:::i;93676:83::-;;;;;;;;;;-1:-1:-1;93676:83:0;;;;;:::i;:::-;;:::i;89947:29::-;;;;;;;;;;;;;;;;89498:51;;;;;;;;;;-1:-1:-1;89498:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;94843:104;;;;;;;;;;;;;:::i;89806:24::-;;;;;;;;;;;;;;;;64434:164;;;;;;;;;;-1:-1:-1;64434:164:0;;;;;:::i;:::-;;:::i;92975:213::-;;;;;;;;;;-1:-1:-1;92975:213:0;;;;;:::i;:::-;;:::i;37110:220::-;;;;;;;;;;-1:-1:-1;37110:220:0;;;;;:::i;:::-;;:::i;56092:639::-;56177:4;-1:-1:-1;;;;;;;;;56501:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;56578:25:0;;;56501:102;:179;;;-1:-1:-1;;;;;;;;;;56655:25:0;;;56501:179;56481:199;56092:639;-1:-1:-1;;56092:639:0:o;56994:100::-;57048:13;57081:5;57074:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56994:100;:::o;63485:218::-;63561:7;63586:16;63594:7;63586;:16::i;:::-;63581:64;;63611:34;;-1:-1:-1;;;63611:34:0;;;;;;;;;;;63581:64;-1:-1:-1;63665:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;63665:30:0;;63485:218::o;62918:408::-;63007:13;63023:16;63031:7;63023;:16::i;:::-;63007:32;-1:-1:-1;87251:10:0;-1:-1:-1;;;;;63056:28:0;;;63052:175;;63104:44;63121:5;87251:10;64434:164;:::i;63104:44::-;63099:128;;63176:35;;-1:-1:-1;;;63176:35:0;;;;;;;;;;;63099:128;63239:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;63239:35:0;-1:-1:-1;;;;;63239:35:0;;;;;;;;;63290:28;;63239:24;;63290:28;;;;;;;62996:330;62918:408;;:::o;94207:100::-;36063:13;:11;:13::i;:::-;94279:9:::1;:22;94291:10:::0;94279:9;:22:::1;:::i;:::-;;94207:100:::0;:::o;67124:2825::-;67266:27;67296;67315:7;67296:18;:27::i;:::-;67266:57;;67381:4;-1:-1:-1;;;;;67340:45:0;67356:19;-1:-1:-1;;;;;67340:45:0;;67336:86;;67394:28;;-1:-1:-1;;;67394:28:0;;;;;;;;;;;67336:86;67436:27;66232:24;;;:15;:24;;;;;66460:26;;87251:10;65857:30;;;-1:-1:-1;;;;;65550:28:0;;65835:20;;;65832:56;67622:180;;67715:43;67732:4;87251:10;64434:164;:::i;67715:43::-;67710:92;;67767:35;;-1:-1:-1;;;67767:35:0;;;;;;;;;;;67710:92;-1:-1:-1;;;;;67819:16:0;;67815:52;;67844:23;;-1:-1:-1;;;67844:23:0;;;;;;;;;;;67815:52;68016:15;68013:160;;;68156:1;68135:19;68128:30;68013:160;-1:-1:-1;;;;;68553:24:0;;;;;;;:18;:24;;;;;;68551:26;;-1:-1:-1;;68551:26:0;;;68622:22;;;;;;;;;68620:24;;-1:-1:-1;68620:24:0;;;61776:11;61751:23;61747:41;61734:63;-1:-1:-1;;;61734:63:0;68915:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;69210:47:0;;:52;;69206:627;;69315:1;69305:11;;69283:19;69438:30;;;:17;:30;;;;;;:35;;69434:384;;69576:13;;69561:11;:28;69557:242;;69723:30;;;;:17;:30;;;;;:52;;;69557:242;69264:569;69206:627;69880:7;69876:2;-1:-1:-1;;;;;69861:27:0;69870:4;-1:-1:-1;;;;;69861:27:0;;;;;;;;;;;69899:42;67255:2694;;;67124:2825;;;:::o;94519:102::-;36063:13;:11;:13::i;:::-;94589:12:::1;:26:::0;94519:102::o;70045:193::-;70191:39;70208:4;70214:2;70218:7;70191:39;;;;;;;;;;;;:16;:39::i;:::-;70045:193;;;:::o;91447:1516::-;91634:9;;93282:1;53019:12;52806:7;53003:13;91619:11;;53003:28;;-1:-1:-1;;53003:46:0;91603:27;;;;:::i;:::-;:40;;91595:73;;;;-1:-1:-1;;;91595:73:0;;10517:2:1;91595:73:0;;;10499:21:1;10556:2;10536:18;;;10529:30;-1:-1:-1;;;10575:18:1;;;10568:50;10635:18;;91595:73:0;;;;;;;;;91675:17;;;87251:10;91754:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;91744:41;;;;;;91729:56;;91792:14;91808:50;91827:12;91841:10;;91853:4;91808:18;:50::i;:::-;91792:66;-1:-1:-1;91865:12:0;87251:10;91890:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;91880:41;;;;;;91865:56;;91928:7;91937:42;91956:2;91960:12;;91974:4;91937:18;:42::i;:::-;91928:51;;91991:2;:21;;;;-1:-1:-1;91997:9:0;;;;;;;;:15;;:9;:15;91991:21;:57;;;;-1:-1:-1;87251:10:0;92016:23;;;;:9;:23;;;;;;;;:32;91991:57;:76;;;;;92064:3;92052:7;;92061:1;92052:10;;;;:::i;:::-;:15;91991:76;:116;;;;;92092:15;92071:8;;92082;92071:19;;;;:::i;:::-;:36;91991:116;91987:211;;;87251:10;92115:23;;;;:9;:23;;;;;:30;;-1:-1:-1;;92115:30:0;92141:4;92115:30;;;;;;92152:7;:11;;92141:4;;92152:7;;:11;;92141:4;;92152:11;:::i;:::-;;;;-1:-1:-1;92170:14:0;;-1:-1:-1;92183:1:0;92170:14;;:::i;:::-;;;91987:211;92220:4;92207:17;;;;:47;;;;-1:-1:-1;92227:20:0;;;;:27;;:20;:27;92207:47;92203:470;;;92346:18;;92308:10;92262:16;92291:28;;;:16;:28;;;;;;92262:16;;92346:18;92332:11;;92291:40;;92320:11;;92291:40;:::i;:::-;:52;;;;:::i;:::-;:73;92285:264;;92434:10;92376:19;92417:28;;;:16;:28;;;;;;92397:18;;:48;;92417:28;92397:48;:::i;:::-;92376:69;-1:-1:-1;92285:264:0;;-1:-1:-1;92285:264:0;;92518:23;92530:11;92518;:23;:::i;:::-;92509:32;;92285:264;87251:10;92555:30;;;;:16;:30;;;;;:42;;92589:8;;92555:30;:42;;92589:8;;92555:42;:::i;:::-;;;;-1:-1:-1;;92617:4:0;;:15;;92624:8;;92617:15;:::i;:::-;92604:28;;;;:::i;:::-;;-1:-1:-1;92643:23:0;92658:8;92643:23;;:::i;:::-;;;92255:418;92203:470;92681:13;;;;;;;:20;;92697:4;92681:20;92677:133;;92709:11;92722:24;92735:11;92722;:24;:::i;:::-;92709:37;;92777:3;92766:10;;:14;;;;:::i;:::-;92753:27;;;;:::i;:::-;;-1:-1:-1;92787:17:0;92801:3;92787:17;;:::i;:::-;;;92702:108;92677:133;92836:11;92823;:24;92815:33;;;;;;92877:9;92865;:21;;92857:58;;;;-1:-1:-1;;;92857:58:0;;11406:2:1;92857:58:0;;;11388:21:1;11445:2;11425:18;;;11418:30;11484:26;11464:18;;;11457:54;11528:18;;92857:58:0;11204:348:1;92857:58:0;92922:36;87251:10;92946:11;92922:9;:36::i;:::-;91550:1413;;;;;;91447:1516;;;:::o;89732:33::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;94749:85::-;36063:13;:11;:13::i;:::-;94815::::1;::::0;;-1:-1:-1;;94798:30:0;::::1;94815:13:::0;;;;::::1;;;94814:14;94798:30:::0;;::::1;;::::0;;94749:85::o;94627:115::-;36063:13;:11;:13::i;:::-;94710:20:::1;::::0;;-1:-1:-1;;94686:44:0;::::1;94710:20;::::0;;::::1;94709:21;94686:44;::::0;;94627:115::o;89632:95::-;;;;;;;:::i;58387:152::-;58459:7;58502:27;58521:7;58502:18;:27::i;94417:94::-;36063:13;:11;:13::i;:::-;94482:18:::1;:23:::0;94417:94::o;94001:::-;36063:13;:11;:13::i;:::-;94067:9:::1;:22:::0;94001:94::o;53929:233::-;54001:7;-1:-1:-1;;;;;54025:19:0;;54021:60;;54053:28;;-1:-1:-1;;;54053:28:0;;;;;;;;;;;54021:60;-1:-1:-1;;;;;;54099:25:0;;;;;:18;:25;;;;;;48088:13;54099:55;;53929:233::o;36852:103::-;36063:13;:11;:13::i;:::-;36917:30:::1;36944:1;36917:18;:30::i;:::-;36852:103::o:0;94313:98::-;36063:13;:11;:13::i;:::-;94381:10:::1;:24:::0;94313:98::o;94101:100::-;36063:13;:11;:13::i;:::-;94173:9:::1;:22;94185:10:::0;94173:9;:22:::1;:::i;93769:86::-:0;36063:13;:11;:13::i;:::-;93831:10:::1;:18:::0;93769:86::o;94956:343::-;36063:13;:11;:13::i;:::-;95009:18:::1;95055:3;95030:24;:21;95052:2;95030:24;:::i;:::-;:28;;;;:::i;:::-;95009:49:::0;-1:-1:-1;95069:17:0::1;95113:3;95089:23;:21;95111:1;95089:23;:::i;:::-;:27;;;;:::i;:::-;95135:67;::::0;95069:47;;-1:-1:-1;95143:42:0::1;::::0;95135:67;::::1;;;::::0;95069:47;;95135:67:::1;::::0;;;95069:47;95143:42;95135:67;::::1;;;;;;95127:76;;;::::0;::::1;;95222:68;::::0;95230:42:::1;::::0;95222:68;::::1;;;::::0;95279:10;;95222:68:::1;::::0;;;95279:10;95230:42;95222:68;::::1;;;;;;95214:77;;;::::0;::::1;57170:104:::0;57226:13;57259:7;57252:14;;;;;:::i;64043:234::-;87251:10;64138:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;64138:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;64138:60:0;;;;;;;;;;64214:55;;540:41:1;;;64138:49:0;;87251:10;64214:55;;513:18:1;64214:55:0;;;;;;;64043:234;;:::o;89770:31::-;;;;;;;:::i;70836:407::-;71011:31;71024:4;71030:2;71034:7;71011:12;:31::i;:::-;-1:-1:-1;;;;;71057:14:0;;;:19;71053:183;;71096:56;71127:4;71133:2;71137:7;71146:5;71096:30;:56::i;:::-;71091:145;;71180:40;;-1:-1:-1;;;71180:40:0;;;;;;;;;;;71091:145;70836:407;;;;:::o;93295:371::-;93369:13;93399:17;93407:8;93399:7;:17::i;:::-;93391:77;;;;-1:-1:-1;;;93391:77:0;;12113:2:1;93391:77:0;;;12095:21:1;12152:2;12132:18;;;12125:30;12191:34;12171:18;;;12164:62;-1:-1:-1;;;12242:18:1;;;12235:45;12297:19;;93391:77:0;11911:411:1;93391:77:0;93475:28;93506:10;:8;:10::i;:::-;93475:41;;93561:1;93536:14;93530:28;:32;:130;;;;;;;;;;;;;;;;;93598:14;93614:19;:8;:17;:19::i;:::-;93635:9;93581:64;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;93530:130;93523:137;93295:371;-1:-1:-1;;;93295:371:0:o;90351:1090::-;90464:7;;;87251:10;90530:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;90520:41;;;;;;90505:56;;90568:14;90584:50;90603:12;90617:10;;90629:4;90584:18;:50::i;:::-;90568:66;-1:-1:-1;90641:12:0;87251:10;90666:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;90656:41;;;;;;90641:56;;90704:7;90713:42;90732:2;90736:12;;90750:4;90713:18;:42::i;:::-;90704:51;;90766:2;:21;;;;-1:-1:-1;90772:9:0;;;;;;;;:15;;:9;:15;90766:21;:57;;;;-1:-1:-1;87251:10:0;90791:23;;;;:9;:23;;;;;;;;:32;90766:57;:76;;;;;90839:3;90827:7;;90836:1;90827:10;;;;:::i;:::-;:15;90766:76;:116;;;;;90867:15;90846:8;;90857;90846:19;;;;:::i;:::-;:36;90766:116;90762:150;;;90890:14;90903:1;90890:14;;:::i;:::-;;;90762:150;90935:4;90922:17;;;;:47;;;;-1:-1:-1;90942:20:0;;;;:27;;:20;:27;90922:47;90918:398;;;91049:18;;91021:10;90977:16;91004:28;;;:16;:28;;;;;;90977:16;;91049:18;91004:42;;91035:11;;91004:42;:::i;:::-;:63;91000:240;;91137:10;91079:19;91120:28;;;:16;:28;;;;;;91100:18;;:48;;91120:28;91100:48;:::i;:::-;91079:69;-1:-1:-1;91000:240:0;;-1:-1:-1;91000:240:0;;-1:-1:-1;91221:11:0;91000:240;91266:8;91259:4;;:15;;;;:::i;:::-;91246:28;;;;:::i;:::-;;-1:-1:-1;91285:23:0;91300:8;91285:23;;:::i;:::-;;;90970:346;90918:398;91336:13;;;;;;;:20;;91352:4;91336:20;91332:77;;91390:11;91378:10;;:23;;;;:::i;:::-;91365:36;;;;:::i;:::-;;;91332:77;-1:-1:-1;91422:9:0;;90351:1090;-1:-1:-1;;;;;;;90351:1090:0:o;93676:83::-;36063:13;:11;:13::i;:::-;93741:4:::1;:12:::0;93676:83::o;94843:104::-;36063:13;:11;:13::i;:::-;94900:9:::1;::::0;;-1:-1:-1;;94888:21:0;::::1;94900:9;::::0;;;::::1;;;94899:10;94888:21:::0;;::::1;;::::0;;94926:15:::1;94916:8;:25:::0;94843:104::o;64434:164::-;-1:-1:-1;;;;;64555:25:0;;;64531:4;64555:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;64434:164::o;92975:213::-;36063:13;:11;:13::i;:::-;93106:9:::1;::::0;93282:1;53019:12;52806:7;53003:13;93091:11;;53003:28;;-1:-1:-1;;53003:46:0;93075:27:::1;;;;:::i;:::-;:40;;93067:73;;;::::0;-1:-1:-1;;;93067:73:0;;10517:2:1;93067:73:0::1;::::0;::::1;10499:21:1::0;10556:2;10536:18;;;10529:30;-1:-1:-1;;;10575:18:1;;;10568:50;10635:18;;93067:73:0::1;10315:344:1::0;93067:73:0::1;93149:33;93159:9;93170:11;93149:9;:33::i;37110:220::-:0;36063:13;:11;:13::i;:::-;-1:-1:-1;;;;;37195:22:0;::::1;37191:93;;37241:31;::::0;-1:-1:-1;;;37241:31:0;;37269:1:::1;37241:31;::::0;::::1;1679:51:1::0;1652:18;;37241:31:0::1;1533:203:1::0;37191:93:0::1;37294:28;37313:8;37294:18;:28::i;:::-;37110:220:::0;:::o;64856:282::-;64921:4;64977:7;93282:1;64958:26;;:66;;;;;65011:13;;65001:7;:23;64958:66;:153;;;;-1:-1:-1;;65062:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;65062:44:0;:49;;64856:282::o;36342:166::-;36250:6;;-1:-1:-1;;;;;36250:6:0;87251:10;36402:23;36398:103;;36449:40;;-1:-1:-1;;;36449:40:0;;87251:10;36449:40;;;1679:51:1;1652:18;;36449:40:0;1533:203:1;59542:1275:0;59609:7;59644;;93282:1;59693:23;59689:1061;;59746:13;;59739:4;:20;59735:1015;;;59784:14;59801:23;;;:17;:23;;;;;;;-1:-1:-1;;;59890:24:0;;:29;;59886:845;;60555:113;60562:6;60572:1;60562:11;60555:113;;-1:-1:-1;;;60633:6:0;60615:25;;;;:17;:25;;;;;;60555:113;;59886:845;59761:989;59735:1015;60778:31;;-1:-1:-1;;;60778:31:0;;;;;;;;;;;24793:156;24884:4;24937;24908:25;24921:5;24928:4;24908:12;:25::i;:::-;:33;;24793:156;-1:-1:-1;;;;24793:156:0:o;80996:112::-;81073:27;81083:2;81087:8;81073:27;;;;;;;;;;;;:9;:27::i;37490:191::-;37583:6;;;-1:-1:-1;;;;;37600:17:0;;;-1:-1:-1;;;;;;37600:17:0;;;;;;;37633:40;;37583:6;;;37600:17;37583:6;;37633:40;;37564:16;;37633:40;37553:128;37490:191;:::o;73327:716::-;73511:88;;-1:-1:-1;;;73511:88:0;;73490:4;;-1:-1:-1;;;;;73511:45:0;;;;;:88;;87251:10;;73578:4;;73584:7;;73593:5;;73511:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73511:88:0;;;;;;;;-1:-1:-1;;73511:88:0;;;;;;;;;;;;:::i;:::-;;;73507:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73794:6;:13;73811:1;73794:18;73790:235;;73840:40;;-1:-1:-1;;;73840:40:0;;;;;;;;;;;73790:235;73983:6;73977:13;73968:6;73964:2;73960:15;73953:38;73507:529;-1:-1:-1;;;;;;73670:64:0;-1:-1:-1;;;73670:64:0;;-1:-1:-1;73507:529:0;73327:716;;;;;;:::o;95305:104::-;95365:13;95394:9;95387:16;;;;;:::i;17682:718::-;17738:13;17789:14;17806:17;17817:5;17806:10;:17::i;:::-;17826:1;17806:21;17789:38;;17842:20;17876:6;17865:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17865:18:0;-1:-1:-1;17842:41:0;-1:-1:-1;18007:28:0;;;18023:2;18007:28;18064:290;-1:-1:-1;;18096:5:0;-1:-1:-1;;;18233:2:0;18222:14;;18217:32;18096:5;18204:46;18296:2;18287:11;;;-1:-1:-1;18317:21:0;18064:290;18317:21;-1:-1:-1;18375:6:0;17682:718;-1:-1:-1;;;17682:718:0:o;25512:296::-;25595:7;25638:4;25595:7;25653:118;25677:5;:12;25673:1;:16;25653:118;;;25726:33;25736:12;25750:5;25756:1;25750:8;;;;;;;;:::i;:::-;;;;;;;25726:9;:33::i;:::-;25711:48;-1:-1:-1;25691:3:0;;;;:::i;:::-;;;;25653:118;;;-1:-1:-1;25788:12:0;25512:296;-1:-1:-1;;;25512:296:0:o;80223:689::-;80354:19;80360:2;80364:8;80354:5;:19::i;:::-;-1:-1:-1;;;;;80415:14:0;;;:19;80411:483;;80455:11;80469:13;80517:14;;;80550:233;80581:62;80620:1;80624:2;80628:7;;;;;;80637:5;80581:30;:62::i;:::-;80576:167;;80679:40;;-1:-1:-1;;;80679:40:0;;;;;;;;;;;80576:167;80778:3;80770:5;:11;80550:233;;80865:3;80848:13;;:20;80844:34;;80870:8;;;80844:34;80436:458;;80223:689;;;:::o;14086:948::-;14139:7;;-1:-1:-1;;;14217:17:0;;14213:106;;-1:-1:-1;;;14255:17:0;;;-1:-1:-1;14301:2:0;14291:12;14213:106;14346:8;14337:5;:17;14333:106;;14384:8;14375:17;;;-1:-1:-1;14421:2:0;14411:12;14333:106;14466:8;14457:5;:17;14453:106;;14504:8;14495:17;;;-1:-1:-1;14541:2:0;14531:12;14453:106;14586:7;14577:5;:16;14573:103;;14623:7;14614:16;;;-1:-1:-1;14659:1:0;14649:11;14573:103;14703:7;14694:5;:16;14690:103;;14740:7;14731:16;;;-1:-1:-1;14776:1:0;14766:11;14690:103;14820:7;14811:5;:16;14807:103;;14857:7;14848:16;;;-1:-1:-1;14893:1:0;14883:11;14807:103;14937:7;14928:5;:16;14924:68;;14975:1;14965:11;15020:6;14086:948;-1:-1:-1;;14086:948:0:o;32942:149::-;33005:7;33036:1;33032;:5;:51;;33284:13;33378:15;;;33414:4;33407:15;;;33461:4;33445:21;;33032:51;;;-1:-1:-1;33284:13:0;33378:15;;;33414:4;33407:15;33461:4;33445:21;;;32942:149::o;74505:2966::-;74578:20;74601:13;;;74629;;;74625:44;;74651:18;;-1:-1:-1;;;74651:18:0;;;;;;;;;;;74625:44;-1:-1:-1;;;;;75157:22:0;;;;;;:18;:22;;;;48226:2;75157:22;;;:71;;75195:32;75183:45;;75157:71;;;75471:31;;;:17;:31;;;;;-1:-1:-1;62207:15:0;;62181:24;62177:46;61776:11;61751:23;61747:41;61744:52;61734:63;;75471:173;;75706:23;;;;75471:31;;75157:22;;76471:25;75157:22;;76324:335;76985:1;76971:12;76967:20;76925:346;77026:3;77017:7;77014:16;76925:346;;77244:7;77234:8;77231:1;77204:25;77201:1;77198;77193:59;77079:1;77066:15;76925:346;;;76929:77;77304:8;77316:1;77304:13;77300:45;;77326:19;;-1:-1:-1;;;77326:19:0;;;;;;;;;;;77300:45;77362:13;:19;-1:-1:-1;70045:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:127::-;2421:10;2416:3;2412:20;2409:1;2402:31;2452:4;2449:1;2442:15;2476:4;2473:1;2466:15;2492:275;2563:2;2557:9;2628:2;2609:13;;-1:-1:-1;;2605:27:1;2593:40;;2663:18;2648:34;;2684:22;;;2645:62;2642:88;;;2710:18;;:::i;:::-;2746:2;2739:22;2492:275;;-1:-1:-1;2492:275:1:o;2772:407::-;2837:5;2871:18;2863:6;2860:30;2857:56;;;2893:18;;:::i;:::-;2931:57;2976:2;2955:15;;-1:-1:-1;;2951:29:1;2982:4;2947:40;2931:57;:::i;:::-;2922:66;;3011:6;3004:5;2997:21;3051:3;3042:6;3037:3;3033:16;3030:25;3027:45;;;3068:1;3065;3058:12;3027:45;3117:6;3112:3;3105:4;3098:5;3094:16;3081:43;3171:1;3164:4;3155:6;3148:5;3144:18;3140:29;3133:40;2772:407;;;;;:::o;3184:451::-;3253:6;3306:2;3294:9;3285:7;3281:23;3277:32;3274:52;;;3322:1;3319;3312:12;3274:52;3362:9;3349:23;3395:18;3387:6;3384:30;3381:50;;;3427:1;3424;3417:12;3381:50;3450:22;;3503:4;3495:13;;3491:27;-1:-1:-1;3481:55:1;;3532:1;3529;3522:12;3481:55;3555:74;3621:7;3616:2;3603:16;3598:2;3594;3590:11;3555:74;:::i;3640:186::-;3699:6;3752:2;3740:9;3731:7;3727:23;3723:32;3720:52;;;3768:1;3765;3758:12;3720:52;3791:29;3810:9;3791:29;:::i;3831:328::-;3908:6;3916;3924;3977:2;3965:9;3956:7;3952:23;3948:32;3945:52;;;3993:1;3990;3983:12;3945:52;4016:29;4035:9;4016:29;:::i;:::-;4006:39;;4064:38;4098:2;4087:9;4083:18;4064:38;:::i;:::-;4054:48;;4149:2;4138:9;4134:18;4121:32;4111:42;;3831:328;;;;;:::o;4531:712::-;4585:5;4638:3;4631:4;4623:6;4619:17;4615:27;4605:55;;4656:1;4653;4646:12;4605:55;4692:6;4679:20;4718:4;4741:18;4737:2;4734:26;4731:52;;;4763:18;;:::i;:::-;4809:2;4806:1;4802:10;4832:28;4856:2;4852;4848:11;4832:28;:::i;:::-;4894:15;;;4964;;;4960:24;;;4925:12;;;;4996:15;;;4993:35;;;5024:1;5021;5014:12;4993:35;5060:2;5052:6;5048:15;5037:26;;5072:142;5088:6;5083:3;5080:15;5072:142;;;5154:17;;5142:30;;5105:12;;;;5192;;;;5072:142;;;5232:5;4531:712;-1:-1:-1;;;;;;;4531:712:1:o;5248:663::-;5375:6;5383;5391;5444:2;5432:9;5423:7;5419:23;5415:32;5412:52;;;5460:1;5457;5450:12;5412:52;5496:9;5483:23;5473:33;;5557:2;5546:9;5542:18;5529:32;5580:18;5621:2;5613:6;5610:14;5607:34;;;5637:1;5634;5627:12;5607:34;5660:61;5713:7;5704:6;5693:9;5689:22;5660:61;:::i;:::-;5650:71;;5774:2;5763:9;5759:18;5746:32;5730:48;;5803:2;5793:8;5790:16;5787:36;;;5819:1;5816;5809:12;5787:36;;5842:63;5897:7;5886:8;5875:9;5871:24;5842:63;:::i;:::-;5832:73;;;5248:663;;;;;:::o;5916:347::-;5981:6;5989;6042:2;6030:9;6021:7;6017:23;6013:32;6010:52;;;6058:1;6055;6048:12;6010:52;6081:29;6100:9;6081:29;:::i;:::-;6071:39;;6160:2;6149:9;6145:18;6132:32;6207:5;6200:13;6193:21;6186:5;6183:32;6173:60;;6229:1;6226;6219:12;6173:60;6252:5;6242:15;;;5916:347;;;;;:::o;6268:667::-;6363:6;6371;6379;6387;6440:3;6428:9;6419:7;6415:23;6411:33;6408:53;;;6457:1;6454;6447:12;6408:53;6480:29;6499:9;6480:29;:::i;:::-;6470:39;;6528:38;6562:2;6551:9;6547:18;6528:38;:::i;:::-;6518:48;;6613:2;6602:9;6598:18;6585:32;6575:42;;6668:2;6657:9;6653:18;6640:32;6695:18;6687:6;6684:30;6681:50;;;6727:1;6724;6717:12;6681:50;6750:22;;6803:4;6795:13;;6791:27;-1:-1:-1;6781:55:1;;6832:1;6829;6822:12;6781:55;6855:74;6921:7;6916:2;6903:16;6898:2;6894;6890:11;6855:74;:::i;:::-;6845:84;;;6268:667;;;;;;;:::o;6940:260::-;7008:6;7016;7069:2;7057:9;7048:7;7044:23;7040:32;7037:52;;;7085:1;7082;7075:12;7037:52;7108:29;7127:9;7108:29;:::i;:::-;7098:39;;7156:38;7190:2;7179:9;7175:18;7156:38;:::i;:::-;7146:48;;6940:260;;;;;:::o;7205:254::-;7273:6;7281;7334:2;7322:9;7313:7;7309:23;7305:32;7302:52;;;7350:1;7347;7340:12;7302:52;7386:9;7373:23;7363:33;;7415:38;7449:2;7438:9;7434:18;7415:38;:::i;7464:380::-;7543:1;7539:12;;;;7586;;;7607:61;;7661:4;7653:6;7649:17;7639:27;;7607:61;7714:2;7706:6;7703:14;7683:18;7680:38;7677:161;;7760:10;7755:3;7751:20;7748:1;7741:31;7795:4;7792:1;7785:15;7823:4;7820:1;7813:15;7677:161;;7464:380;;;:::o;7975:545::-;8077:2;8072:3;8069:11;8066:448;;;8113:1;8138:5;8134:2;8127:17;8183:4;8179:2;8169:19;8253:2;8241:10;8237:19;8234:1;8230:27;8224:4;8220:38;8289:4;8277:10;8274:20;8271:47;;;-1:-1:-1;8312:4:1;8271:47;8367:2;8362:3;8358:12;8355:1;8351:20;8345:4;8341:31;8331:41;;8422:82;8440:2;8433:5;8430:13;8422:82;;;8485:17;;;8466:1;8455:13;8422:82;;8696:1352;8822:3;8816:10;8849:18;8841:6;8838:30;8835:56;;;8871:18;;:::i;:::-;8900:97;8990:6;8950:38;8982:4;8976:11;8950:38;:::i;:::-;8944:4;8900:97;:::i;:::-;9052:4;;9116:2;9105:14;;9133:1;9128:663;;;;9835:1;9852:6;9849:89;;;-1:-1:-1;9904:19:1;;;9898:26;9849:89;-1:-1:-1;;8653:1:1;8649:11;;;8645:24;8641:29;8631:40;8677:1;8673:11;;;8628:57;9951:81;;9098:944;;9128:663;7922:1;7915:14;;;7959:4;7946:18;;-1:-1:-1;;9164:20:1;;;9282:236;9296:7;9293:1;9290:14;9282:236;;;9385:19;;;9379:26;9364:42;;9477:27;;;;9445:1;9433:14;;;;9312:19;;9282:236;;;9286:3;9546:6;9537:7;9534:19;9531:201;;;9607:19;;;9601:26;-1:-1:-1;;9690:1:1;9686:14;;;9702:3;9682:24;9678:37;9674:42;9659:58;9644:74;;9531:201;-1:-1:-1;;;;;9778:1:1;9762:14;;;9758:22;9745:36;;-1:-1:-1;8696:1352:1:o;10053:127::-;10114:10;10109:3;10105:20;10102:1;10095:31;10145:4;10142:1;10135:15;10169:4;10166:1;10159:15;10185:125;10250:9;;;10271:10;;;10268:36;;;10284:18;;:::i;10664:229::-;10813:2;10809:15;;;;-1:-1:-1;;10805:53:1;10793:66;;10884:2;10875:12;;10664:229::o;10898:128::-;10965:9;;;10986:11;;;10983:37;;;11000:18;;:::i;11031:168::-;11104:9;;;11135;;11152:15;;;11146:22;;11132:37;11122:71;;11173:18;;:::i;11689:217::-;11729:1;11755;11745:132;;11799:10;11794:3;11790:20;11787:1;11780:31;11834:4;11831:1;11824:15;11862:4;11859:1;11852:15;11745:132;-1:-1:-1;11891:9:1;;11689:217::o;12327:1256::-;12551:3;12589:6;12583:13;12615:4;12628:64;12685:6;12680:3;12675:2;12667:6;12663:15;12628:64;:::i;:::-;12755:13;;12714:16;;;;12777:68;12755:13;12714:16;12812:15;;;12777:68;:::i;:::-;12934:13;;12867:20;;;12907:1;;12972:36;12934:13;12972:36;:::i;:::-;13027:1;13044:18;;;13071:141;;;;13226:1;13221:337;;;;13037:521;;13071:141;-1:-1:-1;;13106:24:1;;13092:39;;13183:16;;13176:24;13162:39;;13151:51;;;-1:-1:-1;13071:141:1;;13221:337;13252:6;13249:1;13242:17;13300:2;13297:1;13287:16;13325:1;13339:169;13353:8;13350:1;13347:15;13339:169;;;13435:14;;13420:13;;;13413:37;13478:16;;;;13370:10;;13339:169;;;13343:3;;13539:8;13532:5;13528:20;13521:27;;13037:521;-1:-1:-1;13574:3:1;;12327:1256;-1:-1:-1;;;;;;;;;;12327:1256:1:o;13588:489::-;-1:-1:-1;;;;;13857:15:1;;;13839:34;;13909:15;;13904:2;13889:18;;13882:43;13956:2;13941:18;;13934:34;;;14004:3;13999:2;13984:18;;13977:31;;;13782:4;;14025:46;;14051:19;;14043:6;14025:46;:::i;:::-;14017:54;13588:489;-1:-1:-1;;;;;;13588:489:1:o;14082:249::-;14151:6;14204:2;14192:9;14183:7;14179:23;14175:32;14172:52;;;14220:1;14217;14210:12;14172:52;14252:9;14246:16;14271:30;14295:5;14271:30;:::i;14336:127::-;14397:10;14392:3;14388:20;14385:1;14378:31;14428:4;14425:1;14418:15;14452:4;14449:1;14442:15;14468:135;14507:3;14528:17;;;14525:43;;14548:18;;:::i;:::-;-1:-1:-1;14595:1:1;14584:13;;14468:135::o
Swarm Source
ipfs://ad1d9cd7fd066ab6dac4f224c2d8198d413fcf9792afeb36939301a963a63927
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.