ERC-721
Overview
Max Total Supply
712 AR
Holders
332
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AvatarRiders
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-01-27 */ // _ _ ____ _ _ // / \__ ____ _| |_ __ _ _ __| _ \(_) __| | ___ _ __ // / _ \ \ / / _` | __/ _` | '__| |_) | |/ _` |/ _ \ '__| // / ___ \ V / (_| | || (_| | | | _ <| | (_| | __/ | // /_/ \_\_/ \__,_|\__\__,_|_| |_| \_\_|\__,_|\___|_| // File: operator-filter-registry/src/lib/Constants.sol pragma solidity ^0.8.17; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: operator-filter-registry/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File: operator-filter-registry/src/OperatorFilterer.sol pragma solidity ^0.8.13; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: operator-filter-registry/src/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: contracts/avatar.sol // _ _ ____ _ _ // / \__ ____ _| |_ __ _ _ __| _ \(_) __| | ___ _ __ // / _ \ \ / / _` | __/ _` | '__| |_) | |/ _` |/ _ \ '__| // / ___ \ V / (_| | || (_| | | | _ <| | (_| | __/ | // /_/ \_\_/ \__,_|\__\__,_|_| |_| \_\_|\__,_|\___|_| pragma solidity ^0.8.17; contract AvatarRiders is ERC721A, DefaultOperatorFilterer, Ownable{ using Strings for uint256; uint256 public constant MAX_SUPPLY = 5555; bool public _isSaleActive = false; bool public _WLActive = false; bool public _revealed = false; bool public _stopMint = false; uint256 public WLPrice = 0.0029 ether; uint256 public mintPrice = 0.0049 ether; uint256 public maxBalance = 3; uint256 public maxMint = 3; uint256 public stopNum = 0; string baseURI; string public notRevealedUri; string public baseExtension = ".json"; bytes32 public merkleRoot; mapping(address => bool) public _mintedAddress; mapping(uint256 => string) private _tokenURIs; constructor(string memory initBaseURI, string memory initNotRevealedUri) ERC721A("AvatarRiders", "AR") { setBaseURI(initBaseURI); setNotRevealedURI(initNotRevealedUri); } function mintWL(bytes32[] calldata proof) public payable { require(_WLActive, "Whitelist must be active to mint NFT"); require(WLPrice <= msg.value, "Not enough ether"); require(!_mintedAddress[msg.sender], "Already minted!"); require(checkWL(proof), "Invalid merkle proof"); _safeMint(msg.sender, 1); _mintedAddress[msg.sender] = true; } function checkWL(bytes32[] calldata proof) view public returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); bool verified = MerkleProof.verify(proof, merkleRoot, leaf); return verified; } function getNum() public view returns (uint) { return totalSupply(); } function mintPublic(uint256 tokenQuantity) public payable { require( totalSupply() + tokenQuantity <= MAX_SUPPLY, "Sale would exceed max supply" ); require(_isSaleActive, "Sale must be active to mint NFT"); require(tokenQuantity <= maxMint, "Mint too many tokens at a time"); require( balanceOf(msg.sender) + tokenQuantity <= maxBalance, "Sale would exceed max balance" ); require(tokenQuantity * mintPrice <= msg.value, "Not enough ether"); if (_stopMint) { require(totalSupply() + tokenQuantity <= stopNum, "Sale would exceed max supply"); } _safeMint(msg.sender, tokenQuantity); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "URI query for nonexistent token" ); if (_revealed == false) { return notRevealedUri; } string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); if (bytes(base).length == 0) { return _tokenURI; } if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return string(abi.encodePacked(base, tokenId.toString(), baseExtension)); } function setRoot(bytes32 _root) public onlyOwner { merkleRoot = _root; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function flipSaleActive() public onlyOwner { _isSaleActive = !_isSaleActive; } function flipWLActive() public onlyOwner { _WLActive = !_WLActive; } function flipReveal() public onlyOwner { _revealed = !_revealed; } function flipStopMint() public onlyOwner { _stopMint = !_stopMint; } function setStopNum(uint256 _stopNum) public onlyOwner { stopNum = _stopNum; } function mintOwner() public onlyOwner { _safeMint(msg.sender, 1); } function setMintPrice(uint256 _mintPrice) public onlyOwner { mintPrice = _mintPrice; } function setWLPrice(uint256 _WLPrice) public onlyOwner { WLPrice = _WLPrice; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function setMaxBalance(uint256 _maxBalance) public onlyOwner { maxBalance = _maxBalance; } function setMaxMint(uint256 _maxMint) public onlyOwner { maxMint = _maxMint; } function withdraw(address to) public onlyOwner { uint256 balance = address(this).balance; payable(to).transfer(balance); } //----------------------Override some methods based on opensea new policy--------------------- //---------------- https://github.com/ProjectOpenSea/operator-filter-registry ---------------- function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"initBaseURI","type":"string"},{"internalType":"string","name":"initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_WLActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_mintedAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_stopMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkWL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipStopMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWLActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxBalance","type":"uint256"}],"name":"setMaxBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stopNum","type":"uint256"}],"name":"setStopNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_WLPrice","type":"uint256"}],"name":"setWLPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6008805463ffffffff60a01b19169055660a4d88ddd940006009556611688627664000600a556003600b819055600c556000600d5560c06040526005608090815264173539b7b760d91b60a0526010906200005b908262000407565b503480156200006957600080fd5b5060405162002a2638038062002a268339810160408190526200008c9162000582565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600c81526020016b41766174617252696465727360a01b8152506040518060400160405280600281526020016120a960f11b8152508160029081620000f4919062000407565b50600362000103828262000407565b506000805550506daaeb6d7670e522a718067333cd4e3b156200024f5780156200019d57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200017e57600080fd5b505af115801562000193573d6000803e3d6000fd5b505050506200024f565b6001600160a01b03821615620001ee5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000163565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200023557600080fd5b505af11580156200024a573d6000803e3d6000fd5b505050505b506200025d9050336200027b565b6200026882620002cd565b6200027381620002e9565b5050620005ec565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002d762000301565b600e620002e5828262000407565b5050565b620002f362000301565b600f620002e5828262000407565b6008546001600160a01b03163314620003605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200038d57607f821691505b602082108103620003ae57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200040257600081815260208120601f850160051c81016020861015620003dd5750805b601f850160051c820191505b81811015620003fe57828155600101620003e9565b5050505b505050565b81516001600160401b0381111562000423576200042362000362565b6200043b8162000434845462000378565b84620003b4565b602080601f8311600181146200047357600084156200045a5750858301515b600019600386901b1c1916600185901b178555620003fe565b600085815260208120601f198616915b82811015620004a45788860151825594840194600190910190840162000483565b5085821015620004c35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f830112620004e557600080fd5b81516001600160401b038082111562000502576200050262000362565b604051601f8301601f19908116603f011681019082821181831017156200052d576200052d62000362565b816040528381526020925086838588010111156200054a57600080fd5b600091505b838210156200056e57858201830151818301840152908201906200054f565b600093810190920192909252949350505050565b600080604083850312156200059657600080fd5b82516001600160401b0380821115620005ae57600080fd5b620005bc86838701620004d3565b93506020850151915080821115620005d357600080fd5b50620005e285828601620004d3565b9150509250929050565b61242a80620005fc6000396000f3fe6080604052600436106102e45760003560e01c8063715018a611610190578063c87b56dd116100dc578063e020b28711610095578063f2c4ce1e1161006f578063f2c4ce1e14610838578063f2fde38b14610858578063f4a0a52814610878578063f6a5b8e61461089857600080fd5b8063e020b287146107bb578063e985e9c5146107dc578063efd0cbf91461082557600080fd5b8063c87b56dd14610710578063c8d8614e14610730578063cecb06d014610751578063da3ef23f14610766578063dab5f34014610786578063de8b51e1146107a657600080fd5b80639d51d9b711610149578063b2327d2711610123578063b2327d27146106a2578063b88d4fde146106b8578063ba6c396c146106cb578063c6682862146106fb57600080fd5b80639d51d9b71461064c578063a22cb4651461066c578063b0a04d3d1461068c57600080fd5b8063715018a6146105c357806373ad468a146105d85780637501f741146105ee5780638da5cb5b1461060457806391a7d1df1461062257806395d89b411461063757600080fd5b80633b84d9c61161024f57806355f804b3116102085780636817c76c116101e25780636817c76c1461054b5780636ebeac85146105615780637080d6fc1461058257806370a08231146105a357600080fd5b806355f804b3146104f65780636352211e1461051657806367e0badb1461053657600080fd5b80633b84d9c61461045757806341f434341461046c57806342842e0e1461048e5780634965c709146104a157806351cff8d9146104b6578063547520fe146104d657600080fd5b8063095ea7b3116102a1578063095ea7b3146103c257806318160ddd146103d557806323b872dd146103f85780632eb4a7ab1461040b5780633082b8901461042157806332cb6b0c1461044157600080fd5b806301ffc9a7146102e9578063024577fe1461031e5780630578f97d1461033e57806306fdde0314610353578063081812fc14610375578063081c8c44146103ad575b600080fd5b3480156102f557600080fd5b50610309610304366004611d8b565b6108b8565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b50610309610339366004611da8565b61090a565b61035161034c366004611da8565b610991565b005b34801561035f57600080fd5b50610368610b08565b6040516103159190611e6d565b34801561038157600080fd5b50610395610390366004611e80565b610b9a565b6040516001600160a01b039091168152602001610315565b3480156103b957600080fd5b50610368610bde565b6103516103d0366004611eb5565b610c6c565b3480156103e157600080fd5b50600154600054035b604051908152602001610315565b610351610406366004611edf565b610c85565b34801561041757600080fd5b506103ea60115481565b34801561042d57600080fd5b5061035161043c366004611e80565b610cb0565b34801561044d57600080fd5b506103ea6115b381565b34801561046357600080fd5b50610351610cbd565b34801561047857600080fd5b506103956daaeb6d7670e522a718067333cd4e81565b61035161049c366004611edf565b610ce6565b3480156104ad57600080fd5b50610351610d0b565b3480156104c257600080fd5b506103516104d1366004611f1b565b610d34565b3480156104e257600080fd5b506103516104f1366004611e80565b610d74565b34801561050257600080fd5b50610351610511366004611fc2565b610d81565b34801561052257600080fd5b50610395610531366004611e80565b610d99565b34801561054257600080fd5b506103ea610da4565b34801561055757600080fd5b506103ea600a5481565b34801561056d57600080fd5b5060085461030990600160b01b900460ff1681565b34801561058e57600080fd5b5060085461030990600160a01b900460ff1681565b3480156105af57600080fd5b506103ea6105be366004611f1b565b610db8565b3480156105cf57600080fd5b50610351610e07565b3480156105e457600080fd5b506103ea600b5481565b3480156105fa57600080fd5b506103ea600c5481565b34801561061057600080fd5b506008546001600160a01b0316610395565b34801561062e57600080fd5b50610351610e1b565b34801561064357600080fd5b50610368610e44565b34801561065857600080fd5b50610351610667366004611e80565b610e53565b34801561067857600080fd5b50610351610687366004612019565b610e60565b34801561069857600080fd5b506103ea60095481565b3480156106ae57600080fd5b506103ea600d5481565b6103516106c6366004612050565b610e74565b3480156106d757600080fd5b506103096106e6366004611f1b565b60126020526000908152604090205460ff1681565b34801561070757600080fd5b50610368610ea1565b34801561071c57600080fd5b5061036861072b366004611e80565b610eae565b34801561073c57600080fd5b5060085461030990600160b81b900460ff1681565b34801561075d57600080fd5b506103516110b2565b34801561077257600080fd5b50610351610781366004611fc2565b6110c5565b34801561079257600080fd5b506103516107a1366004611e80565b6110d9565b3480156107b257600080fd5b506103516110e6565b3480156107c757600080fd5b5060085461030990600160a81b900460ff1681565b3480156107e857600080fd5b506103096107f73660046120cc565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610351610833366004611e80565b61110f565b34801561084457600080fd5b50610351610853366004611fc2565b611360565b34801561086457600080fd5b50610351610873366004611f1b565b611374565b34801561088457600080fd5b50610351610893366004611e80565b6113ea565b3480156108a457600080fd5b506103516108b3366004611e80565b6113f7565b60006301ffc9a760e01b6001600160e01b0319831614806108e957506380ac58cd60e01b6001600160e01b03198316145b806109045750635b5e139f60e01b6001600160e01b03198316145b92915050565b6040516bffffffffffffffffffffffff193360601b16602082015260009081906034016040516020818303038152906040528051906020012090506000610988858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011549150859050611404565b95945050505050565b600854600160a81b900460ff166109fb5760405162461bcd60e51b8152602060048201526024808201527f57686974656c697374206d7573742062652061637469766520746f206d696e746044820152630813919560e21b60648201526084015b60405180910390fd5b346009541115610a405760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b60448201526064016109f2565b3360009081526012602052604090205460ff1615610a925760405162461bcd60e51b815260206004820152600f60248201526e416c7265616479206d696e7465642160881b60448201526064016109f2565b610a9c828261090a565b610adf5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016109f2565b610aea33600161141a565b5050336000908152601260205260409020805460ff19166001179055565b606060028054610b17906120ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610b43906120ff565b8015610b905780601f10610b6557610100808354040283529160200191610b90565b820191906000526020600020905b815481529060010190602001808311610b7357829003601f168201915b5050505050905090565b6000610ba582611434565b610bc2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600f8054610beb906120ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610c17906120ff565b8015610c645780601f10610c3957610100808354040283529160200191610c64565b820191906000526020600020905b815481529060010190602001808311610c4757829003601f168201915b505050505081565b81610c768161145b565b610c808383611514565b505050565b826001600160a01b0381163314610c9f57610c9f3361145b565b610caa8484846115b4565b50505050565b610cb861174d565b600d55565b610cc561174d565b6008805460ff60b01b198116600160b01b9182900460ff1615909102179055565b826001600160a01b0381163314610d0057610d003361145b565b610caa8484846117a7565b610d1361174d565b6008805460ff60b81b198116600160b81b9182900460ff1615909102179055565b610d3c61174d565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610c80573d6000803e3d6000fd5b610d7c61174d565b600c55565b610d8961174d565b600e610d95828261217f565b5050565b6000610904826117c2565b6000610db36001546000540390565b905090565b60006001600160a01b038216610de1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e0f61174d565b610e196000611830565b565b610e2361174d565b6008805460ff60a81b198116600160a81b9182900460ff1615909102179055565b606060038054610b17906120ff565b610e5b61174d565b600b55565b81610e6a8161145b565b610c808383611882565b836001600160a01b0381163314610e8e57610e8e3361145b565b610e9a858585856118ee565b5050505050565b60108054610beb906120ff565b6060610eb982611434565b610f055760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109f2565b600854600160b01b900460ff161515600003610fad57600f8054610f28906120ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610f54906120ff565b8015610fa15780601f10610f7657610100808354040283529160200191610fa1565b820191906000526020600020905b815481529060010190602001808311610f8457829003601f168201915b50505050509050919050565b60008281526013602052604081208054610fc6906120ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff2906120ff565b801561103f5780601f106110145761010080835404028352916020019161103f565b820191906000526020600020905b81548152906001019060200180831161102257829003601f168201915b505050505090506000611050611932565b90508051600003611062575092915050565b81511561109457808260405160200161107c92919061223f565b60405160208183030381529060405292505050919050565b8061109e85611941565b601060405160200161107c9392919061226e565b6110ba61174d565b610e1933600161141a565b6110cd61174d565b6010610d95828261217f565b6110e161174d565b601155565b6110ee61174d565b6008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6115b3816111206001546000540390565b61112a9190612324565b11156111785760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c790000000060448201526064016109f2565b600854600160a01b900460ff166111d15760405162461bcd60e51b815260206004820152601f60248201527f53616c65206d7573742062652061637469766520746f206d696e74204e46540060448201526064016109f2565b600c548111156112235760405162461bcd60e51b815260206004820152601e60248201527f4d696e7420746f6f206d616e7920746f6b656e7320617420612074696d65000060448201526064016109f2565b600b548161123033610db8565b61123a9190612324565b11156112885760405162461bcd60e51b815260206004820152601d60248201527f53616c6520776f756c6420657863656564206d61782062616c616e636500000060448201526064016109f2565b34600a54826112979190612337565b11156112d85760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b60448201526064016109f2565b600854600160b81b900460ff161561135357600d54816112fb6001546000540390565b6113059190612324565b11156113535760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c790000000060448201526064016109f2565b61135d338261141a565b50565b61136861174d565b600f610d95828261217f565b61137c61174d565b6001600160a01b0381166113e15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109f2565b61135d81611830565b6113f261174d565b600a55565b6113ff61174d565b600955565b60008261141185846119d4565b14949350505050565b610d95828260405180602001604052806000815250611a21565b6000805482108015610904575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b1561135d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156114c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ec919061234e565b61135d57604051633b79c77360e21b81526001600160a01b03821660048201526024016109f2565b600061151f82610d99565b9050336001600160a01b038216146115585761153b81336107f7565b611558576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006115bf826117c2565b9050836001600160a01b0316816001600160a01b0316146115f25760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761163f5761162286336107f7565b61163f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661166657604051633a954ecd60e21b815260040160405180910390fd5b801561167157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611703576001840160008181526004602052604081205490036117015760005481146117015760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610e195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109f2565b610c8083838360405180602001604052806000815250610e74565b6000816000548110156118175760008181526004602052604081205490600160e01b82169003611815575b8060000361180e5750600019016000818152600460205260409020546117ed565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118f9848484610c85565b6001600160a01b0383163b15610caa5761191584848484611a87565b610caa576040516368d2bf6b60e11b815260040160405180910390fd5b6060600e8054610b17906120ff565b6060600061194e83611b73565b600101905060008167ffffffffffffffff81111561196e5761196e611f36565b6040519080825280601f01601f191660200182016040528015611998576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846119a257509392505050565b600081815b8451811015611a1957611a05828683815181106119f8576119f861236b565b6020026020010151611c4b565b915080611a1181612381565b9150506119d9565b509392505050565b611a2b8383611c77565b6001600160a01b0383163b15610c80576000548281035b611a556000868380600101945086611a87565b611a72576040516368d2bf6b60e11b815260040160405180910390fd5b818110611a42578160005414610e9a57600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611abc90339089908890889060040161239a565b6020604051808303816000875af1925050508015611af7575060408051601f3d908101601f19168201909252611af4918101906123d7565b60015b611b55573d808015611b25576040519150601f19603f3d011682016040523d82523d6000602084013e611b2a565b606091505b508051600003611b4d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611bb25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611bde576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611bfc57662386f26fc10000830492506010015b6305f5e1008310611c14576305f5e100830492506008015b6127108310611c2857612710830492506004015b60648310611c3a576064830492506002015b600a83106109045760010192915050565b6000818310611c6757600082815260208490526040902061180e565b5060009182526020526040902090565b6000805490829003611c9c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611d4b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611d13565b5081600003611d6c57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461135d57600080fd5b600060208284031215611d9d57600080fd5b813561180e81611d75565b60008060208385031215611dbb57600080fd5b823567ffffffffffffffff80821115611dd357600080fd5b818501915085601f830112611de757600080fd5b813581811115611df657600080fd5b8660208260051b8501011115611e0b57600080fd5b60209290920196919550909350505050565b60005b83811015611e38578181015183820152602001611e20565b50506000910152565b60008151808452611e59816020860160208601611e1d565b601f01601f19169290920160200192915050565b60208152600061180e6020830184611e41565b600060208284031215611e9257600080fd5b5035919050565b80356001600160a01b0381168114611eb057600080fd5b919050565b60008060408385031215611ec857600080fd5b611ed183611e99565b946020939093013593505050565b600080600060608486031215611ef457600080fd5b611efd84611e99565b9250611f0b60208501611e99565b9150604084013590509250925092565b600060208284031215611f2d57600080fd5b61180e82611e99565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611f6757611f67611f36565b604051601f8501601f19908116603f01168101908282118183101715611f8f57611f8f611f36565b81604052809350858152868686011115611fa857600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611fd457600080fd5b813567ffffffffffffffff811115611feb57600080fd5b8201601f81018413611ffc57600080fd5b611b6b84823560208401611f4c565b801515811461135d57600080fd5b6000806040838503121561202c57600080fd5b61203583611e99565b915060208301356120458161200b565b809150509250929050565b6000806000806080858703121561206657600080fd5b61206f85611e99565b935061207d60208601611e99565b925060408501359150606085013567ffffffffffffffff8111156120a057600080fd5b8501601f810187136120b157600080fd5b6120c087823560208401611f4c565b91505092959194509250565b600080604083850312156120df57600080fd5b6120e883611e99565b91506120f660208401611e99565b90509250929050565b600181811c9082168061211357607f821691505b60208210810361213357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610c8057600081815260208120601f850160051c810160208610156121605750805b601f850160051c820191505b818110156117455782815560010161216c565b815167ffffffffffffffff81111561219957612199611f36565b6121ad816121a784546120ff565b84612139565b602080601f8311600181146121e257600084156121ca5750858301515b600019600386901b1c1916600185901b178555611745565b600085815260208120601f198616915b82811015612211578886015182559484019460019091019084016121f2565b508582101561222f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351612251818460208801611e1d565b835190830190612265818360208801611e1d565b01949350505050565b6000845160206122818285838a01611e1d565b8551918401916122948184848a01611e1d565b85549201916000906122a5816120ff565b600182811680156122bd57600181146122d2576122fe565b60ff19841687528215158302870194506122fe565b896000528560002060005b848110156122f6578154898201529083019087016122dd565b505082870194505b50929a9950505050505050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109045761090461230e565b80820281158282048414176109045761090461230e565b60006020828403121561236057600080fd5b815161180e8161200b565b634e487b7160e01b600052603260045260246000fd5b6000600182016123935761239361230e565b5060010190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123cd90830184611e41565b9695505050505050565b6000602082840312156123e957600080fd5b815161180e81611d7556fea2646970667358221220152e6e697e56a104be5b4215fe3d0603217086f41bd795394008600e9cd831b164736f6c634300081100330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102e45760003560e01c8063715018a611610190578063c87b56dd116100dc578063e020b28711610095578063f2c4ce1e1161006f578063f2c4ce1e14610838578063f2fde38b14610858578063f4a0a52814610878578063f6a5b8e61461089857600080fd5b8063e020b287146107bb578063e985e9c5146107dc578063efd0cbf91461082557600080fd5b8063c87b56dd14610710578063c8d8614e14610730578063cecb06d014610751578063da3ef23f14610766578063dab5f34014610786578063de8b51e1146107a657600080fd5b80639d51d9b711610149578063b2327d2711610123578063b2327d27146106a2578063b88d4fde146106b8578063ba6c396c146106cb578063c6682862146106fb57600080fd5b80639d51d9b71461064c578063a22cb4651461066c578063b0a04d3d1461068c57600080fd5b8063715018a6146105c357806373ad468a146105d85780637501f741146105ee5780638da5cb5b1461060457806391a7d1df1461062257806395d89b411461063757600080fd5b80633b84d9c61161024f57806355f804b3116102085780636817c76c116101e25780636817c76c1461054b5780636ebeac85146105615780637080d6fc1461058257806370a08231146105a357600080fd5b806355f804b3146104f65780636352211e1461051657806367e0badb1461053657600080fd5b80633b84d9c61461045757806341f434341461046c57806342842e0e1461048e5780634965c709146104a157806351cff8d9146104b6578063547520fe146104d657600080fd5b8063095ea7b3116102a1578063095ea7b3146103c257806318160ddd146103d557806323b872dd146103f85780632eb4a7ab1461040b5780633082b8901461042157806332cb6b0c1461044157600080fd5b806301ffc9a7146102e9578063024577fe1461031e5780630578f97d1461033e57806306fdde0314610353578063081812fc14610375578063081c8c44146103ad575b600080fd5b3480156102f557600080fd5b50610309610304366004611d8b565b6108b8565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b50610309610339366004611da8565b61090a565b61035161034c366004611da8565b610991565b005b34801561035f57600080fd5b50610368610b08565b6040516103159190611e6d565b34801561038157600080fd5b50610395610390366004611e80565b610b9a565b6040516001600160a01b039091168152602001610315565b3480156103b957600080fd5b50610368610bde565b6103516103d0366004611eb5565b610c6c565b3480156103e157600080fd5b50600154600054035b604051908152602001610315565b610351610406366004611edf565b610c85565b34801561041757600080fd5b506103ea60115481565b34801561042d57600080fd5b5061035161043c366004611e80565b610cb0565b34801561044d57600080fd5b506103ea6115b381565b34801561046357600080fd5b50610351610cbd565b34801561047857600080fd5b506103956daaeb6d7670e522a718067333cd4e81565b61035161049c366004611edf565b610ce6565b3480156104ad57600080fd5b50610351610d0b565b3480156104c257600080fd5b506103516104d1366004611f1b565b610d34565b3480156104e257600080fd5b506103516104f1366004611e80565b610d74565b34801561050257600080fd5b50610351610511366004611fc2565b610d81565b34801561052257600080fd5b50610395610531366004611e80565b610d99565b34801561054257600080fd5b506103ea610da4565b34801561055757600080fd5b506103ea600a5481565b34801561056d57600080fd5b5060085461030990600160b01b900460ff1681565b34801561058e57600080fd5b5060085461030990600160a01b900460ff1681565b3480156105af57600080fd5b506103ea6105be366004611f1b565b610db8565b3480156105cf57600080fd5b50610351610e07565b3480156105e457600080fd5b506103ea600b5481565b3480156105fa57600080fd5b506103ea600c5481565b34801561061057600080fd5b506008546001600160a01b0316610395565b34801561062e57600080fd5b50610351610e1b565b34801561064357600080fd5b50610368610e44565b34801561065857600080fd5b50610351610667366004611e80565b610e53565b34801561067857600080fd5b50610351610687366004612019565b610e60565b34801561069857600080fd5b506103ea60095481565b3480156106ae57600080fd5b506103ea600d5481565b6103516106c6366004612050565b610e74565b3480156106d757600080fd5b506103096106e6366004611f1b565b60126020526000908152604090205460ff1681565b34801561070757600080fd5b50610368610ea1565b34801561071c57600080fd5b5061036861072b366004611e80565b610eae565b34801561073c57600080fd5b5060085461030990600160b81b900460ff1681565b34801561075d57600080fd5b506103516110b2565b34801561077257600080fd5b50610351610781366004611fc2565b6110c5565b34801561079257600080fd5b506103516107a1366004611e80565b6110d9565b3480156107b257600080fd5b506103516110e6565b3480156107c757600080fd5b5060085461030990600160a81b900460ff1681565b3480156107e857600080fd5b506103096107f73660046120cc565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610351610833366004611e80565b61110f565b34801561084457600080fd5b50610351610853366004611fc2565b611360565b34801561086457600080fd5b50610351610873366004611f1b565b611374565b34801561088457600080fd5b50610351610893366004611e80565b6113ea565b3480156108a457600080fd5b506103516108b3366004611e80565b6113f7565b60006301ffc9a760e01b6001600160e01b0319831614806108e957506380ac58cd60e01b6001600160e01b03198316145b806109045750635b5e139f60e01b6001600160e01b03198316145b92915050565b6040516bffffffffffffffffffffffff193360601b16602082015260009081906034016040516020818303038152906040528051906020012090506000610988858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011549150859050611404565b95945050505050565b600854600160a81b900460ff166109fb5760405162461bcd60e51b8152602060048201526024808201527f57686974656c697374206d7573742062652061637469766520746f206d696e746044820152630813919560e21b60648201526084015b60405180910390fd5b346009541115610a405760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b60448201526064016109f2565b3360009081526012602052604090205460ff1615610a925760405162461bcd60e51b815260206004820152600f60248201526e416c7265616479206d696e7465642160881b60448201526064016109f2565b610a9c828261090a565b610adf5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016109f2565b610aea33600161141a565b5050336000908152601260205260409020805460ff19166001179055565b606060028054610b17906120ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610b43906120ff565b8015610b905780601f10610b6557610100808354040283529160200191610b90565b820191906000526020600020905b815481529060010190602001808311610b7357829003601f168201915b5050505050905090565b6000610ba582611434565b610bc2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600f8054610beb906120ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610c17906120ff565b8015610c645780601f10610c3957610100808354040283529160200191610c64565b820191906000526020600020905b815481529060010190602001808311610c4757829003601f168201915b505050505081565b81610c768161145b565b610c808383611514565b505050565b826001600160a01b0381163314610c9f57610c9f3361145b565b610caa8484846115b4565b50505050565b610cb861174d565b600d55565b610cc561174d565b6008805460ff60b01b198116600160b01b9182900460ff1615909102179055565b826001600160a01b0381163314610d0057610d003361145b565b610caa8484846117a7565b610d1361174d565b6008805460ff60b81b198116600160b81b9182900460ff1615909102179055565b610d3c61174d565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610c80573d6000803e3d6000fd5b610d7c61174d565b600c55565b610d8961174d565b600e610d95828261217f565b5050565b6000610904826117c2565b6000610db36001546000540390565b905090565b60006001600160a01b038216610de1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e0f61174d565b610e196000611830565b565b610e2361174d565b6008805460ff60a81b198116600160a81b9182900460ff1615909102179055565b606060038054610b17906120ff565b610e5b61174d565b600b55565b81610e6a8161145b565b610c808383611882565b836001600160a01b0381163314610e8e57610e8e3361145b565b610e9a858585856118ee565b5050505050565b60108054610beb906120ff565b6060610eb982611434565b610f055760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e0060448201526064016109f2565b600854600160b01b900460ff161515600003610fad57600f8054610f28906120ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610f54906120ff565b8015610fa15780601f10610f7657610100808354040283529160200191610fa1565b820191906000526020600020905b815481529060010190602001808311610f8457829003601f168201915b50505050509050919050565b60008281526013602052604081208054610fc6906120ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff2906120ff565b801561103f5780601f106110145761010080835404028352916020019161103f565b820191906000526020600020905b81548152906001019060200180831161102257829003601f168201915b505050505090506000611050611932565b90508051600003611062575092915050565b81511561109457808260405160200161107c92919061223f565b60405160208183030381529060405292505050919050565b8061109e85611941565b601060405160200161107c9392919061226e565b6110ba61174d565b610e1933600161141a565b6110cd61174d565b6010610d95828261217f565b6110e161174d565b601155565b6110ee61174d565b6008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6115b3816111206001546000540390565b61112a9190612324565b11156111785760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c790000000060448201526064016109f2565b600854600160a01b900460ff166111d15760405162461bcd60e51b815260206004820152601f60248201527f53616c65206d7573742062652061637469766520746f206d696e74204e46540060448201526064016109f2565b600c548111156112235760405162461bcd60e51b815260206004820152601e60248201527f4d696e7420746f6f206d616e7920746f6b656e7320617420612074696d65000060448201526064016109f2565b600b548161123033610db8565b61123a9190612324565b11156112885760405162461bcd60e51b815260206004820152601d60248201527f53616c6520776f756c6420657863656564206d61782062616c616e636500000060448201526064016109f2565b34600a54826112979190612337565b11156112d85760405162461bcd60e51b815260206004820152601060248201526f2737ba1032b737bab3b41032ba3432b960811b60448201526064016109f2565b600854600160b81b900460ff161561135357600d54816112fb6001546000540390565b6113059190612324565b11156113535760405162461bcd60e51b815260206004820152601c60248201527f53616c6520776f756c6420657863656564206d617820737570706c790000000060448201526064016109f2565b61135d338261141a565b50565b61136861174d565b600f610d95828261217f565b61137c61174d565b6001600160a01b0381166113e15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109f2565b61135d81611830565b6113f261174d565b600a55565b6113ff61174d565b600955565b60008261141185846119d4565b14949350505050565b610d95828260405180602001604052806000815250611a21565b6000805482108015610904575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b1561135d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156114c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ec919061234e565b61135d57604051633b79c77360e21b81526001600160a01b03821660048201526024016109f2565b600061151f82610d99565b9050336001600160a01b038216146115585761153b81336107f7565b611558576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006115bf826117c2565b9050836001600160a01b0316816001600160a01b0316146115f25760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761163f5761162286336107f7565b61163f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661166657604051633a954ecd60e21b815260040160405180910390fd5b801561167157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611703576001840160008181526004602052604081205490036117015760005481146117015760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610e195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109f2565b610c8083838360405180602001604052806000815250610e74565b6000816000548110156118175760008181526004602052604081205490600160e01b82169003611815575b8060000361180e5750600019016000818152600460205260409020546117ed565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118f9848484610c85565b6001600160a01b0383163b15610caa5761191584848484611a87565b610caa576040516368d2bf6b60e11b815260040160405180910390fd5b6060600e8054610b17906120ff565b6060600061194e83611b73565b600101905060008167ffffffffffffffff81111561196e5761196e611f36565b6040519080825280601f01601f191660200182016040528015611998576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846119a257509392505050565b600081815b8451811015611a1957611a05828683815181106119f8576119f861236b565b6020026020010151611c4b565b915080611a1181612381565b9150506119d9565b509392505050565b611a2b8383611c77565b6001600160a01b0383163b15610c80576000548281035b611a556000868380600101945086611a87565b611a72576040516368d2bf6b60e11b815260040160405180910390fd5b818110611a42578160005414610e9a57600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611abc90339089908890889060040161239a565b6020604051808303816000875af1925050508015611af7575060408051601f3d908101601f19168201909252611af4918101906123d7565b60015b611b55573d808015611b25576040519150601f19603f3d011682016040523d82523d6000602084013e611b2a565b606091505b508051600003611b4d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611bb25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611bde576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611bfc57662386f26fc10000830492506010015b6305f5e1008310611c14576305f5e100830492506008015b6127108310611c2857612710830492506004015b60648310611c3a576064830492506002015b600a83106109045760010192915050565b6000818310611c6757600082815260208490526040902061180e565b5060009182526020526040902090565b6000805490829003611c9c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611d4b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611d13565b5081600003611d6c57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461135d57600080fd5b600060208284031215611d9d57600080fd5b813561180e81611d75565b60008060208385031215611dbb57600080fd5b823567ffffffffffffffff80821115611dd357600080fd5b818501915085601f830112611de757600080fd5b813581811115611df657600080fd5b8660208260051b8501011115611e0b57600080fd5b60209290920196919550909350505050565b60005b83811015611e38578181015183820152602001611e20565b50506000910152565b60008151808452611e59816020860160208601611e1d565b601f01601f19169290920160200192915050565b60208152600061180e6020830184611e41565b600060208284031215611e9257600080fd5b5035919050565b80356001600160a01b0381168114611eb057600080fd5b919050565b60008060408385031215611ec857600080fd5b611ed183611e99565b946020939093013593505050565b600080600060608486031215611ef457600080fd5b611efd84611e99565b9250611f0b60208501611e99565b9150604084013590509250925092565b600060208284031215611f2d57600080fd5b61180e82611e99565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611f6757611f67611f36565b604051601f8501601f19908116603f01168101908282118183101715611f8f57611f8f611f36565b81604052809350858152868686011115611fa857600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611fd457600080fd5b813567ffffffffffffffff811115611feb57600080fd5b8201601f81018413611ffc57600080fd5b611b6b84823560208401611f4c565b801515811461135d57600080fd5b6000806040838503121561202c57600080fd5b61203583611e99565b915060208301356120458161200b565b809150509250929050565b6000806000806080858703121561206657600080fd5b61206f85611e99565b935061207d60208601611e99565b925060408501359150606085013567ffffffffffffffff8111156120a057600080fd5b8501601f810187136120b157600080fd5b6120c087823560208401611f4c565b91505092959194509250565b600080604083850312156120df57600080fd5b6120e883611e99565b91506120f660208401611e99565b90509250929050565b600181811c9082168061211357607f821691505b60208210810361213357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610c8057600081815260208120601f850160051c810160208610156121605750805b601f850160051c820191505b818110156117455782815560010161216c565b815167ffffffffffffffff81111561219957612199611f36565b6121ad816121a784546120ff565b84612139565b602080601f8311600181146121e257600084156121ca5750858301515b600019600386901b1c1916600185901b178555611745565b600085815260208120601f198616915b82811015612211578886015182559484019460019091019084016121f2565b508582101561222f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008351612251818460208801611e1d565b835190830190612265818360208801611e1d565b01949350505050565b6000845160206122818285838a01611e1d565b8551918401916122948184848a01611e1d565b85549201916000906122a5816120ff565b600182811680156122bd57600181146122d2576122fe565b60ff19841687528215158302870194506122fe565b896000528560002060005b848110156122f6578154898201529083019087016122dd565b505082870194505b50929a9950505050505050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156109045761090461230e565b80820281158282048414176109045761090461230e565b60006020828403121561236057600080fd5b815161180e8161200b565b634e487b7160e01b600052603260045260246000fd5b6000600182016123935761239361230e565b5060010190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906123cd90830184611e41565b9695505050505050565b6000602082840312156123e957600080fd5b815161180e81611d7556fea2646970667358221220152e6e697e56a104be5b4215fe3d0603217086f41bd795394008600e9cd831b164736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initBaseURI (string):
Arg [1] : initNotRevealedUri (string):
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
91629:6081:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58157:639;;;;;;;;;;-1:-1:-1;58157:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;58157:639:0;;;;;;;;93014:239;;;;;;;;;;-1:-1:-1;93014:239:0;;;;;:::i;:::-;;:::i;92598:408::-;;;;;;:::i;:::-;;:::i;:::-;;59059:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;65550:218::-;;;;;;;;;;-1:-1:-1;65550:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2317:32:1;;;2299:51;;2287:2;2272:18;65550:218:0;2153:203:1;92162:28:0;;;;;;;;;;;;;:::i;96980:159::-;;;;;;:::i;:::-;;:::i;54810:323::-;;;;;;;;;;-1:-1:-1;55084:12:0;;54871:7;55068:13;:28;54810:323;;;2944:25:1;;;2932:2;2917:18;54810:323:0;2798:177:1;97145:165:0;;;;;;:::i;:::-;;:::i;92241:25::-;;;;;;;;;;;;;;;;95553:92;;;;;;;;;;-1:-1:-1;95553:92:0;;;;;:::i;:::-;;:::i;91738:41::-;;;;;;;;;;;;91775:4;91738:41;;95375:80;;;;;;;;;;;;;:::i;8047:143::-;;;;;;;;;;;;463:42;8047:143;;97316:173;;;;;;:::i;:::-;;:::i;95463:82::-;;;;;;;;;;;;;:::i;96455:145::-;;;;;;;;;;-1:-1:-1;96455:145:0;;;;;:::i;:::-;;:::i;96355:92::-;;;;;;;;;;-1:-1:-1;96355:92:0;;;;;:::i;:::-;;:::i;95073:104::-;;;;;;;;;;-1:-1:-1;95073:104:0;;;;;:::i;:::-;;:::i;60452:152::-;;;;;;;;;;-1:-1:-1;60452:152:0;;;;;:::i;:::-;;:::i;93261:83::-;;;;;;;;;;;;;:::i;91989:39::-;;;;;;;;;;;;;;;;91864:29;;;;;;;;;;-1:-1:-1;91864:29:0;;;;-1:-1:-1;;;91864:29:0;;;;;;91786:33;;;;;;;;;;-1:-1:-1;91786:33:0;;;;-1:-1:-1;;;91786:33:0;;;;;;55994:233;;;;;;;;;;-1:-1:-1;55994:233:0;;;;;:::i;:::-;;:::i;38936:103::-;;;;;;;;;;;;;:::i;92036:29::-;;;;;;;;;;;;;;;;92073:26;;;;;;;;;;;;;;;;38288:87;;;;;;;;;;-1:-1:-1;38361:6:0;;-1:-1:-1;;;;;38361:6:0;38288:87;;95285:82;;;;;;;;;;;;;:::i;59235:104::-;;;;;;;;;;;;;:::i;96243:::-;;;;;;;;;;-1:-1:-1;96243:104:0;;;;;:::i;:::-;;:::i;96804:170::-;;;;;;;;;;-1:-1:-1;96804:170:0;;;;;:::i;:::-;;:::i;91944:37::-;;;;;;;;;;;;;;;;92107:26;;;;;;;;;;;;;;;;97495:210;;;;;;:::i;:::-;;:::i;92273:46::-;;;;;;;;;;-1:-1:-1;92273:46:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;92197:37;;;;;;;;;;;;;:::i;94115:740::-;;;;;;;;;;-1:-1:-1;94115:740:0;;;;;:::i;:::-;;:::i;91905:29::-;;;;;;;;;;-1:-1:-1;91905:29:0;;;;-1:-1:-1;;;91905:29:0;;;;;;95653:81;;;;;;;;;;;;;:::i;96084:151::-;;;;;;;;;;-1:-1:-1;96084:151:0;;;;;:::i;:::-;;:::i;94863:86::-;;;;;;;;;;-1:-1:-1;94863:86:0;;;;;:::i;:::-;;:::i;95185:92::-;;;;;;;;;;;;;:::i;91827:29::-;;;;;;;;;;-1:-1:-1;91827:29:0;;;;-1:-1:-1;;;91827:29:0;;;;;;66499:164;;;;;;;;;;-1:-1:-1;66499:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;66620:25:0;;;66596:4;66620:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;66499:164;93352:755;;;;;;:::i;:::-;;:::i;95950:126::-;;;;;;;;;;-1:-1:-1;95950:126:0;;;;;:::i;:::-;;:::i;39194:201::-;;;;;;;;;;-1:-1:-1;39194:201:0;;;;;:::i;:::-;;:::i;95742:100::-;;;;;;;;;;-1:-1:-1;95742:100:0;;;;;:::i;:::-;;:::i;95850:92::-;;;;;;;;;;-1:-1:-1;95850:92:0;;;;;:::i;:::-;;:::i;58157:639::-;58242:4;-1:-1:-1;;;;;;;;;58566:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;58643:25:0;;;58566:102;:179;;;-1:-1:-1;;;;;;;;;;58720:25:0;;;58566:179;58546:199;58157:639;-1:-1:-1;;58157:639:0:o;93014:239::-;93120:28;;-1:-1:-1;;93137:10:0;6864:2:1;6860:15;6856:53;93120:28:0;;;6844:66:1;93078:4:0;;;;6926:12:1;;93120:28:0;;;;;;;;;;;;93110:39;;;;;;93095:54;;93160:13;93176:43;93195:5;;93176:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;93202:10:0;;;-1:-1:-1;93214:4:0;;-1:-1:-1;93176:18:0;:43::i;:::-;93160:59;93014:239;-1:-1:-1;;;;;93014:239:0:o;92598:408::-;92674:9;;-1:-1:-1;;;92674:9:0;;;;92666:58;;;;-1:-1:-1;;;92666:58:0;;7151:2:1;92666:58:0;;;7133:21:1;7190:2;7170:18;;;7163:30;7229:34;7209:18;;;7202:62;-1:-1:-1;;;7280:18:1;;;7273:34;7324:19;;92666:58:0;;;;;;;;;92754:9;92743:7;;:20;;92735:49;;;;-1:-1:-1;;;92735:49:0;;7556:2:1;92735:49:0;;;7538:21:1;7595:2;7575:18;;;7568:30;-1:-1:-1;;;7614:18:1;;;7607:46;7670:18;;92735:49:0;7354:340:1;92735:49:0;92819:10;92804:26;;;;:14;:26;;;;;;;;92803:27;92795:55;;;;-1:-1:-1;;;92795:55:0;;7901:2:1;92795:55:0;;;7883:21:1;7940:2;7920:18;;;7913:30;-1:-1:-1;;;7959:18:1;;;7952:45;8014:18;;92795:55:0;7699:339:1;92795:55:0;92870:14;92878:5;;92870:7;:14::i;:::-;92862:47;;;;-1:-1:-1;;;92862:47:0;;8245:2:1;92862:47:0;;;8227:21:1;8284:2;8264:18;;;8257:30;-1:-1:-1;;;8303:18:1;;;8296:50;8363:18;;92862:47:0;8043:344:1;92862:47:0;92929:24;92939:10;92951:1;92929:9;:24::i;:::-;-1:-1:-1;;92980:10:0;92965:26;;;;:14;:26;;;;;:33;;-1:-1:-1;;92965:33:0;92994:4;92965:33;;;92598:408::o;59059:100::-;59113:13;59146:5;59139:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59059:100;:::o;65550:218::-;65626:7;65651:16;65659:7;65651;:16::i;:::-;65646:64;;65676:34;;-1:-1:-1;;;65676:34:0;;;;;;;;;;;65646:64;-1:-1:-1;65730:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;65730:30:0;;65550:218::o;92162:28::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;96980:159::-;97084:8;9829:30;9850:8;9829:20;:30::i;:::-;97101:32:::1;97115:8;97125:7;97101:13;:32::i;:::-;96980:159:::0;;;:::o;97145:165::-;97254:4;-1:-1:-1;;;;;9555:18:0;;9563:10;9555:18;9551:83;;9590:32;9611:10;9590:20;:32::i;:::-;97267:37:::1;97286:4;97292:2;97296:7;97267:18;:37::i;:::-;97145:165:::0;;;;:::o;95553:92::-;38174:13;:11;:13::i;:::-;95619:7:::1;:18:::0;95553:92::o;95375:80::-;38174:13;:11;:13::i;:::-;95438:9:::1;::::0;;-1:-1:-1;;;;95425:22:0;::::1;-1:-1:-1::0;;;95438:9:0;;;::::1;;;95437:10;95425:22:::0;;::::1;;::::0;;95375:80::o;97316:173::-;97429:4;-1:-1:-1;;;;;9555:18:0;;9563:10;9555:18;9551:83;;9590:32;9611:10;9590:20;:32::i;:::-;97442:41:::1;97465:4;97471:2;97475:7;97442:22;:41::i;95463:82::-:0;38174:13;:11;:13::i;:::-;95528:9:::1;::::0;;-1:-1:-1;;;;95515:22:0;::::1;-1:-1:-1::0;;;95528:9:0;;;::::1;;;95527:10;95515:22:::0;;::::1;;::::0;;95463:82::o;96455:145::-;38174:13;:11;:13::i;:::-;96563:29:::1;::::0;96531:21:::1;::::0;-1:-1:-1;;;;;96563:20:0;::::1;::::0;:29;::::1;;;::::0;96531:21;;96513:15:::1;96563:29:::0;96513:15;96563:29;96531:21;96563:20;:29;::::1;;;;;;;;;;;;;::::0;::::1;;;;96355:92:::0;38174:13;:11;:13::i;:::-;96421:7:::1;:18:::0;96355:92::o;95073:104::-;38174:13;:11;:13::i;:::-;95148:7:::1;:21;95158:11:::0;95148:7;:21:::1;:::i;:::-;;95073:104:::0;:::o;60452:152::-;60524:7;60567:27;60586:7;60567:18;:27::i;93261:83::-;93300:4;93323:13;55084:12;;54871:7;55068:13;:28;;54810:323;93323:13;93316:20;;93261:83;:::o;55994:233::-;56066:7;-1:-1:-1;;;;;56090:19:0;;56086:60;;56118:28;;-1:-1:-1;;;56118:28:0;;;;;;;;;;;56086:60;-1:-1:-1;;;;;;56164:25:0;;;;;:18;:25;;;;;;50153:13;56164:55;;55994:233::o;38936:103::-;38174:13;:11;:13::i;:::-;39001:30:::1;39028:1;39001:18;:30::i;:::-;38936:103::o:0;95285:82::-;38174:13;:11;:13::i;:::-;95350:9:::1;::::0;;-1:-1:-1;;;;95337:22:0;::::1;-1:-1:-1::0;;;95350:9:0;;;::::1;;;95349:10;95337:22:::0;;::::1;;::::0;;95285:82::o;59235:104::-;59291:13;59324:7;59317:14;;;;;:::i;96243:104::-;38174:13;:11;:13::i;:::-;96315:10:::1;:24:::0;96243:104::o;96804:170::-;96908:8;9829:30;9850:8;9829:20;:30::i;:::-;96925:43:::1;96949:8;96959;96925:23;:43::i;97495:210::-:0;97636:4;-1:-1:-1;;;;;9555:18:0;;9563:10;9555:18;9551:83;;9590:32;9611:10;9590:20;:32::i;:::-;97652:47:::1;97675:4;97681:2;97685:7;97694:4;97652:22;:47::i;:::-;97495:210:::0;;;;;:::o;92197:37::-;;;;;;;:::i;94115:740::-;94233:13;94286:16;94294:7;94286;:16::i;:::-;94264:97;;;;-1:-1:-1;;;94264:97:0;;11183:2:1;94264:97:0;;;11165:21:1;11222:2;11202:18;;;11195:30;11261:33;11241:18;;;11234:61;11312:18;;94264:97:0;10981:355:1;94264:97:0;94378:9;;-1:-1:-1;;;94378:9:0;;;;:18;;94391:5;94378:18;94374:72;;94420:14;94413:21;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94115:740;;;:::o;94374:72::-;94458:23;94484:19;;;:10;:19;;;;;94458:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94514:18;94535:10;:8;:10::i;:::-;94514:31;;94568:4;94562:18;94584:1;94562:23;94558:72;;-1:-1:-1;94609:9:0;94115:740;-1:-1:-1;;94115:740:0:o;94558:72::-;94646:23;;:27;94642:108;;94721:4;94727:9;94704:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;94690:48;;;;94115:740;;;:::o;94642:108::-;94806:4;94812:18;:7;:16;:18::i;:::-;94832:13;94789:57;;;;;;;;;;:::i;95653:81::-;38174:13;:11;:13::i;:::-;95702:24:::1;95712:10;95724:1;95702:9;:24::i;96084:151::-:0;38174:13;:11;:13::i;:::-;96194::::1;:33;96210:17:::0;96194:13;:33:::1;:::i;94863:86::-:0;38174:13;:11;:13::i;:::-;94923:10:::1;:18:::0;94863:86::o;95185:92::-;38174:13;:11;:13::i;:::-;95256::::1;::::0;;-1:-1:-1;;;;95239:30:0;::::1;-1:-1:-1::0;;;95256:13:0;;;::::1;;;95255:14;95239:30:::0;;::::1;;::::0;;95185:92::o;93352:755::-;91775:4;93459:13;93443;55084:12;;54871:7;55068:13;:28;;54810:323;93443:13;:29;;;;:::i;:::-;:43;;93421:121;;;;-1:-1:-1;;;93421:121:0;;13567:2:1;93421:121:0;;;13549:21:1;13606:2;13586:18;;;13579:30;13645;13625:18;;;13618:58;13693:18;;93421:121:0;13365:352:1;93421:121:0;93561:13;;-1:-1:-1;;;93561:13:0;;;;93553:57;;;;-1:-1:-1;;;93553:57:0;;13924:2:1;93553:57:0;;;13906:21:1;13963:2;13943:18;;;13936:30;14002:33;13982:18;;;13975:61;14053:18;;93553:57:0;13722:355:1;93553:57:0;93648:7;;93631:13;:24;;93623:67;;;;-1:-1:-1;;;93623:67:0;;14284:2:1;93623:67:0;;;14266:21:1;14323:2;14303:18;;;14296:30;14362:32;14342:18;;;14335:60;14412:18;;93623:67:0;14082:354:1;93623:67:0;93767:10;;93750:13;93725:21;93735:10;93725:9;:21::i;:::-;:38;;;;:::i;:::-;:52;;93703:132;;;;-1:-1:-1;;;93703:132:0;;14643:2:1;93703:132:0;;;14625:21:1;14682:2;14662:18;;;14655:30;14721:31;14701:18;;;14694:59;14770:18;;93703:132:0;14441:353:1;93703:132:0;93885:9;93872;;93856:13;:25;;;;:::i;:::-;:38;;93848:67;;;;-1:-1:-1;;;93848:67:0;;7556:2:1;93848:67:0;;;7538:21:1;7595:2;7575:18;;;7568:30;-1:-1:-1;;;7614:18:1;;;7607:46;7670:18;;93848:67:0;7354:340:1;93848:67:0;93932:9;;-1:-1:-1;;;93932:9:0;;;;93928:123;;;93999:7;;93982:13;93966;55084:12;;54871:7;55068:13;:28;;54810:323;93966:13;:29;;;;:::i;:::-;:40;;93958:81;;;;-1:-1:-1;;;93958:81:0;;13567:2:1;93958:81:0;;;13549:21:1;13606:2;13586:18;;;13579:30;13645;13625:18;;;13618:58;13693:18;;93958:81:0;13365:352:1;93958:81:0;94063:36;94073:10;94085:13;94063:9;:36::i;:::-;93352:755;:::o;95950:126::-;38174:13;:11;:13::i;:::-;96036:14:::1;:32;96053:15:::0;96036:14;:32:::1;:::i;39194:201::-:0;38174:13;:11;:13::i;:::-;-1:-1:-1;;;;;39283:22:0;::::1;39275:73;;;::::0;-1:-1:-1;;;39275:73:0;;15174:2:1;39275:73:0::1;::::0;::::1;15156:21:1::0;15213:2;15193:18;;;15186:30;15252:34;15232:18;;;15225:62;-1:-1:-1;;;15303:18:1;;;15296:36;15349:19;;39275:73:0::1;14972:402:1::0;39275:73:0::1;39359:28;39378:8;39359:18;:28::i;95742:100::-:0;38174:13;:11;:13::i;:::-;95812:9:::1;:22:::0;95742:100::o;95850:92::-;38174:13;:11;:13::i;:::-;95916:7:::1;:18:::0;95850:92::o;12622:190::-;12747:4;12800;12771:25;12784:5;12791:4;12771:12;:25::i;:::-;:33;;12622:190;-1:-1:-1;;;;12622:190:0:o;83061:112::-;83138:27;83148:2;83152:8;83138:27;;;;;;;;;;;;:9;:27::i;66921:282::-;66986:4;67076:13;;67066:7;:23;67023:153;;;;-1:-1:-1;;67127:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;67127:44:0;:49;;66921:282::o;9972:647::-;463:42;10163:45;:49;10159:453;;10462:67;;-1:-1:-1;;;10462:67:0;;10513:4;10462:67;;;15591:34:1;-1:-1:-1;;;;;15661:15:1;;15641:18;;;15634:43;463:42:0;;10462;;15526:18:1;;10462:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10457:144;;10557:28;;-1:-1:-1;;;10557:28:0;;-1:-1:-1;;;;;2317:32:1;;10557:28:0;;;2299:51:1;2272:18;;10557:28:0;2153:203:1;64983:408:0;65072:13;65088:16;65096:7;65088;:16::i;:::-;65072:32;-1:-1:-1;89316:10:0;-1:-1:-1;;;;;65121:28:0;;;65117:175;;65169:44;65186:5;89316:10;66499:164;:::i;65169:44::-;65164:128;;65241:35;;-1:-1:-1;;;65241:35:0;;;;;;;;;;;65164:128;65304:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;65304:35:0;-1:-1:-1;;;;;65304:35:0;;;;;;;;;65355:28;;65304:24;;65355:28;;;;;;;65061:330;64983:408;;:::o;69189:2825::-;69331:27;69361;69380:7;69361:18;:27::i;:::-;69331:57;;69446:4;-1:-1:-1;;;;;69405:45:0;69421:19;-1:-1:-1;;;;;69405:45:0;;69401:86;;69459:28;;-1:-1:-1;;;69459:28:0;;;;;;;;;;;69401:86;69501:27;68297:24;;;:15;:24;;;;;68525:26;;89316:10;67922:30;;;-1:-1:-1;;;;;67615:28:0;;67900:20;;;67897:56;69687:180;;69780:43;69797:4;89316:10;66499:164;:::i;69780:43::-;69775:92;;69832:35;;-1:-1:-1;;;69832:35:0;;;;;;;;;;;69775:92;-1:-1:-1;;;;;69884:16:0;;69880:52;;69909:23;;-1:-1:-1;;;69909:23:0;;;;;;;;;;;69880:52;70081:15;70078:160;;;70221:1;70200:19;70193:30;70078:160;-1:-1:-1;;;;;70618:24:0;;;;;;;:18;:24;;;;;;70616:26;;-1:-1:-1;;70616:26:0;;;70687:22;;;;;;;;;70685:24;;-1:-1:-1;70685:24:0;;;63841:11;63816:23;63812:41;63799:63;-1:-1:-1;;;63799:63:0;70980:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;71275:47:0;;:52;;71271:627;;71380:1;71370:11;;71348:19;71503:30;;;:17;:30;;;;;;:35;;71499:384;;71641:13;;71626:11;:28;71622:242;;71788:30;;;;:17;:30;;;;;:52;;;71622:242;71329:569;71271:627;71945:7;71941:2;-1:-1:-1;;;;;71926:27:0;71935:4;-1:-1:-1;;;;;71926:27:0;;;;;;;;;;;71964:42;69320:2694;;;69189:2825;;;:::o;38453:132::-;38361:6;;-1:-1:-1;;;;;38361:6:0;89316:10;38517:23;38509:68;;;;-1:-1:-1;;;38509:68:0;;16140:2:1;38509:68:0;;;16122:21:1;;;16159:18;;;16152:30;16218:34;16198:18;;;16191:62;16270:18;;38509:68:0;15938:356:1;72110:193:0;72256:39;72273:4;72279:2;72283:7;72256:39;;;;;;;;;;;;:16;:39::i;61607:1275::-;61674:7;61709;61811:13;;61804:4;:20;61800:1015;;;61849:14;61866:23;;;:17;:23;;;;;;;-1:-1:-1;;;61955:24:0;;:29;;61951:845;;62620:113;62627:6;62637:1;62627:11;62620:113;;-1:-1:-1;;;62698:6:0;62680:25;;;;:17;:25;;;;;;62620:113;;;62766:6;61607:1275;-1:-1:-1;;;61607:1275:0:o;61951:845::-;61826:989;61800:1015;62843:31;;-1:-1:-1;;;62843:31:0;;;;;;;;;;;39555:191;39648:6;;;-1:-1:-1;;;;;39665:17:0;;;-1:-1:-1;;;;;;39665:17:0;;;;;;;39698:40;;39648:6;;;39665:17;39648:6;;39698:40;;39629:16;;39698:40;39618:128;39555:191;:::o;66108:234::-;89316:10;66203:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;66203:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;66203:60:0;;;;;;;;;;66279:55;;540:41:1;;;66203:49:0;;89316:10;66279:55;;513:18:1;66279:55:0;;;;;;;66108:234;;:::o;72901:407::-;73076:31;73089:4;73095:2;73099:7;73076:12;:31::i;:::-;-1:-1:-1;;;;;73122:14:0;;;:19;73118:183;;73161:56;73192:4;73198:2;73202:7;73211:5;73161:30;:56::i;:::-;73156:145;;73245:40;;-1:-1:-1;;;73245:40:0;;;;;;;;;;;94957:108;95017:13;95050:7;95043:14;;;;;:::i;34266:716::-;34322:13;34373:14;34390:17;34401:5;34390:10;:17::i;:::-;34410:1;34390:21;34373:38;;34426:20;34460:6;34449:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34449:18:0;-1:-1:-1;34426:41:0;-1:-1:-1;34591:28:0;;;34607:2;34591:28;34648:288;-1:-1:-1;;34680:5:0;-1:-1:-1;;;34817:2:0;34806:14;;34801:30;34680:5;34788:44;34878:2;34869:11;;;-1:-1:-1;34899:21:0;34648:288;34899:21;-1:-1:-1;34957:6:0;34266:716;-1:-1:-1;;;34266:716:0:o;13489:296::-;13572:7;13615:4;13572:7;13630:118;13654:5;:12;13650:1;:16;13630:118;;;13703:33;13713:12;13727:5;13733:1;13727:8;;;;;;;;:::i;:::-;;;;;;;13703:9;:33::i;:::-;13688:48;-1:-1:-1;13668:3:0;;;;:::i;:::-;;;;13630:118;;;-1:-1:-1;13765:12:0;13489:296;-1:-1:-1;;;13489:296:0:o;82288:689::-;82419:19;82425:2;82429:8;82419:5;:19::i;:::-;-1:-1:-1;;;;;82480:14:0;;;:19;82476:483;;82520:11;82534:13;82582:14;;;82615:233;82646:62;82685:1;82689:2;82693:7;;;;;;82702:5;82646:30;:62::i;:::-;82641:167;;82744:40;;-1:-1:-1;;;82744:40:0;;;;;;;;;;;82641:167;82843:3;82835:5;:11;82615:233;;82930:3;82913:13;;:20;82909:34;;82935:8;;;75392:716;75576:88;;-1:-1:-1;;;75576:88:0;;75555:4;;-1:-1:-1;;;;;75576:45:0;;;;;:88;;89316:10;;75643:4;;75649:7;;75658:5;;75576:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;75576:88:0;;;;;;;;-1:-1:-1;;75576:88:0;;;;;;;;;;;;:::i;:::-;;;75572:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75859:6;:13;75876:1;75859:18;75855:235;;75905:40;;-1:-1:-1;;;75905:40:0;;;;;;;;;;;75855:235;76048:6;76042:13;76033:6;76029:2;76025:15;76018:38;75572:529;-1:-1:-1;;;;;;75735:64:0;-1:-1:-1;;;75735:64:0;;-1:-1:-1;75572:529:0;75392:716;;;;;;:::o;31132:922::-;31185:7;;-1:-1:-1;;;31263:15:0;;31259:102;;-1:-1:-1;;;31299:15:0;;;-1:-1:-1;31343:2:0;31333:12;31259:102;31388:6;31379:5;:15;31375:102;;31424:6;31415:15;;;-1:-1:-1;31459:2:0;31449:12;31375:102;31504:6;31495:5;:15;31491:102;;31540:6;31531:15;;;-1:-1:-1;31575:2:0;31565:12;31491:102;31620:5;31611;:14;31607:99;;31655:5;31646:14;;;-1:-1:-1;31689:1:0;31679:11;31607:99;31733:5;31724;:14;31720:99;;31768:5;31759:14;;;-1:-1:-1;31802:1:0;31792:11;31720:99;31846:5;31837;:14;31833:99;;31881:5;31872:14;;;-1:-1:-1;31915:1:0;31905:11;31833:99;31959:5;31950;:14;31946:66;;31995:1;31985:11;32040:6;31132:922;-1:-1:-1;;31132:922:0:o;20529:149::-;20592:7;20623:1;20619;:5;:51;;20754:13;20848:15;;;20884:4;20877:15;;;20931:4;20915:21;;20619:51;;;-1:-1:-1;20754:13:0;20848:15;;;20884:4;20877:15;20931:4;20915:21;;;20529:149::o;76570:2966::-;76643:20;76666:13;;;76694;;;76690:44;;76716:18;;-1:-1:-1;;;76716:18:0;;;;;;;;;;;76690:44;-1:-1:-1;;;;;77222:22:0;;;;;;:18;:22;;;;50291:2;77222:22;;;:71;;77260:32;77248:45;;77222:71;;;77536:31;;;:17;:31;;;;;-1:-1:-1;64272:15:0;;64246:24;64242:46;63841:11;63816:23;63812:41;63809:52;63799:63;;77536:173;;77771:23;;;;77536:31;;77222:22;;78536:25;77222:22;;78389:335;79050:1;79036:12;79032:20;78990:346;79091:3;79082:7;79079:16;78990:346;;79309:7;79299:8;79296:1;79269:25;79266:1;79263;79258:59;79144:1;79131:15;78990:346;;;78994:77;79369:8;79381:1;79369:13;79365:45;;79391:19;;-1:-1:-1;;;79391:19:0;;;;;;;;;;;79365:45;79427:13;:19;-1:-1:-1;96980:159:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:615::-;678:6;686;739:2;727:9;718:7;714:23;710:32;707:52;;;755:1;752;745:12;707:52;795:9;782:23;824:18;865:2;857:6;854:14;851:34;;;881:1;878;871:12;851:34;919:6;908:9;904:22;894:32;;964:7;957:4;953:2;949:13;945:27;935:55;;986:1;983;976:12;935:55;1026:2;1013:16;1052:2;1044:6;1041:14;1038:34;;;1068:1;1065;1058:12;1038:34;1121:7;1116:2;1106:6;1103:1;1099:14;1095:2;1091:23;1087:32;1084:45;1081:65;;;1142:1;1139;1132:12;1081:65;1173:2;1165:11;;;;;1195:6;;-1:-1:-1;592:615:1;;-1:-1:-1;;;;592:615:1:o;1212:250::-;1297:1;1307:113;1321:6;1318:1;1315:13;1307:113;;;1397:11;;;1391:18;1378:11;;;1371:39;1343:2;1336:10;1307:113;;;-1:-1:-1;;1454:1:1;1436:16;;1429:27;1212:250::o;1467:271::-;1509:3;1547:5;1541:12;1574:6;1569:3;1562:19;1590:76;1659:6;1652:4;1647:3;1643:14;1636:4;1629:5;1625:16;1590:76;:::i;:::-;1720:2;1699:15;-1:-1:-1;;1695:29:1;1686:39;;;;1727:4;1682:50;;1467:271;-1:-1:-1;;1467:271:1:o;1743:220::-;1892:2;1881:9;1874:21;1855:4;1912:45;1953:2;1942:9;1938:18;1930:6;1912:45;:::i;1968:180::-;2027:6;2080:2;2068:9;2059:7;2055:23;2051:32;2048:52;;;2096:1;2093;2086:12;2048:52;-1:-1:-1;2119:23:1;;1968:180;-1:-1:-1;1968:180:1:o;2361:173::-;2429:20;;-1:-1:-1;;;;;2478:31:1;;2468:42;;2458:70;;2524:1;2521;2514:12;2458:70;2361:173;;;:::o;2539:254::-;2607:6;2615;2668:2;2656:9;2647:7;2643:23;2639:32;2636:52;;;2684:1;2681;2674:12;2636:52;2707:29;2726:9;2707:29;:::i;:::-;2697:39;2783:2;2768:18;;;;2755:32;;-1:-1:-1;;;2539:254:1:o;2980:328::-;3057:6;3065;3073;3126:2;3114:9;3105:7;3101:23;3097:32;3094:52;;;3142:1;3139;3132:12;3094:52;3165:29;3184:9;3165:29;:::i;:::-;3155:39;;3213:38;3247:2;3236:9;3232:18;3213:38;:::i;:::-;3203:48;;3298:2;3287:9;3283:18;3270:32;3260:42;;2980:328;;;;;:::o;3734:186::-;3793:6;3846:2;3834:9;3825:7;3821:23;3817:32;3814:52;;;3862:1;3859;3852:12;3814:52;3885:29;3904:9;3885:29;:::i;3925:127::-;3986:10;3981:3;3977:20;3974:1;3967:31;4017:4;4014:1;4007:15;4041:4;4038:1;4031:15;4057:632;4122:5;4152:18;4193:2;4185:6;4182:14;4179:40;;;4199:18;;:::i;:::-;4274:2;4268:9;4242:2;4328:15;;-1:-1:-1;;4324:24:1;;;4350:2;4320:33;4316:42;4304:55;;;4374:18;;;4394:22;;;4371:46;4368:72;;;4420:18;;:::i;:::-;4460:10;4456:2;4449:22;4489:6;4480:15;;4519:6;4511;4504:22;4559:3;4550:6;4545:3;4541:16;4538:25;4535:45;;;4576:1;4573;4566:12;4535:45;4626:6;4621:3;4614:4;4606:6;4602:17;4589:44;4681:1;4674:4;4665:6;4657;4653:19;4649:30;4642:41;;;;4057:632;;;;;:::o;4694:451::-;4763:6;4816:2;4804:9;4795:7;4791:23;4787:32;4784:52;;;4832:1;4829;4822:12;4784:52;4872:9;4859:23;4905:18;4897:6;4894:30;4891:50;;;4937:1;4934;4927:12;4891:50;4960:22;;5013:4;5005:13;;5001:27;-1:-1:-1;4991:55:1;;5042:1;5039;5032:12;4991:55;5065:74;5131:7;5126:2;5113:16;5108:2;5104;5100:11;5065:74;:::i;5150:118::-;5236:5;5229:13;5222:21;5215:5;5212:32;5202:60;;5258:1;5255;5248:12;5273:315;5338:6;5346;5399:2;5387:9;5378:7;5374:23;5370:32;5367:52;;;5415:1;5412;5405:12;5367:52;5438:29;5457:9;5438:29;:::i;:::-;5428:39;;5517:2;5506:9;5502:18;5489:32;5530:28;5552:5;5530:28;:::i;:::-;5577:5;5567:15;;;5273:315;;;;;:::o;5593:667::-;5688:6;5696;5704;5712;5765:3;5753:9;5744:7;5740:23;5736:33;5733:53;;;5782:1;5779;5772:12;5733:53;5805:29;5824:9;5805:29;:::i;:::-;5795:39;;5853:38;5887:2;5876:9;5872:18;5853:38;:::i;:::-;5843:48;;5938:2;5927:9;5923:18;5910:32;5900:42;;5993:2;5982:9;5978:18;5965:32;6020:18;6012:6;6009:30;6006:50;;;6052:1;6049;6042:12;6006:50;6075:22;;6128:4;6120:13;;6116:27;-1:-1:-1;6106:55:1;;6157:1;6154;6147:12;6106:55;6180:74;6246:7;6241:2;6228:16;6223:2;6219;6215:11;6180:74;:::i;:::-;6170:84;;;5593:667;;;;;;;:::o;6450:260::-;6518:6;6526;6579:2;6567:9;6558:7;6554:23;6550:32;6547:52;;;6595:1;6592;6585:12;6547:52;6618:29;6637:9;6618:29;:::i;:::-;6608:39;;6666:38;6700:2;6689:9;6685:18;6666:38;:::i;:::-;6656:48;;6450:260;;;;;:::o;8392:380::-;8471:1;8467:12;;;;8514;;;8535:61;;8589:4;8581:6;8577:17;8567:27;;8535:61;8642:2;8634:6;8631:14;8611:18;8608:38;8605:161;;8688:10;8683:3;8679:20;8676:1;8669:31;8723:4;8720:1;8713:15;8751:4;8748:1;8741:15;8605:161;;8392:380;;;:::o;8903:545::-;9005:2;9000:3;8997:11;8994:448;;;9041:1;9066:5;9062:2;9055:17;9111:4;9107:2;9097:19;9181:2;9169:10;9165:19;9162:1;9158:27;9152:4;9148:38;9217:4;9205:10;9202:20;9199:47;;;-1:-1:-1;9240:4:1;9199:47;9295:2;9290:3;9286:12;9283:1;9279:20;9273:4;9269:31;9259:41;;9350:82;9368:2;9361:5;9358:13;9350:82;;;9413:17;;;9394:1;9383:13;9350:82;;9624:1352;9750:3;9744:10;9777:18;9769:6;9766:30;9763:56;;;9799:18;;:::i;:::-;9828:97;9918:6;9878:38;9910:4;9904:11;9878:38;:::i;:::-;9872:4;9828:97;:::i;:::-;9980:4;;10044:2;10033:14;;10061:1;10056:663;;;;10763:1;10780:6;10777:89;;;-1:-1:-1;10832:19:1;;;10826:26;10777:89;-1:-1:-1;;9581:1:1;9577:11;;;9573:24;9569:29;9559:40;9605:1;9601:11;;;9556:57;10879:81;;10026:944;;10056:663;8850:1;8843:14;;;8887:4;8874:18;;-1:-1:-1;;10092:20:1;;;10210:236;10224:7;10221:1;10218:14;10210:236;;;10313:19;;;10307:26;10292:42;;10405:27;;;;10373:1;10361:14;;;;10240:19;;10210:236;;;10214:3;10474:6;10465:7;10462:19;10459:201;;;10535:19;;;10529:26;-1:-1:-1;;10618:1:1;10614:14;;;10630:3;10610:24;10606:37;10602:42;10587:58;10572:74;;10459:201;-1:-1:-1;;;;;10706:1:1;10690:14;;;10686:22;10673:36;;-1:-1:-1;9624:1352:1:o;11341:496::-;11520:3;11558:6;11552:13;11574:66;11633:6;11628:3;11621:4;11613:6;11609:17;11574:66;:::i;:::-;11703:13;;11662:16;;;;11725:70;11703:13;11662:16;11772:4;11760:17;;11725:70;:::i;:::-;11811:20;;11341:496;-1:-1:-1;;;;11341:496:1:o;11842:1256::-;12066:3;12104:6;12098:13;12130:4;12143:64;12200:6;12195:3;12190:2;12182:6;12178:15;12143:64;:::i;:::-;12270:13;;12229:16;;;;12292:68;12270:13;12229:16;12327:15;;;12292:68;:::i;:::-;12449:13;;12382:20;;;12422:1;;12487:36;12449:13;12487:36;:::i;:::-;12542:1;12559:18;;;12586:141;;;;12741:1;12736:337;;;;12552:521;;12586:141;-1:-1:-1;;12621:24:1;;12607:39;;12698:16;;12691:24;12677:39;;12666:51;;;-1:-1:-1;12586:141:1;;12736:337;12767:6;12764:1;12757:17;12815:2;12812:1;12802:16;12840:1;12854:169;12868:8;12865:1;12862:15;12854:169;;;12950:14;;12935:13;;;12928:37;12993:16;;;;12885:10;;12854:169;;;12858:3;;13054:8;13047:5;13043:20;13036:27;;12552:521;-1:-1:-1;13089:3:1;;11842:1256;-1:-1:-1;;;;;;;;;;11842:1256:1:o;13103:127::-;13164:10;13159:3;13155:20;13152:1;13145:31;13195:4;13192:1;13185:15;13219:4;13216:1;13209:15;13235:125;13300:9;;;13321:10;;;13318:36;;;13334:18;;:::i;14799:168::-;14872:9;;;14903;;14920:15;;;14914:22;;14900:37;14890:71;;14941:18;;:::i;15688:245::-;15755:6;15808:2;15796:9;15787:7;15783:23;15779:32;15776:52;;;15824:1;15821;15814:12;15776:52;15856:9;15850:16;15875:28;15897:5;15875:28;:::i;16431:127::-;16492:10;16487:3;16483:20;16480:1;16473:31;16523:4;16520:1;16513:15;16547:4;16544:1;16537:15;16563:135;16602:3;16623:17;;;16620:43;;16643:18;;:::i;:::-;-1:-1:-1;16690:1:1;16679:13;;16563:135::o;16703:489::-;-1:-1:-1;;;;;16972:15:1;;;16954:34;;17024:15;;17019:2;17004:18;;16997:43;17071:2;17056:18;;17049:34;;;17119:3;17114:2;17099:18;;17092:31;;;16897:4;;17140:46;;17166:19;;17158:6;17140:46;:::i;:::-;17132:54;16703:489;-1:-1:-1;;;;;;16703:489:1:o;17197:249::-;17266:6;17319:2;17307:9;17298:7;17294:23;17290:32;17287:52;;;17335:1;17332;17325:12;17287:52;17367:9;17361:16;17386:30;17410:5;17386:30;:::i
Swarm Source
ipfs://152e6e697e56a104be5b4215fe3d0603217086f41bd795394008600e9cd831b1
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.