Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 214 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 19815619 | 205 days ago | IN | 0 ETH | 0.00023263 | ||||
Set Approval For... | 19682772 | 223 days ago | IN | 0 ETH | 0.00033774 | ||||
Set Approval For... | 19153101 | 298 days ago | IN | 0 ETH | 0.00031649 | ||||
Set Approval For... | 19089260 | 306 days ago | IN | 0 ETH | 0.00046804 | ||||
Set Approval For... | 19089256 | 306 days ago | IN | 0 ETH | 0.00045334 | ||||
Set Approval For... | 18868818 | 337 days ago | IN | 0 ETH | 0.0003184 | ||||
Set Approval For... | 18748819 | 354 days ago | IN | 0 ETH | 0.00087504 | ||||
Set Approval For... | 18748817 | 354 days ago | IN | 0 ETH | 0.00148005 | ||||
Mint | 18602265 | 375 days ago | IN | 0 ETH | 0.00042998 | ||||
Mint | 18588650 | 377 days ago | IN | 0 ETH | 0.00107175 | ||||
Set URI | 18588193 | 377 days ago | IN | 0 ETH | 0.00121474 | ||||
Set URI | 18588152 | 377 days ago | IN | 0 ETH | 0.00125048 | ||||
Set Approval For... | 18587911 | 377 days ago | IN | 0 ETH | 0.00110237 | ||||
Mint | 18587727 | 377 days ago | IN | 0 ETH | 0.00057715 | ||||
Set Approval For... | 18587639 | 377 days ago | IN | 0 ETH | 0.00132217 | ||||
Withdraw | 18587418 | 377 days ago | IN | 0 ETH | 0.00096931 | ||||
Set Pause | 18585148 | 377 days ago | IN | 0 ETH | 0.00109422 | ||||
Set Approval For... | 18584891 | 377 days ago | IN | 0 ETH | 0.00145492 | ||||
Mint | 18584574 | 377 days ago | IN | 0.005 ETH | 0.00337392 | ||||
Set Approval For... | 18583137 | 377 days ago | IN | 0 ETH | 0.00147636 | ||||
Set Approval For... | 18582779 | 377 days ago | IN | 0 ETH | 0.00056765 | ||||
Mint | 18582608 | 378 days ago | IN | 0.005 ETH | 0.00264708 | ||||
Set Approval For... | 18582517 | 378 days ago | IN | 0 ETH | 0.00117324 | ||||
Set Approval For... | 18582507 | 378 days ago | IN | 0 ETH | 0.00098583 | ||||
Set Approval For... | 18582462 | 378 days ago | IN | 0 ETH | 0.00120083 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
18587418 | 377 days ago | 0.075 ETH |
Loading...
Loading
Contract Name:
KonNeeCheeWahs
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-14 */ // 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 currentSupply; uint256 public reserve; uint256 public publicMintDate; uint256 public cost; address public vault; bytes32 public root; bool public revealed; constructor() ERC1155("") Ownable(msg.sender) { // こんにちは name = "KonNeeCheeWahs"; symbol = "KNCW"; reserve = 444; allowID[msg.sender] = 444; 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 setCost(uint256 newCost) public onlyOwner { // 価格なし | オプションがある // option to set a cost only at 3/4 minted require(currentSupply >= (totalSupply() - (totalSupply()/4)), "3/4 Minted Required"); cost = newCost; } function getCost() public view returns(uint256) { // 代金 if(mintPhase() >= 2){ if(cost == 0){ return 5000000000000000; } 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 beginMint() public onlyOwner { // 始める _unpause(); publicMintDate = block.timestamp + 14400; // 4hr WL mint } function setAllow(address _user, uint256 _allowID) public onlyOwner { allowID[_user] = _allowID; } function reservesMint(address to, uint256 mintCount) public { // 予備供給 require(allowID[msg.sender] > 0, "Not Allowed"); require(reserve - mintCount >= 0, "Lower Count"); 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] < 3, "3 Max"); require(currentSupply + mintCount < totalSupply() - reserve, "Public Minted Out"); if(block.timestamp < publicMintDate){ require(verifyWL(proof, to), "Not On List"); } else{ if(cost == 0){ cost = 5000000000000000; } require(mintCount == 1, "One Per Transaction"); require(msg.value >= getCost(), "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":"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":"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":"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":"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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801562000010575f80fd5b5060408051602081019091525f815233906200002c816200012d565b506001600160a01b0381166200005c57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b62000067816200013f565b506003805460ff60a01b1916905560408051808201909152600e81526d4b6f6e4e6565436865655761687360901b6020820152600690620000a9908262000973565b506040805180820190915260048152634b4e435760e01b6020820152600790620000d4908262000973565b506101bc600d819055335f818152600a6020908152604080832094909455601080546001600160a01b0319168417905583519081019093528083526200011d9260019062000190565b62000127620001f7565b62000c24565b60026200013b828262000973565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038416620001bb57604051632bfa23e760e11b81525f600482015260240162000053565b60408051600180825260208201869052818301908152606082018590526080820190925290620001ef5f878484876200025a565b505050505050565b62000201620002bd565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200023d3390565b6040516001600160a01b03909116815260200160405180910390a1565b6200026885858585620002f2565b6001600160a01b03841615620002b65782513390600103620002a657602084810151908401516200029e83898985858962000306565b5050620001ef565b620001ef8187878787876200043d565b5050505050565b620002d1600354600160a01b900460ff1690565b15620002f05760405163d93c066560e01b815260040160405180910390fd5b565b62000300848484846200052f565b50505050565b6001600160a01b0384163b15620001ef5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906200034d908990899088908890889060040162000a80565b6020604051808303815f875af19250505080156200038a575060408051601f3d908101601f19168201909252620003879181019062000ac6565b60015b620003f6573d808015620003ba576040519150601f19603f3d011682016040523d82523d5f602084013e620003bf565b606091505b5080515f03620003ee57604051632bfa23e760e11b81526001600160a01b038616600482015260240162000053565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b146200043457604051632bfa23e760e11b81526001600160a01b038616600482015260240162000053565b50505050505050565b6001600160a01b0384163b15620001ef5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819062000484908990899088908890889060040162000b31565b6020604051808303815f875af1925050508015620004c1575060408051601f3d908101601f19168201909252620004be9181019062000ac6565b60015b620004f1573d808015620003ba576040519150601f19603f3d011682016040523d82523d5f602084013e620003bf565b6001600160e01b0319811663bc197c8160e01b146200043457604051632bfa23e760e11b81526001600160a01b038616600482015260240162000053565b6200053d848484846200069c565b6001600160a01b038416620005fb575f805b8351811015620005e0575f8382815181106200056f576200056f62000b94565b602002602001015190508060045f87858151811062000592576200059262000b94565b602002602001015181526020019081526020015f205f828254620005b7919062000bbc565b90915550620005c99050818462000bbc565b92505080620005d89062000bd8565b90506200054f565b508060055f828254620005f4919062000bbc565b9091555050505b6001600160a01b03831662000300575f805b83518110156200068b575f8382815181106200062d576200062d62000b94565b602002602001015190508060045f87858151811062000650576200065062000b94565b602002602001015181526020019081526020015f205f828254039250508190555080830192505080620006839062000bd8565b90506200060d565b506005805491909103905550505050565b620006a6620002bd565b62000300848484848051825114620006df5781518151604051635b05999160e01b81526004810192909252602482015260440162000053565b335f5b8351811015620007f4576020818102858101820151908501909101516001600160a01b0388161562000797575f828152602081815260408083206001600160a01b038c1684529091529020548181101562000771576040516303dee4c560e01b81526001600160a01b038a16600482015260248101829052604481018390526064810184905260840162000053565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615620007de575f828152602081815260408083206001600160a01b038b16845290915281208054839290620007d890849062000bbc565b90915550505b505080620007ec9062000bd8565b9050620006e2565b508251600103620008775760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62858560405162000867929190918252602082015260400190565b60405180910390a45050620002b6565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051620008c892919062000bf3565b60405180910390a45050505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200090057607f821691505b6020821081036200091f57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200096e575f81815260208120601f850160051c810160208610156200094d5750805b601f850160051c820191505b81811015620001ef5782815560010162000959565b505050565b81516001600160401b038111156200098f576200098f620008d7565b620009a781620009a08454620008eb565b8462000925565b602080601f831160018114620009dd575f8415620009c55750858301515b5f19600386901b1c1916600185901b178555620001ef565b5f85815260208120601f198616915b8281101562000a0d57888601518255948401946001909101908401620009ec565b508582101562000a2b57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f81518084525f5b8181101562000a615760208185018101518683018201520162000a43565b505f602082860101526020601f19601f83011685010191505092915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f9062000abb9083018462000a3b565b979650505050505050565b5f6020828403121562000ad7575f80fd5b81516001600160e01b03198116811462000aef575f80fd5b9392505050565b5f8151808452602080850194508084015f5b8381101562000b265781518752958201959082019060010162000b08565b509495945050505050565b6001600160a01b0386811682528516602082015260a0604082018190525f9062000b5e9083018662000af6565b828103606084015262000b72818662000af6565b9050828103608084015262000b88818562000a3b565b98975050505050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111562000bd25762000bd262000ba8565b92915050565b5f6001820162000bec5762000bec62000ba8565b5060010190565b604081525f62000c07604083018562000af6565b828103602084015262000c1b818562000af6565b95945050505050565b61296c8062000c325f395ff3fe608060405260043610610235575f3560e01c8063771282f611610129578063bedb86fb116100a8578063ebf0c7171161006d578063ebf0c717146106f1578063eec6f3a614610706578063f242432a14610725578063f2fde38b14610744578063fbfa77cf14610763575f80fd5b8063bedb86fb14610654578063cd3293de14610673578063d3738fc814610688578063dab5f340146106b3578063e985e9c5146106d2575f80fd5b8063b2503dcb116100ee578063b2503dcb146105ac578063bb07ebf6146105cb578063bc5ca8ac146105f6578063bd3e19d414610615578063bd85b03914610629575f80fd5b8063771282f61461051f5780638da5cb5b1461053457806395d89b4114610565578063a22cb46514610579578063a6367fc914610598575f80fd5b80633ccfd60b116101b55780635c975abb1161017a5780635c975abb1461049c578063641ce140146104ba5780636817031b146104cd5780636e5da880146104ec578063715018a61461050b575f80fd5b80633ccfd60b146103f757806344a0d68a1461040b5780634e1273f41461042a5780634f558e79146104565780635183022714610483575f80fd5b806313faede6116101fb57806313faede61461037c57806317881cbf1461039157806318160ddd146103a55780632eb2c2d6146103b95780633c9877c1146103d8575f80fd5b8062fdd58e146102c657806301ffc9a7146102f857806306fdde0314610327578063074a130d146103485780630e89341c1461035d575f80fd5b366102c2576010546001600160a01b03166102895760405162461bcd60e51b815260206004820152600f60248201526e15985d5b1d08139bdd081059191959608a1b60448201526064015b60405180910390fd5b60105460405134916001600160a01b03169082156108fc029083905f818181858888f193505050501580156102c0573d5f803e3d5ffd5b005b5f80fd5b3480156102d1575f80fd5b506102e56102e0366004611fb5565b610782565b6040519081526020015b60405180910390f35b348015610303575f80fd5b50610317610312366004611ff2565b6107a9565b60405190151581526020016102ef565b348015610332575f80fd5b5061033b6107f8565b6040516102ef919061205a565b348015610353575f80fd5b506102e5600e5481565b348015610368575f80fd5b5061033b61037736600461206c565b610884565b348015610387575f80fd5b506102e5600f5481565b34801561039c575f80fd5b506102e5610932565b3480156103b0575f80fd5b5061115c6102e5565b3480156103c4575f80fd5b506102c06103d33660046121eb565b610957565b3480156103e3575f80fd5b506103176103f236600461228d565b6109be565b348015610402575f80fd5b506102c0610a1f565b348015610416575f80fd5b506102c061042536600461206c565b610b83565b348015610435575f80fd5b506104496104443660046122d7565b610bf0565b6040516102ef91906123c9565b348015610461575f80fd5b5061031761047036600461206c565b5f90815260046020526040902054151590565b34801561048e575f80fd5b506012546103179060ff1681565b3480156104a7575f80fd5b50600354600160a01b900460ff16610317565b6102c06104c83660046123db565b610cc2565b3480156104d8575f80fd5b506102c06104e736600461242d565b611047565b3480156104f7575f80fd5b5061033b61050636600461206c565b611071565b348015610516575f80fd5b506102c061108f565b34801561052a575f80fd5b506102e5600c5481565b34801561053f575f80fd5b506003546001600160a01b03165b6040516001600160a01b0390911681526020016102ef565b348015610570575f80fd5b5061033b6110a2565b348015610584575f80fd5b506102c0610593366004612455565b6110af565b3480156105a3575f80fd5b506102c06110ba565b3480156105b7575f80fd5b506102c06105c6366004611fb5565b6110db565b3480156105d6575f80fd5b506102e56105e536600461242d565b600a6020525f908152604090205481565b348015610601575f80fd5b506102c061061036600461247d565b6110fe565b348015610620575f80fd5b506102e5611136565b348015610634575f80fd5b506102e561064336600461206c565b5f9081526004602052604090205490565b34801561065f575f80fd5b506102c061066e366004612536565b611167565b34801561067e575f80fd5b506102e5600d5481565b348015610693575f80fd5b506102e56106a236600461242d565b600b6020525f908152604090205481565b3480156106be575f80fd5b506102c06106cd36600461206c565b611188565b3480156106dd575f80fd5b506103176106ec36600461254f565b611195565b3480156106fc575f80fd5b506102e560115481565b348015610711575f80fd5b506102c0610720366004611fb5565b6111c2565b348015610730575f80fd5b506102c061073f366004612577565b6113c1565b34801561074f575f80fd5b506102c061075e36600461242d565b611420565b34801561076e575f80fd5b5060105461054d906001600160a01b031681565b5f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f6001600160e01b03198216636cdb3d1360e11b14806107d957506001600160e01b031982166303a24d0760e21b145b806107a357506301ffc9a760e01b6001600160e01b03198316146107a3565b60068054610805906125d6565b80601f0160208091040260200160405190810160405280929190818152602001828054610831906125d6565b801561087c5780601f106108535761010080835404028352916020019161087c565b820191905f5260205f20905b81548152906001019060200180831161085f57829003601f168201915b505050505081565b5f818152600460205260409020546060906108d85760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b6044820152606401610280565b60125460ff16156109185760086108ee8361145a565b604051610902929190600990602001612691565b6040516020818303038152906040529050919050565b604051610902906008906009906020016126c3565b919050565b5f600e545f0361094157505f90565b600e544210156109515750600190565b50600290565b336001600160a01b038616811480159061097857506109768682611195565b155b156109a95760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610280565b6109b686868686866114e9565b505050505050565b5f82515f14610a17576011546040516bffffffffffffffffffffffff19606085901b166020820152610a0a91859160340160405160208183030381529060405280519060200120611547565b15610a17575060016107a3565b505f92915050565b335f908152600a6020526040902054610a685760405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b6044820152606401610280565b6010546001600160a01b0316610ab25760405162461bcd60e51b815260206004820152600f60248201526e15985d5b1d08139bdd081059191959608a1b6044820152606401610280565b4780610aeb5760405162461bcd60e51b81526020600482015260086024820152674e6f2046756e647360c01b6044820152606401610280565b6010546040515f916001600160a01b03169083908381818185875af1925050503d805f8114610b35576040519150601f19603f3d011682016040523d82523d5f602084013e610b3a565b606091505b5050905080610b7f5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0811985a5b1959607a1b6044820152606401610280565b5050565b610b8b61155c565b610b98600461115c612704565b610ba49061115c612723565b600c541015610beb5760405162461bcd60e51b81526020600482015260136024820152720ccbcd08135a5b9d19590814995c5d5a5c9959606a1b6044820152606401610280565b600f55565b60608151835114610c215781518351604051635b05999160e01b815260048101929092526024820152604401610280565b5f83516001600160401b03811115610c3b57610c3b612083565b604051908082528060200260200182016040528015610c64578160200160208202803683370190505b5090505f5b8451811015610cba57602080820286010151610c8d90602080840287010151610782565b828281518110610c9f57610c9f61260e565b6020908102919091010152610cb381612736565b9050610c69565b509392505050565b610cca611589565b60018210158015610cdc575060038211155b610d1b5760405162461bcd60e51b815260206004820152601060248201526f0c4b080c8b0813dc880cc810dbdd5b9d60821b6044820152606401610280565b6001600160a01b0383165f908152600b6020526040902054600311610d6a5760405162461bcd60e51b8152602060048201526005602482015264066409ac2f60db1b6044820152606401610280565b600d54610d799061115c612723565b82600c54610d87919061274e565b10610dc85760405162461bcd60e51b8152602060048201526011602482015270141d589b1a58c8135a5b9d19590813dd5d607a1b6044820152606401610280565b600e54421015610e1b57610ddc81846109be565b610e165760405162461bcd60e51b815260206004820152600b60248201526a139bdd0813db88131a5cdd60aa1b6044820152606401610280565b610ec0565b600f545f03610e30576611c37937e08000600f555b81600114610e765760405162461bcd60e51b815260206004820152601360248201527227b732902832b9102a3930b739b0b1ba34b7b760691b6044820152606401610280565b610e7e611136565b341015610ec05760405162461bcd60e51b815260206004820152601060248201526f14185e5b595b9d0814995c5d5a5c995960821b6044820152606401610280565b6001600160a01b0383165f908152600b602052604081208054849290610ee790849061274e565b90915550506001829003610f2b57600c8054905f610f0483612736565b9190505550610f2683600c54600160405180602001604052805f8152506115b4565b505050565b5f826001600160401b03811115610f4457610f44612083565b604051908082528060200260200182016040528015610f6d578160200160208202803683370190505b5090505f836001600160401b03811115610f8957610f89612083565b604051908082528060200260200182016040528015610fb2578160200160208202803683370190505b5090505f5b8481101561102557600c8054905f610fce83612736565b9190505550600c54838281518110610fe857610fe861260e565b60200260200101818152505060018282815181106110085761100861260e565b60209081029190910101528061101d81612736565b915050610fb7565b5061104085838360405180602001604052805f81525061160f565b5050505050565b61104f61155c565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60088160028110611080575f80fd5b018054909150610805906125d6565b61109761155c565b6110a05f611645565b565b60078054610805906125d6565b610b7f338383611696565b6110c261155c565b6110ca61172a565b6110d64261384061274e565b600e55565b6110e361155c565b6001600160a01b039091165f908152600a6020526040902055565b61110661155c565b6012805460ff1916831515179055805160089061112390826127a6565b506020810151600990610f2690826127a6565b5f6002611141610932565b1061116257600f545f0361115b57506611c37937e0800090565b50600f5490565b505f90565b61116f61155c565b80156111805761117d61177f565b50565b61117d61172a565b61119061155c565b601155565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b335f908152600a602052604090205461120b5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b6044820152606401610280565b5f81600d5461121a9190612723565b10156112565760405162461bcd60e51b815260206004820152600b60248201526a131bddd95c8810dbdd5b9d60aa1b6044820152606401610280565b80600d5f8282546112679190612723565b909155505060018190036112a657600c8054905f61128483612736565b9190505550610b7f82600c54600160405180602001604052805f8152506115b4565b5f816001600160401b038111156112bf576112bf612083565b6040519080825280602002602001820160405280156112e8578160200160208202803683370190505b5090505f826001600160401b0381111561130457611304612083565b60405190808252806020026020018201604052801561132d578160200160208202803683370190505b5090505f5b838110156113a057600c8054905f61134983612736565b9190505550600c548382815181106113635761136361260e565b60200260200101818152505060018282815181106113835761138361260e565b60209081029190910101528061139881612736565b915050611332565b506113bb84838360405180602001604052805f81525061160f565b50505050565b336001600160a01b03861681148015906113e257506113e08682611195565b155b156114135760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610280565b6109b686868686866117c2565b61142861155c565b6001600160a01b03811661145157604051631e4fbdf760e01b81525f6004820152602401610280565b61117d81611645565b60605f6114668361184e565b60010190505f816001600160401b0381111561148457611484612083565b6040519080825280601f01601f1916602001820160405280156114ae576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114b857509392505050565b6001600160a01b03841661151257604051632bfa23e760e11b81525f6004820152602401610280565b6001600160a01b03851661153a57604051626a0d4560e21b81525f6004820152602401610280565b6110408585858585611925565b5f826115538584611978565b14949350505050565b6003546001600160a01b031633146110a05760405163118cdaa760e01b8152336004820152602401610280565b600354600160a01b900460ff16156110a05760405163d93c066560e01b815260040160405180910390fd5b6001600160a01b0384166115dd57604051632bfa23e760e11b81525f6004820152602401610280565b604080516001808252602082018690528183019081526060820185905260808201909252906109b65f87848487611925565b6001600160a01b03841661163857604051632bfa23e760e11b81525f6004820152602401610280565b6113bb5f85858585611925565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166116be5760405162ced3e160e81b81525f6004820152602401610280565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6117326119bc565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611787611589565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117623390565b6001600160a01b0384166117eb57604051632bfa23e760e11b81525f6004820152602401610280565b6001600160a01b03851661181357604051626a0d4560e21b81525f6004820152602401610280565b604080516001808252602082018690528183019081526060820185905260808201909252906118458787848487611925565b50505050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061188c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106118b8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106118d657662386f26fc10000830492506010015b6305f5e10083106118ee576305f5e100830492506008015b612710831061190257612710830492506004015b60648310611914576064830492506002015b600a83106107a35760010192915050565b611931858585856119e6565b6001600160a01b03841615611040578251339060010361196a57602084810151908401516119638389898585896119f2565b50506109b6565b6109b6818787878787611b13565b5f81815b8451811015610cba576119a88286838151811061199b5761199b61260e565b6020026020010151611bfa565b9150806119b481612736565b91505061197c565b600354600160a01b900460ff166110a057604051638dfc202b60e01b815260040160405180910390fd5b6113bb84848484611c29565b6001600160a01b0384163b156109b65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611a369089908990889088908890600401612861565b6020604051808303815f875af1925050508015611a70575060408051601f3d908101601f19168201909252611a6d9181019061289a565b60015b611ad7573d808015611a9d576040519150601f19603f3d011682016040523d82523d5f602084013e611aa2565b606091505b5080515f03611acf57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610280565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461184557604051632bfa23e760e11b81526001600160a01b0386166004820152602401610280565b6001600160a01b0384163b156109b65760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611b5790899089908890889088906004016128b5565b6020604051808303815f875af1925050508015611b91575060408051601f3d908101601f19168201909252611b8e9181019061289a565b60015b611bbe573d808015611a9d576040519150601f19603f3d011682016040523d82523d5f602084013e611aa2565b6001600160e01b0319811663bc197c8160e01b1461184557604051632bfa23e760e11b81526001600160a01b0386166004820152602401610280565b5f818310611c14575f828152602084905260409020611c22565b5f8381526020839052604090205b9392505050565b611c3584848484611d78565b6001600160a01b038416611ce2575f805b8351811015611cc9575f838281518110611c6257611c6261260e565b602002602001015190508060045f878581518110611c8257611c8261260e565b602002602001015181526020019081526020015f205f828254611ca5919061274e565b90915550611cb59050818461274e565b92505080611cc290612736565b9050611c46565b508060055f828254611cdb919061274e565b9091555050505b6001600160a01b0383166113bb575f805b8351811015611d67575f838281518110611d0f57611d0f61260e565b602002602001015190508060045f878581518110611d2f57611d2f61260e565b602002602001015181526020019081526020015f205f828254039250508190555080830192505080611d6090612736565b9050611cf3565b506005805491909103905550505050565b611d80611589565b6113bb848484848051825114611db65781518151604051635b05999160e01b815260048101929092526024820152604401610280565b335f5b8351811015611ec1576020818102858101820151908501909101516001600160a01b03881615611e6a575f828152602081815260408083206001600160a01b038c16845290915290205481811015611e44576040516303dee4c560e01b81526001600160a01b038a166004820152602481018290526044810183905260648101849052608401610280565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615611eae575f828152602081815260408083206001600160a01b038b16845290915281208054839290611ea890849061274e565b90915550505b505080611eba90612736565b9050611db9565b508251600103611f415760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051611f32929190918252602082015260400190565b60405180910390a45050611040565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f90929190612912565b60405180910390a45050505050565b80356001600160a01b038116811461092d575f80fd5b5f8060408385031215611fc6575f80fd5b611fcf83611f9f565b946020939093013593505050565b6001600160e01b03198116811461117d575f80fd5b5f60208284031215612002575f80fd5b8135611c2281611fdd565b5f5b8381101561202757818101518382015260200161200f565b50505f910152565b5f815180845261204681602086016020860161200d565b601f01601f19169290920160200192915050565b602081525f611c22602083018461202f565b5f6020828403121561207c575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b03811182821017156120b9576120b9612083565b60405290565b604051601f8201601f191681016001600160401b03811182821017156120e7576120e7612083565b604052919050565b5f6001600160401b0382111561210757612107612083565b5060051b60200190565b5f82601f830112612120575f80fd5b81356020612135612130836120ef565b6120bf565b82815260059290921b84018101918181019086841115612153575f80fd5b8286015b8481101561216e5780358352918301918301612157565b509695505050505050565b5f6001600160401b0383111561219157612191612083565b6121a4601f8401601f19166020016120bf565b90508281528383830111156121b7575f80fd5b828260208301375f602084830101529392505050565b5f82601f8301126121dc575f80fd5b611c2283833560208501612179565b5f805f805f60a086880312156121ff575f80fd5b61220886611f9f565b945061221660208701611f9f565b935060408601356001600160401b0380821115612231575f80fd5b61223d89838a01612111565b94506060880135915080821115612252575f80fd5b61225e89838a01612111565b93506080880135915080821115612273575f80fd5b50612280888289016121cd565b9150509295509295909350565b5f806040838503121561229e575f80fd5b82356001600160401b038111156122b3575f80fd5b6122bf85828601612111565b9250506122ce60208401611f9f565b90509250929050565b5f80604083850312156122e8575f80fd5b82356001600160401b03808211156122fe575f80fd5b818501915085601f830112612311575f80fd5b81356020612321612130836120ef565b82815260059290921b8401810191818101908984111561233f575f80fd5b948201945b838610156123645761235586611f9f565b82529482019490820190612344565b96505086013592505080821115612379575f80fd5b5061238685828601612111565b9150509250929050565b5f8151808452602080850194508084015f5b838110156123be578151875295820195908201906001016123a2565b509495945050505050565b602081525f611c226020830184612390565b5f805f606084860312156123ed575f80fd5b6123f684611f9f565b92506020840135915060408401356001600160401b03811115612417575f80fd5b61242386828701612111565b9150509250925092565b5f6020828403121561243d575f80fd5b611c2282611f9f565b8035801515811461092d575f80fd5b5f8060408385031215612466575f80fd5b61246f83611f9f565b91506122ce60208401612446565b5f806040838503121561248e575f80fd5b61249783612446565b91506020808401356001600160401b03808211156124b3575f80fd5b8186019150601f87818401126124c7575f80fd5b6124cf612097565b80604085018a8111156124e0575f80fd5b855b81811015612525578035868111156124f9575f8081fd5b87018581018d13612509575f8081fd5b6125178d82358b8401612179565b8552509287019287016124e2565b50979a909950975050505050505050565b5f60208284031215612546575f80fd5b611c2282612446565b5f8060408385031215612560575f80fd5b61256983611f9f565b91506122ce60208401611f9f565b5f805f805f60a0868803121561258b575f80fd5b61259486611f9f565b94506125a260208701611f9f565b9350604086013592506060860135915060808601356001600160401b038111156125ca575f80fd5b612280888289016121cd565b600181811c908216806125ea57607f821691505b60208210810361260857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b5f815461262e816125d6565b60018281168015612646576001811461265b57612687565b60ff1984168752821515830287019450612687565b855f526020805f205f5b8581101561267e5781548a820152908401908201612665565b50505082870194505b5050505092915050565b5f61269c8286612622565b84516126ac81836020890161200d565b6126b881830186612622565b979650505050505050565b5f6126ce8285612622565b653434b23232b760d11b81526126e76006820185612622565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b5f8261271e57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156107a3576107a36126f0565b5f60018201612747576127476126f0565b5060010190565b808201808211156107a3576107a36126f0565b601f821115610f26575f81815260208120601f850160051c810160208610156127875750805b601f850160051c820191505b818110156109b657828155600101612793565b81516001600160401b038111156127bf576127bf612083565b6127d3816127cd84546125d6565b84612761565b602080601f831160018114612806575f84156127ef5750858301515b5f19600386901b1c1916600185901b1785556109b6565b5f85815260208120601f198616915b8281101561283457888601518255948401946001909101908401612815565b508582101561285157878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f906126b89083018461202f565b5f602082840312156128aa575f80fd5b8151611c2281611fdd565b6001600160a01b0386811682528516602082015260a0604082018190525f906128e090830186612390565b82810360608401526128f28186612390565b90508281036080840152612906818561202f565b98975050505050505050565b604081525f6129246040830185612390565b82810360208401526126e7818561239056fea26469706673582212205885aa6f13b8bc9b097822407f2925e9582e6a24f93be3ed6502fd5657db76d364736f6c63430008140033
Deployed Bytecode
0x608060405260043610610235575f3560e01c8063771282f611610129578063bedb86fb116100a8578063ebf0c7171161006d578063ebf0c717146106f1578063eec6f3a614610706578063f242432a14610725578063f2fde38b14610744578063fbfa77cf14610763575f80fd5b8063bedb86fb14610654578063cd3293de14610673578063d3738fc814610688578063dab5f340146106b3578063e985e9c5146106d2575f80fd5b8063b2503dcb116100ee578063b2503dcb146105ac578063bb07ebf6146105cb578063bc5ca8ac146105f6578063bd3e19d414610615578063bd85b03914610629575f80fd5b8063771282f61461051f5780638da5cb5b1461053457806395d89b4114610565578063a22cb46514610579578063a6367fc914610598575f80fd5b80633ccfd60b116101b55780635c975abb1161017a5780635c975abb1461049c578063641ce140146104ba5780636817031b146104cd5780636e5da880146104ec578063715018a61461050b575f80fd5b80633ccfd60b146103f757806344a0d68a1461040b5780634e1273f41461042a5780634f558e79146104565780635183022714610483575f80fd5b806313faede6116101fb57806313faede61461037c57806317881cbf1461039157806318160ddd146103a55780632eb2c2d6146103b95780633c9877c1146103d8575f80fd5b8062fdd58e146102c657806301ffc9a7146102f857806306fdde0314610327578063074a130d146103485780630e89341c1461035d575f80fd5b366102c2576010546001600160a01b03166102895760405162461bcd60e51b815260206004820152600f60248201526e15985d5b1d08139bdd081059191959608a1b60448201526064015b60405180910390fd5b60105460405134916001600160a01b03169082156108fc029083905f818181858888f193505050501580156102c0573d5f803e3d5ffd5b005b5f80fd5b3480156102d1575f80fd5b506102e56102e0366004611fb5565b610782565b6040519081526020015b60405180910390f35b348015610303575f80fd5b50610317610312366004611ff2565b6107a9565b60405190151581526020016102ef565b348015610332575f80fd5b5061033b6107f8565b6040516102ef919061205a565b348015610353575f80fd5b506102e5600e5481565b348015610368575f80fd5b5061033b61037736600461206c565b610884565b348015610387575f80fd5b506102e5600f5481565b34801561039c575f80fd5b506102e5610932565b3480156103b0575f80fd5b5061115c6102e5565b3480156103c4575f80fd5b506102c06103d33660046121eb565b610957565b3480156103e3575f80fd5b506103176103f236600461228d565b6109be565b348015610402575f80fd5b506102c0610a1f565b348015610416575f80fd5b506102c061042536600461206c565b610b83565b348015610435575f80fd5b506104496104443660046122d7565b610bf0565b6040516102ef91906123c9565b348015610461575f80fd5b5061031761047036600461206c565b5f90815260046020526040902054151590565b34801561048e575f80fd5b506012546103179060ff1681565b3480156104a7575f80fd5b50600354600160a01b900460ff16610317565b6102c06104c83660046123db565b610cc2565b3480156104d8575f80fd5b506102c06104e736600461242d565b611047565b3480156104f7575f80fd5b5061033b61050636600461206c565b611071565b348015610516575f80fd5b506102c061108f565b34801561052a575f80fd5b506102e5600c5481565b34801561053f575f80fd5b506003546001600160a01b03165b6040516001600160a01b0390911681526020016102ef565b348015610570575f80fd5b5061033b6110a2565b348015610584575f80fd5b506102c0610593366004612455565b6110af565b3480156105a3575f80fd5b506102c06110ba565b3480156105b7575f80fd5b506102c06105c6366004611fb5565b6110db565b3480156105d6575f80fd5b506102e56105e536600461242d565b600a6020525f908152604090205481565b348015610601575f80fd5b506102c061061036600461247d565b6110fe565b348015610620575f80fd5b506102e5611136565b348015610634575f80fd5b506102e561064336600461206c565b5f9081526004602052604090205490565b34801561065f575f80fd5b506102c061066e366004612536565b611167565b34801561067e575f80fd5b506102e5600d5481565b348015610693575f80fd5b506102e56106a236600461242d565b600b6020525f908152604090205481565b3480156106be575f80fd5b506102c06106cd36600461206c565b611188565b3480156106dd575f80fd5b506103176106ec36600461254f565b611195565b3480156106fc575f80fd5b506102e560115481565b348015610711575f80fd5b506102c0610720366004611fb5565b6111c2565b348015610730575f80fd5b506102c061073f366004612577565b6113c1565b34801561074f575f80fd5b506102c061075e36600461242d565b611420565b34801561076e575f80fd5b5060105461054d906001600160a01b031681565b5f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f6001600160e01b03198216636cdb3d1360e11b14806107d957506001600160e01b031982166303a24d0760e21b145b806107a357506301ffc9a760e01b6001600160e01b03198316146107a3565b60068054610805906125d6565b80601f0160208091040260200160405190810160405280929190818152602001828054610831906125d6565b801561087c5780601f106108535761010080835404028352916020019161087c565b820191905f5260205f20905b81548152906001019060200180831161085f57829003601f168201915b505050505081565b5f818152600460205260409020546060906108d85760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b6044820152606401610280565b60125460ff16156109185760086108ee8361145a565b604051610902929190600990602001612691565b6040516020818303038152906040529050919050565b604051610902906008906009906020016126c3565b919050565b5f600e545f0361094157505f90565b600e544210156109515750600190565b50600290565b336001600160a01b038616811480159061097857506109768682611195565b155b156109a95760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610280565b6109b686868686866114e9565b505050505050565b5f82515f14610a17576011546040516bffffffffffffffffffffffff19606085901b166020820152610a0a91859160340160405160208183030381529060405280519060200120611547565b15610a17575060016107a3565b505f92915050565b335f908152600a6020526040902054610a685760405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b6044820152606401610280565b6010546001600160a01b0316610ab25760405162461bcd60e51b815260206004820152600f60248201526e15985d5b1d08139bdd081059191959608a1b6044820152606401610280565b4780610aeb5760405162461bcd60e51b81526020600482015260086024820152674e6f2046756e647360c01b6044820152606401610280565b6010546040515f916001600160a01b03169083908381818185875af1925050503d805f8114610b35576040519150601f19603f3d011682016040523d82523d5f602084013e610b3a565b606091505b5050905080610b7f5760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0811985a5b1959607a1b6044820152606401610280565b5050565b610b8b61155c565b610b98600461115c612704565b610ba49061115c612723565b600c541015610beb5760405162461bcd60e51b81526020600482015260136024820152720ccbcd08135a5b9d19590814995c5d5a5c9959606a1b6044820152606401610280565b600f55565b60608151835114610c215781518351604051635b05999160e01b815260048101929092526024820152604401610280565b5f83516001600160401b03811115610c3b57610c3b612083565b604051908082528060200260200182016040528015610c64578160200160208202803683370190505b5090505f5b8451811015610cba57602080820286010151610c8d90602080840287010151610782565b828281518110610c9f57610c9f61260e565b6020908102919091010152610cb381612736565b9050610c69565b509392505050565b610cca611589565b60018210158015610cdc575060038211155b610d1b5760405162461bcd60e51b815260206004820152601060248201526f0c4b080c8b0813dc880cc810dbdd5b9d60821b6044820152606401610280565b6001600160a01b0383165f908152600b6020526040902054600311610d6a5760405162461bcd60e51b8152602060048201526005602482015264066409ac2f60db1b6044820152606401610280565b600d54610d799061115c612723565b82600c54610d87919061274e565b10610dc85760405162461bcd60e51b8152602060048201526011602482015270141d589b1a58c8135a5b9d19590813dd5d607a1b6044820152606401610280565b600e54421015610e1b57610ddc81846109be565b610e165760405162461bcd60e51b815260206004820152600b60248201526a139bdd0813db88131a5cdd60aa1b6044820152606401610280565b610ec0565b600f545f03610e30576611c37937e08000600f555b81600114610e765760405162461bcd60e51b815260206004820152601360248201527227b732902832b9102a3930b739b0b1ba34b7b760691b6044820152606401610280565b610e7e611136565b341015610ec05760405162461bcd60e51b815260206004820152601060248201526f14185e5b595b9d0814995c5d5a5c995960821b6044820152606401610280565b6001600160a01b0383165f908152600b602052604081208054849290610ee790849061274e565b90915550506001829003610f2b57600c8054905f610f0483612736565b9190505550610f2683600c54600160405180602001604052805f8152506115b4565b505050565b5f826001600160401b03811115610f4457610f44612083565b604051908082528060200260200182016040528015610f6d578160200160208202803683370190505b5090505f836001600160401b03811115610f8957610f89612083565b604051908082528060200260200182016040528015610fb2578160200160208202803683370190505b5090505f5b8481101561102557600c8054905f610fce83612736565b9190505550600c54838281518110610fe857610fe861260e565b60200260200101818152505060018282815181106110085761100861260e565b60209081029190910101528061101d81612736565b915050610fb7565b5061104085838360405180602001604052805f81525061160f565b5050505050565b61104f61155c565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60088160028110611080575f80fd5b018054909150610805906125d6565b61109761155c565b6110a05f611645565b565b60078054610805906125d6565b610b7f338383611696565b6110c261155c565b6110ca61172a565b6110d64261384061274e565b600e55565b6110e361155c565b6001600160a01b039091165f908152600a6020526040902055565b61110661155c565b6012805460ff1916831515179055805160089061112390826127a6565b506020810151600990610f2690826127a6565b5f6002611141610932565b1061116257600f545f0361115b57506611c37937e0800090565b50600f5490565b505f90565b61116f61155c565b80156111805761117d61177f565b50565b61117d61172a565b61119061155c565b601155565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b335f908152600a602052604090205461120b5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08105b1b1bddd95960aa1b6044820152606401610280565b5f81600d5461121a9190612723565b10156112565760405162461bcd60e51b815260206004820152600b60248201526a131bddd95c8810dbdd5b9d60aa1b6044820152606401610280565b80600d5f8282546112679190612723565b909155505060018190036112a657600c8054905f61128483612736565b9190505550610b7f82600c54600160405180602001604052805f8152506115b4565b5f816001600160401b038111156112bf576112bf612083565b6040519080825280602002602001820160405280156112e8578160200160208202803683370190505b5090505f826001600160401b0381111561130457611304612083565b60405190808252806020026020018201604052801561132d578160200160208202803683370190505b5090505f5b838110156113a057600c8054905f61134983612736565b9190505550600c548382815181106113635761136361260e565b60200260200101818152505060018282815181106113835761138361260e565b60209081029190910101528061139881612736565b915050611332565b506113bb84838360405180602001604052805f81525061160f565b50505050565b336001600160a01b03861681148015906113e257506113e08682611195565b155b156114135760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610280565b6109b686868686866117c2565b61142861155c565b6001600160a01b03811661145157604051631e4fbdf760e01b81525f6004820152602401610280565b61117d81611645565b60605f6114668361184e565b60010190505f816001600160401b0381111561148457611484612083565b6040519080825280601f01601f1916602001820160405280156114ae576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114b857509392505050565b6001600160a01b03841661151257604051632bfa23e760e11b81525f6004820152602401610280565b6001600160a01b03851661153a57604051626a0d4560e21b81525f6004820152602401610280565b6110408585858585611925565b5f826115538584611978565b14949350505050565b6003546001600160a01b031633146110a05760405163118cdaa760e01b8152336004820152602401610280565b600354600160a01b900460ff16156110a05760405163d93c066560e01b815260040160405180910390fd5b6001600160a01b0384166115dd57604051632bfa23e760e11b81525f6004820152602401610280565b604080516001808252602082018690528183019081526060820185905260808201909252906109b65f87848487611925565b6001600160a01b03841661163857604051632bfa23e760e11b81525f6004820152602401610280565b6113bb5f85858585611925565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166116be5760405162ced3e160e81b81525f6004820152602401610280565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6117326119bc565b6003805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611787611589565b6003805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117623390565b6001600160a01b0384166117eb57604051632bfa23e760e11b81525f6004820152602401610280565b6001600160a01b03851661181357604051626a0d4560e21b81525f6004820152602401610280565b604080516001808252602082018690528183019081526060820185905260808201909252906118458787848487611925565b50505050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061188c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106118b8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106118d657662386f26fc10000830492506010015b6305f5e10083106118ee576305f5e100830492506008015b612710831061190257612710830492506004015b60648310611914576064830492506002015b600a83106107a35760010192915050565b611931858585856119e6565b6001600160a01b03841615611040578251339060010361196a57602084810151908401516119638389898585896119f2565b50506109b6565b6109b6818787878787611b13565b5f81815b8451811015610cba576119a88286838151811061199b5761199b61260e565b6020026020010151611bfa565b9150806119b481612736565b91505061197c565b600354600160a01b900460ff166110a057604051638dfc202b60e01b815260040160405180910390fd5b6113bb84848484611c29565b6001600160a01b0384163b156109b65760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611a369089908990889088908890600401612861565b6020604051808303815f875af1925050508015611a70575060408051601f3d908101601f19168201909252611a6d9181019061289a565b60015b611ad7573d808015611a9d576040519150601f19603f3d011682016040523d82523d5f602084013e611aa2565b606091505b5080515f03611acf57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610280565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461184557604051632bfa23e760e11b81526001600160a01b0386166004820152602401610280565b6001600160a01b0384163b156109b65760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611b5790899089908890889088906004016128b5565b6020604051808303815f875af1925050508015611b91575060408051601f3d908101601f19168201909252611b8e9181019061289a565b60015b611bbe573d808015611a9d576040519150601f19603f3d011682016040523d82523d5f602084013e611aa2565b6001600160e01b0319811663bc197c8160e01b1461184557604051632bfa23e760e11b81526001600160a01b0386166004820152602401610280565b5f818310611c14575f828152602084905260409020611c22565b5f8381526020839052604090205b9392505050565b611c3584848484611d78565b6001600160a01b038416611ce2575f805b8351811015611cc9575f838281518110611c6257611c6261260e565b602002602001015190508060045f878581518110611c8257611c8261260e565b602002602001015181526020019081526020015f205f828254611ca5919061274e565b90915550611cb59050818461274e565b92505080611cc290612736565b9050611c46565b508060055f828254611cdb919061274e565b9091555050505b6001600160a01b0383166113bb575f805b8351811015611d67575f838281518110611d0f57611d0f61260e565b602002602001015190508060045f878581518110611d2f57611d2f61260e565b602002602001015181526020019081526020015f205f828254039250508190555080830192505080611d6090612736565b9050611cf3565b506005805491909103905550505050565b611d80611589565b6113bb848484848051825114611db65781518151604051635b05999160e01b815260048101929092526024820152604401610280565b335f5b8351811015611ec1576020818102858101820151908501909101516001600160a01b03881615611e6a575f828152602081815260408083206001600160a01b038c16845290915290205481811015611e44576040516303dee4c560e01b81526001600160a01b038a166004820152602481018290526044810183905260648101849052608401610280565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615611eae575f828152602081815260408083206001600160a01b038b16845290915281208054839290611ea890849061274e565b90915550505b505080611eba90612736565b9050611db9565b508251600103611f415760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051611f32929190918252602082015260400190565b60405180910390a45050611040565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611f90929190612912565b60405180910390a45050505050565b80356001600160a01b038116811461092d575f80fd5b5f8060408385031215611fc6575f80fd5b611fcf83611f9f565b946020939093013593505050565b6001600160e01b03198116811461117d575f80fd5b5f60208284031215612002575f80fd5b8135611c2281611fdd565b5f5b8381101561202757818101518382015260200161200f565b50505f910152565b5f815180845261204681602086016020860161200d565b601f01601f19169290920160200192915050565b602081525f611c22602083018461202f565b5f6020828403121561207c575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b03811182821017156120b9576120b9612083565b60405290565b604051601f8201601f191681016001600160401b03811182821017156120e7576120e7612083565b604052919050565b5f6001600160401b0382111561210757612107612083565b5060051b60200190565b5f82601f830112612120575f80fd5b81356020612135612130836120ef565b6120bf565b82815260059290921b84018101918181019086841115612153575f80fd5b8286015b8481101561216e5780358352918301918301612157565b509695505050505050565b5f6001600160401b0383111561219157612191612083565b6121a4601f8401601f19166020016120bf565b90508281528383830111156121b7575f80fd5b828260208301375f602084830101529392505050565b5f82601f8301126121dc575f80fd5b611c2283833560208501612179565b5f805f805f60a086880312156121ff575f80fd5b61220886611f9f565b945061221660208701611f9f565b935060408601356001600160401b0380821115612231575f80fd5b61223d89838a01612111565b94506060880135915080821115612252575f80fd5b61225e89838a01612111565b93506080880135915080821115612273575f80fd5b50612280888289016121cd565b9150509295509295909350565b5f806040838503121561229e575f80fd5b82356001600160401b038111156122b3575f80fd5b6122bf85828601612111565b9250506122ce60208401611f9f565b90509250929050565b5f80604083850312156122e8575f80fd5b82356001600160401b03808211156122fe575f80fd5b818501915085601f830112612311575f80fd5b81356020612321612130836120ef565b82815260059290921b8401810191818101908984111561233f575f80fd5b948201945b838610156123645761235586611f9f565b82529482019490820190612344565b96505086013592505080821115612379575f80fd5b5061238685828601612111565b9150509250929050565b5f8151808452602080850194508084015f5b838110156123be578151875295820195908201906001016123a2565b509495945050505050565b602081525f611c226020830184612390565b5f805f606084860312156123ed575f80fd5b6123f684611f9f565b92506020840135915060408401356001600160401b03811115612417575f80fd5b61242386828701612111565b9150509250925092565b5f6020828403121561243d575f80fd5b611c2282611f9f565b8035801515811461092d575f80fd5b5f8060408385031215612466575f80fd5b61246f83611f9f565b91506122ce60208401612446565b5f806040838503121561248e575f80fd5b61249783612446565b91506020808401356001600160401b03808211156124b3575f80fd5b8186019150601f87818401126124c7575f80fd5b6124cf612097565b80604085018a8111156124e0575f80fd5b855b81811015612525578035868111156124f9575f8081fd5b87018581018d13612509575f8081fd5b6125178d82358b8401612179565b8552509287019287016124e2565b50979a909950975050505050505050565b5f60208284031215612546575f80fd5b611c2282612446565b5f8060408385031215612560575f80fd5b61256983611f9f565b91506122ce60208401611f9f565b5f805f805f60a0868803121561258b575f80fd5b61259486611f9f565b94506125a260208701611f9f565b9350604086013592506060860135915060808601356001600160401b038111156125ca575f80fd5b612280888289016121cd565b600181811c908216806125ea57607f821691505b60208210810361260857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b5f815461262e816125d6565b60018281168015612646576001811461265b57612687565b60ff1984168752821515830287019450612687565b855f526020805f205f5b8581101561267e5781548a820152908401908201612665565b50505082870194505b5050505092915050565b5f61269c8286612622565b84516126ac81836020890161200d565b6126b881830186612622565b979650505050505050565b5f6126ce8285612622565b653434b23232b760d11b81526126e76006820185612622565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b5f8261271e57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156107a3576107a36126f0565b5f60018201612747576127476126f0565b5060010190565b808201808211156107a3576107a36126f0565b601f821115610f26575f81815260208120601f850160051c810160208610156127875750805b601f850160051c820191505b818110156109b657828155600101612793565b81516001600160401b038111156127bf576127bf612083565b6127d3816127cd84546125d6565b84612761565b602080601f831160018114612806575f84156127ef5750858301515b5f19600386901b1c1916600185901b1785556109b6565b5f85815260208120601f198616915b8281101561283457888601518255948401946001909101908401612815565b508582101561285157878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f906126b89083018461202f565b5f602082840312156128aa575f80fd5b8151611c2281611fdd565b6001600160a01b0386811682528516602082015260a0604082018190525f906128e090830186612390565b82810360608401526128f28186612390565b90508281036080840152612906818561202f565b98975050505050505050565b604081525f6129246040830185612390565b82810360208401526126e7818561239056fea26469706673582212205885aa6f13b8bc9b097822407f2925e9582e6a24f93be3ed6502fd5657db76d364736f6c63430008140033
Deployed Bytecode Sourcemap
92232:6123:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97927:5;;-1:-1:-1;;;;;97927:5:0;97919:47;;;;-1:-1:-1;;;97919:47:0;;216:2:1;97919:47:0;;;198:21:1;255:2;235:18;;;228:30;-1:-1:-1;;;274:18:1;;;267:45;329:18;;97919:47:0;;;;;;;;;98020:5;;98012:29;;97992:9;;-1:-1:-1;;;;;98020:5:0;;98012:29;;;;;97992:9;;97977:12;98012:29;97977:12;98012:29;97992:9;98020:5;98012:29;;;;;;;;;;;;;;;;;;;;;92232:6123;;;;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;92563:29::-;;;;;;;;;;;;;;;;97048:350;;;;;;;;;;-1:-1:-1;97048:350:0;;;;;:::i;:::-;;:::i;92599:19::-;;;;;;;;;;;;;;;;93007:314;;;;;;;;;;;;;:::i;97406:92::-;;;;;;;;;;-1:-1:-1;97486:4:0;97406:92;;67521:441;;;;;;;;;;-1:-1:-1;67521:441:0;;;;;:::i;:::-;;:::i;96744:296::-;;;;;;;;;;-1:-1:-1;96744:296:0;;;;;:::i;:::-;;:::i;97506:367::-;;;;;;;;;;;;;:::i;93329:283::-;;;;;;;;;;-1:-1:-1;93329:283: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;92678:20;;;;;;;;;;-1:-1:-1;92678:20:0;;;;;;;;49077:86;;;;;;;;;;-1:-1:-1;49148:7:0;;-1:-1:-1;;;49148:7:0;;;;49077:86;;95497:1239;;;;;;:::i;:::-;;:::i;94359:88::-;;;;;;;;;;-1:-1:-1;94359:88:0;;;;;:::i;:::-;;:::i;92367:22::-;;;;;;;;;;-1:-1:-1;92367:22:0;;;;;:::i;:::-;;:::i;52503:103::-;;;;;;;;;;;;;:::i;92499:28::-;;;;;;;;;;;;;;;;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;66638:146::-;;;;;;;;;;-1:-1:-1;66638:146:0;;;;;:::i;:::-;;:::i;94455:155::-;;;;;;;;;;;;;:::i;94618:112::-;;;;;;;;;;-1:-1:-1;94618:112:0;;;;;:::i;:::-;;:::i;92396:42::-;;;;;;;;;;-1:-1:-1;92396:42:0;;;;;:::i;:::-;;;;;;;;;;;;;;94180:171;;;;;;;;;;-1:-1:-1;94180:171:0;;;;;:::i;:::-;;:::i;93620:269::-;;;;;;;;;;;;;:::i;81836:113::-;;;;;;;;;;-1:-1:-1;81836:113:0;;;;;:::i;:::-;81898:7;81925:16;;;:12;:16;;;;;;;81836:113;93897:183;;;;;;;;;;-1:-1:-1;93897:183:0;;;;;:::i;:::-;;:::i;92534:22::-;;;;;;;;;;;;;;;;92445:47;;;;;;;;;;-1:-1:-1;92445:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;94088:84;;;;;;;;;;-1:-1:-1;94088:84:0;;;;;:::i;:::-;;:::i;66856:159::-;;;;;;;;;;-1:-1:-1;66856:159:0;;;;;:::i;:::-;;:::i;92652:19::-;;;;;;;;;;;;;;;;94738:751;;;;;;;;;;-1:-1:-1;94738:751:0;;;;;:::i;:::-;;:::i;67087:357::-;;;;;;;;;;-1:-1:-1;67087:357:0;;;;;:::i;:::-;;:::i;52761:220::-;;;;;;;;;;-1:-1:-1;52761:220:0;;;;;:::i;:::-;;:::i;92625:20::-;;;;;;;;;;-1:-1:-1;92625:20:0;;;;-1:-1:-1;;;;;92625: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;97048:350::-;82268:4;81925:16;;;:12;:16;;;;;;97104:13;;97130:44;;;;-1:-1:-1;;;97130:44:0;;12489:2:1;97130:44:0;;;12471:21:1;12528:2;12508:18;;;12501:30;-1:-1:-1;;;12547:18:1;;;12540:50;12607:18;;97130:44:0;12287:344:1;97130:44:0;97188:8;;;;97185:206;;;97243:5;97253:21;97270:3;97253:16;:21::i;:::-;97226:59;;;;;;97276:8;;97226:59;;;:::i;:::-;;;;;;;;;;;;;97212:74;;97048:350;;;:::o;97185:206::-;97332:46;;;;97349:5;;97369:8;;97332:46;;;:::i;97185:206::-;97048:350;;;:::o;93007:314::-;93048:7;93135:14;;93153:1;93135:19;93132:58;;-1:-1:-1;93177:1:0;;93007:314::o;93132:58::-;93223:14;;93205:15;:32;93202:112;;;-1:-1:-1;93260:1:0;;93007:314::o;93202:112::-;-1:-1:-1;93301:1:0;;93007: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;96744:296::-;96822:4;96843:5;:12;96859:1;96843:17;96839:169;;96906:4;;96922:23;;-1:-1:-1;;14994:2:1;14990:15;;;14986:53;96922:23:0;;;14974:66:1;96880:67:0;;96899:5;;15056:12:1;;96922:23:0;;;;;;;;;;;;96912:34;;;;;;96880:18;:67::i;:::-;96876:121;;;-1:-1:-1;96976:4:0;96968:13;;96876:121;-1:-1:-1;97026:5:0;96744:296;;;;:::o;97506:367::-;97560:10;97574:1;97552:19;;;:7;:19;;;;;;97544:47;;;;-1:-1:-1;;;97544:47:0;;15281:2:1;97544:47:0;;;15263:21:1;15320:2;15300:18;;;15293:30;-1:-1:-1;;;15339:18:1;;;15332:41;15390:18;;97544:47:0;15079:335:1;97544:47:0;97610:5;;-1:-1:-1;;;;;97610:5:0;97602:47;;;;-1:-1:-1;;;97602:47:0;;216:2:1;97602:47:0;;;198:21:1;255:2;235:18;;;228:30;-1:-1:-1;;;274:18:1;;;267:45;329:18;;97602:47:0;14:339:1;97602:47:0;97680:21;97720:11;97712:32;;;;-1:-1:-1;;;97712:32:0;;15621:2:1;97712:32:0;;;15603:21:1;15660:1;15640:18;;;15633:29;-1:-1:-1;;;15678:18:1;;;15671:38;15726:18;;97712:32:0;15419:331:1;97712:32:0;97784:5;;97776:41;;97758:12;;-1:-1:-1;;;;;97784:5:0;;97804:7;;97758:12;97776:41;97758:12;97776:41;97804:7;97784:5;97776:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97757:60;;;97836:7;97828:37;;;;-1:-1:-1;;;97828:37:0;;16167:2:1;97828:37:0;;;16149:21:1;16206:2;16186:18;;;16179:30;-1:-1:-1;;;16225:18:1;;;16218:47;16282:18;;97828:37:0;15965:341:1;97828:37:0;97533:340;;97506:367::o;93329:283::-;51714:13;:11;:13::i;:::-;93538:15:::1;93552:1;97486:4:::0;93538:15:::1;:::i;:::-;93521:33;::::0;97486:4;93521:33:::1;:::i;:::-;93503:13;;:52;;93495:84;;;::::0;-1:-1:-1;;;93495:84:0;;17132:2:1;93495:84:0::1;::::0;::::1;17114:21:1::0;17171:2;17151:18;;;17144:30;-1:-1:-1;;;17190:18:1;;;17183:49;17249:18;;93495:84:0::1;16930:343:1::0;93495:84:0::1;93590:4;:14:::0;93329:283::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;;;;;17452:25:1;;;;17493:18;;;17486:34;17425:18;;66211:54:0;17278: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;95497:1239::-;48682:19;:17;:19::i;:::-;95662:1:::1;95649:9;:14;;:32;;;;;95680:1;95667:9;:14;;95649:32;95641:61;;;::::0;-1:-1:-1;;;95641:61:0;;17873:2:1;95641:61:0::1;::::0;::::1;17855:21:1::0;17912:2;17892:18;;;17885:30;-1:-1:-1;;;17931:18:1;;;17924:46;17987:18;;95641:61:0::1;17671:340:1::0;95641:61:0::1;-1:-1:-1::0;;;;;95721:16:0;::::1;;::::0;;;:12:::1;:16;::::0;;;;;95740:1:::1;-1:-1:-1::0;95713:38:0::1;;;::::0;-1:-1:-1;;;95713:38:0;;18218:2:1;95713:38:0::1;::::0;::::1;18200:21:1::0;18257:1;18237:18;;;18230:29;-1:-1:-1;;;18275:18:1;;;18268:35;18320:18;;95713:38:0::1;18016:328:1::0;95713:38:0::1;95814:7;::::0;95798:23:::1;::::0;97486:4;95798:23:::1;:::i;:::-;95786:9;95770:13;;:25;;;;:::i;:::-;:51;95762:81;;;::::0;-1:-1:-1;;;95762:81:0;;18681:2:1;95762:81:0::1;::::0;::::1;18663:21:1::0;18720:2;18700:18;;;18693:30;-1:-1:-1;;;18739:18:1;;;18732:47;18796:18;;95762:81:0::1;18479:341:1::0;95762:81:0::1;95877:14;;95859:15;:32;95856:344;;;95915:19;95924:5;95931:2;95915:8;:19::i;:::-;95907:43;;;::::0;-1:-1:-1;;;95907:43:0;;19027:2:1;95907:43:0::1;::::0;::::1;19009:21:1::0;19066:2;19046:18;;;19039:30;-1:-1:-1;;;19085:18:1;;;19078:41;19136:18;;95907:43:0::1;18825:335:1::0;95907:43:0::1;95856:344;;;95994:4;;96002:1;95994:9:::0;95991:71:::1;;96030:16;96023:4;:23:::0;95991:71:::1;96084:9;96097:1;96084:14;96076:46;;;::::0;-1:-1:-1;;;96076:46:0;;19367:2:1;96076:46:0::1;::::0;::::1;19349:21:1::0;19406:2;19386:18;;;19379:30;-1:-1:-1;;;19425:18:1;;;19418:49;19484:18;;96076:46:0::1;19165:343:1::0;96076:46:0::1;96158:9;:7;:9::i;:::-;96145;:22;;96137:51;;;::::0;-1:-1:-1;;;96137:51:0;;19715:2:1;96137:51:0::1;::::0;::::1;19697:21:1::0;19754:2;19734:18;;;19727:30;-1:-1:-1;;;19773:18:1;;;19766:46;19829:18;;96137:51:0::1;19513:340:1::0;96137:51:0::1;-1:-1:-1::0;;;;;96220:16:0;::::1;;::::0;;;:12:::1;:16;::::0;;;;:29;;96240:9;;96220:16;:29:::1;::::0;96240:9;;96220:29:::1;:::i;:::-;::::0;;;-1:-1:-1;;96278:1:0::1;96265:14:::0;;;96262:127:::1;;96295:13;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;:::-;;;;;;96325:31;96331:2;96335:13;;96350:1;96325:31;;;;;;;;;;;::::0;:5:::1;:31::i;:::-;95497:1239:::0;;;:::o;96262:127::-:1;96401:24;96442:9;-1:-1:-1::0;;;;;96428:24:0::1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;96428:24:0::1;;96401:51;;96463:25;96505:9;-1:-1:-1::0;;;;;96491:24:0::1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;96491:24:0::1;;96463:52;;96531:9;96526:153;96550:9;96546:1;:13;96526:153;;;96581:13;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;:::-;;;;;;96624:13;;96611:7;96619:1;96611:10;;;;;;;;:::i;:::-;;;;;;:26;;;::::0;::::1;96666:1;96652:8;96661:1;96652:11;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;:15;96561:3;::::1;::::0;::::1;:::i;:::-;;;;96526:153;;;;96689:37;96700:2;96704:7;96713:8;96689:37;;;;;;;;;;;::::0;:10:::1;:37::i;:::-;95595:1141;;95497:1239:::0;;;:::o;94359:88::-;51714:13;:11;:13::i;:::-;94423:5:::1;:16:::0;;-1:-1:-1;;;;;;94423:16:0::1;-1:-1:-1::0;;;;;94423:16:0;;;::::1;::::0;;;::::1;::::0;;94359: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;92340:20::-;;;;;;;:::i;66638:146::-;66724:52;46990:10;66757:8;66767;66724:18;:52::i;94455:155::-;51714:13;:11;:13::i;:::-;94526:10:::1;:8;:10::i;:::-;94564:23;:15;94582:5;94564:23;:::i;:::-;94547:14;:40:::0;94455:155::o;94618:112::-;51714:13;:11;:13::i;:::-;-1:-1:-1;;;;;94697:14:0;;::::1;;::::0;;;:7:::1;:14;::::0;;;;:25;94618:112::o;94180:171::-;51714:13;:11;:13::i;:::-;94263:8:::1;:18:::0;;-1:-1:-1;;94263:18:0::1;::::0;::::1;;;::::0;;94303:9;;94292:5:::1;::::0;:20:::1;::::0;:5;:20:::1;:::i;:::-;-1:-1:-1::0;94334:9:0::1;::::0;::::1;::::0;94323:8;;:20:::1;::::0;:8;:20:::1;:::i;93620:269::-:0;93659:7;93716:1;93701:11;:9;:11::i;:::-;:16;93698:184;;93736:4;;93744:1;93736:9;93733:71;;-1:-1:-1;93772:16:0;;93620:269::o;93733:71::-;-1:-1:-1;93825:4:0;;;93620:269::o;93698:184::-;-1:-1:-1;93869:1:0;;93620:269::o;93897:183::-;51714:13;:11;:13::i;:::-;93983:11:::1;93980:93;;;94010:8;:6;:8::i;:::-;93897:183:::0;:::o;93980:93::-:1;94051:10;:8;:10::i;94088:84::-:0;51714:13;:11;:13::i;:::-;94150:4:::1;:14:::0;94088:84::o;66856:159::-;-1:-1:-1;;;;;66970:27:0;;;66946:4;66970:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;66856:159::o;94738:751::-;94850:10;94864:1;94842:19;;;:7;:19;;;;;;94834:47;;;;-1:-1:-1;;;94834:47:0;;15281:2:1;94834:47:0;;;15263:21:1;15320:2;15300:18;;;15293:30;-1:-1:-1;;;15339:18:1;;;15332:41;15390:18;;94834:47:0;15079:335:1;94834:47:0;94923:1;94910:9;94900:7;;:19;;;;:::i;:::-;:24;;94892:48;;;;-1:-1:-1;;;94892:48:0;;22138:2:1;94892:48:0;;;22120:21:1;22177:2;22157:18;;;22150:30;-1:-1:-1;;;22196:18:1;;;22189:41;22247:18;;94892:48:0;21936:335:1;94892:48:0;94962:9;94951:7;;:20;;;;;;;:::i;:::-;;;;-1:-1:-1;;94998:1:0;94985:14;;;94982:500;;95015:13;:15;;;:13;:15;;;:::i;:::-;;;;;;95045:31;95051:2;95055:13;;95070:1;95045:31;;;;;;;;;;;;:5;:31::i;94982:500::-;95117:24;95158:9;-1:-1:-1;;;;;95144:24:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;95144:24:0;;95117:51;;95183:25;95225:9;-1:-1:-1;;;;;95211:24:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;95211:24:0;;95183:52;;95255:9;95250:169;95274:9;95270:1;:13;95250:169;;;95309:13;:15;;;:13;:15;;;:::i;:::-;;;;;;95356:13;;95343:7;95351:1;95343:10;;;;;;;;:::i;:::-;;;;;;:26;;;;;95402:1;95388:8;95397:1;95388:11;;;;;;;;:::i;:::-;;;;;;;;;;:15;95285:3;;;;:::i;:::-;;;;95250:169;;;;95433:37;95444:2;95448:7;95457:8;95433:37;;;;;;;;;;;;:10;:37::i;:::-;95102:380;;94738:751;;:::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;;;;;;;;;;;98125:227;98308:36;98322:4;98328:2;98332:3;98337:6;98308: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;;;;;17452:25:1;;;;17493:18;;;17486:34;17425:18;;68852:52:0;17278: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;;;;;24177:32:1;;69300:56:0;;;24159:51:1;24226:18;;;24219:34;;;24269:18;;;24262:34;;;24312:18;;;24305:34;;;24131:19;;69300:56:0;23928: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;;;;;;17452:25:1;;;17508:2;17493:18;;17486:34;17440:2;17425:18;;17278: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;16443:127::-;16504:10;16499:3;16495:20;16492:1;16485:31;16535:4;16532:1;16525:15;16559:4;16556:1;16549:15;16575:217;16615:1;16641;16631:132;;16685:10;16680:3;16676:20;16673:1;16666:31;16720:4;16717:1;16710:15;16748:4;16745:1;16738:15;16631:132;-1:-1:-1;16777:9:1;;16575:217::o;16797:128::-;16864:9;;;16885:11;;;16882:37;;;16899:18;;:::i;17531:135::-;17570:3;17591:17;;;17588:43;;17611:18;;:::i;:::-;-1:-1:-1;17658:1:1;17647:13;;17531:135::o;18349:125::-;18414:9;;;18435:10;;;18432:36;;;18448:18;;:::i;19858:545::-;19960:2;19955:3;19952:11;19949:448;;;19996:1;20021:5;20017:2;20010:17;20066:4;20062:2;20052:19;20136:2;20124:10;20120:19;20117:1;20113:27;20107:4;20103:38;20172:4;20160:10;20157:20;20154:47;;;-1:-1:-1;20195:4:1;20154:47;20250:2;20245:3;20241:12;20238:1;20234:20;20228:4;20224:31;20214:41;;20305:82;20323:2;20316:5;20313:13;20305:82;;;20368:17;;;20349:1;20338:13;20305:82;;20579:1352;20705:3;20699:10;-1:-1:-1;;;;;20724:6:1;20721:30;20718:56;;;20754:18;;:::i;:::-;20783:97;20873:6;20833:38;20865:4;20859:11;20833:38;:::i;:::-;20827:4;20783:97;:::i;:::-;20935:4;;20999:2;20988:14;;21016:1;21011:663;;;;21718:1;21735:6;21732:89;;;-1:-1:-1;21787:19:1;;;21781:26;21732:89;-1:-1:-1;;20536:1:1;20532:11;;;20528:24;20524:29;20514:40;20560:1;20556:11;;;20511:57;21834:81;;20981:944;;21011:663;12841:1;12834:14;;;12878:4;12865:18;;-1:-1:-1;;21047:20:1;;;21165:236;21179:7;21176:1;21173:14;21165:236;;;21268:19;;;21262:26;21247:42;;21360:27;;;;21328:1;21316:14;;;;21195:19;;21165:236;;;21169:3;21429:6;21420:7;21417:19;21414:201;;;21490:19;;;21484:26;-1:-1:-1;;21573:1:1;21569:14;;;21585:3;21565:24;21561:37;21557:42;21542:58;21527:74;;21414:201;-1:-1:-1;;;;;21661:1:1;21645:14;;;21641:22;21628:36;;-1:-1:-1;20579:1352:1:o;22276:561::-;-1:-1:-1;;;;;22573:15:1;;;22555:34;;22625:15;;22620:2;22605:18;;22598:43;22672:2;22657:18;;22650:34;;;22715:2;22700:18;;22693:34;;;22535:3;22758;22743:19;;22736:32;;;22498:4;;22785:46;;22811:19;;22803:6;22785:46;:::i;22842:249::-;22911:6;22964:2;22952:9;22943:7;22939:23;22935:32;22932:52;;;22980:1;22977;22970:12;22932:52;23012:9;23006:16;23031:30;23055:5;23031:30;:::i;23096:827::-;-1:-1:-1;;;;;23493:15:1;;;23475:34;;23545:15;;23540:2;23525:18;;23518:43;23455:3;23592:2;23577:18;;23570:31;;;23418:4;;23624:57;;23661:19;;23653:6;23624:57;:::i;:::-;23729:9;23721:6;23717:22;23712:2;23701:9;23697:18;23690:50;23763:44;23800:6;23792;23763:44;:::i;:::-;23749:58;;23856:9;23848:6;23844:22;23838:3;23827:9;23823:19;23816:51;23884:33;23910:6;23902;23884:33;:::i;:::-;23876:41;23096:827;-1:-1:-1;;;;;;;;23096:827:1:o;24350:465::-;24607:2;24596:9;24589:21;24570:4;24633:56;24685:2;24674:9;24670:18;24662:6;24633:56;:::i;:::-;24737:9;24729:6;24725:22;24720:2;24709:9;24705:18;24698:50;24765:44;24802:6;24794;24765:44;:::i
Swarm Source
ipfs://5885aa6f13b8bc9b097822407f2925e9582e6a24f93be3ed6502fd5657db76d3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.