Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
WokeCaptains
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-05-04 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = MathUpgradeable.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, MathUpgradeable.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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`. * * 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 calldata data ) external; /** * @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 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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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; /** * @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; /** * @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); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721Upgradeable.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[44] private __gap; } // File: contracts/WokeCaptains.sol pragma solidity ^0.8.0; contract WokeCaptains is ERC721Upgradeable, OwnableUpgradeable { using Strings for uint256; string private _baseURIextended; string public unrevealURI; bool public reveal; string public mintStep; bool public mintPause; uint256 public mintPrice; uint256 public mintLimit; bytes32 public merkleRoot; uint256 public MAX_NFT_SUPPLY = 555; uint256 public mintCounter; mapping (address => uint256) public referralMintCount; event MintNFT(address indexed _minter, uint256 _amount, address indexed _referrer); function initialize() public initializer { __Ownable_init(); __ERC721_init("WokeCaptains", "$WOKE"); unrevealURI = "https://bullhead.mypinata.cloud/ipfs/Qmd1zs6QkBVKQzzpeFSoS7g9ZLUE338Dm1RTnYMszgMmeL/1"; } function mint(address _receiver, uint256 _quantity, address _referrer) private { for(uint256 i = 0; i < _quantity; i++) { require(mintCounter < MAX_NFT_SUPPLY, "Sale has already ended"); mintCounter = mintCounter + 1; _safeMint(_receiver, mintCounter); } if (_referrer != address(0)) { referralMintCount[_receiver] = referralMintCount[_receiver] + 1; } emit MintNFT(msg.sender, _quantity, _referrer); } function mintNFTForOwner(uint256 _amount) public onlyOwner { mint(msg.sender, _amount, address(0)); } function mintNFT(bytes32[] calldata _proof, uint256 _quantity, address _referrer) public payable { require(_referrer != msg.sender, "Invalid referral address"); require(_quantity > 0, "Invalid mint amount"); require(mintPrice * _quantity <= msg.value, "ETH value is not correct"); require(balanceOf(msg.sender) + _quantity <= mintLimit, "Exceeded Mint Count"); require(!mintPause, "Mint Paused."); if(merkleRoot != 0x0) { require(MerkleProof.verify(_proof, merkleRoot, keccak256(abi.encodePacked(msg.sender))), "Address does not exist in whitelist."); } mint(msg.sender, _quantity, _referrer); } function withdraw() external onlyOwner() { address payable ownerAddress = payable(msg.sender); ownerAddress.transfer(address(this).balance); } function getReferralMintCount(address _user) external view returns (uint256) { return referralMintCount[_user]; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if(!reveal) return unrevealURI; return bytes(_baseURIextended).length > 0 ? string(abi.encodePacked(_baseURIextended, tokenId.toString())) : ""; } function _baseURI() internal view virtual override returns (string memory) { return _baseURIextended; } function setBaseURI(string memory baseURI_) external onlyOwner() { _baseURIextended = baseURI_; } function setUnrevealURI(string memory _uri) external onlyOwner() { unrevealURI = _uri; } function Reveal() public onlyOwner() { reveal = true; } function UnReveal() public onlyOwner() { reveal = false; } function setMintState(string memory _mintStep, uint256 _mintPrice, uint256 _mintLimit, bytes32 _merkleRoot, bool _startNow) external onlyOwner { mintStep = _mintStep; mintPrice = _mintPrice; mintLimit = _mintLimit; merkleRoot = _merkleRoot; mintPause = !_startNow; } function getMintState() public view returns ( string memory _mintStep, bool _mintPause, uint256 _mintLimit, uint256 _mintPrice, bytes32 _merkleRoot ) { _mintStep = mintStep; _mintPause = mintPause; _mintLimit = mintLimit; _mintPrice = mintPrice; _merkleRoot = merkleRoot; } function setMaxSupply(uint256 _maxSupply) external { MAX_NFT_SUPPLY = _maxSupply; } function pause() public onlyOwner { mintPause = true; } function unPause() public onlyOwner { mintPause = false; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"_referrer","type":"address"}],"name":"MintNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_NFT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"UnReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintState","outputs":[{"internalType":"string","name":"_mintStep","type":"string"},{"internalType":"bool","name":"_mintPause","type":"bool"},{"internalType":"uint256","name":"_mintLimit","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getReferralMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintNFTForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStep","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referralMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","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":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_mintStep","type":"string"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_mintLimit","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bool","name":"_startNow","type":"bool"}],"name":"setMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUnrevealURI","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405261022b60d15534801561001657600080fd5b506126a2806100266000396000f3fe60806040526004361061023b5760003560e01c80638129fc1c1161012e578063ad236d4c116100ab578063ba787e921161006f578063ba787e9214610665578063c87b56dd14610678578063e985e9c514610698578063f2fde38b146106b8578063f7b188a5146106d857600080fd5b8063ad236d4c146105bf578063b3a6c659146105df578063b5077f4414610615578063b803e2661461062b578063b88d4fde1461064557600080fd5b806397bc411c116100f257806397bc411c1461052f578063996517cf1461054f578063a22cb46514610565578063a475b5dd14610585578063a88ba0f01461059f57600080fd5b80638129fc1c146104bd5780638456cb59146104d25780638da5cb5b146104e75780638faeb78f1461050557806395d89b411461051a57600080fd5b806355f804b3116101bc5780636817c76c116101805780636817c76c1461042c5780636f8b44b01461044257806370a0823114610462578063715018a614610482578063774a88351461049757600080fd5b806355f804b314610395578063591e24b2146103b55780636352211e146103e257806366b9f0d214610402578063672cb6581461041757600080fd5b806323b872dd1161020357806323b872dd146103065780632eb4a7ab146103265780633ccfd60b1461034a57806342842e0e1461035f57806346aa52ce1461037f57600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf5780632126ea81146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611e22565b6106ed565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a61073f565b60405161026c9190611e8f565b3480156102a357600080fd5b506102b76102b2366004611ea2565b6107d1565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004611ed7565b6107f8565b005b3480156102fd57600080fd5b5061028a610912565b34801561031257600080fd5b506102ef610321366004611f01565b6109a0565b34801561033257600080fd5b5061033c60d05481565b60405190815260200161026c565b34801561035657600080fd5b506102ef6109d1565b34801561036b57600080fd5b506102ef61037a366004611f01565b610a0b565b34801561038b57600080fd5b5061033c60d25481565b3480156103a157600080fd5b506102ef6103b0366004611fe9565b610a26565b3480156103c157600080fd5b5061033c6103d036600461201e565b60d36020526000908152604090205481565b3480156103ee57600080fd5b506102b76103fd366004611ea2565b610a3a565b34801561040e57600080fd5b506102ef610a9a565b34801561042357600080fd5b506102ef610ab1565b34801561043857600080fd5b5061033c60ce5481565b34801561044e57600080fd5b506102ef61045d366004611ea2565b60d155565b34801561046e57600080fd5b5061033c61047d36600461201e565b610ac5565b34801561048e57600080fd5b506102ef610b4b565b3480156104a357600080fd5b506104ac610b5f565b60405161026c959493929190612039565b3480156104c957600080fd5b506102ef610c14565b3480156104de57600080fd5b506102ef610d97565b3480156104f357600080fd5b506097546001600160a01b03166102b7565b34801561051157600080fd5b5061028a610dae565b34801561052657600080fd5b5061028a610dbb565b34801561053b57600080fd5b506102ef61054a366004611fe9565b610dca565b34801561055b57600080fd5b5061033c60cf5481565b34801561057157600080fd5b506102ef610580366004612080565b610dde565b34801561059157600080fd5b5060cb546102609060ff1681565b3480156105ab57600080fd5b506102ef6105ba3660046120b3565b610de9565b3480156105cb57600080fd5b506102ef6105da366004611ea2565b610e20565b3480156105eb57600080fd5b5061033c6105fa36600461201e565b6001600160a01b0316600090815260d3602052604090205490565b34801561062157600080fd5b5061033c60d15481565b34801561063757600080fd5b5060cd546102609060ff1681565b34801561065157600080fd5b506102ef61066036600461211e565b610e34565b6102ef61067336600461219a565b610e6c565b34801561068457600080fd5b5061028a610693366004611ea2565b6110e4565b3480156106a457600080fd5b506102606106b3366004612226565b61125b565b3480156106c457600080fd5b506102ef6106d336600461201e565b611289565b3480156106e457600080fd5b506102ef6112ff565b60006001600160e01b031982166380ac58cd60e01b148061071e57506001600160e01b03198216635b5e139f60e01b145b8061073957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606065805461074e90612250565b80601f016020809104026020016040519081016040528092919081815260200182805461077a90612250565b80156107c75780601f1061079c576101008083540402835291602001916107c7565b820191906000526020600020905b8154815290600101906020018083116107aa57829003601f168201915b5050505050905090565b60006107dc82611313565b506000908152606960205260409020546001600160a01b031690565b600061080382610a3a565b9050806001600160a01b0316836001600160a01b0316036108755760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108915750610891813361125b565b6109035760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161086c565b61090d8383611372565b505050565b60ca805461091f90612250565b80601f016020809104026020016040519081016040528092919081815260200182805461094b90612250565b80156109985780601f1061096d57610100808354040283529160200191610998565b820191906000526020600020905b81548152906001019060200180831161097b57829003601f168201915b505050505081565b6109aa33826113e0565b6109c65760405162461bcd60e51b815260040161086c9061228a565b61090d83838361143f565b6109d96115a3565b604051339081904780156108fc02916000818181858888f19350505050158015610a07573d6000803e3d6000fd5b5050565b61090d83838360405180602001604052806000815250610e34565b610a2e6115a3565b60c9610a078282612325565b6000818152606760205260408120546001600160a01b0316806107395760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161086c565b610aa26115a3565b60cb805460ff19166001179055565b610ab96115a3565b60cb805460ff19169055565b60006001600160a01b038216610b2f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161086c565b506001600160a01b031660009081526068602052604090205490565b610b536115a3565b610b5d60006115fd565b565b606060008060008060cc8054610b7490612250565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba090612250565b8015610bed5780601f10610bc257610100808354040283529160200191610bed565b820191906000526020600020905b815481529060010190602001808311610bd057829003601f168201915b505060cd5460cf5460ce5460d054969c60ff9093169b509099509750939550929350505050565b600054610100900460ff1615808015610c345750600054600160ff909116105b80610c4e5750303b158015610c4e575060005460ff166001145b610cb15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161086c565b6000805460ff191660011790558015610cd4576000805461ff0019166101001790555b610cdc61164f565b610d276040518060400160405280600c81526020016b576f6b654361707461696e7360a01b8152506040518060400160405280600581526020016424574f4b4560d81b81525061167e565b6040518060800160405280605581526020016126186055913960ca90610d4d9082612325565b508015610d94576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b610d9f6115a3565b60cd805460ff19166001179055565b60cc805461091f90612250565b60606066805461074e90612250565b610dd26115a3565b60ca610a078282612325565b610a073383836116af565b610df16115a3565b60cc610dfd8682612325565b5060ce9390935560cf9190915560d05560cd805460ff1916911591909117905550565b610e286115a3565b610d943382600061177e565b610e3e33836113e0565b610e5a5760405162461bcd60e51b815260040161086c9061228a565b610e6684848484611890565b50505050565b336001600160a01b03821603610ec45760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420726566657272616c20616464726573730000000000000000604482015260640161086c565b60008211610f0a5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b604482015260640161086c565b348260ce54610f1991906123fb565b1115610f675760405162461bcd60e51b815260206004820152601860248201527f4554482076616c7565206973206e6f7420636f72726563740000000000000000604482015260640161086c565b60cf5482610f7433610ac5565b610f7e9190612412565b1115610fc25760405162461bcd60e51b8152602060048201526013602482015272115e18d95959195908135a5b9d0810dbdd5b9d606a1b604482015260640161086c565b60cd5460ff16156110045760405162461bcd60e51b815260206004820152600c60248201526b26b4b73a102830bab9b2b21760a11b604482015260640161086c565b60d054156110d9576110818484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060d0546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050604051602081830303815290604052805190602001206118c3565b6110d95760405162461bcd60e51b8152602060048201526024808201527f4164647265737320646f6573206e6f7420657869737420696e2077686974656c60448201526334b9ba1760e11b606482015260840161086c565b610e6633838361177e565b6000818152606760205260409020546060906001600160a01b03166111635760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161086c565b60cb5460ff166111ff5760ca805461117a90612250565b80601f01602080910402602001604051908101604052809291908181526020018280546111a690612250565b80156111f35780601f106111c8576101008083540402835291602001916111f3565b820191906000526020600020905b8154815290600101906020018083116111d657829003601f168201915b50505050509050919050565b600060c9805461120e90612250565b90501161122a5760405180602001604052806000815250610739565b60c9611235836118d9565b604051602001611246929190612425565b60405160208183030381529060405292915050565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b6112916115a3565b6001600160a01b0381166112f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086c565b610d94816115fd565b6113076115a3565b60cd805460ff19169055565b6000818152606760205260409020546001600160a01b0316610d945760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161086c565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113a782610a3a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806113ec83610a3a565b9050806001600160a01b0316846001600160a01b031614806114135750611413818561125b565b806114375750836001600160a01b031661142c846107d1565b6001600160a01b0316145b949350505050565b826001600160a01b031661145282610a3a565b6001600160a01b0316146114785760405162461bcd60e51b815260040161086c906124ac565b6001600160a01b0382166114da5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161086c565b826001600160a01b03166114ed82610a3a565b6001600160a01b0316146115135760405162461bcd60e51b815260040161086c906124ac565b600081815260696020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260688552838620805460001901905590871680865283862080546001019055868652606790945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6097546001600160a01b03163314610b5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161086c565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166116765760405162461bcd60e51b815260040161086c906124f1565b610b5d61196c565b600054610100900460ff166116a55760405162461bcd60e51b815260040161086c906124f1565b610a07828261199c565b816001600160a01b0316836001600160a01b0316036117105760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161086c565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a3505050565b60005b828110156118055760d15460d254106117d55760405162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604482015260640161086c565b60d2546117e3906001612412565b60d28190556117f39085906119dc565b806117fd8161253c565b915050611781565b506001600160a01b03811615611853576001600160a01b038316600090815260d36020526040902054611839906001612412565b6001600160a01b038416600090815260d360205260409020555b6040518281526001600160a01b0382169033907ffa815a72b2fbfaadcbdc80080ee26aa60e70856ebd65edc09577166b19021efd90602001611771565b61189b84848461143f565b6118a7848484846119f6565b610e665760405162461bcd60e51b815260040161086c90612555565b6000826118d08584611af7565b14949350505050565b606060006118e683611b44565b600101905060008167ffffffffffffffff81111561190657611906611f3d565b6040519080825280601f01601f191660200182016040528015611930576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461193a57509392505050565b600054610100900460ff166119935760405162461bcd60e51b815260040161086c906124f1565b610b5d336115fd565b600054610100900460ff166119c35760405162461bcd60e51b815260040161086c906124f1565b60656119cf8382612325565b50606661090d8282612325565b610a07828260405180602001604052806000815250611c1c565b60006001600160a01b0384163b15611aec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a3a9033908990889088906004016125a7565b6020604051808303816000875af1925050508015611a75575060408051601f3d908101601f19168201909252611a72918101906125e4565b60015b611ad2573d808015611aa3576040519150601f19603f3d011682016040523d82523d6000602084013e611aa8565b606091505b508051600003611aca5760405162461bcd60e51b815260040161086c90612555565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611437565b506001949350505050565b600081815b8451811015611b3c57611b2882868381518110611b1b57611b1b612601565b6020026020010151611c4f565b915080611b348161253c565b915050611afc565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611b835772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611baf576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611bcd57662386f26fc10000830492506010015b6305f5e1008310611be5576305f5e100830492506008015b6127108310611bf957612710830492506004015b60648310611c0b576064830492506002015b600a83106107395760010192915050565b611c268383611c81565b611c3360008484846119f6565b61090d5760405162461bcd60e51b815260040161086c90612555565b6000818310611c6b576000828152602084905260409020611c7a565b60008381526020839052604090205b9392505050565b6001600160a01b038216611cd75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161086c565b6000818152606760205260409020546001600160a01b031615611d3c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086c565b6000818152606760205260409020546001600160a01b031615611da15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086c565b6001600160a01b038216600081815260686020908152604080832080546001019055848352606790915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610d9457600080fd5b600060208284031215611e3457600080fd5b8135611c7a81611e0c565b60005b83811015611e5a578181015183820152602001611e42565b50506000910152565b60008151808452611e7b816020860160208601611e3f565b601f01601f19169290920160200192915050565b602081526000611c7a6020830184611e63565b600060208284031215611eb457600080fd5b5035919050565b80356001600160a01b0381168114611ed257600080fd5b919050565b60008060408385031215611eea57600080fd5b611ef383611ebb565b946020939093013593505050565b600080600060608486031215611f1657600080fd5b611f1f84611ebb565b9250611f2d60208501611ebb565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611f6e57611f6e611f3d565b604051601f8501601f19908116603f01168101908282118183101715611f9657611f96611f3d565b81604052809350858152868686011115611faf57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611fda57600080fd5b611c7a83833560208501611f53565b600060208284031215611ffb57600080fd5b813567ffffffffffffffff81111561201257600080fd5b61143784828501611fc9565b60006020828403121561203057600080fd5b611c7a82611ebb565b60a08152600061204c60a0830188611e63565b95151560208301525060408101939093526060830191909152608090910152919050565b80358015158114611ed257600080fd5b6000806040838503121561209357600080fd5b61209c83611ebb565b91506120aa60208401612070565b90509250929050565b600080600080600060a086880312156120cb57600080fd5b853567ffffffffffffffff8111156120e257600080fd5b6120ee88828901611fc9565b95505060208601359350604086013592506060860135915061211260808701612070565b90509295509295909350565b6000806000806080858703121561213457600080fd5b61213d85611ebb565b935061214b60208601611ebb565b925060408501359150606085013567ffffffffffffffff81111561216e57600080fd5b8501601f8101871361217f57600080fd5b61218e87823560208401611f53565b91505092959194509250565b600080600080606085870312156121b057600080fd5b843567ffffffffffffffff808211156121c857600080fd5b818701915087601f8301126121dc57600080fd5b8135818111156121eb57600080fd5b8860208260051b850101111561220057600080fd5b60209283019650945050850135915061221b60408601611ebb565b905092959194509250565b6000806040838503121561223957600080fd5b61224283611ebb565b91506120aa60208401611ebb565b600181811c9082168061226457607f821691505b60208210810361228457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b601f82111561090d57600081815260208120601f850160051c810160208610156122fe5750805b601f850160051c820191505b8181101561231d5782815560010161230a565b505050505050565b815167ffffffffffffffff81111561233f5761233f611f3d565b6123538161234d8454612250565b846122d7565b602080601f83116001811461238857600084156123705750858301515b600019600386901b1c1916600185901b17855561231d565b600085815260208120601f198616915b828110156123b757888601518255948401946001909101908401612398565b50858210156123d55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610739576107396123e5565b80820180821115610739576107396123e5565b600080845461243381612250565b6001828116801561244b57600181146124605761248f565b60ff198416875282151583028701945061248f565b8860005260208060002060005b858110156124865781548a82015290840190820161246d565b50505082870194505b5050505083516124a3818360208801611e3f565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006001820161254e5761254e6123e5565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125da90830184611e63565b9695505050505050565b6000602082840312156125f657600080fd5b8151611c7a81611e0c565b634e487b7160e01b600052603260045260246000fdfe68747470733a2f2f62756c6c686561642e6d7970696e6174612e636c6f75642f697066732f516d64317a7336516b42564b517a7a706546536f533767395a4c5545333338446d3152546e594d737a674d6d654c2f31a2646970667358221220fa141410dcaacad307bd67e27c7ca53c95dc29fc51654443dbe0766a82c6556464736f6c63430008120033
Deployed Bytecode
0x60806040526004361061023b5760003560e01c80638129fc1c1161012e578063ad236d4c116100ab578063ba787e921161006f578063ba787e9214610665578063c87b56dd14610678578063e985e9c514610698578063f2fde38b146106b8578063f7b188a5146106d857600080fd5b8063ad236d4c146105bf578063b3a6c659146105df578063b5077f4414610615578063b803e2661461062b578063b88d4fde1461064557600080fd5b806397bc411c116100f257806397bc411c1461052f578063996517cf1461054f578063a22cb46514610565578063a475b5dd14610585578063a88ba0f01461059f57600080fd5b80638129fc1c146104bd5780638456cb59146104d25780638da5cb5b146104e75780638faeb78f1461050557806395d89b411461051a57600080fd5b806355f804b3116101bc5780636817c76c116101805780636817c76c1461042c5780636f8b44b01461044257806370a0823114610462578063715018a614610482578063774a88351461049757600080fd5b806355f804b314610395578063591e24b2146103b55780636352211e146103e257806366b9f0d214610402578063672cb6581461041757600080fd5b806323b872dd1161020357806323b872dd146103065780632eb4a7ab146103265780633ccfd60b1461034a57806342842e0e1461035f57806346aa52ce1461037f57600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf5780632126ea81146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611e22565b6106ed565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a61073f565b60405161026c9190611e8f565b3480156102a357600080fd5b506102b76102b2366004611ea2565b6107d1565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004611ed7565b6107f8565b005b3480156102fd57600080fd5b5061028a610912565b34801561031257600080fd5b506102ef610321366004611f01565b6109a0565b34801561033257600080fd5b5061033c60d05481565b60405190815260200161026c565b34801561035657600080fd5b506102ef6109d1565b34801561036b57600080fd5b506102ef61037a366004611f01565b610a0b565b34801561038b57600080fd5b5061033c60d25481565b3480156103a157600080fd5b506102ef6103b0366004611fe9565b610a26565b3480156103c157600080fd5b5061033c6103d036600461201e565b60d36020526000908152604090205481565b3480156103ee57600080fd5b506102b76103fd366004611ea2565b610a3a565b34801561040e57600080fd5b506102ef610a9a565b34801561042357600080fd5b506102ef610ab1565b34801561043857600080fd5b5061033c60ce5481565b34801561044e57600080fd5b506102ef61045d366004611ea2565b60d155565b34801561046e57600080fd5b5061033c61047d36600461201e565b610ac5565b34801561048e57600080fd5b506102ef610b4b565b3480156104a357600080fd5b506104ac610b5f565b60405161026c959493929190612039565b3480156104c957600080fd5b506102ef610c14565b3480156104de57600080fd5b506102ef610d97565b3480156104f357600080fd5b506097546001600160a01b03166102b7565b34801561051157600080fd5b5061028a610dae565b34801561052657600080fd5b5061028a610dbb565b34801561053b57600080fd5b506102ef61054a366004611fe9565b610dca565b34801561055b57600080fd5b5061033c60cf5481565b34801561057157600080fd5b506102ef610580366004612080565b610dde565b34801561059157600080fd5b5060cb546102609060ff1681565b3480156105ab57600080fd5b506102ef6105ba3660046120b3565b610de9565b3480156105cb57600080fd5b506102ef6105da366004611ea2565b610e20565b3480156105eb57600080fd5b5061033c6105fa36600461201e565b6001600160a01b0316600090815260d3602052604090205490565b34801561062157600080fd5b5061033c60d15481565b34801561063757600080fd5b5060cd546102609060ff1681565b34801561065157600080fd5b506102ef61066036600461211e565b610e34565b6102ef61067336600461219a565b610e6c565b34801561068457600080fd5b5061028a610693366004611ea2565b6110e4565b3480156106a457600080fd5b506102606106b3366004612226565b61125b565b3480156106c457600080fd5b506102ef6106d336600461201e565b611289565b3480156106e457600080fd5b506102ef6112ff565b60006001600160e01b031982166380ac58cd60e01b148061071e57506001600160e01b03198216635b5e139f60e01b145b8061073957506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606065805461074e90612250565b80601f016020809104026020016040519081016040528092919081815260200182805461077a90612250565b80156107c75780601f1061079c576101008083540402835291602001916107c7565b820191906000526020600020905b8154815290600101906020018083116107aa57829003601f168201915b5050505050905090565b60006107dc82611313565b506000908152606960205260409020546001600160a01b031690565b600061080382610a3a565b9050806001600160a01b0316836001600160a01b0316036108755760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108915750610891813361125b565b6109035760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161086c565b61090d8383611372565b505050565b60ca805461091f90612250565b80601f016020809104026020016040519081016040528092919081815260200182805461094b90612250565b80156109985780601f1061096d57610100808354040283529160200191610998565b820191906000526020600020905b81548152906001019060200180831161097b57829003601f168201915b505050505081565b6109aa33826113e0565b6109c65760405162461bcd60e51b815260040161086c9061228a565b61090d83838361143f565b6109d96115a3565b604051339081904780156108fc02916000818181858888f19350505050158015610a07573d6000803e3d6000fd5b5050565b61090d83838360405180602001604052806000815250610e34565b610a2e6115a3565b60c9610a078282612325565b6000818152606760205260408120546001600160a01b0316806107395760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161086c565b610aa26115a3565b60cb805460ff19166001179055565b610ab96115a3565b60cb805460ff19169055565b60006001600160a01b038216610b2f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161086c565b506001600160a01b031660009081526068602052604090205490565b610b536115a3565b610b5d60006115fd565b565b606060008060008060cc8054610b7490612250565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba090612250565b8015610bed5780601f10610bc257610100808354040283529160200191610bed565b820191906000526020600020905b815481529060010190602001808311610bd057829003601f168201915b505060cd5460cf5460ce5460d054969c60ff9093169b509099509750939550929350505050565b600054610100900460ff1615808015610c345750600054600160ff909116105b80610c4e5750303b158015610c4e575060005460ff166001145b610cb15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161086c565b6000805460ff191660011790558015610cd4576000805461ff0019166101001790555b610cdc61164f565b610d276040518060400160405280600c81526020016b576f6b654361707461696e7360a01b8152506040518060400160405280600581526020016424574f4b4560d81b81525061167e565b6040518060800160405280605581526020016126186055913960ca90610d4d9082612325565b508015610d94576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b610d9f6115a3565b60cd805460ff19166001179055565b60cc805461091f90612250565b60606066805461074e90612250565b610dd26115a3565b60ca610a078282612325565b610a073383836116af565b610df16115a3565b60cc610dfd8682612325565b5060ce9390935560cf9190915560d05560cd805460ff1916911591909117905550565b610e286115a3565b610d943382600061177e565b610e3e33836113e0565b610e5a5760405162461bcd60e51b815260040161086c9061228a565b610e6684848484611890565b50505050565b336001600160a01b03821603610ec45760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420726566657272616c20616464726573730000000000000000604482015260640161086c565b60008211610f0a5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b604482015260640161086c565b348260ce54610f1991906123fb565b1115610f675760405162461bcd60e51b815260206004820152601860248201527f4554482076616c7565206973206e6f7420636f72726563740000000000000000604482015260640161086c565b60cf5482610f7433610ac5565b610f7e9190612412565b1115610fc25760405162461bcd60e51b8152602060048201526013602482015272115e18d95959195908135a5b9d0810dbdd5b9d606a1b604482015260640161086c565b60cd5460ff16156110045760405162461bcd60e51b815260206004820152600c60248201526b26b4b73a102830bab9b2b21760a11b604482015260640161086c565b60d054156110d9576110818484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060d0546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050604051602081830303815290604052805190602001206118c3565b6110d95760405162461bcd60e51b8152602060048201526024808201527f4164647265737320646f6573206e6f7420657869737420696e2077686974656c60448201526334b9ba1760e11b606482015260840161086c565b610e6633838361177e565b6000818152606760205260409020546060906001600160a01b03166111635760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161086c565b60cb5460ff166111ff5760ca805461117a90612250565b80601f01602080910402602001604051908101604052809291908181526020018280546111a690612250565b80156111f35780601f106111c8576101008083540402835291602001916111f3565b820191906000526020600020905b8154815290600101906020018083116111d657829003601f168201915b50505050509050919050565b600060c9805461120e90612250565b90501161122a5760405180602001604052806000815250610739565b60c9611235836118d9565b604051602001611246929190612425565b60405160208183030381529060405292915050565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b6112916115a3565b6001600160a01b0381166112f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086c565b610d94816115fd565b6113076115a3565b60cd805460ff19169055565b6000818152606760205260409020546001600160a01b0316610d945760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161086c565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113a782610a3a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806113ec83610a3a565b9050806001600160a01b0316846001600160a01b031614806114135750611413818561125b565b806114375750836001600160a01b031661142c846107d1565b6001600160a01b0316145b949350505050565b826001600160a01b031661145282610a3a565b6001600160a01b0316146114785760405162461bcd60e51b815260040161086c906124ac565b6001600160a01b0382166114da5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161086c565b826001600160a01b03166114ed82610a3a565b6001600160a01b0316146115135760405162461bcd60e51b815260040161086c906124ac565b600081815260696020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260688552838620805460001901905590871680865283862080546001019055868652606790945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6097546001600160a01b03163314610b5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161086c565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166116765760405162461bcd60e51b815260040161086c906124f1565b610b5d61196c565b600054610100900460ff166116a55760405162461bcd60e51b815260040161086c906124f1565b610a07828261199c565b816001600160a01b0316836001600160a01b0316036117105760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161086c565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3191015b60405180910390a3505050565b60005b828110156118055760d15460d254106117d55760405162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604482015260640161086c565b60d2546117e3906001612412565b60d28190556117f39085906119dc565b806117fd8161253c565b915050611781565b506001600160a01b03811615611853576001600160a01b038316600090815260d36020526040902054611839906001612412565b6001600160a01b038416600090815260d360205260409020555b6040518281526001600160a01b0382169033907ffa815a72b2fbfaadcbdc80080ee26aa60e70856ebd65edc09577166b19021efd90602001611771565b61189b84848461143f565b6118a7848484846119f6565b610e665760405162461bcd60e51b815260040161086c90612555565b6000826118d08584611af7565b14949350505050565b606060006118e683611b44565b600101905060008167ffffffffffffffff81111561190657611906611f3d565b6040519080825280601f01601f191660200182016040528015611930576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461193a57509392505050565b600054610100900460ff166119935760405162461bcd60e51b815260040161086c906124f1565b610b5d336115fd565b600054610100900460ff166119c35760405162461bcd60e51b815260040161086c906124f1565b60656119cf8382612325565b50606661090d8282612325565b610a07828260405180602001604052806000815250611c1c565b60006001600160a01b0384163b15611aec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a3a9033908990889088906004016125a7565b6020604051808303816000875af1925050508015611a75575060408051601f3d908101601f19168201909252611a72918101906125e4565b60015b611ad2573d808015611aa3576040519150601f19603f3d011682016040523d82523d6000602084013e611aa8565b606091505b508051600003611aca5760405162461bcd60e51b815260040161086c90612555565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611437565b506001949350505050565b600081815b8451811015611b3c57611b2882868381518110611b1b57611b1b612601565b6020026020010151611c4f565b915080611b348161253c565b915050611afc565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611b835772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611baf576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611bcd57662386f26fc10000830492506010015b6305f5e1008310611be5576305f5e100830492506008015b6127108310611bf957612710830492506004015b60648310611c0b576064830492506002015b600a83106107395760010192915050565b611c268383611c81565b611c3360008484846119f6565b61090d5760405162461bcd60e51b815260040161086c90612555565b6000818310611c6b576000828152602084905260409020611c7a565b60008381526020839052604090205b9392505050565b6001600160a01b038216611cd75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161086c565b6000818152606760205260409020546001600160a01b031615611d3c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086c565b6000818152606760205260409020546001600160a01b031615611da15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086c565b6001600160a01b038216600081815260686020908152604080832080546001019055848352606790915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610d9457600080fd5b600060208284031215611e3457600080fd5b8135611c7a81611e0c565b60005b83811015611e5a578181015183820152602001611e42565b50506000910152565b60008151808452611e7b816020860160208601611e3f565b601f01601f19169290920160200192915050565b602081526000611c7a6020830184611e63565b600060208284031215611eb457600080fd5b5035919050565b80356001600160a01b0381168114611ed257600080fd5b919050565b60008060408385031215611eea57600080fd5b611ef383611ebb565b946020939093013593505050565b600080600060608486031215611f1657600080fd5b611f1f84611ebb565b9250611f2d60208501611ebb565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611f6e57611f6e611f3d565b604051601f8501601f19908116603f01168101908282118183101715611f9657611f96611f3d565b81604052809350858152868686011115611faf57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611fda57600080fd5b611c7a83833560208501611f53565b600060208284031215611ffb57600080fd5b813567ffffffffffffffff81111561201257600080fd5b61143784828501611fc9565b60006020828403121561203057600080fd5b611c7a82611ebb565b60a08152600061204c60a0830188611e63565b95151560208301525060408101939093526060830191909152608090910152919050565b80358015158114611ed257600080fd5b6000806040838503121561209357600080fd5b61209c83611ebb565b91506120aa60208401612070565b90509250929050565b600080600080600060a086880312156120cb57600080fd5b853567ffffffffffffffff8111156120e257600080fd5b6120ee88828901611fc9565b95505060208601359350604086013592506060860135915061211260808701612070565b90509295509295909350565b6000806000806080858703121561213457600080fd5b61213d85611ebb565b935061214b60208601611ebb565b925060408501359150606085013567ffffffffffffffff81111561216e57600080fd5b8501601f8101871361217f57600080fd5b61218e87823560208401611f53565b91505092959194509250565b600080600080606085870312156121b057600080fd5b843567ffffffffffffffff808211156121c857600080fd5b818701915087601f8301126121dc57600080fd5b8135818111156121eb57600080fd5b8860208260051b850101111561220057600080fd5b60209283019650945050850135915061221b60408601611ebb565b905092959194509250565b6000806040838503121561223957600080fd5b61224283611ebb565b91506120aa60208401611ebb565b600181811c9082168061226457607f821691505b60208210810361228457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b601f82111561090d57600081815260208120601f850160051c810160208610156122fe5750805b601f850160051c820191505b8181101561231d5782815560010161230a565b505050505050565b815167ffffffffffffffff81111561233f5761233f611f3d565b6123538161234d8454612250565b846122d7565b602080601f83116001811461238857600084156123705750858301515b600019600386901b1c1916600185901b17855561231d565b600085815260208120601f198616915b828110156123b757888601518255948401946001909101908401612398565b50858210156123d55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610739576107396123e5565b80820180821115610739576107396123e5565b600080845461243381612250565b6001828116801561244b57600181146124605761248f565b60ff198416875282151583028701945061248f565b8860005260208060002060005b858110156124865781548a82015290840190820161246d565b50505082870194505b5050505083516124a3818360208801611e3f565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006001820161254e5761254e6123e5565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906125da90830184611e63565b9695505050505050565b6000602082840312156125f657600080fd5b8151611c7a81611e0c565b634e487b7160e01b600052603260045260246000fdfe68747470733a2f2f62756c6c686561642e6d7970696e6174612e636c6f75642f697066732f516d64317a7336516b42564b517a7a706546536f533767395a4c5545333338446d3152546e594d737a674d6d654c2f31a2646970667358221220fa141410dcaacad307bd67e27c7ca53c95dc29fc51654443dbe0766a82c6556464736f6c63430008120033
Deployed Bytecode Sourcemap
87902:4307:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71188:349;;;;;;;;;;-1:-1:-1;71188:349:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;71188:349:0;;;;;;;;72160:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;73683:171::-;;;;;;;;;;-1:-1:-1;73683:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;73683:171:0;1533:203:1;73190:427:0;;;;;;;;;;-1:-1:-1;73190:427:0;;;;;:::i;:::-;;:::i;:::-;;88048:25;;;;;;;;;;;;;:::i;74383:335::-;;;;;;;;;;-1:-1:-1;74383:335:0;;;;;:::i;:::-;;:::i;88230:25::-;;;;;;;;;;;;;;;;;;;2657::1;;;2645:2;2630:18;88230:25:0;2511:177:1;90075:165:0;;;;;;;;;;;;;:::i;74789:185::-;;;;;;;;;;-1:-1:-1;74789:185:0;;;;;:::i;:::-;;:::i;88308:26::-;;;;;;;;;;;;;;;;90854:111;;;;;;;;;;-1:-1:-1;90854:111:0;;;;;:::i;:::-;;:::i;88343:53::-;;;;;;;;;;-1:-1:-1;88343:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;71870:223;;;;;;;;;;-1:-1:-1;71870:223:0;;;;;:::i;:::-;;:::i;91083:69::-;;;;;;;;;;;;;:::i;91160:72::-;;;;;;;;;;;;;:::i;88168:24::-;;;;;;;;;;;;;;;;91952:97;;;;;;;;;;-1:-1:-1;91952:97:0;;;;;:::i;:::-;92014:14;:27;91952:97;71601:207;;;;;;;;;;-1:-1:-1;71601:207:0;;;;;:::i;:::-;;:::i;58755:103::-;;;;;;;;;;;;;:::i;91568:376::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;:::i;88496:239::-;;;;;;;;;;;;;:::i;92057:69::-;;;;;;;;;;;;;:::i;58107:87::-;;;;;;;;;;-1:-1:-1;58180:6:0;;-1:-1:-1;;;;;58180:6:0;58107:87;;88111:22;;;;;;;;;;;;;:::i;72329:104::-;;;;;;;;;;;;;:::i;90973:102::-;;;;;;;;;;-1:-1:-1;90973:102:0;;;;;:::i;:::-;;:::i;88199:24::-;;;;;;;;;;;;;;;;73926:155;;;;;;;;;;-1:-1:-1;73926:155:0;;;;;:::i;:::-;;:::i;88080:18::-;;;;;;;;;;-1:-1:-1;88080:18:0;;;;;;;;91240:316;;;;;;;;;;-1:-1:-1;91240:316:0;;;;;:::i;:::-;;:::i;89257:115::-;;;;;;;;;;-1:-1:-1;89257:115:0;;;;;:::i;:::-;;:::i;90248:127::-;;;;;;;;;;-1:-1:-1;90248:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;90343:24:0;90316:7;90343:24;;;:17;:24;;;;;;;90248:127;88264:35;;;;;;;;;;;;;;;;88140:21;;;;;;;;;;-1:-1:-1;88140:21:0;;;;;;;;75045:322;;;;;;;;;;-1:-1:-1;75045:322:0;;;;;:::i;:::-;;:::i;89380:687::-;;;;;;:::i;:::-;;:::i;90383:338::-;;;;;;;;;;-1:-1:-1;90383:338:0;;;;;:::i;:::-;;:::i;74152:164::-;;;;;;;;;;-1:-1:-1;74152:164:0;;;;;:::i;:::-;;:::i;59013:201::-;;;;;;;;;;-1:-1:-1;59013:201:0;;;;;:::i;:::-;;:::i;92134:72::-;;;;;;;;;;;;;:::i;71188:349::-;71312:4;-1:-1:-1;;;;;;71349:51:0;;-1:-1:-1;;;71349:51:0;;:127;;-1:-1:-1;;;;;;;71417:59:0;;-1:-1:-1;;;71417:59:0;71349:127;:180;;;-1:-1:-1;;;;;;;;;;63087:51:0;;;71493:36;71329:200;71188:349;-1:-1:-1;;71188:349:0:o;72160:100::-;72214:13;72247:5;72240:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72160:100;:::o;73683:171::-;73759:7;73779:23;73794:7;73779:14;:23::i;:::-;-1:-1:-1;73822:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;73822:24:0;;73683:171::o;73190:427::-;73271:13;73287:34;73313:7;73287:25;:34::i;:::-;73271:50;;73346:5;-1:-1:-1;;;;;73340:11:0;:2;-1:-1:-1;;;;;73340:11:0;;73332:57;;;;-1:-1:-1;;;73332:57:0;;8228:2:1;73332:57:0;;;8210:21:1;8267:2;8247:18;;;8240:30;8306:34;8286:18;;;8279:62;-1:-1:-1;;;8357:18:1;;;8350:31;8398:19;;73332:57:0;;;;;;;;;56225:10;-1:-1:-1;;;;;73424:21:0;;;;:62;;-1:-1:-1;73449:37:0;73466:5;56225:10;74152:164;:::i;73449:37::-;73402:173;;;;-1:-1:-1;;;73402:173:0;;8630:2:1;73402:173:0;;;8612:21:1;8669:2;8649:18;;;8642:30;8708:34;8688:18;;;8681:62;8779:31;8759:18;;;8752:59;8828:19;;73402:173:0;8428:425:1;73402:173:0;73588:21;73597:2;73601:7;73588:8;:21::i;:::-;73260:357;73190:427;;:::o;88048:25::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;74383:335::-;74578:41;56225:10;74611:7;74578:18;:41::i;:::-;74570:99;;;;-1:-1:-1;;;74570:99:0;;;;;;;:::i;:::-;74682:28;74692:4;74698:2;74702:7;74682:9;:28::i;90075:165::-;57993:13;:11;:13::i;:::-;90188:44:::1;::::0;90166:10:::1;::::0;;;90210:21:::1;90188:44:::0;::::1;;;::::0;90127:28:::1;90188:44:::0;90127:28;90188:44;90210:21;90166:10;90188:44;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;90116:124;90075:165::o:0;74789:185::-;74927:39;74944:4;74950:2;74954:7;74927:39;;;;;;;;;;;;:16;:39::i;90854:111::-;57993:13;:11;:13::i;:::-;90930:16:::1;:27;90949:8:::0;90930:16;:27:::1;:::i;71870:223::-:0;71942:7;76768:16;;;:7;:16;;;;;;-1:-1:-1;;;;;76768:16:0;;72006:56;;;;-1:-1:-1;;;72006:56:0;;11678:2:1;72006:56:0;;;11660:21:1;11717:2;11697:18;;;11690:30;-1:-1:-1;;;11736:18:1;;;11729:54;11800:18;;72006:56:0;11476:348:1;91083:69:0;57993:13;:11;:13::i;:::-;91131:6:::1;:13:::0;;-1:-1:-1;;91131:13:0::1;91140:4;91131:13;::::0;;91083:69::o;91160:72::-;57993:13;:11;:13::i;:::-;91210:6:::1;:14:::0;;-1:-1:-1;;91210:14:0::1;::::0;;91160:72::o;71601:207::-;71673:7;-1:-1:-1;;;;;71701:19:0;;71693:73;;;;-1:-1:-1;;;71693:73:0;;12031:2:1;71693:73:0;;;12013:21:1;12070:2;12050:18;;;12043:30;12109:34;12089:18;;;12082:62;-1:-1:-1;;;12160:18:1;;;12153:39;12209:19;;71693:73:0;11829:405:1;71693:73:0;-1:-1:-1;;;;;;71784:16:0;;;;;:9;:16;;;;;;;71601:207::o;58755:103::-;57993:13;:11;:13::i;:::-;58820:30:::1;58847:1;58820:18;:30::i;:::-;58755:103::o:0;91568:376::-;91623:23;91658:15;91685:18;91715;91744:19;91794:8;91782:20;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;91826:9:0;;91859;;91892;;91926:10;;91782:20;;91826:9;;;;;-1:-1:-1;91859:9:0;;-1:-1:-1;91892:9:0;-1:-1:-1;91926:10:0;;-1:-1:-1;91568:376:0;;-1:-1:-1;;;;91568:376:0:o;88496:239::-;51824:19;51847:13;;;;;;51846:14;;51894:34;;;;-1:-1:-1;51912:12:0;;51927:1;51912:12;;;;:16;51894:34;51893:108;;;-1:-1:-1;51973:4:0;41485:19;:23;;;51934:66;;-1:-1:-1;51983:12:0;;;;;:17;51934:66;51871:204;;;;-1:-1:-1;;;51871:204:0;;12441:2:1;51871:204:0;;;12423:21:1;12480:2;12460:18;;;12453:30;12519:34;12499:18;;;12492:62;-1:-1:-1;;;12570:18:1;;;12563:44;12624:19;;51871:204:0;12239:410:1;51871:204:0;52086:12;:16;;-1:-1:-1;;52086:16:0;52101:1;52086:16;;;52113:67;;;;52148:13;:20;;-1:-1:-1;;52148:20:0;;;;;52113:67;88548:16:::1;:14;:16::i;:::-;88575:38;;;;;;;;;;;;;;-1:-1:-1::0;;;88575:38:0::1;;::::0;::::1;;;;;;;;;;;;;-1:-1:-1::0;;;88575:38:0::1;;::::0;:13:::1;:38::i;:::-;88626:101;;;;;;;;;;;;;;;;;:11;::::0;:101:::1;::::0;:11;:101:::1;:::i;:::-;;52206:14:::0;52202:102;;;52253:5;52237:21;;-1:-1:-1;;52237:21:0;;;52278:14;;-1:-1:-1;12806:36:1;;52278:14:0;;12794:2:1;12779:18;52278:14:0;;;;;;;52202:102;51813:498;88496:239::o;92057:69::-;57993:13;:11;:13::i;:::-;92102:9:::1;:16:::0;;-1:-1:-1;;92102:16:0::1;92114:4;92102:16;::::0;;92057:69::o;88111:22::-;;;;;;;:::i;72329:104::-;72385:13;72418:7;72411:14;;;;;:::i;90973:102::-;57993:13;:11;:13::i;:::-;91049:11:::1;:18;91063:4:::0;91049:11;:18:::1;:::i;73926:155::-:0;74021:52;56225:10;74054:8;74064;74021:18;:52::i;91240:316::-;57993:13;:11;:13::i;:::-;91394:8:::1;:20;91405:9:::0;91394:8;:20:::1;:::i;:::-;-1:-1:-1::0;91425:9:0::1;:22:::0;;;;91458:9:::1;:22:::0;;;;91491:10:::1;:24:::0;91526:9:::1;:22:::0;;-1:-1:-1;;91526:22:0::1;91538:10:::0;::::1;91526:22:::0;;;::::1;::::0;;-1:-1:-1;91240:316:0:o;89257:115::-;57993:13;:11;:13::i;:::-;89327:37:::1;89332:10;89344:7;89361:1;89327:4;:37::i;75045:322::-:0;75219:41;56225:10;75252:7;75219:18;:41::i;:::-;75211:99;;;;-1:-1:-1;;;75211:99:0;;;;;;;:::i;:::-;75321:38;75335:4;75341:2;75345:7;75354:4;75321:13;:38::i;:::-;75045:322;;;;:::o;89380:687::-;89509:10;-1:-1:-1;;;;;89496:23:0;;;89488:60;;;;-1:-1:-1;;;89488:60:0;;13055:2:1;89488:60:0;;;13037:21:1;13094:2;13074:18;;;13067:30;13133:26;13113:18;;;13106:54;13177:18;;89488:60:0;12853:348:1;89488:60:0;89579:1;89567:9;:13;89559:45;;;;-1:-1:-1;;;89559:45:0;;13408:2:1;89559:45:0;;;13390:21:1;13447:2;13427:18;;;13420:30;-1:-1:-1;;;13466:18:1;;;13459:49;13525:18;;89559:45:0;13206:343:1;89559:45:0;89648:9;89635;89623;;:21;;;;:::i;:::-;:34;;89615:71;;;;-1:-1:-1;;;89615:71:0;;14061:2:1;89615:71:0;;;14043:21:1;14100:2;14080:18;;;14073:30;14139:26;14119:18;;;14112:54;14183:18;;89615:71:0;13859:348:1;89615:71:0;89742:9;;89729;89705:21;89715:10;89705:9;:21::i;:::-;:33;;;;:::i;:::-;:46;;89697:78;;;;-1:-1:-1;;;89697:78:0;;14544:2:1;89697:78:0;;;14526:21:1;14583:2;14563:18;;;14556:30;-1:-1:-1;;;14602:18:1;;;14595:49;14661:18;;89697:78:0;14342:343:1;89697:78:0;89795:9;;;;89794:10;89786:35;;;;-1:-1:-1;;;89786:35:0;;14892:2:1;89786:35:0;;;14874:21:1;14931:2;14911:18;;;14904:30;-1:-1:-1;;;14950:18:1;;;14943:42;15002:18;;89786:35:0;14690:336:1;89786:35:0;89835:10;;:17;89832:177;;89877:79;89896:6;;89877:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;89904:10:0;;89926:28;;-1:-1:-1;;89943:10:0;15180:2:1;15176:15;15172:53;89926:28:0;;;15160:66:1;89904:10:0;;-1:-1:-1;15242:12:1;;;-1:-1:-1;89926:28:0;;;;;;;;;;;;89916:39;;;;;;89877:18;:79::i;:::-;89869:128;;;;-1:-1:-1;;;89869:128:0;;15467:2:1;89869:128:0;;;15449:21:1;15506:2;15486:18;;;15479:30;15545:34;15525:18;;;15518:62;-1:-1:-1;;;15596:18:1;;;15589:34;15640:19;;89869:128:0;15265:400:1;89869:128:0;90021:38;90026:10;90038:9;90049;90021:4;:38::i;90383:338::-;77170:4;76768:16;;;:7;:16;;;;;;90448:13;;-1:-1:-1;;;;;76768:16:0;90474:76;;;;-1:-1:-1;;;90474:76:0;;15872:2:1;90474:76:0;;;15854:21:1;15911:2;15891:18;;;15884:30;15950:34;15930:18;;;15923:62;-1:-1:-1;;;16001:18:1;;;15994:45;16056:19;;90474:76:0;15670:411:1;90474:76:0;90565:6;;;;90561:30;;90580:11;90573:18;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90383:338;;;:::o;90561:30::-;90642:1;90615:16;90609:30;;;;;:::i;:::-;;;:34;:104;;;;;;;;;;;;;;;;;90670:16;90688:18;:7;:16;:18::i;:::-;90653:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;90602:111;90383:338;-1:-1:-1;;90383:338:0:o;74152:164::-;-1:-1:-1;;;;;74273:25:0;;;74249:4;74273:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;74152:164::o;59013:201::-;57993:13;:11;:13::i;:::-;-1:-1:-1;;;;;59102:22:0;::::1;59094:73;;;::::0;-1:-1:-1;;;59094:73:0;;17313:2:1;59094:73:0::1;::::0;::::1;17295:21:1::0;17352:2;17332:18;;;17325:30;17391:34;17371:18;;;17364:62;-1:-1:-1;;;17442:18:1;;;17435:36;17488:19;;59094:73:0::1;17111:402:1::0;59094:73:0::1;59178:28;59197:8;59178:18;:28::i;92134:72::-:0;57993:13;:11;:13::i;:::-;92181:9:::1;:17:::0;;-1:-1:-1;;92181:17:0::1;::::0;;92134:72::o;83568:135::-;77170:4;76768:16;;;:7;:16;;;;;;-1:-1:-1;;;;;76768:16:0;83642:53;;;;-1:-1:-1;;;83642:53:0;;11678:2:1;83642:53:0;;;11660:21:1;11717:2;11697:18;;;11690:30;-1:-1:-1;;;11736:18:1;;;11729:54;11800:18;;83642:53:0;11476:348:1;82836:185:0;82911:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;82911:29:0;-1:-1:-1;;;;;82911:29:0;;;;;;;;:24;;82965:34;82911:24;82965:25;:34::i;:::-;-1:-1:-1;;;;;82956:57:0;;;;;;;;;;;82836:185;;:::o;77400:275::-;77493:4;77510:13;77526:34;77552:7;77526:25;:34::i;:::-;77510:50;;77590:5;-1:-1:-1;;;;;77579:16:0;:7;-1:-1:-1;;;;;77579:16:0;;:52;;;;77599:32;77616:5;77623:7;77599:16;:32::i;:::-;77579:87;;;;77659:7;-1:-1:-1;;;;;77635:31:0;:20;77647:7;77635:11;:20::i;:::-;-1:-1:-1;;;;;77635:31:0;;77579:87;77571:96;77400:275;-1:-1:-1;;;;77400:275:0:o;81432:1285::-;81602:4;-1:-1:-1;;;;;81564:42:0;:34;81590:7;81564:25;:34::i;:::-;-1:-1:-1;;;;;81564:42:0;;81556:92;;;;-1:-1:-1;;;81556:92:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;81667:16:0;;81659:65;;;;-1:-1:-1;;;81659:65:0;;18126:2:1;81659:65:0;;;18108:21:1;18165:2;18145:18;;;18138:30;18204:34;18184:18;;;18177:62;-1:-1:-1;;;18255:18:1;;;18248:34;18299:19;;81659:65:0;17924:400:1;81659:65:0;81920:4;-1:-1:-1;;;;;81882:42:0;:34;81908:7;81882:25;:34::i;:::-;-1:-1:-1;;;;;81882:42:0;;81874:92;;;;-1:-1:-1;;;81874:92:0;;;;;;;:::i;:::-;82038:24;;;;:15;:24;;;;;;;;82031:31;;-1:-1:-1;;;;;;82031:31:0;;;;;;-1:-1:-1;;;;;82514:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;82514:20:0;;;82549:13;;;;;;;;;:18;;82031:31;82549:18;;;82589:16;;;:7;:16;;;;;;:21;;;;;;;;;;82628:27;;82054:7;;82628:27;;;73260:357;73190:427;;:::o;58272:132::-;58180:6;;-1:-1:-1;;;;;58180:6:0;56225:10;58336:23;58328:68;;;;-1:-1:-1;;;58328:68:0;;18531:2:1;58328:68:0;;;18513:21:1;;;18550:18;;;18543:30;18609:34;18589:18;;;18582:62;18661:18;;58328:68:0;18329:356:1;59374:191:0;59467:6;;;-1:-1:-1;;;;;59484:17:0;;;-1:-1:-1;;;;;;59484:17:0;;;;;;;59517:40;;59467:6;;;59484:17;59467:6;;59517:40;;59448:16;;59517:40;59437:128;59374:191;:::o;57650:97::-;53967:13;;;;;;;53959:69;;;;-1:-1:-1;;;53959:69:0;;;;;;;:::i;:::-;57713:26:::1;:24;:26::i;70794:151::-:0;53967:13;;;;;;;53959:69;;;;-1:-1:-1;;;53959:69:0;;;;;;;:::i;:::-;70898:39:::1;70922:5;70929:7;70898:23;:39::i;83164:315::-:0;83319:8;-1:-1:-1;;;;;83310:17:0;:5;-1:-1:-1;;;;;83310:17:0;;83302:55;;;;-1:-1:-1;;;83302:55:0;;19304:2:1;83302:55:0;;;19286:21:1;19343:2;19323:18;;;19316:30;19382:27;19362:18;;;19355:55;19427:18;;83302:55:0;19102:349:1;83302:55:0;-1:-1:-1;;;;;83368:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;83368:46:0;;;;;;;;;;83430:41;;540::1;;;83430::0;;513:18:1;83430:41:0;;;;;;;;83164:315;;;:::o;88743:506::-;88837:9;88833:221;88856:9;88852:1;:13;88833:221;;;88909:14;;88895:11;;:28;88887:63;;;;-1:-1:-1;;;88887:63:0;;19658:2:1;88887:63:0;;;19640:21:1;19697:2;19677:18;;;19670:30;-1:-1:-1;;;19716:18:1;;;19709:52;19778:18;;88887:63:0;19456:346:1;88887:63:0;88979:11;;:15;;88993:1;88979:15;:::i;:::-;88965:11;:29;;;89009:33;;89019:9;;89009;:33::i;:::-;88867:3;;;;:::i;:::-;;;;88833:221;;;-1:-1:-1;;;;;;89070:23:0;;;89066:119;;-1:-1:-1;;;;;89141:28:0;;;;;;:17;:28;;;;;;:32;;89172:1;89141:32;:::i;:::-;-1:-1:-1;;;;;89110:28:0;;;;;;:17;:28;;;;;:63;89066:119;89200:41;;2657:25:1;;;-1:-1:-1;;;;;89200:41:0;;;89208:10;;89200:41;;2645:2:1;2630:18;89200:41:0;2511:177:1;76248:313:0;76404:28;76414:4;76420:2;76424:7;76404:9;:28::i;:::-;76451:47;76474:4;76480:2;76484:7;76493:4;76451:22;:47::i;:::-;76443:110;;;;-1:-1:-1;;;76443:110:0;;;;;;;:::i;1096:190::-;1221:4;1274;1245:25;1258:5;1265:4;1245:12;:25::i;:::-;:33;;1096:190;-1:-1:-1;;;;1096:190:0:o;22740:716::-;22796:13;22847:14;22864:17;22875:5;22864:10;:17::i;:::-;22884:1;22864:21;22847:38;;22900:20;22934:6;22923:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22923:18:0;-1:-1:-1;22900:41:0;-1:-1:-1;23065:28:0;;;23081:2;23065:28;23122:288;-1:-1:-1;;23154:5:0;-1:-1:-1;;;23291:2:0;23280:14;;23275:30;23154:5;23262:44;23352:2;23343:11;;;-1:-1:-1;23373:21:0;23122:288;23373:21;-1:-1:-1;23431:6:0;22740:716;-1:-1:-1;;;22740:716:0:o;57755:113::-;53967:13;;;;;;;53959:69;;;;-1:-1:-1;;;53959:69:0;;;;;;;:::i;:::-;57828:32:::1;56225:10:::0;57828:18:::1;:32::i;70953:163::-:0;53967:13;;;;;;;53959:69;;;;-1:-1:-1;;;53959:69:0;;;;;;;:::i;:::-;71067:5:::1;:13;71075:5:::0;71067;:13:::1;:::i;:::-;-1:-1:-1::0;71091:7:0::1;:17;71101:7:::0;71091;:17:::1;:::i;78017:110::-:0;78093:26;78103:2;78107:7;78093:26;;;;;;;;;;;;:9;:26::i;84267:875::-;84421:4;-1:-1:-1;;;;;84442:13:0;;41485:19;:23;84438:697;;84478:82;;-1:-1:-1;;;84478:82:0;;-1:-1:-1;;;;;84478:47:0;;;;;:82;;56225:10;;84540:4;;84546:7;;84555:4;;84478:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;84478:82:0;;;;;;;;-1:-1:-1;;84478:82:0;;;;;;;;;;;;:::i;:::-;;;84474:606;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84741:6;:13;84758:1;84741:18;84737:328;;84784:60;;-1:-1:-1;;;84784:60:0;;;;;;;:::i;84737:328::-;85015:6;85009:13;85000:6;84996:2;84992:15;84985:38;84474:606;-1:-1:-1;;;;;;84611:62:0;-1:-1:-1;;;84611:62:0;;-1:-1:-1;84604:69:0;;84438:697;-1:-1:-1;85119:4:0;84267:875;;;;;;:::o;1963:296::-;2046:7;2089:4;2046:7;2104:118;2128:5;:12;2124:1;:16;2104:118;;;2177:33;2187:12;2201:5;2207:1;2201:8;;;;;;;;:::i;:::-;;;;;;;2177:9;:33::i;:::-;2162:48;-1:-1:-1;2142:3:0;;;;:::i;:::-;;;;2104:118;;;-1:-1:-1;2239:12:0;1963:296;-1:-1:-1;;;1963:296:0:o;19606:922::-;19659:7;;-1:-1:-1;;;19737:15:0;;19733:102;;-1:-1:-1;;;19773:15:0;;;-1:-1:-1;19817:2:0;19807:12;19733:102;19862:6;19853:5;:15;19849:102;;19898:6;19889:15;;;-1:-1:-1;19933:2:0;19923:12;19849:102;19978:6;19969:5;:15;19965:102;;20014:6;20005:15;;;-1:-1:-1;20049:2:0;20039:12;19965:102;20094:5;20085;:14;20081:99;;20129:5;20120:14;;;-1:-1:-1;20163:1:0;20153:11;20081:99;20207:5;20198;:14;20194:99;;20242:5;20233:14;;;-1:-1:-1;20276:1:0;20266:11;20194:99;20320:5;20311;:14;20307:99;;20355:5;20346:14;;;-1:-1:-1;20389:1:0;20379:11;20307:99;20433:5;20424;:14;20420:66;;20469:1;20459:11;20514:6;19606:922;-1:-1:-1;;19606:922:0:o;78354:319::-;78483:18;78489:2;78493:7;78483:5;:18::i;:::-;78534:53;78565:1;78569:2;78573:7;78582:4;78534:22;:53::i;:::-;78512:153;;;;-1:-1:-1;;;78512:153:0;;;;;;;:::i;9003:149::-;9066:7;9097:1;9093;:5;:51;;9228:13;9322:15;;;9358:4;9351:15;;;9405:4;9389:21;;9093:51;;;9228:13;9322:15;;;9358:4;9351:15;;;9405:4;9389:21;;9101:20;9086:58;9003:149;-1:-1:-1;;;9003:149:0:o;79009:942::-;-1:-1:-1;;;;;79089:16:0;;79081:61;;;;-1:-1:-1;;;79081:61:0;;21580:2:1;79081:61:0;;;21562:21:1;;;21599:18;;;21592:30;21658:34;21638:18;;;21631:62;21710:18;;79081:61:0;21378:356:1;79081:61:0;77170:4;76768:16;;;:7;:16;;;;;;-1:-1:-1;;;;;76768:16:0;77194:31;79153:58;;;;-1:-1:-1;;;79153:58:0;;21941:2:1;79153:58:0;;;21923:21:1;21980:2;21960:18;;;21953:30;22019;21999:18;;;21992:58;22067:18;;79153:58:0;21739:352:1;79153:58:0;77170:4;76768:16;;;:7;:16;;;;;;-1:-1:-1;;;;;76768:16:0;77194:31;79362:58;;;;-1:-1:-1;;;79362:58:0;;21941:2:1;79362:58:0;;;21923:21:1;21980:2;21960:18;;;21953:30;22019;21999:18;;;21992:58;22067:18;;79362:58:0;21739:352:1;79362:58:0;-1:-1:-1;;;;;79769:13:0;;;;;;:9;:13;;;;;;;;:18;;79786:1;79769:18;;;79811:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;79811:21:0;;;;;79850:33;79819:7;;79769:13;;79850:33;;79769:13;;79850:33;90188:44:::1;90116:124;90075:165::o:0;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;2178:328::-;2255:6;2263;2271;2324:2;2312:9;2303:7;2299:23;2295:32;2292:52;;;2340:1;2337;2330:12;2292:52;2363:29;2382:9;2363:29;:::i;:::-;2353:39;;2411:38;2445:2;2434:9;2430:18;2411:38;:::i;:::-;2401:48;;2496:2;2485:9;2481:18;2468:32;2458:42;;2178:328;;;;;:::o;2875:127::-;2936:10;2931:3;2927:20;2924:1;2917:31;2967:4;2964:1;2957:15;2991:4;2988:1;2981:15;3007:632;3072:5;3102:18;3143:2;3135:6;3132:14;3129:40;;;3149:18;;:::i;:::-;3224:2;3218:9;3192:2;3278:15;;-1:-1:-1;;3274:24:1;;;3300:2;3270:33;3266:42;3254:55;;;3324:18;;;3344:22;;;3321:46;3318:72;;;3370:18;;:::i;:::-;3410:10;3406:2;3399:22;3439:6;3430:15;;3469:6;3461;3454:22;3509:3;3500:6;3495:3;3491:16;3488:25;3485:45;;;3526:1;3523;3516:12;3485:45;3576:6;3571:3;3564:4;3556:6;3552:17;3539:44;3631:1;3624:4;3615:6;3607;3603:19;3599:30;3592:41;;;;3007:632;;;;;:::o;3644:222::-;3687:5;3740:3;3733:4;3725:6;3721:17;3717:27;3707:55;;3758:1;3755;3748:12;3707:55;3780:80;3856:3;3847:6;3834:20;3827:4;3819:6;3815:17;3780:80;:::i;3871:322::-;3940:6;3993:2;3981:9;3972:7;3968:23;3964:32;3961:52;;;4009:1;4006;3999:12;3961:52;4049:9;4036:23;4082:18;4074:6;4071:30;4068:50;;;4114:1;4111;4104:12;4068:50;4137;4179:7;4170:6;4159:9;4155:22;4137:50;:::i;4198:186::-;4257:6;4310:2;4298:9;4289:7;4285:23;4281:32;4278:52;;;4326:1;4323;4316:12;4278:52;4349:29;4368:9;4349:29;:::i;4389:517::-;4644:3;4633:9;4626:22;4607:4;4665:46;4706:3;4695:9;4691:19;4683:6;4665:46;:::i;:::-;4754:14;;4747:22;4742:2;4727:18;;4720:50;-1:-1:-1;4801:2:1;4786:18;;4779:34;;;;4844:2;4829:18;;4822:34;;;;4887:3;4872:19;;;4865:35;4657:54;4389:517;-1:-1:-1;4389:517:1:o;4911:160::-;4976:20;;5032:13;;5025:21;5015:32;;5005:60;;5061:1;5058;5051:12;5076:254;5141:6;5149;5202:2;5190:9;5181:7;5177:23;5173:32;5170:52;;;5218:1;5215;5208:12;5170:52;5241:29;5260:9;5241:29;:::i;:::-;5231:39;;5289:35;5320:2;5309:9;5305:18;5289:35;:::i;:::-;5279:45;;5076:254;;;;;:::o;5335:596::-;5437:6;5445;5453;5461;5469;5522:3;5510:9;5501:7;5497:23;5493:33;5490:53;;;5539:1;5536;5529:12;5490:53;5579:9;5566:23;5612:18;5604:6;5601:30;5598:50;;;5644:1;5641;5634:12;5598:50;5667;5709:7;5700:6;5689:9;5685:22;5667:50;:::i;:::-;5657:60;;;5764:2;5753:9;5749:18;5736:32;5726:42;;5815:2;5804:9;5800:18;5787:32;5777:42;;5866:2;5855:9;5851:18;5838:32;5828:42;;5889:36;5920:3;5909:9;5905:19;5889:36;:::i;:::-;5879:46;;5335:596;;;;;;;;:::o;5936:667::-;6031:6;6039;6047;6055;6108:3;6096:9;6087:7;6083:23;6079:33;6076:53;;;6125:1;6122;6115:12;6076:53;6148:29;6167:9;6148:29;:::i;:::-;6138:39;;6196:38;6230:2;6219:9;6215:18;6196:38;:::i;:::-;6186:48;;6281:2;6270:9;6266:18;6253:32;6243:42;;6336:2;6325:9;6321:18;6308:32;6363:18;6355:6;6352:30;6349:50;;;6395:1;6392;6385:12;6349:50;6418:22;;6471:4;6463:13;;6459:27;-1:-1:-1;6449:55:1;;6500:1;6497;6490:12;6449:55;6523:74;6589:7;6584:2;6571:16;6566:2;6562;6558:11;6523:74;:::i;:::-;6513:84;;;5936:667;;;;;;;:::o;6608:763::-;6712:6;6720;6728;6736;6789:2;6777:9;6768:7;6764:23;6760:32;6757:52;;;6805:1;6802;6795:12;6757:52;6845:9;6832:23;6874:18;6915:2;6907:6;6904:14;6901:34;;;6931:1;6928;6921:12;6901:34;6969:6;6958:9;6954:22;6944:32;;7014:7;7007:4;7003:2;6999:13;6995:27;6985:55;;7036:1;7033;7026:12;6985:55;7076:2;7063:16;7102:2;7094:6;7091:14;7088:34;;;7118:1;7115;7108:12;7088:34;7173:7;7166:4;7156:6;7153:1;7149:14;7145:2;7141:23;7137:34;7134:47;7131:67;;;7194:1;7191;7184:12;7131:67;7225:4;7217:13;;;;-1:-1:-1;7249:6:1;-1:-1:-1;;7287:20:1;;7274:34;;-1:-1:-1;7327:38:1;7361:2;7346:18;;7327:38;:::i;:::-;7317:48;;6608:763;;;;;;;:::o;7376:260::-;7444:6;7452;7505:2;7493:9;7484:7;7480:23;7476:32;7473:52;;;7521:1;7518;7511:12;7473:52;7544:29;7563:9;7544:29;:::i;:::-;7534:39;;7592:38;7626:2;7615:9;7611:18;7592:38;:::i;7641:380::-;7720:1;7716:12;;;;7763;;;7784:61;;7838:4;7830:6;7826:17;7816:27;;7784:61;7891:2;7883:6;7880:14;7860:18;7857:38;7854:161;;7937:10;7932:3;7928:20;7925:1;7918:31;7972:4;7969:1;7962:15;8000:4;7997:1;7990:15;7854:161;;7641:380;;;:::o;8858:409::-;9060:2;9042:21;;;9099:2;9079:18;;;9072:30;9138:34;9133:2;9118:18;;9111:62;-1:-1:-1;;;9204:2:1;9189:18;;9182:43;9257:3;9242:19;;8858:409::o;9398:545::-;9500:2;9495:3;9492:11;9489:448;;;9536:1;9561:5;9557:2;9550:17;9606:4;9602:2;9592:19;9676:2;9664:10;9660:19;9657:1;9653:27;9647:4;9643:38;9712:4;9700:10;9697:20;9694:47;;;-1:-1:-1;9735:4:1;9694:47;9790:2;9785:3;9781:12;9778:1;9774:20;9768:4;9764:31;9754:41;;9845:82;9863:2;9856:5;9853:13;9845:82;;;9908:17;;;9889:1;9878:13;9845:82;;;9849:3;;;9398:545;;;:::o;10119:1352::-;10245:3;10239:10;10272:18;10264:6;10261:30;10258:56;;;10294:18;;:::i;:::-;10323:97;10413:6;10373:38;10405:4;10399:11;10373:38;:::i;:::-;10367:4;10323:97;:::i;:::-;10475:4;;10539:2;10528:14;;10556:1;10551:663;;;;11258:1;11275:6;11272:89;;;-1:-1:-1;11327:19:1;;;11321:26;11272:89;-1:-1:-1;;10076:1:1;10072:11;;;10068:24;10064:29;10054:40;10100:1;10096:11;;;10051:57;11374:81;;10521:944;;10551:663;9345:1;9338:14;;;9382:4;9369:18;;-1:-1:-1;;10587:20:1;;;10705:236;10719:7;10716:1;10713:14;10705:236;;;10808:19;;;10802:26;10787:42;;10900:27;;;;10868:1;10856:14;;;;10735:19;;10705:236;;;10709:3;10969:6;10960:7;10957:19;10954:201;;;11030:19;;;11024:26;-1:-1:-1;;11113:1:1;11109:14;;;11125:3;11105:24;11101:37;11097:42;11082:58;11067:74;;10954:201;-1:-1:-1;;;;;11201:1:1;11185:14;;;11181:22;11168:36;;-1:-1:-1;10119:1352:1:o;13554:127::-;13615:10;13610:3;13606:20;13603:1;13596:31;13646:4;13643:1;13636:15;13670:4;13667:1;13660:15;13686:168;13759:9;;;13790;;13807:15;;;13801:22;;13787:37;13777:71;;13828:18;;:::i;14212:125::-;14277:9;;;14298:10;;;14295:36;;;14311:18;;:::i;16086:1020::-;16262:3;16291:1;16324:6;16318:13;16354:36;16380:9;16354:36;:::i;:::-;16409:1;16426:18;;;16453:133;;;;16600:1;16595:356;;;;16419:532;;16453:133;-1:-1:-1;;16486:24:1;;16474:37;;16559:14;;16552:22;16540:35;;16531:45;;;-1:-1:-1;16453:133:1;;16595:356;16626:6;16623:1;16616:17;16656:4;16701:2;16698:1;16688:16;16726:1;16740:165;16754:6;16751:1;16748:13;16740:165;;;16832:14;;16819:11;;;16812:35;16875:16;;;;16769:10;;16740:165;;;16744:3;;;16934:6;16929:3;16925:16;16918:23;;16419:532;;;;;16982:6;16976:13;16998:68;17057:8;17052:3;17045:4;17037:6;17033:17;16998:68;:::i;:::-;17082:18;;16086:1020;-1:-1:-1;;;;16086:1020:1:o;17518:401::-;17720:2;17702:21;;;17759:2;17739:18;;;17732:30;17798:34;17793:2;17778:18;;17771:62;-1:-1:-1;;;17864:2:1;17849:18;;17842:35;17909:3;17894:19;;17518:401::o;18690:407::-;18892:2;18874:21;;;18931:2;18911:18;;;18904:30;18970:34;18965:2;18950:18;;18943:62;-1:-1:-1;;;19036:2:1;19021:18;;19014:41;19087:3;19072:19;;18690:407::o;19807:135::-;19846:3;19867:17;;;19864:43;;19887:18;;:::i;:::-;-1:-1:-1;19934:1:1;19923:13;;19807:135::o;19947:414::-;20149:2;20131:21;;;20188:2;20168:18;;;20161:30;20227:34;20222:2;20207:18;;20200:62;-1:-1:-1;;;20293:2:1;20278:18;;20271:48;20351:3;20336:19;;19947:414::o;20498:489::-;-1:-1:-1;;;;;20767:15:1;;;20749:34;;20819:15;;20814:2;20799:18;;20792:43;20866:2;20851:18;;20844:34;;;20914:3;20909:2;20894:18;;20887:31;;;20692:4;;20935:46;;20961:19;;20953:6;20935:46;:::i;:::-;20927:54;20498:489;-1:-1:-1;;;;;;20498:489:1:o;20992:249::-;21061:6;21114:2;21102:9;21093:7;21089:23;21085:32;21082:52;;;21130:1;21127;21120:12;21082:52;21162:9;21156:16;21181:30;21205:5;21181:30;:::i;21246:127::-;21307:10;21302:3;21298:20;21295:1;21288:31;21338:4;21335:1;21328:15;21362:4;21359:1;21352:15
Swarm Source
ipfs://fa141410dcaacad307bd67e27c7ca53c95dc29fc51654443dbe0766a82c65564
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.