ERC-1155
Overview
Max Total Supply
4,444 KNCW
Holders
1,302
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:
KonNeeCheeWahs
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-16 */ // SPDX-License-Identifier: MIT // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the Merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates Merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** *@dev The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/StorageSlot.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Arrays.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to array types. */ library Arrays { using StorageSlot for bytes32; /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { uint256 low = 0; uint256 high = array.length; if (high == 0) { return 0; } while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds towards zero (it does integer division with truncation). if (unsafeAccess(array, mid).value > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && unsafeAccess(array, low - 1).value == element) { return low - 1; } else { return low; } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getAddressSlot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getBytes32Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getUint256Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) { assembly { res := mload(add(add(arr, 0x20), mul(pos, 0x20))) } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) { assembly { res := mload(add(add(arr, 0x20), mul(pos, 0x20))) } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Pausable.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/IERC1155Receiver.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.20; /** * @dev Interface that must be implemented by smart contracts in order to receive * ERC-1155 token transfers. */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/IERC1155.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.20; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the value of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] calldata accounts, uint256[] calldata ids ) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155Received} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `value` amount. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments. * * Requirements: * * - `ids` and `values` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external; } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.20; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/ERC1155.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 */ abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors { using Arrays for uint256[]; using Arrays for address[]; mapping(uint256 id => mapping(address account => uint256)) private _balances; mapping(address account => mapping(address operator => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256 /* id */) public view virtual returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. */ function balanceOf(address account, uint256 id) public view virtual returns (uint256) { return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch( address[] memory accounts, uint256[] memory ids ) public view virtual returns (uint256[] memory) { if (accounts.length != ids.length) { revert ERC1155InvalidArrayLength(ids.length, accounts.length); } uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts.unsafeMemoryAccess(i), ids.unsafeMemoryAccess(i)); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeTransferFrom(from, to, id, value, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeBatchTransferFrom(from, to, ids, values, data); } /** * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from` * (or `to`) is the zero address. * * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise. * * Requirements: * * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received} * or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. * - `ids` and `values` must have the same length. * * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead. */ function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual { if (ids.length != values.length) { revert ERC1155InvalidArrayLength(ids.length, values.length); } address operator = _msgSender(); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids.unsafeMemoryAccess(i); uint256 value = values.unsafeMemoryAccess(i); if (from != address(0)) { uint256 fromBalance = _balances[id][from]; if (fromBalance < value) { revert ERC1155InsufficientBalance(from, fromBalance, value, id); } unchecked { // Overflow not possible: value <= fromBalance _balances[id][from] = fromBalance - value; } } if (to != address(0)) { _balances[id][to] += value; } } if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); emit TransferSingle(operator, from, to, id, value); } else { emit TransferBatch(operator, from, to, ids, values); } } /** * @dev Version of {_update} that performs the token acceptance check by calling * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it * contains code (eg. is a smart contract at the moment of execution). * * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any * update to the contract state after this function would break the check-effect-interaction pattern. Consider * overriding {_update} instead. */ function _updateWithAcceptanceCheck( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal virtual { _update(from, to, ids, values); if (to != address(0)) { address operator = _msgSender(); if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data); } else { _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data); } } } /** * @dev Transfers a `value` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `value` amount. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, to, ids, values, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. * - `ids` and `values` must have the same length. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, to, ids, values, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the values in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates a `value` amount of tokens of type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint(address to, uint256 id, uint256 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `values` must have the same length. * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch(address to, uint256[] memory ids, uint256[] memory values, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev Destroys a `value` amount of tokens of type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. */ function _burn(address from, uint256 id, uint256 value) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. * - `ids` and `values` must have the same length. */ function _burnBatch(address from, uint256[] memory ids, uint256[] memory values) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the zero address. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC1155InvalidOperator(address(0)); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address * if it contains code at the moment of execution. */ function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 value, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address * if it contains code at the moment of execution. */ function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Creates an array in memory with only one value for each of the elements provided. */ function _asSingletonArrays( uint256 element1, uint256 element2 ) private pure returns (uint256[] memory array1, uint256[] memory array2) { /// @solidity memory-safe-assembly assembly { // Load the free memory pointer array1 := mload(0x40) // Set array length to 1 mstore(array1, 1) // Store the single element at the next word after the length (where content starts) mstore(add(array1, 0x20), element1) // Repeat for next array locating it right after the first array array2 := add(array1, 0x40) mstore(array2, 1) mstore(add(array2, 0x20), element2) // Update the free memory pointer by pointing after the second array mstore(0x40, add(array2, 0x40)) } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/extensions/ERC1155Supply.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.20; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. * * NOTE: This contract implies a global limit of 2**256 - 1 to the number of tokens * that can be minted. * * CAUTION: This extension should not be added in an upgrade to an already deployed contract. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 id => uint256) private _totalSupply; uint256 private _totalSupplyAll; /** * @dev Total value of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Total value of tokens. */ function totalSupply() public view virtual returns (uint256) { return _totalSupplyAll; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return totalSupply(id) > 0; } /** * @dev See {ERC1155-_update}. */ function _update( address from, address to, uint256[] memory ids, uint256[] memory values ) internal virtual override { super._update(from, to, ids, values); if (from == address(0)) { uint256 totalMintValue = 0; for (uint256 i = 0; i < ids.length; ++i) { uint256 value = values[i]; // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply[ids[i]] += value; totalMintValue += value; } // Overflow check required: The rest of the code assumes that totalSupplyAll never overflows _totalSupplyAll += totalMintValue; } if (to == address(0)) { uint256 totalBurnValue = 0; for (uint256 i = 0; i < ids.length; ++i) { uint256 value = values[i]; unchecked { // Overflow not possible: values[i] <= balanceOf(from, ids[i]) <= totalSupply(ids[i]) _totalSupply[ids[i]] -= value; // Overflow not possible: sum_i(values[i]) <= sum_i(totalSupply(ids[i])) <= totalSupplyAll totalBurnValue += value; } } unchecked { // Overflow not possible: totalBurnValue = sum_i(values[i]) <= sum_i(totalSupply(ids[i])) <= totalSupplyAll _totalSupplyAll -= totalBurnValue; } } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/extensions/ERC1155Pausable.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/ERC1155Pausable.sol) pragma solidity ^0.8.20; /** * @dev ERC1155 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * IMPORTANT: This contract does not include public pause and unpause functions. In * addition to inheriting this contract, you must define both functions, invoking the * {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate * access control, e.g. using {AccessControl} or {Ownable}. Not doing so will * make the contract pause mechanism of the contract unreachable, and thus unusable. */ abstract contract ERC1155Pausable is ERC1155, Pausable { /** * @dev See {ERC1155-_update}. * * Requirements: * * - the contract must not be paused. */ function _update( address from, address to, uint256[] memory ids, uint256[] memory values ) internal virtual override whenNotPaused { super._update(from, to, ids, values); } } // File: contracts/KonNeeCheeWahs.sol pragma solidity ^0.8.20; /* ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ......................*@@#...........%@#..********,...,@@%......(@@,................................................................................. .................,####%@@#########,,*@@,,*%%%%%@@@#...,@@*..,.,,(@&,................................................................................. ..................,,,,&@%,,,,,,,,,*%@@%%@@,..@@@*..,@@@@@@@@@@@@@@@@@.............................................................../................ ...................../@@@@@@@@@&.../@@.(@@@@@@@@@@@&.*@@@@(*@@(.(@@................................................................%@@(.............. ..................../@@&@@*,@@%...,@@@@@@,...@@/....#@&@@#@%.%@&(@&..............................................................,&@@@#.............. ..................,@@&,.,@@@@/.......&@@@@*..@@/...,&(,@@*......(@@.............................................................,@@%,..,%/........... .................*&&(@@@@(..*%@@@@#@@@*..*#@@@@/......,@@*...*@@@@&............................................................/#,..*@@@@@%,......... .................................................................................................................................*#*................. ................ .,****,......,,...,************,.,*************,...........**************...*************...,*************.......................... .................*(((((|*((((((/.../((((((((((((*,((((((((((((((/..........*((((((((((((((*../((((((((((((*..*(((((((((((((.......................... ..................,/(((((((((((/.../(((/,.,,((((*.,/((((,..,((((*...........,/((((...,((((*../(((/,,,,,,,,...*((((*,,,,,,,,..*....................... ..............#@&../(((((/(((,...,(((((/....((((,..*(((/....((((*.*(((((((,../(((/...,((((*,(((((((((((((/../(((((((((((((../........................ ...................//((*.*|((//..,,/////...,//(/,..*((//....//((*..,,,,,,,.../////...,///|*,,//((|******,,.,,*(((|**,,***,........................... ...................///|*.../////...*|///////////,..*|///....///|*..#%%%%%%#../////...,////,..*|//////////|*..*|////////////.......................... ...................**,......,*.....*|///////////,..,*,......*,,...........,..**,......*,.....*|//////////|*..,/////////////.......................... ..................,,,,,,,,,,...,,,....,,,..,,,,,,,,,,..,,,,,,,,,..........................,,,,,,,,,...,,....,,,..,,,,,,,,,........................... .................*|////////|*..*|/,..*||*..////////|*..////////|*.........*||*.///,,///..*|////////,.*||*...///,,/////////,.,........................ .................../|*,..*,,..*||*|*||*|*.*|////////,.*|////////,.,,,,,,..*|/,.///,,///.*|/////|*|*,,//////|*|/...*|///,....,........................ ..............*(*..***,..****,*************|********.,**********..******..***,.***,,***,********|**,***********.....,****,........................... ................,..**********..***,..****..**********..*********,../(/,..**************..,***..,***..****...***,,*********,.,........................ ................,...........................................................................................................,........................ ................/@@@@@@@@@@@@@@@%(*&@@&##@@@@@@@@@@@@@@@@@@@@@@@@@@,./@@@@@@@@@@@@@@@@@&@@&#(#@@@#(@@@&#/(@@@#&@@@@@@@@@@@@@#........................ ..................................................................................................................................................... ..............................................................................................&/@/%#/&..%#..&&|*&,.,@,............................... ............................................................................................../&&.%#/@..%#.*@@%/&*@,@,............................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... ..................................................................................................................................................... */ contract KonNeeCheeWahs is ERC1155, Ownable, ERC1155Pausable, ERC1155Supply { string public name; string public symbol; string[2] public uriPS; mapping(address => uint256) public allowID; mapping(address => uint256) public walletMinted; uint256 public mintLimit; uint256 public currentSupply; uint256 public reserve; uint256 public publicMintDate; uint256 public cost; uint256 public wlWindow; address public vault; bytes32 public root; bool public revealed; // 0x2A64e3325EC422431e00B5a654986e24Cc926a9A constructor() ERC1155("") Ownable(msg.sender) { // こんにちは name = "KonNeeCheeWahs"; symbol = "KNCW"; reserve = 780; mintLimit = 3; vault = msg.sender; _mint(msg.sender, 0, 1, ""); _pause(); } function mintPhase() public view returns(uint256) { // 段階 // 0 = not open, 1 = WL, 2 = public if(publicMintDate == 0){ return 0; } if(block.timestamp < publicMintDate){ return 1; } else { return 2; } } function setMintLimit(uint256 newLimit) public onlyOwner { // 上限 // set max mint limit mintLimit = newLimit; } function beginMint() public onlyOwner { // 始める _unpause(); publicMintDate = block.timestamp + wlWindow; // WL mint window in seconds } function setWLTime(uint256 addTime) public onlyOwner { // タイマーをセットする // set added time in seconds for WL phase wlWindow = addTime; } function setCost(uint256 newCost) public onlyOwner { // コストを調整する // option to adjust cost cost = newCost; } function getCost() public view returns(uint256) { // 代金 if(mintPhase() >= 2){ return cost; } else { return 0; } } function setPause(bool _pauseState) public onlyOwner { // 休止 if(_pauseState){ _pause(); } else { _unpause(); } } function setRoot(bytes32 newRoot) public onlyOwner { root = newRoot; } function setURI(bool _reveal, string[2] memory newUri) public onlyOwner { revealed = _reveal; uriPS[0] = newUri[0]; uriPS[1] = newUri[1]; } function setVault(address newVault) public onlyOwner { vault = newVault; } function setAllow(address _user, uint256 _allowID) public onlyOwner { allowID[_user] = _allowID; } function addReserves(uint256 amount) public onlyOwner { // 予約金額に加算 // add amount to reserves reserve += amount; } function reservesMint(address to, uint256 mintCount) public { // 予備供給 require(reserve - mintCount >= 0, "Lower Count"); if(msg.sender != owner()){ require(allowID[msg.sender] > 0, "Not Allowed"); require(allowID[msg.sender] <= mintCount, "Lower Count"); allowID[msg.sender] -= mintCount; } reserve -= mintCount; if(mintCount == 1){ currentSupply++; _mint(to, currentSupply, 1, ""); } else{ uint256[] memory _newIds = new uint256[](mintCount); uint256[] memory _amounts = new uint256[](mintCount); for (uint256 i = 0; i < mintCount; i++) { currentSupply++; _newIds[i] = currentSupply; _amounts[i] = 1; } _mintBatch(to, _newIds, _amounts, ""); } } function mint(address to, uint256 mintCount, bytes32[] memory proof) payable public whenNotPaused { // 一, に, 三 | 作る require(mintCount >= 1 && mintCount <= 3, "1, 2, Or 3 Count"); require(walletMinted[to] < mintLimit, "Max Mint Limit"); require(currentSupply + mintCount < totalSupply() - reserve, "Public Minted Out"); if(block.timestamp < publicMintDate){ if(root != bytes32(0)){ require(verifyWL(proof, to), "Not On List"); } } else{ require(msg.value >= getCost() * mintCount, "Payment Required"); } walletMinted[to] += mintCount; if(mintCount == 1){ currentSupply++; _mint(to, currentSupply, 1, ""); return; } uint256[] memory _newIds = new uint256[](mintCount); uint256[] memory _amounts = new uint256[](mintCount); for (uint256 i = 0; i < mintCount; i++) { currentSupply++; _newIds[i] = currentSupply; _amounts[i] = 1; } _mintBatch(to, _newIds, _amounts, ""); } function verifyWL(bytes32[] memory proof, address _user) public view returns (bool) { if (proof.length != 0){ if (MerkleProof.verify(proof, root, keccak256(abi.encodePacked(_user)))) { return (true); } } return (false); } function uri(uint256 _id) override public view returns (string memory) { require(exists(_id), "Token Does Not Exist"); if(revealed){ return string(abi.encodePacked(uriPS[0], Strings.toString(_id), uriPS[1])); } else{ return string(abi.encodePacked(uriPS[0], "hidden", uriPS[1])); } } function totalSupply() override public pure returns (uint256) { return 4444; } function withdraw() public { require(allowID[msg.sender] > 0, "Not Allowed"); require(vault != address(0), "Vault Not Added"); uint256 balance = address(this).balance; require(balance > 0, "No Funds"); (bool success, ) = payable(vault).call{ value: balance }(""); require(success, "Withdrawal Failed"); } receive() external payable { require(vault != address(0), "Vault Not Added"); uint256 _eth = msg.value; payable(vault).transfer(_eth); } // The following functions are overrides required by Solidity. function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal override(ERC1155, ERC1155Pausable, ERC1155Supply) { super._update(from, to, ids, values); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC1155InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC1155InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"idsLength","type":"uint256"},{"internalType":"uint256","name":"valuesLength","type":"uint256"}],"name":"ERC1155InvalidArrayLength","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC1155InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC1155InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC1155InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC1155MissingApprovalForAll","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beginMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"mintCount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"mintCount","type":"uint256"}],"name":"reservesMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_allowID","type":"uint256"}],"name":"setAllow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pauseState","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_reveal","type":"bool"},{"internalType":"string[2]","name":"newUri","type":"string[2]"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newVault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"addTime","type":"uint256"}],"name":"setWLTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uriPS","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"_user","type":"address"}],"name":"verifyWL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlWindow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801562000010575f80fd5b5060408051602081019091525f815233906200002c8162000123565b506001600160a01b0381166200005c57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b620000678162000135565b506003805460ff60a01b1916905560408051808201909152600e81526d4b6f6e4e6565436865655761687360901b6020820152600690620000a9908262000969565b506040805180820190915260048152634b4e435760e01b6020820152600790620000d4908262000969565b5061030c600e556003600c55601280546001600160a01b0319163390811790915560408051602081019091525f80825262000113929160019062000186565b6200011d620001ed565b62000c1a565b600262000131828262000969565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416620001b157604051632bfa23e760e11b81525f600482015260240162000053565b60408051600180825260208201869052818301908152606082018590526080820190925290620001e55f8784848762000250565b505050505050565b620001f7620002b3565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002333390565b6040516001600160a01b03909116815260200160405180910390a1565b6200025e85858585620002e8565b6001600160a01b03841615620002ac57825133906001036200029c576020848101519084015162000294838989858589620002fc565b5050620001e5565b620001e581878787878762000433565b5050505050565b620002c7600354600160a01b900460ff1690565b15620002e65760405163d93c066560e01b815260040160405180910390fd5b565b620002f68484848462000525565b50505050565b6001600160a01b0384163b15620001e55760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619062000343908990899088908890889060040162000a76565b6020604051808303815f875af192505050801562000380575060408051601f3d908101601f191682019092526200037d9181019062000abc565b60015b620003ec573d808015620003b0576040519150601f19603f3d011682016040523d82523d5f602084013e620003b5565b606091505b5080515f03620003e457604051632bfa23e760e11b81526001600160a01b038616600482015260240162000053565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b146200042a57604051632bfa23e760e11b81526001600160a01b038616600482015260240162000053565b50505050505050565b6001600160a01b0384163b15620001e55760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906200047a908990899088908890889060040162000b27565b6020604051808303815f875af1925050508015620004b7575060408051601f3d908101601f19168201909252620004b49181019062000abc565b60015b620004e7573d808015620003b0576040519150601f19603f3d011682016040523d82523d5f602084013e620003b5565b6001600160e01b0319811663bc197c8160e01b146200042a57604051632bfa23e760e11b81526001600160a01b038616600482015260240162000053565b620005338484848462000692565b6001600160a01b038416620005f1575f805b8351811015620005d6575f83828151811062000565576200056562000b8a565b602002602001015190508060045f87858151811062000588576200058862000b8a565b602002602001015181526020019081526020015f205f828254620005ad919062000bb2565b90915550620005bf9050818462000bb2565b92505080620005ce9062000bce565b905062000545565b508060055f828254620005ea919062000bb2565b9091555050505b6001600160a01b038316620002f6575f805b835181101562000681575f83828151811062000623576200062362000b8a565b602002602001015190508060045f87858151811062000646576200064662000b8a565b602002602001015181526020019081526020015f205f828254039250508190555080830192505080620006799062000bce565b905062000603565b506005805491909103905550505050565b6200069c620002b3565b620002f6848484848051825114620006d55781518151604051635b05999160e01b81526004810192909252602482015260440162000053565b335f5b8351811015620007ea576020818102858101820151908501909101516001600160a01b038816156200078d575f828152602081815260408083206001600160a01b038c1684529091529020548181101562000767576040516303dee4c560e01b81526001600160a01b038a16600482015260248101829052604481018390526064810184905260840162000053565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615620007d4575f828152602081815260408083206001600160a01b038b16845290915281208054839290620007ce90849062000bb2565b90915550505b505080620007e29062000bce565b9050620006d8565b5082516001036200086d5760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516200085d929190918252602082015260400190565b60405180910390a45050620002ac565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051620008be92919062000be9565b60405180910390a45050505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620008f657607f821691505b6020821081036200091557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000964575f81815260208120601f850160051c81016020861015620009435750805b601f850160051c820191505b81811015620001e5578281556001016200094f565b505050565b81516001600160401b03811115620009855762000985620008cd565b6200099d81620009968454620008e1565b846200091b565b602080601f831160018114620009d3575f8415620009bb5750858301515b5f19600386901b1c1916600185901b178555620001e5565b5f85815260208120601f198616915b8281101562000a0357888601518255948401946001909101908401620009e2565b508582101562000a2157878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f81518084525f5b8181101562000a575760208185018101518683018201520162000a39565b505f602082860101526020601f19601f83011685010191505092915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f9062000ab19083018462000a31565b979650505050505050565b5f6020828403121562000acd575f80fd5b81516001600160e01b03198116811462000ae5575f80fd5b9392505050565b5f8151808452602080850194508084015f5b8381101562000b1c5781518752958201959082019060010162000afe565b509495945050505050565b6001600160a01b0386811682528516602082015260a0604082018190525f9062000b549083018662000aec565b828103606084015262000b68818662000aec565b9050828103608084015262000b7e818562000a31565b98975050505050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111562000bc85762000bc862000b9e565b92915050565b5f6001820162000be25762000be262000b9e565b5060010190565b604081525f62000bfd604083018562000aec565b828103602084015262000c11818562000aec565b95945050505050565b612a2d8062000c285f395ff3fe60806040526004361061026c575f3560e01c80637821a5141161014a578063bd85b039116100be578063ebf0c71711610078578063ebf0c71714610790578063ee9d2286146107a5578063eec6f3a6146107c4578063f242432a146107e3578063f2fde38b14610802578063fbfa77cf14610821575f80fd5b8063bd85b039146106c8578063bedb86fb146106f3578063cd3293de14610712578063d3738fc814610727578063dab5f34014610752578063e985e9c514610771575f80fd5b8063a22cb4651161010f578063a22cb46514610618578063a6367fc914610637578063b2503dcb1461064b578063bb07ebf61461066a578063bc5ca8ac14610695578063bd3e19d4146106b4575f80fd5b80637821a514146105805780638da5cb5b1461059f57806395d89b41146105d0578063996517cf146105e45780639e6a1d7d146105f9575f80fd5b806344a0d68a116101e15780635c975abb116101a65780635c975abb146104e8578063641ce140146105065780636817031b146105195780636e5da88014610538578063715018a614610557578063771282f61461056b575f80fd5b806344a0d68a146104425780634e1273f4146104615780634f558e791461048d57806351830227146104ba578063538575bb146104d3575f80fd5b806313faede61161023257806313faede6146103b357806317881cbf146103c857806318160ddd146103dc5780632eb2c2d6146103f05780633c9877c11461040f5780633ccfd60b1461042e575f80fd5b8062fdd58e146102fd57806301ffc9a71461032f57806306fdde031461035e578063074a130d1461037f5780630e89341c14610394575f80fd5b366102f9576012546001600160a01b03166102c05760405162461bcd60e51b815260206004820152600f60248201526e15985d5b1d08139bdd081059191959608a1b60448201526064015b60405180910390fd5b60125460405134916001600160a01b03169082156108fc029083905f818181858888f193505050501580156102f7573d5f803e3d5ffd5b005b5f80fd5b348015610308575f80fd5b5061031c61031736600461207e565b610840565b6040519081526020015b60405180910390f35b34801561033a575f80fd5b5061034e6103493660046120bb565b610867565b6040519015158152602001610326565b348015610369575f80fd5b506103726108b6565b6040516103269190612123565b34801561038a575f80fd5b5061031c600f5481565b34801561039f575f80fd5b506103726103ae366004612135565b610942565b3480156103be575f80fd5b5061031c60105481565b3480156103d3575f80fd5b5061031c6109f0565b3480156103e7575f80fd5b5061115c61031c565b3480156103fb575f80fd5b506102f761040a3660046122b4565b610a15565b34801561041a575f80fd5b5061034e610429366004612356565b610a7c565b348015610439575f80fd5b506102f7610add565b34801561044d575f80fd5b506102f761045c366004612135565b610c41565b34801561046c575f80fd5b5061048061047b3660046123a0565b610c4e565b6040516103269190612492565b348015610498575f80fd5b5061034e6104a7366004612135565b5f90815260046020526040902054151590565b3480156104c5575f80fd5b5060145461034e9060ff1681565b3480156104de575f80fd5b5061031c60115481565b3480156104f3575f80fd5b50600354600160a01b900460ff1661034e565b6102f76105143660046124a4565b610d20565b348015610524575f80fd5b506102f76105333660046124f6565b611067565b348015610543575f80fd5b50610372610552366004612135565b611091565b348015610562575f80fd5b506102f76110af565b348015610576575f80fd5b5061031c600d5481565b34801561058b575f80fd5b506102f761059a366004612135565b6110c2565b3480156105aa575f80fd5b506003546001600160a01b03165b6040516001600160a01b039091168152602001610326565b3480156105db575f80fd5b506103726110e3565b3480156105ef575f80fd5b5061031c600c5481565b348015610604575f80fd5b506102f7610613366004612135565b6110f0565b348015610623575f80fd5b506102f761063236600461251e565b6110fd565b348015610642575f80fd5b506102f7611108565b348015610656575f80fd5b506102f761066536600461207e565b61112a565b348015610675575f80fd5b5061031c6106843660046124f6565b600a6020525f908152604090205481565b3480156106a0575f80fd5b506102f76106af366004612546565b61114d565b3480156106bf575f80fd5b5061031c611185565b3480156106d3575f80fd5b5061031c6106e2366004612135565b5f9081526004602052604090205490565b3480156106fe575f80fd5b506102f761070d3660046125ff565b6111a1565b34801561071d575f80fd5b5061031c600e5481565b348015610732575f80fd5b5061031c6107413660046124f6565b600b6020525f908152604090205481565b34801561075d575f80fd5b506102f761076c366004612135565b6111c2565b34801561077c575f80fd5b5061034e61078b366004612618565b6111cf565b34801561079b575f80fd5b5061031c60135481565b3480156107b0575f80fd5b506102f76107bf366004612135565b6111fc565b3480156107cf575f80fd5b506102f76107de36600461207e565b611209565b3480156107ee575f80fd5b506102f76107fd366004612640565b61148a565b34801561080d575f80fd5b506102f761081c3660046124f6565b6114e9565b34801561082c575f80fd5b506012546105b8906001600160a01b031681565b5f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f6001600160e01b03198216636cdb3d1360e11b148061089757506001600160e01b031982166303a24d0760e21b145b8061086157506301ffc9a760e01b6001600160e01b0319831614610861565b600680546108c39061269f565b80601f01602080910402602001604051908101604052809291908181526020018280546108ef9061269f565b801561093a5780601f106109115761010080835404028352916020019161093a565b820191905f5260205f20905b81548152906001019060200180831161091d57829003601f168201915b505050505081565b5f818152600460205260409020546060906109965760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b60448201526064016102b7565b60145460ff16156109d65760086109ac83611523565b6040516109c092919060099060200161275a565b6040516020818303038152906040529050919050565b6040516109c09060089060099060200161278c565b919050565b5f600f545f036109ff57505f90565b600f54421015610a0f5750600190565b50600290565b336001600160a01b0386168114801590610a365750610a3486826111cf565b155b15610a675760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044016102b7565b610a7486868686866115b2565b505050505050565b5f82515f14610ad5576013546040516bffffffffffffffffffffffff19606085901b166020820152610ac891859160340160405160208183030381529060405280519060200120611610565b15610ad557506001610861565b505f92915050565b335f908152600a6020526040902054610b265760405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b60448201526064016102b7565b6012546001600160a01b0316610b705760405162461bcd60e51b815260206004820152600f60248201526e15985d5b1d08139bdd081059191959608a1b60448201526064016102b7565b4780610ba95760405162461bcd60e51b81526020600482015260086024820152674e6f2046756e647360c01b60448201526064016102b7565b6012546040515f916001600160a01b03169083908381818185875af1925050503d805f8114610bf3576040519150601f19603f3d011682016040523d82523d5f602084013e610bf8565b606091505b5050905080610c3d5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0811985a5b1959607a1b60448201526064016102b7565b5050565b610c49611625565b601055565b60608151835114610c7f5781518351604051635b05999160e01b8152600481019290925260248201526044016102b7565b5f83516001600160401b03811115610c9957610c9961214c565b604051908082528060200260200182016040528015610cc2578160200160208202803683370190505b5090505f5b8451811015610d1857602080820286010151610ceb90602080840287010151610840565b828281518110610cfd57610cfd6126d7565b6020908102919091010152610d11816127cd565b9050610cc7565b509392505050565b610d28611652565b60018210158015610d3a575060038211155b610d795760405162461bcd60e51b815260206004820152601060248201526f0c4b080c8b0813dc880cc810dbdd5b9d60821b60448201526064016102b7565b600c546001600160a01b0384165f908152600b602052604090205410610dd25760405162461bcd60e51b815260206004820152600e60248201526d13585e08135a5b9d08131a5b5a5d60921b60448201526064016102b7565b600e54610de19061115c6127e5565b82600d54610def91906127f8565b10610e305760405162461bcd60e51b8152602060048201526011602482015270141d589b1a58c8135a5b9d19590813dd5d607a1b60448201526064016102b7565b600f54421015610e8b5760135415610e8657610e4c8184610a7c565b610e865760405162461bcd60e51b815260206004820152600b60248201526a139bdd0813db88131a5cdd60aa1b60448201526064016102b7565b610ee0565b81610e94611185565b610e9e919061280b565b341015610ee05760405162461bcd60e51b815260206004820152601060248201526f14185e5b595b9d0814995c5d5a5c995960821b60448201526064016102b7565b6001600160a01b0383165f908152600b602052604081208054849290610f079084906127f8565b90915550506001829003610f4b57600d8054905f610f24836127cd565b9190505550610f4683600d54600160405180602001604052805f81525061167d565b505050565b5f826001600160401b03811115610f6457610f6461214c565b604051908082528060200260200182016040528015610f8d578160200160208202803683370190505b5090505f836001600160401b03811115610fa957610fa961214c565b604051908082528060200260200182016040528015610fd2578160200160208202803683370190505b5090505f5b8481101561104557600d8054905f610fee836127cd565b9190505550600d54838281518110611008576110086126d7565b6020026020010181815250506001828281518110611028576110286126d7565b60209081029190910101528061103d816127cd565b915050610fd7565b5061106085838360405180602001604052805f8152506116d8565b5050505050565b61106f611625565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b600881600281106110a0575f80fd5b0180549091506108c39061269f565b6110b7611625565b6110c05f61170e565b565b6110ca611625565b80600e5f8282546110db91906127f8565b909155505050565b600780546108c39061269f565b6110f8611625565b600c55565b610c3d33838361175f565b611110611625565b6111186117f3565b60115461112590426127f8565b600f55565b611132611625565b6001600160a01b039091165f908152600a6020526040902055565b611155611625565b6014805460ff191683151517905580516008906111729082612867565b506020810151600990610f469082612867565b5f60026111906109f0565b1061119c575060105490565b505f90565b6111a9611625565b80156111ba576111b7611848565b50565b6111b76117f3565b6111ca611625565b601355565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b611204611625565b601155565b5f81600e5461121891906127e5565b10156112545760405162461bcd60e51b815260206004820152600b60248201526a131bddd95c8810dbdd5b9d60aa1b60448201526064016102b7565b6003546001600160a01b0316331461131f57335f908152600a60205260409020546112af5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b60448201526064016102b7565b335f908152600a60205260409020548110156112fb5760405162461bcd60e51b815260206004820152600b60248201526a131bddd95c8810dbdd5b9d60aa1b60448201526064016102b7565b335f908152600a6020526040812080548392906113199084906127e5565b90915550505b80600e5f82825461133091906127e5565b9091555050600181900361136f57600d8054905f61134d836127cd565b9190505550610c3d82600d54600160405180602001604052805f81525061167d565b5f816001600160401b038111156113885761138861214c565b6040519080825280602002602001820160405280156113b1578160200160208202803683370190505b5090505f826001600160401b038111156113cd576113cd61214c565b6040519080825280602002602001820160405280156113f6578160200160208202803683370190505b5090505f5b8381101561146957600d8054905f611412836127cd565b9190505550600d5483828151811061142c5761142c6126d7565b602002602001018181525050600182828151811061144c5761144c6126d7565b602090810291909101015280611461816127cd565b9150506113fb565b5061148484838360405180602001604052805f8152506116d8565b50505050565b336001600160a01b03861681148015906114ab57506114a986826111cf565b155b156114dc5760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044016102b7565b610a74868686868661188b565b6114f1611625565b6001600160a01b03811661151a57604051631e4fbdf760e01b81525f60048201526024016102b7565b6111b78161170e565b60605f61152f83611917565b60010190505f816001600160401b0381111561154d5761154d61214c565b6040519080825280601f01601f191660200182016040528015611577576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461158157509392505050565b6001600160a01b0384166115db57604051632bfa23e760e11b81525f60048201526024016102b7565b6001600160a01b03851661160357604051626a0d4560e21b81525f60048201526024016102b7565b61106085858585856119ee565b5f8261161c8584611a41565b14949350505050565b6003546001600160a01b031633146110c05760405163118cdaa760e01b81523360048201526024016102b7565b600354600160a01b900460ff16156110c05760405163d93c066560e01b815260040160405180910390fd5b6001600160a01b0384166116a657604051632bfa23e760e11b81525f60048201526024016102b7565b60408051600180825260208201869052818301908152606082018590526080820190925290610a745f878484876119ee565b6001600160a01b03841661170157604051632bfa23e760e11b81525f60048201526024016102b7565b6114845f858585856119ee565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166117875760405162ced3e160e81b81525f60048201526024016102b7565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6117fb611a85565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611850611652565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861182b3390565b6001600160a01b0384166118b457604051632bfa23e760e11b81525f60048201526024016102b7565b6001600160a01b0385166118dc57604051626a0d4560e21b81525f60048201526024016102b7565b6040805160018082526020820186905281830190815260608201859052608082019092529061190e87878484876119ee565b50505050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106119555772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611981576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061199f57662386f26fc10000830492506010015b6305f5e10083106119b7576305f5e100830492506008015b61271083106119cb57612710830492506004015b606483106119dd576064830492506002015b600a83106108615760010192915050565b6119fa85858585611aaf565b6001600160a01b038416156110605782513390600103611a335760208481015190840151611a2c838989858589611abb565b5050610a74565b610a74818787878787611bdc565b5f81815b8451811015610d1857611a7182868381518110611a6457611a646126d7565b6020026020010151611cc3565b915080611a7d816127cd565b915050611a45565b600354600160a01b900460ff166110c057604051638dfc202b60e01b815260040160405180910390fd5b61148484848484611cf2565b6001600160a01b0384163b15610a745760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611aff9089908990889088908890600401612922565b6020604051808303815f875af1925050508015611b39575060408051601f3d908101601f19168201909252611b369181019061295b565b60015b611ba0573d808015611b66576040519150601f19603f3d011682016040523d82523d5f602084013e611b6b565b606091505b5080515f03611b9857604051632bfa23e760e11b81526001600160a01b03861660048201526024016102b7565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461190e57604051632bfa23e760e11b81526001600160a01b03861660048201526024016102b7565b6001600160a01b0384163b15610a745760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611c209089908990889088908890600401612976565b6020604051808303815f875af1925050508015611c5a575060408051601f3d908101601f19168201909252611c579181019061295b565b60015b611c87573d808015611b66576040519150601f19603f3d011682016040523d82523d5f602084013e611b6b565b6001600160e01b0319811663bc197c8160e01b1461190e57604051632bfa23e760e11b81526001600160a01b03861660048201526024016102b7565b5f818310611cdd575f828152602084905260409020611ceb565b5f8381526020839052604090205b9392505050565b611cfe84848484611e41565b6001600160a01b038416611dab575f805b8351811015611d92575f838281518110611d2b57611d2b6126d7565b602002602001015190508060045f878581518110611d4b57611d4b6126d7565b602002602001015181526020019081526020015f205f828254611d6e91906127f8565b90915550611d7e905081846127f8565b92505080611d8b906127cd565b9050611d0f565b508060055f828254611da491906127f8565b9091555050505b6001600160a01b038316611484575f805b8351811015611e30575f838281518110611dd857611dd86126d7565b602002602001015190508060045f878581518110611df857611df86126d7565b602002602001015181526020019081526020015f205f828254039250508190555080830192505080611e29906127cd565b9050611dbc565b506005805491909103905550505050565b611e49611652565b611484848484848051825114611e7f5781518151604051635b05999160e01b8152600481019290925260248201526044016102b7565b335f5b8351811015611f8a576020818102858101820151908501909101516001600160a01b03881615611f33575f828152602081815260408083206001600160a01b038c16845290915290205481811015611f0d576040516303dee4c560e01b81526001600160a01b038a1660048201526024810182905260448101839052606481018490526084016102b7565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615611f77575f828152602081815260408083206001600160a01b038b16845290915281208054839290611f719084906127f8565b90915550505b505080611f83906127cd565b9050611e82565b50825160010361200a5760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051611ffb929190918252602082015260400190565b60405180910390a45050611060565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516120599291906129d3565b60405180910390a45050505050565b80356001600160a01b03811681146109eb575f80fd5b5f806040838503121561208f575f80fd5b61209883612068565b946020939093013593505050565b6001600160e01b0319811681146111b7575f80fd5b5f602082840312156120cb575f80fd5b8135611ceb816120a6565b5f5b838110156120f05781810151838201526020016120d8565b50505f910152565b5f815180845261210f8160208601602086016120d6565b601f01601f19169290920160200192915050565b602081525f611ceb60208301846120f8565b5f60208284031215612145575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b03811182821017156121825761218261214c565b60405290565b604051601f8201601f191681016001600160401b03811182821017156121b0576121b061214c565b604052919050565b5f6001600160401b038211156121d0576121d061214c565b5060051b60200190565b5f82601f8301126121e9575f80fd5b813560206121fe6121f9836121b8565b612188565b82815260059290921b8401810191818101908684111561221c575f80fd5b8286015b848110156122375780358352918301918301612220565b509695505050505050565b5f6001600160401b0383111561225a5761225a61214c565b61226d601f8401601f1916602001612188565b9050828152838383011115612280575f80fd5b828260208301375f602084830101529392505050565b5f82601f8301126122a5575f80fd5b611ceb83833560208501612242565b5f805f805f60a086880312156122c8575f80fd5b6122d186612068565b94506122df60208701612068565b935060408601356001600160401b03808211156122fa575f80fd5b61230689838a016121da565b9450606088013591508082111561231b575f80fd5b61232789838a016121da565b9350608088013591508082111561233c575f80fd5b5061234988828901612296565b9150509295509295909350565b5f8060408385031215612367575f80fd5b82356001600160401b0381111561237c575f80fd5b612388858286016121da565b92505061239760208401612068565b90509250929050565b5f80604083850312156123b1575f80fd5b82356001600160401b03808211156123c7575f80fd5b818501915085601f8301126123da575f80fd5b813560206123ea6121f9836121b8565b82815260059290921b84018101918181019089841115612408575f80fd5b948201945b8386101561242d5761241e86612068565b8252948201949082019061240d565b96505086013592505080821115612442575f80fd5b5061244f858286016121da565b9150509250929050565b5f8151808452602080850194508084015f5b838110156124875781518752958201959082019060010161246b565b509495945050505050565b602081525f611ceb6020830184612459565b5f805f606084860312156124b6575f80fd5b6124bf84612068565b92506020840135915060408401356001600160401b038111156124e0575f80fd5b6124ec868287016121da565b9150509250925092565b5f60208284031215612506575f80fd5b611ceb82612068565b803580151581146109eb575f80fd5b5f806040838503121561252f575f80fd5b61253883612068565b91506123976020840161250f565b5f8060408385031215612557575f80fd5b6125608361250f565b91506020808401356001600160401b038082111561257c575f80fd5b8186019150601f8781840112612590575f80fd5b612598612160565b80604085018a8111156125a9575f80fd5b855b818110156125ee578035868111156125c2575f8081fd5b87018581018d136125d2575f8081fd5b6125e08d82358b8401612242565b8552509287019287016125ab565b50979a909950975050505050505050565b5f6020828403121561260f575f80fd5b611ceb8261250f565b5f8060408385031215612629575f80fd5b61263283612068565b915061239760208401612068565b5f805f805f60a08688031215612654575f80fd5b61265d86612068565b945061266b60208701612068565b9350604086013592506060860135915060808601356001600160401b03811115612693575f80fd5b61234988828901612296565b600181811c908216806126b357607f821691505b6020821081036126d157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b5f81546126f78161269f565b6001828116801561270f576001811461272457612750565b60ff1984168752821515830287019450612750565b855f526020805f205f5b858110156127475781548a82015290840190820161272e565b50505082870194505b5050505092915050565b5f61276582866126eb565b84516127758183602089016120d6565b612781818301866126eb565b979650505050505050565b5f61279782856126eb565b653434b23232b760d11b81526127b060068201856126eb565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b5f600182016127de576127de6127b9565b5060010190565b81810381811115610861576108616127b9565b80820180821115610861576108616127b9565b8082028115828204841417610861576108616127b9565b601f821115610f46575f81815260208120601f850160051c810160208610156128485750805b601f850160051c820191505b81811015610a7457828155600101612854565b81516001600160401b038111156128805761288061214c565b6128948161288e845461269f565b84612822565b602080601f8311600181146128c7575f84156128b05750858301515b5f19600386901b1c1916600185901b178555610a74565b5f85815260208120601f198616915b828110156128f5578886015182559484019460019091019084016128d6565b508582101561291257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f90612781908301846120f8565b5f6020828403121561296b575f80fd5b8151611ceb816120a6565b6001600160a01b0386811682528516602082015260a0604082018190525f906129a190830186612459565b82810360608401526129b38186612459565b905082810360808401526129c781856120f8565b98975050505050505050565b604081525f6129e56040830185612459565b82810360208401526127b0818561245956fea264697066735822122038daf8e28bd018b3c7b1becd06c295cb37b2831fdd0fb944452db064d7d0181564736f6c63430008140033
Deployed Bytecode
0x60806040526004361061026c575f3560e01c80637821a5141161014a578063bd85b039116100be578063ebf0c71711610078578063ebf0c71714610790578063ee9d2286146107a5578063eec6f3a6146107c4578063f242432a146107e3578063f2fde38b14610802578063fbfa77cf14610821575f80fd5b8063bd85b039146106c8578063bedb86fb146106f3578063cd3293de14610712578063d3738fc814610727578063dab5f34014610752578063e985e9c514610771575f80fd5b8063a22cb4651161010f578063a22cb46514610618578063a6367fc914610637578063b2503dcb1461064b578063bb07ebf61461066a578063bc5ca8ac14610695578063bd3e19d4146106b4575f80fd5b80637821a514146105805780638da5cb5b1461059f57806395d89b41146105d0578063996517cf146105e45780639e6a1d7d146105f9575f80fd5b806344a0d68a116101e15780635c975abb116101a65780635c975abb146104e8578063641ce140146105065780636817031b146105195780636e5da88014610538578063715018a614610557578063771282f61461056b575f80fd5b806344a0d68a146104425780634e1273f4146104615780634f558e791461048d57806351830227146104ba578063538575bb146104d3575f80fd5b806313faede61161023257806313faede6146103b357806317881cbf146103c857806318160ddd146103dc5780632eb2c2d6146103f05780633c9877c11461040f5780633ccfd60b1461042e575f80fd5b8062fdd58e146102fd57806301ffc9a71461032f57806306fdde031461035e578063074a130d1461037f5780630e89341c14610394575f80fd5b366102f9576012546001600160a01b03166102c05760405162461bcd60e51b815260206004820152600f60248201526e15985d5b1d08139bdd081059191959608a1b60448201526064015b60405180910390fd5b60125460405134916001600160a01b03169082156108fc029083905f818181858888f193505050501580156102f7573d5f803e3d5ffd5b005b5f80fd5b348015610308575f80fd5b5061031c61031736600461207e565b610840565b6040519081526020015b60405180910390f35b34801561033a575f80fd5b5061034e6103493660046120bb565b610867565b6040519015158152602001610326565b348015610369575f80fd5b506103726108b6565b6040516103269190612123565b34801561038a575f80fd5b5061031c600f5481565b34801561039f575f80fd5b506103726103ae366004612135565b610942565b3480156103be575f80fd5b5061031c60105481565b3480156103d3575f80fd5b5061031c6109f0565b3480156103e7575f80fd5b5061115c61031c565b3480156103fb575f80fd5b506102f761040a3660046122b4565b610a15565b34801561041a575f80fd5b5061034e610429366004612356565b610a7c565b348015610439575f80fd5b506102f7610add565b34801561044d575f80fd5b506102f761045c366004612135565b610c41565b34801561046c575f80fd5b5061048061047b3660046123a0565b610c4e565b6040516103269190612492565b348015610498575f80fd5b5061034e6104a7366004612135565b5f90815260046020526040902054151590565b3480156104c5575f80fd5b5060145461034e9060ff1681565b3480156104de575f80fd5b5061031c60115481565b3480156104f3575f80fd5b50600354600160a01b900460ff1661034e565b6102f76105143660046124a4565b610d20565b348015610524575f80fd5b506102f76105333660046124f6565b611067565b348015610543575f80fd5b50610372610552366004612135565b611091565b348015610562575f80fd5b506102f76110af565b348015610576575f80fd5b5061031c600d5481565b34801561058b575f80fd5b506102f761059a366004612135565b6110c2565b3480156105aa575f80fd5b506003546001600160a01b03165b6040516001600160a01b039091168152602001610326565b3480156105db575f80fd5b506103726110e3565b3480156105ef575f80fd5b5061031c600c5481565b348015610604575f80fd5b506102f7610613366004612135565b6110f0565b348015610623575f80fd5b506102f761063236600461251e565b6110fd565b348015610642575f80fd5b506102f7611108565b348015610656575f80fd5b506102f761066536600461207e565b61112a565b348015610675575f80fd5b5061031c6106843660046124f6565b600a6020525f908152604090205481565b3480156106a0575f80fd5b506102f76106af366004612546565b61114d565b3480156106bf575f80fd5b5061031c611185565b3480156106d3575f80fd5b5061031c6106e2366004612135565b5f9081526004602052604090205490565b3480156106fe575f80fd5b506102f761070d3660046125ff565b6111a1565b34801561071d575f80fd5b5061031c600e5481565b348015610732575f80fd5b5061031c6107413660046124f6565b600b6020525f908152604090205481565b34801561075d575f80fd5b506102f761076c366004612135565b6111c2565b34801561077c575f80fd5b5061034e61078b366004612618565b6111cf565b34801561079b575f80fd5b5061031c60135481565b3480156107b0575f80fd5b506102f76107bf366004612135565b6111fc565b3480156107cf575f80fd5b506102f76107de36600461207e565b611209565b3480156107ee575f80fd5b506102f76107fd366004612640565b61148a565b34801561080d575f80fd5b506102f761081c3660046124f6565b6114e9565b34801561082c575f80fd5b506012546105b8906001600160a01b031681565b5f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f6001600160e01b03198216636cdb3d1360e11b148061089757506001600160e01b031982166303a24d0760e21b145b8061086157506301ffc9a760e01b6001600160e01b0319831614610861565b600680546108c39061269f565b80601f01602080910402602001604051908101604052809291908181526020018280546108ef9061269f565b801561093a5780601f106109115761010080835404028352916020019161093a565b820191905f5260205f20905b81548152906001019060200180831161091d57829003601f168201915b505050505081565b5f818152600460205260409020546060906109965760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b60448201526064016102b7565b60145460ff16156109d65760086109ac83611523565b6040516109c092919060099060200161275a565b6040516020818303038152906040529050919050565b6040516109c09060089060099060200161278c565b919050565b5f600f545f036109ff57505f90565b600f54421015610a0f5750600190565b50600290565b336001600160a01b0386168114801590610a365750610a3486826111cf565b155b15610a675760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044016102b7565b610a7486868686866115b2565b505050505050565b5f82515f14610ad5576013546040516bffffffffffffffffffffffff19606085901b166020820152610ac891859160340160405160208183030381529060405280519060200120611610565b15610ad557506001610861565b505f92915050565b335f908152600a6020526040902054610b265760405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b60448201526064016102b7565b6012546001600160a01b0316610b705760405162461bcd60e51b815260206004820152600f60248201526e15985d5b1d08139bdd081059191959608a1b60448201526064016102b7565b4780610ba95760405162461bcd60e51b81526020600482015260086024820152674e6f2046756e647360c01b60448201526064016102b7565b6012546040515f916001600160a01b03169083908381818185875af1925050503d805f8114610bf3576040519150601f19603f3d011682016040523d82523d5f602084013e610bf8565b606091505b5050905080610c3d5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0811985a5b1959607a1b60448201526064016102b7565b5050565b610c49611625565b601055565b60608151835114610c7f5781518351604051635b05999160e01b8152600481019290925260248201526044016102b7565b5f83516001600160401b03811115610c9957610c9961214c565b604051908082528060200260200182016040528015610cc2578160200160208202803683370190505b5090505f5b8451811015610d1857602080820286010151610ceb90602080840287010151610840565b828281518110610cfd57610cfd6126d7565b6020908102919091010152610d11816127cd565b9050610cc7565b509392505050565b610d28611652565b60018210158015610d3a575060038211155b610d795760405162461bcd60e51b815260206004820152601060248201526f0c4b080c8b0813dc880cc810dbdd5b9d60821b60448201526064016102b7565b600c546001600160a01b0384165f908152600b602052604090205410610dd25760405162461bcd60e51b815260206004820152600e60248201526d13585e08135a5b9d08131a5b5a5d60921b60448201526064016102b7565b600e54610de19061115c6127e5565b82600d54610def91906127f8565b10610e305760405162461bcd60e51b8152602060048201526011602482015270141d589b1a58c8135a5b9d19590813dd5d607a1b60448201526064016102b7565b600f54421015610e8b5760135415610e8657610e4c8184610a7c565b610e865760405162461bcd60e51b815260206004820152600b60248201526a139bdd0813db88131a5cdd60aa1b60448201526064016102b7565b610ee0565b81610e94611185565b610e9e919061280b565b341015610ee05760405162461bcd60e51b815260206004820152601060248201526f14185e5b595b9d0814995c5d5a5c995960821b60448201526064016102b7565b6001600160a01b0383165f908152600b602052604081208054849290610f079084906127f8565b90915550506001829003610f4b57600d8054905f610f24836127cd565b9190505550610f4683600d54600160405180602001604052805f81525061167d565b505050565b5f826001600160401b03811115610f6457610f6461214c565b604051908082528060200260200182016040528015610f8d578160200160208202803683370190505b5090505f836001600160401b03811115610fa957610fa961214c565b604051908082528060200260200182016040528015610fd2578160200160208202803683370190505b5090505f5b8481101561104557600d8054905f610fee836127cd565b9190505550600d54838281518110611008576110086126d7565b6020026020010181815250506001828281518110611028576110286126d7565b60209081029190910101528061103d816127cd565b915050610fd7565b5061106085838360405180602001604052805f8152506116d8565b5050505050565b61106f611625565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b600881600281106110a0575f80fd5b0180549091506108c39061269f565b6110b7611625565b6110c05f61170e565b565b6110ca611625565b80600e5f8282546110db91906127f8565b909155505050565b600780546108c39061269f565b6110f8611625565b600c55565b610c3d33838361175f565b611110611625565b6111186117f3565b60115461112590426127f8565b600f55565b611132611625565b6001600160a01b039091165f908152600a6020526040902055565b611155611625565b6014805460ff191683151517905580516008906111729082612867565b506020810151600990610f469082612867565b5f60026111906109f0565b1061119c575060105490565b505f90565b6111a9611625565b80156111ba576111b7611848565b50565b6111b76117f3565b6111ca611625565b601355565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b611204611625565b601155565b5f81600e5461121891906127e5565b10156112545760405162461bcd60e51b815260206004820152600b60248201526a131bddd95c8810dbdd5b9d60aa1b60448201526064016102b7565b6003546001600160a01b0316331461131f57335f908152600a60205260409020546112af5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b60448201526064016102b7565b335f908152600a60205260409020548110156112fb5760405162461bcd60e51b815260206004820152600b60248201526a131bddd95c8810dbdd5b9d60aa1b60448201526064016102b7565b335f908152600a6020526040812080548392906113199084906127e5565b90915550505b80600e5f82825461133091906127e5565b9091555050600181900361136f57600d8054905f61134d836127cd565b9190505550610c3d82600d54600160405180602001604052805f81525061167d565b5f816001600160401b038111156113885761138861214c565b6040519080825280602002602001820160405280156113b1578160200160208202803683370190505b5090505f826001600160401b038111156113cd576113cd61214c565b6040519080825280602002602001820160405280156113f6578160200160208202803683370190505b5090505f5b8381101561146957600d8054905f611412836127cd565b9190505550600d5483828151811061142c5761142c6126d7565b602002602001018181525050600182828151811061144c5761144c6126d7565b602090810291909101015280611461816127cd565b9150506113fb565b5061148484838360405180602001604052805f8152506116d8565b50505050565b336001600160a01b03861681148015906114ab57506114a986826111cf565b155b156114dc5760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044016102b7565b610a74868686868661188b565b6114f1611625565b6001600160a01b03811661151a57604051631e4fbdf760e01b81525f60048201526024016102b7565b6111b78161170e565b60605f61152f83611917565b60010190505f816001600160401b0381111561154d5761154d61214c565b6040519080825280601f01601f191660200182016040528015611577576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461158157509392505050565b6001600160a01b0384166115db57604051632bfa23e760e11b81525f60048201526024016102b7565b6001600160a01b03851661160357604051626a0d4560e21b81525f60048201526024016102b7565b61106085858585856119ee565b5f8261161c8584611a41565b14949350505050565b6003546001600160a01b031633146110c05760405163118cdaa760e01b81523360048201526024016102b7565b600354600160a01b900460ff16156110c05760405163d93c066560e01b815260040160405180910390fd5b6001600160a01b0384166116a657604051632bfa23e760e11b81525f60048201526024016102b7565b60408051600180825260208201869052818301908152606082018590526080820190925290610a745f878484876119ee565b6001600160a01b03841661170157604051632bfa23e760e11b81525f60048201526024016102b7565b6114845f858585856119ee565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166117875760405162ced3e160e81b81525f60048201526024016102b7565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6117fb611a85565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611850611652565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861182b3390565b6001600160a01b0384166118b457604051632bfa23e760e11b81525f60048201526024016102b7565b6001600160a01b0385166118dc57604051626a0d4560e21b81525f60048201526024016102b7565b6040805160018082526020820186905281830190815260608201859052608082019092529061190e87878484876119ee565b50505050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106119555772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611981576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061199f57662386f26fc10000830492506010015b6305f5e10083106119b7576305f5e100830492506008015b61271083106119cb57612710830492506004015b606483106119dd576064830492506002015b600a83106108615760010192915050565b6119fa85858585611aaf565b6001600160a01b038416156110605782513390600103611a335760208481015190840151611a2c838989858589611abb565b5050610a74565b610a74818787878787611bdc565b5f81815b8451811015610d1857611a7182868381518110611a6457611a646126d7565b6020026020010151611cc3565b915080611a7d816127cd565b915050611a45565b600354600160a01b900460ff166110c057604051638dfc202b60e01b815260040160405180910390fd5b61148484848484611cf2565b6001600160a01b0384163b15610a745760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611aff9089908990889088908890600401612922565b6020604051808303815f875af1925050508015611b39575060408051601f3d908101601f19168201909252611b369181019061295b565b60015b611ba0573d808015611b66576040519150601f19603f3d011682016040523d82523d5f602084013e611b6b565b606091505b5080515f03611b9857604051632bfa23e760e11b81526001600160a01b03861660048201526024016102b7565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461190e57604051632bfa23e760e11b81526001600160a01b03861660048201526024016102b7565b6001600160a01b0384163b15610a745760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611c209089908990889088908890600401612976565b6020604051808303815f875af1925050508015611c5a575060408051601f3d908101601f19168201909252611c579181019061295b565b60015b611c87573d808015611b66576040519150601f19603f3d011682016040523d82523d5f602084013e611b6b565b6001600160e01b0319811663bc197c8160e01b1461190e57604051632bfa23e760e11b81526001600160a01b03861660048201526024016102b7565b5f818310611cdd575f828152602084905260409020611ceb565b5f8381526020839052604090205b9392505050565b611cfe84848484611e41565b6001600160a01b038416611dab575f805b8351811015611d92575f838281518110611d2b57611d2b6126d7565b602002602001015190508060045f878581518110611d4b57611d4b6126d7565b602002602001015181526020019081526020015f205f828254611d6e91906127f8565b90915550611d7e905081846127f8565b92505080611d8b906127cd565b9050611d0f565b508060055f828254611da491906127f8565b9091555050505b6001600160a01b038316611484575f805b8351811015611e30575f838281518110611dd857611dd86126d7565b602002602001015190508060045f878581518110611df857611df86126d7565b602002602001015181526020019081526020015f205f828254039250508190555080830192505080611e29906127cd565b9050611dbc565b506005805491909103905550505050565b611e49611652565b611484848484848051825114611e7f5781518151604051635b05999160e01b8152600481019290925260248201526044016102b7565b335f5b8351811015611f8a576020818102858101820151908501909101516001600160a01b03881615611f33575f828152602081815260408083206001600160a01b038c16845290915290205481811015611f0d576040516303dee4c560e01b81526001600160a01b038a1660048201526024810182905260448101839052606481018490526084016102b7565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615611f77575f828152602081815260408083206001600160a01b038b16845290915281208054839290611f719084906127f8565b90915550505b505080611f83906127cd565b9050611e82565b50825160010361200a5760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051611ffb929190918252602082015260400190565b60405180910390a45050611060565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516120599291906129d3565b60405180910390a45050505050565b80356001600160a01b03811681146109eb575f80fd5b5f806040838503121561208f575f80fd5b61209883612068565b946020939093013593505050565b6001600160e01b0319811681146111b7575f80fd5b5f602082840312156120cb575f80fd5b8135611ceb816120a6565b5f5b838110156120f05781810151838201526020016120d8565b50505f910152565b5f815180845261210f8160208601602086016120d6565b601f01601f19169290920160200192915050565b602081525f611ceb60208301846120f8565b5f60208284031215612145575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b03811182821017156121825761218261214c565b60405290565b604051601f8201601f191681016001600160401b03811182821017156121b0576121b061214c565b604052919050565b5f6001600160401b038211156121d0576121d061214c565b5060051b60200190565b5f82601f8301126121e9575f80fd5b813560206121fe6121f9836121b8565b612188565b82815260059290921b8401810191818101908684111561221c575f80fd5b8286015b848110156122375780358352918301918301612220565b509695505050505050565b5f6001600160401b0383111561225a5761225a61214c565b61226d601f8401601f1916602001612188565b9050828152838383011115612280575f80fd5b828260208301375f602084830101529392505050565b5f82601f8301126122a5575f80fd5b611ceb83833560208501612242565b5f805f805f60a086880312156122c8575f80fd5b6122d186612068565b94506122df60208701612068565b935060408601356001600160401b03808211156122fa575f80fd5b61230689838a016121da565b9450606088013591508082111561231b575f80fd5b61232789838a016121da565b9350608088013591508082111561233c575f80fd5b5061234988828901612296565b9150509295509295909350565b5f8060408385031215612367575f80fd5b82356001600160401b0381111561237c575f80fd5b612388858286016121da565b92505061239760208401612068565b90509250929050565b5f80604083850312156123b1575f80fd5b82356001600160401b03808211156123c7575f80fd5b818501915085601f8301126123da575f80fd5b813560206123ea6121f9836121b8565b82815260059290921b84018101918181019089841115612408575f80fd5b948201945b8386101561242d5761241e86612068565b8252948201949082019061240d565b96505086013592505080821115612442575f80fd5b5061244f858286016121da565b9150509250929050565b5f8151808452602080850194508084015f5b838110156124875781518752958201959082019060010161246b565b509495945050505050565b602081525f611ceb6020830184612459565b5f805f606084860312156124b6575f80fd5b6124bf84612068565b92506020840135915060408401356001600160401b038111156124e0575f80fd5b6124ec868287016121da565b9150509250925092565b5f60208284031215612506575f80fd5b611ceb82612068565b803580151581146109eb575f80fd5b5f806040838503121561252f575f80fd5b61253883612068565b91506123976020840161250f565b5f8060408385031215612557575f80fd5b6125608361250f565b91506020808401356001600160401b038082111561257c575f80fd5b8186019150601f8781840112612590575f80fd5b612598612160565b80604085018a8111156125a9575f80fd5b855b818110156125ee578035868111156125c2575f8081fd5b87018581018d136125d2575f8081fd5b6125e08d82358b8401612242565b8552509287019287016125ab565b50979a909950975050505050505050565b5f6020828403121561260f575f80fd5b611ceb8261250f565b5f8060408385031215612629575f80fd5b61263283612068565b915061239760208401612068565b5f805f805f60a08688031215612654575f80fd5b61265d86612068565b945061266b60208701612068565b9350604086013592506060860135915060808601356001600160401b03811115612693575f80fd5b61234988828901612296565b600181811c908216806126b357607f821691505b6020821081036126d157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b5f81546126f78161269f565b6001828116801561270f576001811461272457612750565b60ff1984168752821515830287019450612750565b855f526020805f205f5b858110156127475781548a82015290840190820161272e565b50505082870194505b5050505092915050565b5f61276582866126eb565b84516127758183602089016120d6565b612781818301866126eb565b979650505050505050565b5f61279782856126eb565b653434b23232b760d11b81526127b060068201856126eb565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b5f600182016127de576127de6127b9565b5060010190565b81810381811115610861576108616127b9565b80820180821115610861576108616127b9565b8082028115828204841417610861576108616127b9565b601f821115610f46575f81815260208120601f850160051c810160208610156128485750805b601f850160051c820191505b81811015610a7457828155600101612854565b81516001600160401b038111156128805761288061214c565b6128948161288e845461269f565b84612822565b602080601f8311600181146128c7575f84156128b05750858301515b5f19600386901b1c1916600185901b178555610a74565b5f85815260208120601f198616915b828110156128f5578886015182559484019460019091019084016128d6565b508582101561291257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f90612781908301846120f8565b5f6020828403121561296b575f80fd5b8151611ceb816120a6565b6001600160a01b0386811682528516602082015260a0604082018190525f906129a190830186612459565b82810360608401526129b38186612459565b905082810360808401526129c781856120f8565b98975050505050505050565b604081525f6129e56040830185612459565b82810360208401526127b0818561245956fea264697066735822122038daf8e28bd018b3c7b1becd06c295cb37b2831fdd0fb944452db064d7d0181564736f6c63430008140033
Deployed Bytecode Sourcemap
92232:6660:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98464:5;;-1:-1:-1;;;;;98464:5:0;98456:47;;;;-1:-1:-1;;;98456:47:0;;216:2:1;98456:47:0;;;198:21:1;255:2;235:18;;;228:30;-1:-1:-1;;;274:18:1;;;267:45;329:18;;98456:47:0;;;;;;;;;98557:5;;98549:29;;98529:9;;-1:-1:-1;;;;;98557:5:0;;98549:29;;;;;98529:9;;98514:12;98549:29;98514:12;98549:29;98529:9;98557:5;98549:29;;;;;;;;;;;;;;;;;;;;;92232:6660;;;;65698:134;;;;;;;;;;-1:-1:-1;65698:134:0;;;;;:::i;:::-;;:::i;:::-;;;941:25:1;;;929:2;914:18;65698:134:0;;;;;;;;64807:310;;;;;;;;;;-1:-1:-1;64807:310:0;;;;;:::i;:::-;;:::i;:::-;;;1528:14:1;;1521:22;1503:41;;1491:2;1476:18;64807:310:0;1363:187:1;92315:18:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;92594:29::-;;;;;;;;;;;;;;;;97585:350;;;;;;;;;;-1:-1:-1;97585:350:0;;;;;:::i;:::-;;:::i;92630:19::-;;;;;;;;;;;;;;;;93109:314;;;;;;;;;;;;;:::i;97943:92::-;;;;;;;;;;-1:-1:-1;98023:4:0;97943:92;;67521:441;;;;;;;;;;-1:-1:-1;67521:441:0;;;;;:::i;:::-;;:::i;97281:296::-;;;;;;;;;;-1:-1:-1;97281:296:0;;;;;:::i;:::-;;:::i;98043:367::-;;;;;;;;;;;;;:::i;93957:155::-;;;;;;;;;;-1:-1:-1;93957:155:0;;;;;:::i;:::-;;:::i;65998:567::-;;;;;;;;;;-1:-1:-1;65998:567:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;82211:108::-;;;;;;;;;;-1:-1:-1;82211:108:0;;;;;:::i;:::-;82268:4;81925:16;;;:12;:16;;;;;;-1:-1:-1;;;82211:108:0;92739:20;;;;;;;;;;-1:-1:-1;92739:20:0;;;;;;;;92656:23;;;;;;;;;;;;;;;;49077:86;;;;;;;;;;-1:-1:-1;49148:7:0;;-1:-1:-1;;;49148:7:0;;;;49077:86;;96095:1178;;;;;;:::i;:::-;;:::i;94774:88::-;;;;;;;;;;-1:-1:-1;94774:88:0;;;;;:::i;:::-;;:::i;92367:22::-;;;;;;;;;;-1:-1:-1;92367:22:0;;;;;:::i;:::-;;:::i;52503:103::-;;;;;;;;;;;;;:::i;92530:28::-;;;;;;;;;;;;;;;;94990:159;;;;;;;;;;-1:-1:-1;94990:159:0;;;;;:::i;:::-;;:::i;51828:87::-;;;;;;;;;;-1:-1:-1;51901:6:0;;-1:-1:-1;;;;;51901:6:0;51828:87;;;-1:-1:-1;;;;;8737:32:1;;;8719:51;;8707:2;8692:18;51828:87:0;8573:203:1;92340:20:0;;;;;;;;;;;;;:::i;92499:24::-;;;;;;;;;;;;;;;;93431:146;;;;;;;;;;-1:-1:-1;93431:146:0;;;;;:::i;:::-;;:::i;66638:::-;;;;;;;;;;-1:-1:-1;66638:146:0;;;;;:::i;:::-;;:::i;93585:172::-;;;;;;;;;;;;;:::i;94870:112::-;;;;;;;;;;-1:-1:-1;94870:112:0;;;;;:::i;:::-;;:::i;92396:42::-;;;;;;;;;;-1:-1:-1;92396:42:0;;;;;:::i;:::-;;;;;;;;;;;;;;94595:171;;;;;;;;;;-1:-1:-1;94595:171:0;;;;;:::i;:::-;;:::i;94120:184::-;;;;;;;;;;;;;:::i;81836:113::-;;;;;;;;;;-1:-1:-1;81836:113:0;;;;;:::i;:::-;81898:7;81925:16;;;:12;:16;;;;;;;81836:113;94312:183;;;;;;;;;;-1:-1:-1;94312:183:0;;;;;:::i;:::-;;:::i;92565:22::-;;;;;;;;;;;;;;;;92445:47;;;;;;;;;;-1:-1:-1;92445:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;94503:84;;;;;;;;;;-1:-1:-1;94503:84:0;;;;;:::i;:::-;;:::i;66856:159::-;;;;;;;;;;-1:-1:-1;66856:159:0;;;;;:::i;:::-;;:::i;92713:19::-;;;;;;;;;;;;;;;;93765:184;;;;;;;;;;-1:-1:-1;93765:184:0;;;;;:::i;:::-;;:::i;95157:930::-;;;;;;;;;;-1:-1:-1;95157:930:0;;;;;:::i;:::-;;:::i;67087:357::-;;;;;;;;;;-1:-1:-1;67087:357:0;;;;;:::i;:::-;;:::i;52761:220::-;;;;;;;;;;-1:-1:-1;52761:220:0;;;;;:::i;:::-;;:::i;92686:20::-;;;;;;;;;;-1:-1:-1;92686:20:0;;;;-1:-1:-1;;;;;92686:20:0;;;65698:134;65775:7;65802:13;;;;;;;;;;;-1:-1:-1;;;;;65802:22:0;;;;;;;;;;65698:134;;;;;:::o;64807:310::-;64909:4;-1:-1:-1;;;;;;64946:41:0;;-1:-1:-1;;;64946:41:0;;:110;;-1:-1:-1;;;;;;;65004:52:0;;-1:-1:-1;;;65004:52:0;64946:110;:163;;;-1:-1:-1;;;;;;;;;;55259:40:0;;;65073:36;55159:148;92315:18;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;97585:350::-;82268:4;81925:16;;;:12;:16;;;;;;97641:13;;97667:44;;;;-1:-1:-1;;;97667:44:0;;12489:2:1;97667:44:0;;;12471:21:1;12528:2;12508:18;;;12501:30;-1:-1:-1;;;12547:18:1;;;12540:50;12607:18;;97667:44:0;12287:344:1;97667:44:0;97725:8;;;;97722:206;;;97780:5;97790:21;97807:3;97790:16;:21::i;:::-;97763:59;;;;;;97813:8;;97763:59;;;:::i;:::-;;;;;;;;;;;;;97749:74;;97585:350;;;:::o;97722:206::-;97869:46;;;;97886:5;;97906:8;;97869:46;;;:::i;97722:206::-;97585:350;;;:::o;93109:314::-;93150:7;93237:14;;93255:1;93237:19;93234:58;;-1:-1:-1;93279:1:0;;93109:314::o;93234:58::-;93325:14;;93307:15;:32;93304:112;;;-1:-1:-1;93362:1:0;;93109:314::o;93304:112::-;-1:-1:-1;93403:1:0;;93109:314::o;67521:441::-;46990:10;-1:-1:-1;;;;;67766:14:0;;;;;;;:49;;;67785:30;67802:4;67808:6;67785:16;:30::i;:::-;67784:31;67766:49;67762:131;;;67839:42;;-1:-1:-1;;;67839:42:0;;-1:-1:-1;;;;;14766:15:1;;;67839:42:0;;;14748:34:1;14818:15;;14798:18;;;14791:43;14683:18;;67839:42:0;14536:304:1;67762:131:0;67903:51;67926:4;67932:2;67936:3;67941:6;67949:4;67903:22;:51::i;:::-;67711:251;67521:441;;;;;:::o;97281:296::-;97359:4;97380:5;:12;97396:1;97380:17;97376:169;;97443:4;;97459:23;;-1:-1:-1;;14994:2:1;14990:15;;;14986:53;97459:23:0;;;14974:66:1;97417:67:0;;97436:5;;15056:12:1;;97459:23:0;;;;;;;;;;;;97449:34;;;;;;97417:18;:67::i;:::-;97413:121;;;-1:-1:-1;97513:4:0;97505:13;;97413:121;-1:-1:-1;97563:5:0;97281:296;;;;:::o;98043:367::-;98097:10;98111:1;98089:19;;;:7;:19;;;;;;98081:47;;;;-1:-1:-1;;;98081:47:0;;15281:2:1;98081:47:0;;;15263:21:1;15320:2;15300:18;;;15293:30;-1:-1:-1;;;15339:18:1;;;15332:41;15390:18;;98081:47:0;15079:335:1;98081:47:0;98147:5;;-1:-1:-1;;;;;98147:5:0;98139:47;;;;-1:-1:-1;;;98139:47:0;;216:2:1;98139:47:0;;;198:21:1;255:2;235:18;;;228:30;-1:-1:-1;;;274:18:1;;;267:45;329:18;;98139:47:0;14:339:1;98139:47:0;98217:21;98257:11;98249:32;;;;-1:-1:-1;;;98249:32:0;;15621:2:1;98249:32:0;;;15603:21:1;15660:1;15640:18;;;15633:29;-1:-1:-1;;;15678:18:1;;;15671:38;15726:18;;98249:32:0;15419:331:1;98249:32:0;98321:5;;98313:41;;98295:12;;-1:-1:-1;;;;;98321:5:0;;98341:7;;98295:12;98313:41;98295:12;98313:41;98341:7;98321:5;98313:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98294:60;;;98373:7;98365:37;;;;-1:-1:-1;;;98365:37:0;;16167:2:1;98365:37:0;;;16149:21:1;16206:2;16186:18;;;16179:30;-1:-1:-1;;;16225:18:1;;;16218:47;16282:18;;98365:37:0;15965:341:1;98365:37:0;98070:340;;98043:367::o;93957:155::-;51714:13;:11;:13::i;:::-;94090:4:::1;:14:::0;93957:155::o;65998:567::-;66125:16;66177:3;:10;66158:8;:15;:29;66154:123;;66237:10;;66249:15;;66211:54;;-1:-1:-1;;;66211:54:0;;;;;16485:25:1;;;;16526:18;;;16519:34;16458:18;;66211:54:0;16311:248:1;66154:123:0;66289:30;66336:8;:15;-1:-1:-1;;;;;66322:30:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66322:30:0;;66289:63;;66370:9;66365:160;66389:8;:15;66385:1;:19;66365:160;;;46130:4;46121:14;;;46101:35;;;46095:42;66445:68;;46130:4;46121:14;;;46101:35;;;46095:42;65698:134;:::i;66445:68::-;66426:13;66440:1;66426:16;;;;;;;;:::i;:::-;;;;;;;;;;:87;66406:3;;;:::i;:::-;;;66365:160;;;-1:-1:-1;66544:13:0;65998:567;-1:-1:-1;;;65998:567:0:o;96095:1178::-;48682:19;:17;:19::i;:::-;96260:1:::1;96247:9;:14;;:32;;;;;96278:1;96265:9;:14;;96247:32;96239:61;;;::::0;-1:-1:-1;;;96239:61:0;;17038:2:1;96239:61:0::1;::::0;::::1;17020:21:1::0;17077:2;17057:18;;;17050:30;-1:-1:-1;;;17096:18:1;;;17089:46;17152:18;;96239:61:0::1;16836:340:1::0;96239:61:0::1;96338:9;::::0;-1:-1:-1;;;;;96319:16:0;::::1;;::::0;;;:12:::1;:16;::::0;;;;;:28:::1;96311:55;;;::::0;-1:-1:-1;;;96311:55:0;;17383:2:1;96311:55:0::1;::::0;::::1;17365:21:1::0;17422:2;17402:18;;;17395:30;-1:-1:-1;;;17441:18:1;;;17434:44;17495:18;;96311:55:0::1;17181:338:1::0;96311:55:0::1;96429:7;::::0;96413:23:::1;::::0;98023:4;96413:23:::1;:::i;:::-;96401:9;96385:13;;:25;;;;:::i;:::-;:51;96377:81;;;::::0;-1:-1:-1;;;96377:81:0;;17989:2:1;96377:81:0::1;::::0;::::1;17971:21:1::0;18028:2;18008:18;;;18001:30;-1:-1:-1;;;18047:18:1;;;18040:47;18104:18;;96377:81:0::1;17787:341:1::0;96377:81:0::1;96492:14;;96474:15;:32;96471:266;;;96525:4;::::0;:18;96522:100:::1;;96571:19;96580:5;96587:2;96571:8;:19::i;:::-;96563:43;;;::::0;-1:-1:-1;;;96563:43:0;;18335:2:1;96563:43:0::1;::::0;::::1;18317:21:1::0;18374:2;18354:18;;;18347:30;-1:-1:-1;;;18393:18:1;;;18386:41;18444:18;;96563:43:0::1;18133:335:1::0;96563:43:0::1;96471:266;;;96695:9;96683;:7;:9::i;:::-;:21;;;;:::i;:::-;96670:9;:34;;96662:63;;;::::0;-1:-1:-1;;;96662:63:0;;18848:2:1;96662:63:0::1;::::0;::::1;18830:21:1::0;18887:2;18867:18;;;18860:30;-1:-1:-1;;;18906:18:1;;;18899:46;18962:18;;96662:63:0::1;18646:340:1::0;96662:63:0::1;-1:-1:-1::0;;;;;96757:16:0;::::1;;::::0;;;:12:::1;:16;::::0;;;;:29;;96777:9;;96757:16;:29:::1;::::0;96777:9;;96757:29:::1;:::i;:::-;::::0;;;-1:-1:-1;;96815:1:0::1;96802:14:::0;;;96799:127:::1;;96832:13;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;:::-;;;;;;96862:31;96868:2;96872:13;;96887:1;96862:31;;;;;;;;;;;::::0;:5:::1;:31::i;:::-;96095:1178:::0;;;:::o;96799:127::-:1;96938:24;96979:9;-1:-1:-1::0;;;;;96965:24:0::1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;96965:24:0::1;;96938:51;;97000:25;97042:9;-1:-1:-1::0;;;;;97028:24:0::1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;97028:24:0::1;;97000:52;;97068:9;97063:153;97087:9;97083:1;:13;97063:153;;;97118:13;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;:::-;;;;;;97161:13;;97148:7;97156:1;97148:10;;;;;;;;:::i;:::-;;;;;;:26;;;::::0;::::1;97203:1;97189:8;97198:1;97189:11;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:15;97098:3;::::1;::::0;::::1;:::i;:::-;;;;97063:153;;;;97226:37;97237:2;97241:7;97250:8;97226:37;;;;;;;;;;;::::0;:10:::1;:37::i;:::-;96193:1080;;96095:1178:::0;;;:::o;94774:88::-;51714:13;:11;:13::i;:::-;94838:5:::1;:16:::0;;-1:-1:-1;;;;;;94838:16:0::1;-1:-1:-1::0;;;;;94838:16:0;;;::::1;::::0;;;::::1;::::0;;94774:88::o;92367:22::-;;;;;;;;;;;;;;;;;-1:-1:-1;92367:22:0;;;:::i;52503:103::-;51714:13;:11;:13::i;:::-;52568:30:::1;52595:1;52568:18;:30::i;:::-;52503:103::o:0;94990:159::-;51714:13;:11;:13::i;:::-;95135:6:::1;95124:7;;:17;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;94990:159:0:o;92340:20::-;;;;;;;:::i;93431:146::-;51714:13;:11;:13::i;:::-;93549:9:::1;:20:::0;93431:146::o;66638:::-;66724:52;46990:10;66757:8;66767;66724:18;:52::i;93585:172::-;51714:13;:11;:13::i;:::-;93656:10:::1;:8;:10::i;:::-;93712:8;::::0;93694:26:::1;::::0;:15:::1;:26;:::i;:::-;93677:14;:43:::0;93585:172::o;94870:112::-;51714:13;:11;:13::i;:::-;-1:-1:-1;;;;;94949:14:0;;::::1;;::::0;;;:7:::1;:14;::::0;;;;:25;94870:112::o;94595:171::-;51714:13;:11;:13::i;:::-;94678:8:::1;:18:::0;;-1:-1:-1;;94678:18:0::1;::::0;::::1;;;::::0;;94718:9;;94707:5:::1;::::0;:20:::1;::::0;:5;:20:::1;:::i;:::-;-1:-1:-1::0;94749:9:0::1;::::0;::::1;::::0;94738:8;;:20:::1;::::0;:8;:20:::1;:::i;94120:184::-:0;94159:7;94216:1;94201:11;:9;:11::i;:::-;:16;94198:99;;-1:-1:-1;94240:4:0;;;94120:184::o;94198:99::-;-1:-1:-1;94284:1:0;;94120:184::o;94312:183::-;51714:13;:11;:13::i;:::-;94398:11:::1;94395:93;;;94425:8;:6;:8::i;:::-;94312:183:::0;:::o;94395:93::-:1;94466:10;:8;:10::i;94503:84::-:0;51714:13;:11;:13::i;:::-;94565:4:::1;:14:::0;94503:84::o;66856:159::-;-1:-1:-1;;;;;66970:27:0;;;66946:4;66970:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;66856:159::o;93765:184::-;51714:13;:11;:13::i;:::-;93923:8:::1;:18:::0;93765:184::o;95157:930::-;95284:1;95271:9;95261:7;;:19;;;;:::i;:::-;:24;;95253:48;;;;-1:-1:-1;;;95253:48:0;;21271:2:1;95253:48:0;;;21253:21:1;21310:2;21290:18;;;21283:30;-1:-1:-1;;;21329:18:1;;;21322:41;21380:18;;95253:48:0;21069:335:1;95253:48:0;51901:6;;-1:-1:-1;;;;;51901:6:0;95315:10;:21;95312:217;;95368:10;95382:1;95360:19;;;:7;:19;;;;;;95352:47;;;;-1:-1:-1;;;95352:47:0;;15281:2:1;95352:47:0;;;15263:21:1;15320:2;15300:18;;;15293:30;-1:-1:-1;;;15339:18:1;;;15332:41;15390:18;;95352:47:0;15079:335:1;95352:47:0;95430:10;95422:19;;;;:7;:19;;;;;;:32;-1:-1:-1;95422:32:0;95414:56;;;;-1:-1:-1;;;95414:56:0;;21271:2:1;95414:56:0;;;21253:21:1;21310:2;21290:18;;;21283:30;-1:-1:-1;;;21329:18:1;;;21322:41;21380:18;;95414:56:0;21069:335:1;95414:56:0;95493:10;95485:19;;;;:7;:19;;;;;:32;;95508:9;;95485:19;:32;;95508:9;;95485:32;:::i;:::-;;;;-1:-1:-1;;95312:217:0;95560:9;95549:7;;:20;;;;;;;:::i;:::-;;;;-1:-1:-1;;95596:1:0;95583:14;;;95580:500;;95613:13;:15;;;:13;:15;;;:::i;:::-;;;;;;95643:31;95649:2;95653:13;;95668:1;95643:31;;;;;;;;;;;;:5;:31::i;95580:500::-;95715:24;95756:9;-1:-1:-1;;;;;95742:24:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;95742:24:0;;95715:51;;95781:25;95823:9;-1:-1:-1;;;;;95809:24:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;95809:24:0;;95781:52;;95853:9;95848:169;95872:9;95868:1;:13;95848:169;;;95907:13;:15;;;:13;:15;;;:::i;:::-;;;;;;95954:13;;95941:7;95949:1;95941:10;;;;;;;;:::i;:::-;;;;;;:26;;;;;96000:1;95986:8;95995:1;95986:11;;;;;;;;:::i;:::-;;;;;;;;;;:15;95883:3;;;;:::i;:::-;;;;95848:169;;;;96031:37;96042:2;96046:7;96055:8;96031:37;;;;;;;;;;;;:10;:37::i;:::-;95700:380;;95157:930;;:::o;67087:357::-;46990:10;-1:-1:-1;;;;;67255:14:0;;;;;;;:49;;;67274:30;67291:4;67297:6;67274:16;:30::i;:::-;67273:31;67255:49;67251:131;;;67328:42;;-1:-1:-1;;;67328:42:0;;-1:-1:-1;;;;;14766:15:1;;;67328:42:0;;;14748:34:1;14818:15;;14798:18;;;14791:43;14683:18;;67328:42:0;14536:304:1;67251:131:0;67392:44;67410:4;67416:2;67420;67424:5;67431:4;67392:17;:44::i;52761:220::-;51714:13;:11;:13::i;:::-;-1:-1:-1;;;;;52846:22:0;::::1;52842:93;;52892:31;::::0;-1:-1:-1;;;52892:31:0;;52920:1:::1;52892:31;::::0;::::1;8719:51:1::0;8692:18;;52892:31:0::1;8573:203:1::0;52842:93:0::1;52945:28;52964:8;52945:18;:28::i;34557:718::-:0;34613:13;34664:14;34681:17;34692:5;34681:10;:17::i;:::-;34701:1;34681:21;34664:38;;34717:20;34751:6;-1:-1:-1;;;;;34740:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34740:18:0;-1:-1:-1;34717:41:0;-1:-1:-1;34882:28:0;;;34898:2;34882:28;34939:290;-1:-1:-1;;34971:5:0;-1:-1:-1;;;35108:2:0;35097:14;;35092:32;34971:5;35079:46;35171:2;35162:11;;;-1:-1:-1;35192:21:0;34939:290;35192:21;-1:-1:-1;35250:6:0;34557:718;-1:-1:-1;;;34557:718:0:o;72649:459::-;-1:-1:-1;;;;;72849:16:0;;72845:90;;72889:34;;-1:-1:-1;;;72889:34:0;;72920:1;72889:34;;;8719:51:1;8692:18;;72889:34:0;8573:203:1;72845:90:0;-1:-1:-1;;;;;72949:18:0;;72945:90;;72991:32;;-1:-1:-1;;;72991:32:0;;73020:1;72991:32;;;8719:51:1;8692:18;;72991:32:0;8573:203:1;72945:90:0;73045:55;73072:4;73078:2;73082:3;73087:6;73095:4;73045:26;:55::i;1422:156::-;1513:4;1566;1537:25;1550:5;1557:4;1537:12;:25::i;:::-;:33;;1422:156;-1:-1:-1;;;;1422:156:0:o;51993:166::-;51901:6;;-1:-1:-1;;;;;51901:6:0;46990:10;52053:23;52049:103;;52100:40;;-1:-1:-1;;;52100:40:0;;46990:10;52100:40;;;8719:51:1;8692:18;;52100:40:0;8573:203:1;49236:132:0;49148:7;;-1:-1:-1;;;49148:7:0;;;;49298:63;;;49334:15;;-1:-1:-1;;;49334:15:0;;;;;;;;;;;74430:352;-1:-1:-1;;;;;74527:16:0;;74523:90;;74567:34;;-1:-1:-1;;;74567:34:0;;74598:1;74567:34;;;8719:51:1;8692:18;;74567:34:0;8573:203:1;74523:90:0;80214:4;80208:11;;80286:1;80271:17;;;80419:4;80407:17;;80400:35;;;80539:17;;;80570;;;80024:23;80608:17;;80601:35;;;80747:17;;;80734:31;;;80208:11;74713:61;-1:-1:-1;74752:2:0;80208:11;80539:17;74769:4;74713:26;:61::i;75227:287::-;-1:-1:-1;;;;;75349:16:0;;75345:90;;75389:34;;-1:-1:-1;;;75389:34:0;;75420:1;75389:34;;;8719:51:1;8692:18;;75389:34:0;8573:203:1;75345:90:0;75445:61;75480:1;75484:2;75488:3;75493:6;75501:4;75445:26;:61::i;53141:191::-;53234:6;;;-1:-1:-1;;;;;53251:17:0;;;-1:-1:-1;;;;;;53251:17:0;;;;;;;53284:40;;53234:6;;;53251:17;53234:6;;53284:40;;53215:16;;53284:40;53204:128;53141:191;:::o;77024:321::-;-1:-1:-1;;;;;77132:22:0;;77128:96;;77178:34;;-1:-1:-1;;;77178:34:0;;77209:1;77178:34;;;8719:51:1;8692:18;;77178:34:0;8573:203:1;77128:96:0;-1:-1:-1;;;;;77234:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;77234:46:0;;;;;;;;;;77296:41;;1503::1;;;77296::0;;1476:18:1;77296:41:0;;;;;;;77024:321;;;:::o;49978:120::-;48941:16;:14;:16::i;:::-;50037:7:::1;:15:::0;;-1:-1:-1;;;;50037:15:0::1;::::0;;50068:22:::1;46990:10:::0;50077:12:::1;50068:22;::::0;-1:-1:-1;;;;;8737:32:1;;;8719:51;;8707:2;8692:18;50068:22:0::1;;;;;;;49978:120::o:0;49719:118::-;48682:19;:17;:19::i;:::-;49779:7:::1;:14:::0;;-1:-1:-1;;;;49779:14:0::1;-1:-1:-1::0;;;49779:14:0::1;::::0;;49809:20:::1;49816:12;46990:10:::0;;46910:98;71763:472;-1:-1:-1;;;;;71886:16:0;;71882:90;;71926:34;;-1:-1:-1;;;71926:34:0;;71957:1;71926:34;;;8719:51:1;8692:18;;71926:34:0;8573:203:1;71882:90:0;-1:-1:-1;;;;;71986:18:0;;71982:90;;72028:32;;-1:-1:-1;;;72028:32:0;;72057:1;72028:32;;;8719:51:1;8692:18;;72028:32:0;8573:203:1;71982:90:0;80214:4;80208:11;;80286:1;80271:17;;;80419:4;80407:17;;80400:35;;;80539:17;;;80570;;;80024:23;80608:17;;80601:35;;;80747:17;;;80734:31;;;80208:11;72172:55;72199:4;72205:2;80208:11;80539:17;72222:4;72172:26;:55::i;:::-;71871:364;;71763:472;;;;;:::o;30908:948::-;30961:7;;-1:-1:-1;;;31039:17:0;;31035:106;;-1:-1:-1;;;31077:17:0;;;-1:-1:-1;31123:2:0;31113:12;31035:106;31168:8;31159:5;:17;31155:106;;31206:8;31197:17;;;-1:-1:-1;31243:2:0;31233:12;31155:106;31288:8;31279:5;:17;31275:106;;31326:8;31317:17;;;-1:-1:-1;31363:2:0;31353:12;31275:106;31408:7;31399:5;:16;31395:103;;31445:7;31436:16;;;-1:-1:-1;31481:1:0;31471:11;31395:103;31525:7;31516:5;:16;31512:103;;31562:7;31553:16;;;-1:-1:-1;31598:1:0;31588:11;31512:103;31642:7;31633:5;:16;31629:103;;31679:7;31670:16;;;-1:-1:-1;31715:1:0;31705:11;31629:103;31759:7;31750:5;:16;31746:68;;31797:1;31787:11;31842:6;30908:948;-1:-1:-1;;30908:948:0:o;70584:708::-;70792:30;70800:4;70806:2;70810:3;70815:6;70792:7;:30::i;:::-;-1:-1:-1;;;;;70837:16:0;;;70833:452;;70920:10;;46990;;70934:1;70920:15;70916:358;;46130:4;46101:35;;;46095:42;46101:35;;;46095:42;71076:67;71107:8;71117:4;71123:2;46095:42;;71138:4;71076:30;:67::i;:::-;70937:222;;70916:358;;;71184:74;71220:8;71230:4;71236:2;71240:3;71245:6;71253:4;71184:35;:74::i;2141:296::-;2224:7;2267:4;2224:7;2282:118;2306:5;:12;2302:1;:16;2282:118;;;2355:33;2365:12;2379:5;2385:1;2379:8;;;;;;;;:::i;:::-;;;;;;;2355:9;:33::i;:::-;2340:48;-1:-1:-1;2320:3:0;;;;:::i;:::-;;;;2282:118;;49445:130;49148:7;;-1:-1:-1;;;49148:7:0;;;;49504:64;;49541:15;;-1:-1:-1;;;49541:15:0;;;;;;;;;;;98662:227;98845:36;98859:4;98865:2;98869:3;98874:6;98845:13;:36::i;77529:1000::-;-1:-1:-1;;;;;77743:14:0;;;:18;77739:783;;77782:71;;-1:-1:-1;;;77782:71:0;;-1:-1:-1;;;;;77782:38:0;;;;;:71;;77821:8;;77831:4;;77837:2;;77841:5;;77848:4;;77782:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77782:71:0;;;;;;;;-1:-1:-1;;77782:71:0;;;;;;;;;;;;:::i;:::-;;;77778:733;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78143:6;:13;78160:1;78143:18;78139:357;;78249:26;;-1:-1:-1;;;78249:26:0;;-1:-1:-1;;;;;8737:32:1;;78249:26:0;;;8719:51:1;8692:18;;78249:26:0;8573:203:1;78139:357:0;78446:6;78440:13;78431:6;78427:2;78423:15;78416:38;77778:733;-1:-1:-1;;;;;;77903:55:0;;-1:-1:-1;;;77903:55:0;77899:177;;78030:26;;-1:-1:-1;;;78030:26:0;;-1:-1:-1;;;;;8737:32:1;;78030:26:0;;;8719:51:1;8692:18;;78030:26:0;8573:203:1;78723:1069:0;-1:-1:-1;;;;;78962:14:0;;;:18;78958:827;;79001:78;;-1:-1:-1;;;79001:78:0;;-1:-1:-1;;;;;79001:43:0;;;;;:78;;79045:8;;79055:4;;79061:3;;79066:6;;79074:4;;79001:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79001:78:0;;;;;;;;-1:-1:-1;;79001:78:0;;;;;;;;;;;;:::i;:::-;;;78997:777;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;79161:60:0;;-1:-1:-1;;;79161:60:0;79157:182;;79293:26;;-1:-1:-1;;;79293:26:0;;-1:-1:-1;;;;;8737:32:1;;79293:26:0;;;8719:51:1;8692:18;;79293:26:0;8573:203:1;9571:149:0;9634:7;9665:1;9661;:5;:51;;9913:13;10007:15;;;10043:4;10036:15;;;10090:4;10074:21;;9661:51;;;9913:13;10007:15;;;10043:4;10036:15;;;10090:4;10074:21;;9669:20;9654:58;9571:149;-1:-1:-1;;;9571:149:0:o;82381:1555::-;82551:36;82565:4;82571:2;82575:3;82580:6;82551:13;:36::i;:::-;-1:-1:-1;;;;;82604:18:0;;82600:543;;82639:22;82685:9;82680:298;82704:3;:10;82700:1;:14;82680:298;;;82740:13;82756:6;82763:1;82756:9;;;;;;;;:::i;:::-;;;;;;;82740:25;;82915:5;82891:12;:20;82904:3;82908:1;82904:6;;;;;;;;:::i;:::-;;;;;;;82891:20;;;;;;;;;;;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;82939:23:0;;-1:-1:-1;82957:5:0;82939:23;;:::i;:::-;;;82721:257;82716:3;;;;:::i;:::-;;;82680:298;;;;83117:14;83098:15;;:33;;;;;;;:::i;:::-;;;;-1:-1:-1;;;82600:543:0;-1:-1:-1;;;;;83159:16:0;;83155:774;;83192:22;83238:9;83233:468;83257:3;:10;83253:1;:14;83233:468;;;83293:13;83309:6;83316:1;83309:9;;;;;;;;:::i;:::-;;;;;;;83293:25;;83503:5;83479:12;:20;83492:3;83496:1;83492:6;;;;;;;;:::i;:::-;;;;;;;83479:20;;;;;;;;;;;;:29;;;;;;;;;;;83661:5;83643:23;;;;83274:427;83269:3;;;;:::i;:::-;;;83233:468;;;-1:-1:-1;83869:15:0;:33;;;;;;;;82381:1555;;;;:::o;85109:228::-;48682:19;:17;:19::i;:::-;85293:36:::1;85307:4;85313:2;85317:3;85322:6;68815::::0;:13;68801:3;:10;:27;68797:119;;68878:10;;68890:13;;68852:52;;-1:-1:-1;;;68852:52:0;;;;;16485:25:1;;;;16526:18;;;16519:34;16458:18;;68852:52:0;16311:248:1;68797:119:0;46990:10;68928:16;68972:709;68996:3;:10;68992:1;:14;68972:709;;;46130:4;46121:14;;;46101:35;;;;;46095:42;46101:35;;;;;;46095:42;-1:-1:-1;;;;;69146:18:0;;;69142:429;;69185:19;69207:13;;;;;;;;;;;-1:-1:-1;;;;;69207:19:0;;;;;;;;;;69249;;;69245:131;;;69300:56;;-1:-1:-1;;;69300:56:0;;-1:-1:-1;;;;;23442:32:1;;69300:56:0;;;23424:51:1;23491:18;;;23484:34;;;23534:18;;;23527:34;;;23577:18;;;23570:34;;;23396:19;;69300:56:0;23193:417:1;69245:131:0;69495:9;:13;;;;;;;;;;;-1:-1:-1;;;;;69495:19:0;;;;;;;;;69517;;;;69495:41;;69142:429;-1:-1:-1;;;;;69591:16:0;;;69587:83;;69628:9;:13;;;;;;;;;;;-1:-1:-1;;;;;69628:17:0;;;;;;;;;:26;;69649:5;;69628:9;:26;;69649:5;;69628:26;:::i;:::-;;;;-1:-1:-1;;69587:83:0;69013:668;;69008:3;;;;:::i;:::-;;;68972:709;;;;69697:3;:10;69711:1;69697:15;69693:294;;46130:4;46101:35;;46095:42;69729:10;;46130:4;46101:35;;46095:42;69729:38;;-1:-1:-1;69877:2:0;-1:-1:-1;;;;;69846:45:0;69871:4;-1:-1:-1;;;;;69846:45:0;69861:8;-1:-1:-1;;;;;69846:45:0;;69881:2;69885:5;69846:45;;;;;;16485:25:1;;;16541:2;16526:18;;16519:34;16473:2;16458:18;;16311:248;69846:45:0;;;;;;;;69714:189;;69693:294;;;69959:2;-1:-1:-1;;;;;69929:46:0;69953:4;-1:-1:-1;;;;;69929:46:0;69943:8;-1:-1:-1;;;;;69929:46:0;;69963:3;69968:6;69929:46;;;;;;;:::i;:::-;;;;;;;;68786:1208;68679:1315;;;;:::o;358:173:1:-;426:20;;-1:-1:-1;;;;;475:31:1;;465:42;;455:70;;521:1;518;511:12;536:254;604:6;612;665:2;653:9;644:7;640:23;636:32;633:52;;;681:1;678;671:12;633:52;704:29;723:9;704:29;:::i;:::-;694:39;780:2;765:18;;;;752:32;;-1:-1:-1;;;536:254:1:o;977:131::-;-1:-1:-1;;;;;;1051:32:1;;1041:43;;1031:71;;1098:1;1095;1088:12;1113:245;1171:6;1224:2;1212:9;1203:7;1199:23;1195:32;1192:52;;;1240:1;1237;1230:12;1192:52;1279:9;1266:23;1298:30;1322:5;1298:30;:::i;1555:250::-;1640:1;1650:113;1664:6;1661:1;1658:13;1650:113;;;1740:11;;;1734:18;1721:11;;;1714:39;1686:2;1679:10;1650:113;;;-1:-1:-1;;1797:1:1;1779:16;;1772:27;1555:250::o;1810:271::-;1852:3;1890:5;1884:12;1917:6;1912:3;1905:19;1933:76;2002:6;1995:4;1990:3;1986:14;1979:4;1972:5;1968:16;1933:76;:::i;:::-;2063:2;2042:15;-1:-1:-1;;2038:29:1;2029:39;;;;2070:4;2025:50;;1810:271;-1:-1:-1;;1810:271:1:o;2086:220::-;2235:2;2224:9;2217:21;2198:4;2255:45;2296:2;2285:9;2281:18;2273:6;2255:45;:::i;2311:180::-;2370:6;2423:2;2411:9;2402:7;2398:23;2394:32;2391:52;;;2439:1;2436;2429:12;2391:52;-1:-1:-1;2462:23:1;;2311:180;-1:-1:-1;2311:180:1:o;2496:127::-;2557:10;2552:3;2548:20;2545:1;2538:31;2588:4;2585:1;2578:15;2612:4;2609:1;2602:15;2628:251;2700:2;2694:9;;;2730:15;;-1:-1:-1;;;;;2760:34:1;;2796:22;;;2757:62;2754:88;;;2822:18;;:::i;:::-;2858:2;2851:22;2628:251;:::o;2884:275::-;2955:2;2949:9;3020:2;3001:13;;-1:-1:-1;;2997:27:1;2985:40;;-1:-1:-1;;;;;3040:34:1;;3076:22;;;3037:62;3034:88;;;3102:18;;:::i;:::-;3138:2;3131:22;2884:275;;-1:-1:-1;2884:275:1:o;3164:183::-;3224:4;-1:-1:-1;;;;;3249:6:1;3246:30;3243:56;;;3279:18;;:::i;:::-;-1:-1:-1;3324:1:1;3320:14;3336:4;3316:25;;3164:183::o;3352:662::-;3406:5;3459:3;3452:4;3444:6;3440:17;3436:27;3426:55;;3477:1;3474;3467:12;3426:55;3513:6;3500:20;3539:4;3563:60;3579:43;3619:2;3579:43;:::i;:::-;3563:60;:::i;:::-;3657:15;;;3743:1;3739:10;;;;3727:23;;3723:32;;;3688:12;;;;3767:15;;;3764:35;;;3795:1;3792;3785:12;3764:35;3831:2;3823:6;3819:15;3843:142;3859:6;3854:3;3851:15;3843:142;;;3925:17;;3913:30;;3963:12;;;;3876;;3843:142;;;-1:-1:-1;4003:5:1;3352:662;-1:-1:-1;;;;;;3352:662:1:o;4019:406::-;4083:5;-1:-1:-1;;;;;4109:6:1;4106:30;4103:56;;;4139:18;;:::i;:::-;4177:57;4222:2;4201:15;;-1:-1:-1;;4197:29:1;4228:4;4193:40;4177:57;:::i;:::-;4168:66;;4257:6;4250:5;4243:21;4297:3;4288:6;4283:3;4279:16;4276:25;4273:45;;;4314:1;4311;4304:12;4273:45;4363:6;4358:3;4351:4;4344:5;4340:16;4327:43;4417:1;4410:4;4401:6;4394:5;4390:18;4386:29;4379:40;4019:406;;;;;:::o;4430:220::-;4472:5;4525:3;4518:4;4510:6;4506:17;4502:27;4492:55;;4543:1;4540;4533:12;4492:55;4565:79;4640:3;4631:6;4618:20;4611:4;4603:6;4599:17;4565:79;:::i;4655:943::-;4809:6;4817;4825;4833;4841;4894:3;4882:9;4873:7;4869:23;4865:33;4862:53;;;4911:1;4908;4901:12;4862:53;4934:29;4953:9;4934:29;:::i;:::-;4924:39;;4982:38;5016:2;5005:9;5001:18;4982:38;:::i;:::-;4972:48;;5071:2;5060:9;5056:18;5043:32;-1:-1:-1;;;;;5135:2:1;5127:6;5124:14;5121:34;;;5151:1;5148;5141:12;5121:34;5174:61;5227:7;5218:6;5207:9;5203:22;5174:61;:::i;:::-;5164:71;;5288:2;5277:9;5273:18;5260:32;5244:48;;5317:2;5307:8;5304:16;5301:36;;;5333:1;5330;5323:12;5301:36;5356:63;5411:7;5400:8;5389:9;5385:24;5356:63;:::i;:::-;5346:73;;5472:3;5461:9;5457:19;5444:33;5428:49;;5502:2;5492:8;5489:16;5486:36;;;5518:1;5515;5508:12;5486:36;;5541:51;5584:7;5573:8;5562:9;5558:24;5541:51;:::i;:::-;5531:61;;;4655:943;;;;;;;;:::o;5603:422::-;5696:6;5704;5757:2;5745:9;5736:7;5732:23;5728:32;5725:52;;;5773:1;5770;5763:12;5725:52;5813:9;5800:23;-1:-1:-1;;;;;5838:6:1;5835:30;5832:50;;;5878:1;5875;5868:12;5832:50;5901:61;5954:7;5945:6;5934:9;5930:22;5901:61;:::i;:::-;5891:71;;;5981:38;6015:2;6004:9;6000:18;5981:38;:::i;:::-;5971:48;;5603:422;;;;;:::o;6030:1146::-;6148:6;6156;6209:2;6197:9;6188:7;6184:23;6180:32;6177:52;;;6225:1;6222;6215:12;6177:52;6265:9;6252:23;-1:-1:-1;;;;;6335:2:1;6327:6;6324:14;6321:34;;;6351:1;6348;6341:12;6321:34;6389:6;6378:9;6374:22;6364:32;;6434:7;6427:4;6423:2;6419:13;6415:27;6405:55;;6456:1;6453;6446:12;6405:55;6492:2;6479:16;6514:4;6538:60;6554:43;6594:2;6554:43;:::i;6538:60::-;6632:15;;;6714:1;6710:10;;;;6702:19;;6698:28;;;6663:12;;;;6738:19;;;6735:39;;;6770:1;6767;6760:12;6735:39;6794:11;;;;6814:148;6830:6;6825:3;6822:15;6814:148;;;6896:23;6915:3;6896:23;:::i;:::-;6884:36;;6847:12;;;;6940;;;;6814:148;;;6981:5;-1:-1:-1;;7024:18:1;;7011:32;;-1:-1:-1;;7055:16:1;;;7052:36;;;7084:1;7081;7074:12;7052:36;;7107:63;7162:7;7151:8;7140:9;7136:24;7107:63;:::i;:::-;7097:73;;;6030:1146;;;;;:::o;7181:435::-;7234:3;7272:5;7266:12;7299:6;7294:3;7287:19;7325:4;7354:2;7349:3;7345:12;7338:19;;7391:2;7384:5;7380:14;7412:1;7422:169;7436:6;7433:1;7430:13;7422:169;;;7497:13;;7485:26;;7531:12;;;;7566:15;;;;7458:1;7451:9;7422:169;;;-1:-1:-1;7607:3:1;;7181:435;-1:-1:-1;;;;;7181:435:1:o;7621:261::-;7800:2;7789:9;7782:21;7763:4;7820:56;7872:2;7861:9;7857:18;7849:6;7820:56;:::i;7887:490::-;7989:6;7997;8005;8058:2;8046:9;8037:7;8033:23;8029:32;8026:52;;;8074:1;8071;8064:12;8026:52;8097:29;8116:9;8097:29;:::i;:::-;8087:39;;8173:2;8162:9;8158:18;8145:32;8135:42;;8228:2;8217:9;8213:18;8200:32;-1:-1:-1;;;;;8247:6:1;8244:30;8241:50;;;8287:1;8284;8277:12;8241:50;8310:61;8363:7;8354:6;8343:9;8339:22;8310:61;:::i;:::-;8300:71;;;7887:490;;;;;:::o;8382:186::-;8441:6;8494:2;8482:9;8473:7;8469:23;8465:32;8462:52;;;8510:1;8507;8500:12;8462:52;8533:29;8552:9;8533:29;:::i;8781:160::-;8846:20;;8902:13;;8895:21;8885:32;;8875:60;;8931:1;8928;8921:12;8946:254;9011:6;9019;9072:2;9060:9;9051:7;9047:23;9043:32;9040:52;;;9088:1;9085;9078:12;9040:52;9111:29;9130:9;9111:29;:::i;:::-;9101:39;;9159:35;9190:2;9179:9;9175:18;9159:35;:::i;9205:1264::-;9303:6;9311;9364:2;9352:9;9343:7;9339:23;9335:32;9332:52;;;9380:1;9377;9370:12;9332:52;9403:26;9419:9;9403:26;:::i;:::-;9393:36;;9448:2;9501;9490:9;9486:18;9473:32;-1:-1:-1;;;;;9565:2:1;9557:6;9554:14;9551:34;;;9581:1;9578;9571:12;9551:34;9619:6;9608:9;9604:22;9594:32;;9645:4;9685:7;9680:2;9676;9672:11;9668:25;9658:53;;9707:1;9704;9697:12;9658:53;9731:22;;:::i;:::-;9775:3;9809:2;9805;9801:11;9835:7;9827:6;9824:19;9821:39;;;9856:1;9853;9846:12;9821:39;9880:2;9891:548;9907:6;9902:3;9899:15;9891:548;;;9993:3;9980:17;10029:2;10016:11;10013:19;10010:109;;;10073:1;10102:2;10098;10091:14;10010:109;10142:20;;10189:11;;;10185:25;-1:-1:-1;10175:123:1;;10252:1;10281:2;10277;10270:14;10175:123;10323:73;10388:7;10383:2;10370:16;10365:2;10361;10357:11;10323:73;:::i;:::-;10311:86;;-1:-1:-1;10417:12:1;;;;9924;;9891:548;;;-1:-1:-1;9205:1264:1;;10458:5;;-1:-1:-1;9205:1264:1;-1:-1:-1;;;;;;;;9205:1264:1:o;10474:180::-;10530:6;10583:2;10571:9;10562:7;10558:23;10554:32;10551:52;;;10599:1;10596;10589:12;10551:52;10622:26;10638:9;10622:26;:::i;10844:260::-;10912:6;10920;10973:2;10961:9;10952:7;10948:23;10944:32;10941:52;;;10989:1;10986;10979:12;10941:52;11012:29;11031:9;11012:29;:::i;:::-;11002:39;;11060:38;11094:2;11083:9;11079:18;11060:38;:::i;11291:606::-;11395:6;11403;11411;11419;11427;11480:3;11468:9;11459:7;11455:23;11451:33;11448:53;;;11497:1;11494;11487:12;11448:53;11520:29;11539:9;11520:29;:::i;:::-;11510:39;;11568:38;11602:2;11591:9;11587:18;11568:38;:::i;:::-;11558:48;;11653:2;11642:9;11638:18;11625:32;11615:42;;11704:2;11693:9;11689:18;11676:32;11666:42;;11759:3;11748:9;11744:19;11731:33;-1:-1:-1;;;;;11779:6:1;11776:30;11773:50;;;11819:1;11816;11809:12;11773:50;11842:49;11883:7;11874:6;11863:9;11859:22;11842:49;:::i;11902:380::-;11981:1;11977:12;;;;12024;;;12045:61;;12099:4;12091:6;12087:17;12077:27;;12045:61;12152:2;12144:6;12141:14;12121:18;12118:38;12115:161;;12198:10;12193:3;12189:20;12186:1;12179:31;12233:4;12230:1;12223:15;12261:4;12258:1;12251:15;12115:161;;11902:380;;;:::o;12636:127::-;12697:10;12692:3;12688:20;12685:1;12678:31;12728:4;12725:1;12718:15;12752:4;12749:1;12742:15;12894:722;12944:3;12985:5;12979:12;13014:36;13040:9;13014:36;:::i;:::-;13069:1;13086:18;;;13113:133;;;;13260:1;13255:355;;;;13079:531;;13113:133;-1:-1:-1;;13146:24:1;;13134:37;;13219:14;;13212:22;13200:35;;13191:45;;;-1:-1:-1;13113:133:1;;13255:355;13286:5;13283:1;13276:16;13315:4;13360:2;13357:1;13347:16;13385:1;13399:165;13413:6;13410:1;13407:13;13399:165;;;13491:14;;13478:11;;;13471:35;13534:16;;;;13428:10;;13399:165;;;13403:3;;;13593:6;13588:3;13584:16;13577:23;;13079:531;;;;;12894:722;;;;:::o;13621:469::-;13842:3;13870:38;13904:3;13896:6;13870:38;:::i;:::-;13937:6;13931:13;13953:65;14011:6;14007:2;14000:4;13992:6;13988:17;13953:65;:::i;:::-;14034:50;14076:6;14072:2;14068:15;14060:6;14034:50;:::i;:::-;14027:57;13621:469;-1:-1:-1;;;;;;;13621:469:1:o;14095:436::-;14369:3;14397:38;14431:3;14423:6;14397:38;:::i;:::-;-1:-1:-1;;;14451:2:1;14444:20;14480:45;14522:1;14518:2;14514:10;14506:6;14480:45;:::i;:::-;14473:52;14095:436;-1:-1:-1;;;;;14095:436:1:o;16564:127::-;16625:10;16620:3;16616:20;16613:1;16606:31;16656:4;16653:1;16646:15;16680:4;16677:1;16670:15;16696:135;16735:3;16756:17;;;16753:43;;16776:18;;:::i;:::-;-1:-1:-1;16823:1:1;16812:13;;16696:135::o;17524:128::-;17591:9;;;17612:11;;;17609:37;;;17626:18;;:::i;17657:125::-;17722:9;;;17743:10;;;17740:36;;;17756:18;;:::i;18473:168::-;18546:9;;;18577;;18594:15;;;18588:22;;18574:37;18564:71;;18615:18;;:::i;18991:545::-;19093:2;19088:3;19085:11;19082:448;;;19129:1;19154:5;19150:2;19143:17;19199:4;19195:2;19185:19;19269:2;19257:10;19253:19;19250:1;19246:27;19240:4;19236:38;19305:4;19293:10;19290:20;19287:47;;;-1:-1:-1;19328:4:1;19287:47;19383:2;19378:3;19374:12;19371:1;19367:20;19361:4;19357:31;19347:41;;19438:82;19456:2;19449:5;19446:13;19438:82;;;19501:17;;;19482:1;19471:13;19438:82;;19712:1352;19838:3;19832:10;-1:-1:-1;;;;;19857:6:1;19854:30;19851:56;;;19887:18;;:::i;:::-;19916:97;20006:6;19966:38;19998:4;19992:11;19966:38;:::i;:::-;19960:4;19916:97;:::i;:::-;20068:4;;20132:2;20121:14;;20149:1;20144:663;;;;20851:1;20868:6;20865:89;;;-1:-1:-1;20920:19:1;;;20914:26;20865:89;-1:-1:-1;;19669:1:1;19665:11;;;19661:24;19657:29;19647:40;19693:1;19689:11;;;19644:57;20967:81;;20114:944;;20144:663;12841:1;12834:14;;;12878:4;12865:18;;-1:-1:-1;;20180:20:1;;;20298:236;20312:7;20309:1;20306:14;20298:236;;;20401:19;;;20395:26;20380:42;;20493:27;;;;20461:1;20449:14;;;;20328:19;;20298:236;;;20302:3;20562:6;20553:7;20550:19;20547:201;;;20623:19;;;20617:26;-1:-1:-1;;20706:1:1;20702:14;;;20718:3;20698:24;20694:37;20690:42;20675:58;20660:74;;20547:201;-1:-1:-1;;;;;20794:1:1;20778:14;;;20774:22;20761:36;;-1:-1:-1;19712:1352:1:o;21541:561::-;-1:-1:-1;;;;;21838:15:1;;;21820:34;;21890:15;;21885:2;21870:18;;21863:43;21937:2;21922:18;;21915:34;;;21980:2;21965:18;;21958:34;;;21800:3;22023;22008:19;;22001:32;;;21763:4;;22050:46;;22076:19;;22068:6;22050:46;:::i;22107:249::-;22176:6;22229:2;22217:9;22208:7;22204:23;22200:32;22197:52;;;22245:1;22242;22235:12;22197:52;22277:9;22271:16;22296:30;22320:5;22296:30;:::i;22361:827::-;-1:-1:-1;;;;;22758:15:1;;;22740:34;;22810:15;;22805:2;22790:18;;22783:43;22720:3;22857:2;22842:18;;22835:31;;;22683:4;;22889:57;;22926:19;;22918:6;22889:57;:::i;:::-;22994:9;22986:6;22982:22;22977:2;22966:9;22962:18;22955:50;23028:44;23065:6;23057;23028:44;:::i;:::-;23014:58;;23121:9;23113:6;23109:22;23103:3;23092:9;23088:19;23081:51;23149:33;23175:6;23167;23149:33;:::i;:::-;23141:41;22361:827;-1:-1:-1;;;;;;;;22361:827:1:o;23615:465::-;23872:2;23861:9;23854:21;23835:4;23898:56;23950:2;23939:9;23935:18;23927:6;23898:56;:::i;:::-;24002:9;23994:6;23990:22;23985:2;23974:9;23970:18;23963:50;24030:44;24067:6;24059;24030:44;:::i
Swarm Source
ipfs://38daf8e28bd018b3c7b1becd06c295cb37b2831fdd0fb944452db064d7d01815
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.