Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 444 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 19808071 | 60 days ago | IN | 0 ETH | 0.00020265 | ||||
Set Approval For... | 19488214 | 104 days ago | IN | 0 ETH | 0.00128829 | ||||
Safe Transfer Fr... | 19468745 | 107 days ago | IN | 0 ETH | 0.00254684 | ||||
Safe Transfer Fr... | 19010145 | 171 days ago | IN | 0 ETH | 0.00120971 | ||||
Safe Transfer Fr... | 18775434 | 204 days ago | IN | 0 ETH | 0.00187501 | ||||
Safe Transfer Fr... | 18775432 | 204 days ago | IN | 0 ETH | 0.00234988 | ||||
Set Approval For... | 18775403 | 204 days ago | IN | 0 ETH | 0.00183921 | ||||
Safe Transfer Fr... | 18630931 | 225 days ago | IN | 0 ETH | 0.00198665 | ||||
Safe Transfer Fr... | 18626655 | 225 days ago | IN | 0 ETH | 0.00171131 | ||||
Safe Transfer Fr... | 18467231 | 248 days ago | IN | 0 ETH | 0.00126787 | ||||
Safe Transfer Fr... | 18320706 | 268 days ago | IN | 0 ETH | 0.00058165 | ||||
Transfer From | 18312842 | 269 days ago | IN | 0 ETH | 0.00038565 | ||||
Safe Transfer Fr... | 18312282 | 269 days ago | IN | 0 ETH | 0.00049069 | ||||
Safe Transfer Fr... | 18307224 | 270 days ago | IN | 0 ETH | 0.00038842 | ||||
Safe Transfer Fr... | 18298781 | 271 days ago | IN | 0 ETH | 0.00032504 | ||||
Safe Transfer Fr... | 18297545 | 271 days ago | IN | 0 ETH | 0.0002925 | ||||
Set Approval For... | 18292624 | 272 days ago | IN | 0 ETH | 0.0007547 | ||||
Safe Transfer Fr... | 18288793 | 273 days ago | IN | 0 ETH | 0.00030446 | ||||
Set Approval For... | 18286773 | 273 days ago | IN | 0 ETH | 0.00048125 | ||||
Safe Transfer Fr... | 18281643 | 274 days ago | IN | 0 ETH | 0.00031096 | ||||
Safe Transfer Fr... | 18277142 | 274 days ago | IN | 0 ETH | 0.00035676 | ||||
Set Approval For... | 18275666 | 274 days ago | IN | 0 ETH | 0.00029043 | ||||
Transfer From | 18262064 | 276 days ago | IN | 0 ETH | 0.00052885 | ||||
Safe Transfer Fr... | 18261006 | 276 days ago | IN | 0 ETH | 0.00037927 | ||||
Safe Transfer Fr... | 18260166 | 277 days ago | IN | 0 ETH | 0.00037518 |
Loading...
Loading
Contract Name:
Troublemakers
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-16 */ // File: operator-filter-registry/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } // File: operator-filter-registry/src/OperatorFilterer.sol pragma solidity ^0.8.13; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !( operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender) && operatorFilterRegistry.isOperatorAllowed(address(this), from) ) ) { revert OperatorNotAllowed(msg.sender); } } _; } } // File: operator-filter-registry/src/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: troublemkrs_deposit.sol pragma solidity >=0.8.9 <0.9.0; contract Troublemakers is ERC721A, Ownable, ReentrancyGuard, DefaultOperatorFilterer { bytes32 public root; using Strings for uint; uint public maxSupply = 333; uint public maxPerWallet = 1; uint public maxDeposits = 0; uint public currentDeposits = 0; uint public publicPrice = 0.169 ether; uint public whitelistPrice = 0.169 ether; bool public isPublicMint = false; bool public isWhitelistMint = false; bool public isMetadataFinal; string private _baseURL; string public prerevealURL = ''; address[] public awardableWallets; address public withdrawAddress = 0x60e9C96430D50a49eaBF3e5f5351055Dc15Af7fA; mapping (address => uint) public depositStatus; constructor() ERC721A('Troublemakers', 'TROUBLE') { } function amountDeposited(address _wallet) public view returns (uint) { return depositStatus[_wallet]; } function _baseURI() internal view override returns (string memory) { return _baseURL; } function _startTokenId() internal pure override returns (uint) { return 1; } function contractURI() public pure returns (string memory) { return ""; } function finalizeMetadata() external onlyOwner { isMetadataFinal = true; } function reveal(string memory url) external onlyOwner { require(!isMetadataFinal, "Metadata is finalized"); _baseURL = url; } function setRoot(bytes32 _root) external onlyOwner { root = _root; } function setMaxDeposits(uint _max) external onlyOwner { maxDeposits = _max; } function setMaxPerWallet(uint _max) external onlyOwner { maxPerWallet = _max; } function setPublicPrice(uint _price) external onlyOwner { publicPrice = _price; } function setWhitelistPrice(uint _price) external onlyOwner { whitelistPrice = _price; } function setPublicState(bool value) external onlyOwner { isPublicMint = value; } function setWhitelistState(bool value) external onlyOwner { isWhitelistMint = value; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(withdrawAddress).transfer(balance); } function airdrop(address to, uint count) external onlyOwner { require( _totalMinted() + count <= maxSupply, 'Exceeds max supply' ); _safeMint(to, count); } function setMaxSupply(uint newMaxSupply) external onlyOwner { require(maxDeposits <= newMaxSupply); maxSupply = newMaxSupply; } function tokenURI(uint tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return bytes(_baseURI()).length > 0 ? string(abi.encodePacked(_baseURI(), tokenId.toString(), ".json")) : prerevealURL; } function isValid(bytes32[] memory proof, bytes32 leaf) public view returns (bool) { return MerkleProof.verify(proof, root, leaf); } /* DEPOSIT + AWARD FUNCTIONS */ /// @notice This is a whitelist only function that will create a deposit, which will result in a Troublemaker NFT minted to the depositer once the awardTokensFromDeposits function is called by the contract owner function depositAllowlist(bytes32[] memory proof) public payable { uint count = 1; require(isWhitelistMint, "Whitelist mint has not started"); require(currentDeposits + count <= maxDeposits, "Exceeds max deposits allowed"); require(depositStatus[msg.sender] < maxPerWallet, "Exceeds max per wallet"); if (!isValid(proof, keccak256(abi.encodePacked(msg.sender)))) revert("Wallet is not on allowlist"); require( msg.value >= count * whitelistPrice, "Ether value sent is not sufficient" ); awardableWallets.push(msg.sender); depositStatus[msg.sender]++; } /// @notice This is a public function that will create a deposit, which will result in a Troublemaker NFT minted to the depositer once the awardTokensFromDeposits function is called by the contract owner function depositPublic() public payable { uint count = 1; require(isPublicMint, "Public mint has not started"); require(currentDeposits + count <= maxDeposits, "Exceeds max deposits allowed"); require(depositStatus[msg.sender] < maxPerWallet, "Exceeds max per wallet"); require( msg.value >= count * publicPrice, 'Ether value sent is not sufficient' ); currentDeposits++; awardableWallets.push(msg.sender); depositStatus[msg.sender]++; } /// @notice This function settles previous debts via awardableWallets and will award a Troublemaker NFT to anyone who is owed one at time of execution function awardTokensFromDeposits() public onlyOwner { require(awardableWallets.length > 0, "There are no wallets to award to"); // Loop for each wallet in awardableWallets for (uint i = awardableWallets.length; i > 0; i--) { require(_totalMinted() + 1 <= maxSupply, "Exceeds max supply"); // Mint to address _safeMint(awardableWallets[i-1], 1); // Remove address from awardableWallets list awardableWallets.pop(); } } /* OPENSEA OPERATOR OVERRIDES (ROYALTIES) */ function transferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override(ERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"amountDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"awardTokensFromDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"awardableWallets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"currentDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"depositAllowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"depositPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetadataFinal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prerevealURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setPublicState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setWhitelistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setWhitelistState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
61014d600b556001600c556000600d819055600e819055670258689ac70a8000600f8190556010556011805461ffff1916905560a060405260809081526013906200004b908262000359565b50601580546001600160a01b0319167360e9c96430d50a49eabf3e5f5351055dc15af7fa1790553480156200007f57600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600d81526020016c54726f75626c656d616b65727360981b8152506040518060400160405280600781526020016654524f55424c4560c81b8152508160029081620000ee919062000359565b506003620000fd828262000359565b5050600160005550620001103362000262565b60016009556daaeb6d7670e522a718067333cd4e3b156200025a578015620001a857604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200018957600080fd5b505af11580156200019e573d6000803e3d6000fd5b505050506200025a565b6001600160a01b03821615620001f95760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200016e565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200024057600080fd5b505af115801562000255573d6000803e3d6000fd5b505050505b505062000425565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002df57607f821691505b6020821081036200030057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035457600081815260208120601f850160051c810160208610156200032f5750805b601f850160051c820191505b8181101562000350578281556001016200033b565b5050505b505050565b81516001600160401b03811115620003755762000375620002b4565b6200038d81620003868454620002ca565b8462000306565b602080601f831160018114620003c55760008415620003ac5750858301515b600019600386901b1c1916600185901b17855562000350565b600085815260208120601f198616915b82811015620003f657888601518255948401946001909101908401620003d5565b5085821015620004155787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6127c180620004356000396000f3fe6080604052600436106102ad5760003560e01c80638da5cb5b11610175578063dab5f340116100dc578063ebf0c71711610095578063f4a560a51161006f578063f4a560a514610804578063f4f0e1ae14610819578063f6ece09d1461084f578063fc1a1c361461085757600080fd5b8063ebf0c717146107a1578063f2fde38b146107b7578063f3205dfa146107d757600080fd5b8063dab5f340146106cc578063dc686439146106ec578063e268e4d314610702578063e4bc55ab14610722578063e8a3d48514610737578063e985e9c51461075857600080fd5b8063c48156af1161012e578063c48156af14610622578063c627525514610642578063c754da3314610662578063c87b56dd14610681578063d5abeb01146106a1578063d8210482146106b757600080fd5b80638da5cb5b1461058657806395d89b41146105a4578063a22cb465146105b9578063a945bf80146105d9578063b88d4fde146105ef578063b8a20ed01461060257600080fd5b8063354d594b116102195780636f8b44b0116101d25780636f8b44b0146104de57806370a08231146104fe578063715018a61461051e578063717d57d3146105335780637a19971b146105535780638ba4cc3c1461056657600080fd5b8063354d594b1461044a5780633ccfd60b1461046057806342842e0e14610475578063453c2310146104885780634c2612471461049e5780636352211e146104be57600080fd5b80631581b6001161026b5780631581b6001461039657806318160ddd146103b65780631df0bb8a146103dd57806323b872dd146103fd5780632f7bce88146104105780633057931f1461043057600080fd5b8062fed902146102b257806301ffc9a7146102d457806306fdde0314610309578063081812fc1461032b578063095ea7b3146103635780630de76de414610376575b600080fd5b3480156102be57600080fd5b506102d26102cd366004612065565b61086d565b005b3480156102e057600080fd5b506102f46102ef366004612094565b61087a565b60405190151581526020015b60405180910390f35b34801561031557600080fd5b5061031e6108cc565b6040516103009190612101565b34801561033757600080fd5b5061034b610346366004612065565b61095e565b6040516001600160a01b039091168152602001610300565b6102d2610371366004612130565b6109a2565b34801561038257600080fd5b506011546102f49062010000900460ff1681565b3480156103a257600080fd5b5060155461034b906001600160a01b031681565b3480156103c257600080fd5b5060015460005403600019015b604051908152602001610300565b3480156103e957600080fd5b506102d26103f8366004612168565b610a42565b6102d261040b366004612185565b610a64565b34801561041c57600080fd5b5061034b61042b366004612065565b610bc5565b34801561043c57600080fd5b506011546102f49060ff1681565b34801561045657600080fd5b506103cf600d5481565b34801561046c57600080fd5b506102d2610bef565b6102d2610483366004612185565b610c35565b34801561049457600080fd5b506103cf600c5481565b3480156104aa57600080fd5b506102d26104b9366004612260565b610d86565b3480156104ca57600080fd5b5061034b6104d9366004612065565b610deb565b3480156104ea57600080fd5b506102d26104f9366004612065565b610df6565b34801561050a57600080fd5b506103cf6105193660046122a9565b610e12565b34801561052a57600080fd5b506102d2610e61565b34801561053f57600080fd5b506102d261054e366004612065565b610e75565b6102d2610561366004612344565b610e82565b34801561057257600080fd5b506102d2610581366004612130565b6110ae565b34801561059257600080fd5b506008546001600160a01b031661034b565b3480156105b057600080fd5b5061031e61111e565b3480156105c557600080fd5b506102d26105d4366004612379565b61112d565b3480156105e557600080fd5b506103cf600f5481565b6102d26105fd3660046123b0565b611199565b34801561060e57600080fd5b506102f461061d36600461242c565b6112f8565b34801561062e57600080fd5b506102d261063d366004612168565b61130e565b34801561064e57600080fd5b506102d261065d366004612065565b611329565b34801561066e57600080fd5b506011546102f490610100900460ff1681565b34801561068d57600080fd5b5061031e61069c366004612065565b611336565b3480156106ad57600080fd5b506103cf600b5481565b3480156106c357600080fd5b5061031e61147c565b3480156106d857600080fd5b506102d26106e7366004612065565b61150a565b3480156106f857600080fd5b506103cf600e5481565b34801561070e57600080fd5b506102d261071d366004612065565b611517565b34801561072e57600080fd5b506102d2611524565b34801561074357600080fd5b5060408051602081019091526000815261031e565b34801561076457600080fd5b506102f4610773366004612471565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107ad57600080fd5b506103cf600a5481565b3480156107c357600080fd5b506102d26107d23660046122a9565b611661565b3480156107e357600080fd5b506103cf6107f23660046122a9565b60166020526000908152604090205481565b34801561081057600080fd5b506102d26116d7565b34801561082557600080fd5b506103cf6108343660046122a9565b6001600160a01b031660009081526016602052604090205490565b6102d26116f2565b34801561086357600080fd5b506103cf60105481565b6108756118a2565b600d55565b60006301ffc9a760e01b6001600160e01b0319831614806108ab57506380ac58cd60e01b6001600160e01b03198316145b806108c65750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546108db906124a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610907906124a4565b80156109545780601f1061092957610100808354040283529160200191610954565b820191906000526020600020905b81548152906001019060200180831161093757829003601f168201915b5050505050905090565b6000610969826118fc565b610986576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109ad82610deb565b9050336001600160a01b038216146109e6576109c98133610773565b6109e6576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a4a6118a2565b601180549115156101000261ff0019909216919091179055565b826daaeb6d7670e522a718067333cd4e3b15610bb457336001600160a01b03821603610a9a57610a95848484611931565b610bbf565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ae9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0d91906124de565b8015610b905750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9091906124de565b610bb457604051633b79c77360e21b81523360048201526024015b60405180910390fd5b610bbf848484611931565b50505050565b60148181548110610bd557600080fd5b6000918252602090912001546001600160a01b0316905081565b610bf76118a2565b60155460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610c31573d6000803e3d6000fd5b5050565b826daaeb6d7670e522a718067333cd4e3b15610d7b57336001600160a01b03821603610c6657610a95848484611aca565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd991906124de565b8015610d5c5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5c91906124de565b610d7b57604051633b79c77360e21b8152336004820152602401610bab565b610bbf848484611aca565b610d8e6118a2565b60115462010000900460ff1615610ddf5760405162461bcd60e51b815260206004820152601560248201527413595d1859185d18481a5cc8199a5b985b1a5e9959605a1b6044820152606401610bab565b6012610c318282612541565b60006108c682611aea565b610dfe6118a2565b80600d541115610e0d57600080fd5b600b55565b60006001600160a01b038216610e3b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e696118a2565b610e736000611b59565b565b610e7d6118a2565b601055565b601154600190610100900460ff16610edc5760405162461bcd60e51b815260206004820152601e60248201527f57686974656c697374206d696e7420686173206e6f74207374617274656400006044820152606401610bab565b600d5481600e54610eed9190612617565b1115610f3b5760405162461bcd60e51b815260206004820152601c60248201527f45786365656473206d6178206465706f7369747320616c6c6f776564000000006044820152606401610bab565b600c543360009081526016602052604090205410610f945760405162461bcd60e51b8152602060048201526016602482015275115e18d959591cc81b585e081c195c881dd85b1b195d60521b6044820152606401610bab565b6040516bffffffffffffffffffffffff193360601b166020820152610fd3908390603401604051602081830303815290604052805190602001206112f8565b61101f5760405162461bcd60e51b815260206004820152601a60248201527f57616c6c6574206973206e6f74206f6e20616c6c6f776c6973740000000000006044820152606401610bab565b60105461102c908261262a565b34101561104b5760405162461bcd60e51b8152600401610bab90612641565b60148054600181019091557fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0180546001600160a01b0319163390811790915560009081526016602052604081208054916110a583612683565b91905055505050565b6110b66118a2565b600b54816110c76000546000190190565b6110d19190612617565b11156111145760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610bab565b610c318282611bab565b6060600380546108db906124a4565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b836daaeb6d7670e522a718067333cd4e3b156112e557336001600160a01b038216036111d0576111cb85858585611bc5565b6112f1565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561121f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124391906124de565b80156112c65750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156112a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c691906124de565b6112e557604051633b79c77360e21b8152336004820152602401610bab565b6112f185858585611bc5565b5050505050565b600061130783600a5484611c09565b9392505050565b6113166118a2565b6011805460ff1916911515919091179055565b6113316118a2565b600f55565b6060611341826118fc565b6113a55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bab565b60006113af611c1f565b511161144557601380546113c2906124a4565b80601f01602080910402602001604051908101604052809291908181526020018280546113ee906124a4565b801561143b5780601f106114105761010080835404028352916020019161143b565b820191906000526020600020905b81548152906001019060200180831161141e57829003601f168201915b50505050506108c6565b61144d611c1f565b61145683611c2e565b60405160200161146792919061269c565b60405160208183030381529060405292915050565b60138054611489906124a4565b80601f01602080910402602001604051908101604052809291908181526020018280546114b5906124a4565b80156115025780601f106114d757610100808354040283529160200191611502565b820191906000526020600020905b8154815290600101906020018083116114e557829003601f168201915b505050505081565b6115126118a2565b600a55565b61151f6118a2565b600c55565b61152c6118a2565b60145461157b5760405162461bcd60e51b815260206004820181905260248201527f546865726520617265206e6f2077616c6c65747320746f20617761726420746f6044820152606401610bab565b6014545b801561165e57600b546000546000190161159a906001612617565b11156115dd5760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610bab565b61161960146115ed6001846126db565b815481106115fd576115fd6126ee565b6000918252602090912001546001600160a01b03166001611bab565b601480548061162a5761162a612704565b600082815260209020810160001990810180546001600160a01b0319169055019055806116568161271a565b91505061157f565b50565b6116696118a2565b6001600160a01b0381166116ce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bab565b61165e81611b59565b6116df6118a2565b6011805462ff0000191662010000179055565b60115460019060ff166117475760405162461bcd60e51b815260206004820152601b60248201527f5075626c6963206d696e7420686173206e6f74207374617274656400000000006044820152606401610bab565b600d5481600e546117589190612617565b11156117a65760405162461bcd60e51b815260206004820152601c60248201527f45786365656473206d6178206465706f7369747320616c6c6f776564000000006044820152606401610bab565b600c5433600090815260166020526040902054106117ff5760405162461bcd60e51b8152602060048201526016602482015275115e18d959591cc81b585e081c195c881dd85b1b195d60521b6044820152606401610bab565b600f5461180c908261262a565b34101561182b5760405162461bcd60e51b8152600401610bab90612641565b600e805490600061183b83612683565b909155505060148054600181019091557fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0180546001600160a01b03191633908117909155600090815260166020526040812080549161189a83612683565b919050555050565b6008546001600160a01b03163314610e735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bab565b600081600111158015611910575060005482105b80156108c6575050600090815260046020526040902054600160e01b161590565b600061193c82611aea565b9050836001600160a01b0316816001600160a01b03161461196f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176119bc5761199f8633610773565b6119bc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166119e357604051633a954ecd60e21b815260040160405180910390fd5b80156119ee57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611a8057600184016000818152600460205260408120549003611a7e576000548114611a7e5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b611ae583838360405180602001604052806000815250611199565b505050565b60008180600111611b4057600054811015611b405760008181526004602052604081205490600160e01b82169003611b3e575b80600003611307575060001901600081815260046020526040902054611b1d565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c31828260405180602001604052806000815250611cc1565b611bd0848484610a64565b6001600160a01b0383163b15610bbf57611bec84848484611d27565b610bbf576040516368d2bf6b60e11b815260040160405180910390fd5b600082611c168584611e13565b14949350505050565b6060601280546108db906124a4565b60606000611c3b83611e60565b600101905060008167ffffffffffffffff811115611c5b57611c5b6121c1565b6040519080825280601f01601f191660200182016040528015611c85576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611c8f57509392505050565b611ccb8383611f38565b6001600160a01b0383163b15611ae5576000548281035b611cf56000868380600101945086611d27565b611d12576040516368d2bf6b60e11b815260040160405180910390fd5b818110611ce25781600054146112f157600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611d5c903390899088908890600401612731565b6020604051808303816000875af1925050508015611d97575060408051601f3d908101601f19168201909252611d949181019061276e565b60015b611df5573d808015611dc5576040519150601f19603f3d011682016040523d82523d6000602084013e611dca565b606091505b508051600003611ded576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600081815b8451811015611e5857611e4482868381518110611e3757611e376126ee565b6020026020010151612036565b915080611e5081612683565b915050611e18565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611e9f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611ecb576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611ee957662386f26fc10000830492506010015b6305f5e1008310611f01576305f5e100830492506008015b6127108310611f1557612710830492506004015b60648310611f27576064830492506002015b600a83106108c65760010192915050565b6000805490829003611f5d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461200c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611fd4565b508160000361202d57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000818310612052576000828152602084905260409020611307565b6000838152602083905260409020611307565b60006020828403121561207757600080fd5b5035919050565b6001600160e01b03198116811461165e57600080fd5b6000602082840312156120a657600080fd5b81356113078161207e565b60005b838110156120cc5781810151838201526020016120b4565b50506000910152565b600081518084526120ed8160208601602086016120b1565b601f01601f19169290920160200192915050565b60208152600061130760208301846120d5565b80356001600160a01b038116811461212b57600080fd5b919050565b6000806040838503121561214357600080fd5b61214c83612114565b946020939093013593505050565b801515811461165e57600080fd5b60006020828403121561217a57600080fd5b81356113078161215a565b60008060006060848603121561219a57600080fd5b6121a384612114565b92506121b160208501612114565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612200576122006121c1565b604052919050565b600067ffffffffffffffff831115612222576122226121c1565b612235601f8401601f19166020016121d7565b905082815283838301111561224957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561227257600080fd5b813567ffffffffffffffff81111561228957600080fd5b8201601f8101841361229a57600080fd5b611e0b84823560208401612208565b6000602082840312156122bb57600080fd5b61130782612114565b600082601f8301126122d557600080fd5b8135602067ffffffffffffffff8211156122f1576122f16121c1565b8160051b6123008282016121d7565b928352848101820192828101908785111561231a57600080fd5b83870192505b8483101561233957823582529183019190830190612320565b979650505050505050565b60006020828403121561235657600080fd5b813567ffffffffffffffff81111561236d57600080fd5b611e0b848285016122c4565b6000806040838503121561238c57600080fd5b61239583612114565b915060208301356123a58161215a565b809150509250929050565b600080600080608085870312156123c657600080fd5b6123cf85612114565b93506123dd60208601612114565b925060408501359150606085013567ffffffffffffffff81111561240057600080fd5b8501601f8101871361241157600080fd5b61242087823560208401612208565b91505092959194509250565b6000806040838503121561243f57600080fd5b823567ffffffffffffffff81111561245657600080fd5b612462858286016122c4565b95602094909401359450505050565b6000806040838503121561248457600080fd5b61248d83612114565b915061249b60208401612114565b90509250929050565b600181811c908216806124b857607f821691505b6020821081036124d857634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156124f057600080fd5b81516113078161215a565b601f821115611ae557600081815260208120601f850160051c810160208610156125225750805b601f850160051c820191505b81811015611ac25782815560010161252e565b815167ffffffffffffffff81111561255b5761255b6121c1565b61256f8161256984546124a4565b846124fb565b602080601f8311600181146125a4576000841561258c5750858301515b600019600386901b1c1916600185901b178555611ac2565b600085815260208120601f198616915b828110156125d3578886015182559484019460019091019084016125b4565b50858210156125f15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156108c6576108c6612601565b80820281158282048414176108c6576108c6612601565b60208082526022908201527f45746865722076616c75652073656e74206973206e6f742073756666696369656040820152611b9d60f21b606082015260800190565b60006001820161269557612695612601565b5060010190565b600083516126ae8184602088016120b1565b8351908301906126c28183602088016120b1565b64173539b7b760d91b9101908152600501949350505050565b818103818111156108c6576108c6612601565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60008161272957612729612601565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612764908301846120d5565b9695505050505050565b60006020828403121561278057600080fd5b81516113078161207e56fea2646970667358221220258725e3c0f563d9a396687a50b221ea2ca356f66d6bb9af93075302fba18f3664736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102ad5760003560e01c80638da5cb5b11610175578063dab5f340116100dc578063ebf0c71711610095578063f4a560a51161006f578063f4a560a514610804578063f4f0e1ae14610819578063f6ece09d1461084f578063fc1a1c361461085757600080fd5b8063ebf0c717146107a1578063f2fde38b146107b7578063f3205dfa146107d757600080fd5b8063dab5f340146106cc578063dc686439146106ec578063e268e4d314610702578063e4bc55ab14610722578063e8a3d48514610737578063e985e9c51461075857600080fd5b8063c48156af1161012e578063c48156af14610622578063c627525514610642578063c754da3314610662578063c87b56dd14610681578063d5abeb01146106a1578063d8210482146106b757600080fd5b80638da5cb5b1461058657806395d89b41146105a4578063a22cb465146105b9578063a945bf80146105d9578063b88d4fde146105ef578063b8a20ed01461060257600080fd5b8063354d594b116102195780636f8b44b0116101d25780636f8b44b0146104de57806370a08231146104fe578063715018a61461051e578063717d57d3146105335780637a19971b146105535780638ba4cc3c1461056657600080fd5b8063354d594b1461044a5780633ccfd60b1461046057806342842e0e14610475578063453c2310146104885780634c2612471461049e5780636352211e146104be57600080fd5b80631581b6001161026b5780631581b6001461039657806318160ddd146103b65780631df0bb8a146103dd57806323b872dd146103fd5780632f7bce88146104105780633057931f1461043057600080fd5b8062fed902146102b257806301ffc9a7146102d457806306fdde0314610309578063081812fc1461032b578063095ea7b3146103635780630de76de414610376575b600080fd5b3480156102be57600080fd5b506102d26102cd366004612065565b61086d565b005b3480156102e057600080fd5b506102f46102ef366004612094565b61087a565b60405190151581526020015b60405180910390f35b34801561031557600080fd5b5061031e6108cc565b6040516103009190612101565b34801561033757600080fd5b5061034b610346366004612065565b61095e565b6040516001600160a01b039091168152602001610300565b6102d2610371366004612130565b6109a2565b34801561038257600080fd5b506011546102f49062010000900460ff1681565b3480156103a257600080fd5b5060155461034b906001600160a01b031681565b3480156103c257600080fd5b5060015460005403600019015b604051908152602001610300565b3480156103e957600080fd5b506102d26103f8366004612168565b610a42565b6102d261040b366004612185565b610a64565b34801561041c57600080fd5b5061034b61042b366004612065565b610bc5565b34801561043c57600080fd5b506011546102f49060ff1681565b34801561045657600080fd5b506103cf600d5481565b34801561046c57600080fd5b506102d2610bef565b6102d2610483366004612185565b610c35565b34801561049457600080fd5b506103cf600c5481565b3480156104aa57600080fd5b506102d26104b9366004612260565b610d86565b3480156104ca57600080fd5b5061034b6104d9366004612065565b610deb565b3480156104ea57600080fd5b506102d26104f9366004612065565b610df6565b34801561050a57600080fd5b506103cf6105193660046122a9565b610e12565b34801561052a57600080fd5b506102d2610e61565b34801561053f57600080fd5b506102d261054e366004612065565b610e75565b6102d2610561366004612344565b610e82565b34801561057257600080fd5b506102d2610581366004612130565b6110ae565b34801561059257600080fd5b506008546001600160a01b031661034b565b3480156105b057600080fd5b5061031e61111e565b3480156105c557600080fd5b506102d26105d4366004612379565b61112d565b3480156105e557600080fd5b506103cf600f5481565b6102d26105fd3660046123b0565b611199565b34801561060e57600080fd5b506102f461061d36600461242c565b6112f8565b34801561062e57600080fd5b506102d261063d366004612168565b61130e565b34801561064e57600080fd5b506102d261065d366004612065565b611329565b34801561066e57600080fd5b506011546102f490610100900460ff1681565b34801561068d57600080fd5b5061031e61069c366004612065565b611336565b3480156106ad57600080fd5b506103cf600b5481565b3480156106c357600080fd5b5061031e61147c565b3480156106d857600080fd5b506102d26106e7366004612065565b61150a565b3480156106f857600080fd5b506103cf600e5481565b34801561070e57600080fd5b506102d261071d366004612065565b611517565b34801561072e57600080fd5b506102d2611524565b34801561074357600080fd5b5060408051602081019091526000815261031e565b34801561076457600080fd5b506102f4610773366004612471565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107ad57600080fd5b506103cf600a5481565b3480156107c357600080fd5b506102d26107d23660046122a9565b611661565b3480156107e357600080fd5b506103cf6107f23660046122a9565b60166020526000908152604090205481565b34801561081057600080fd5b506102d26116d7565b34801561082557600080fd5b506103cf6108343660046122a9565b6001600160a01b031660009081526016602052604090205490565b6102d26116f2565b34801561086357600080fd5b506103cf60105481565b6108756118a2565b600d55565b60006301ffc9a760e01b6001600160e01b0319831614806108ab57506380ac58cd60e01b6001600160e01b03198316145b806108c65750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546108db906124a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610907906124a4565b80156109545780601f1061092957610100808354040283529160200191610954565b820191906000526020600020905b81548152906001019060200180831161093757829003601f168201915b5050505050905090565b6000610969826118fc565b610986576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109ad82610deb565b9050336001600160a01b038216146109e6576109c98133610773565b6109e6576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a4a6118a2565b601180549115156101000261ff0019909216919091179055565b826daaeb6d7670e522a718067333cd4e3b15610bb457336001600160a01b03821603610a9a57610a95848484611931565b610bbf565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ae9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0d91906124de565b8015610b905750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610b6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9091906124de565b610bb457604051633b79c77360e21b81523360048201526024015b60405180910390fd5b610bbf848484611931565b50505050565b60148181548110610bd557600080fd5b6000918252602090912001546001600160a01b0316905081565b610bf76118a2565b60155460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610c31573d6000803e3d6000fd5b5050565b826daaeb6d7670e522a718067333cd4e3b15610d7b57336001600160a01b03821603610c6657610a95848484611aca565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd991906124de565b8015610d5c5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5c91906124de565b610d7b57604051633b79c77360e21b8152336004820152602401610bab565b610bbf848484611aca565b610d8e6118a2565b60115462010000900460ff1615610ddf5760405162461bcd60e51b815260206004820152601560248201527413595d1859185d18481a5cc8199a5b985b1a5e9959605a1b6044820152606401610bab565b6012610c318282612541565b60006108c682611aea565b610dfe6118a2565b80600d541115610e0d57600080fd5b600b55565b60006001600160a01b038216610e3b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e696118a2565b610e736000611b59565b565b610e7d6118a2565b601055565b601154600190610100900460ff16610edc5760405162461bcd60e51b815260206004820152601e60248201527f57686974656c697374206d696e7420686173206e6f74207374617274656400006044820152606401610bab565b600d5481600e54610eed9190612617565b1115610f3b5760405162461bcd60e51b815260206004820152601c60248201527f45786365656473206d6178206465706f7369747320616c6c6f776564000000006044820152606401610bab565b600c543360009081526016602052604090205410610f945760405162461bcd60e51b8152602060048201526016602482015275115e18d959591cc81b585e081c195c881dd85b1b195d60521b6044820152606401610bab565b6040516bffffffffffffffffffffffff193360601b166020820152610fd3908390603401604051602081830303815290604052805190602001206112f8565b61101f5760405162461bcd60e51b815260206004820152601a60248201527f57616c6c6574206973206e6f74206f6e20616c6c6f776c6973740000000000006044820152606401610bab565b60105461102c908261262a565b34101561104b5760405162461bcd60e51b8152600401610bab90612641565b60148054600181019091557fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0180546001600160a01b0319163390811790915560009081526016602052604081208054916110a583612683565b91905055505050565b6110b66118a2565b600b54816110c76000546000190190565b6110d19190612617565b11156111145760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610bab565b610c318282611bab565b6060600380546108db906124a4565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b836daaeb6d7670e522a718067333cd4e3b156112e557336001600160a01b038216036111d0576111cb85858585611bc5565b6112f1565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561121f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124391906124de565b80156112c65750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156112a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c691906124de565b6112e557604051633b79c77360e21b8152336004820152602401610bab565b6112f185858585611bc5565b5050505050565b600061130783600a5484611c09565b9392505050565b6113166118a2565b6011805460ff1916911515919091179055565b6113316118a2565b600f55565b6060611341826118fc565b6113a55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bab565b60006113af611c1f565b511161144557601380546113c2906124a4565b80601f01602080910402602001604051908101604052809291908181526020018280546113ee906124a4565b801561143b5780601f106114105761010080835404028352916020019161143b565b820191906000526020600020905b81548152906001019060200180831161141e57829003601f168201915b50505050506108c6565b61144d611c1f565b61145683611c2e565b60405160200161146792919061269c565b60405160208183030381529060405292915050565b60138054611489906124a4565b80601f01602080910402602001604051908101604052809291908181526020018280546114b5906124a4565b80156115025780601f106114d757610100808354040283529160200191611502565b820191906000526020600020905b8154815290600101906020018083116114e557829003601f168201915b505050505081565b6115126118a2565b600a55565b61151f6118a2565b600c55565b61152c6118a2565b60145461157b5760405162461bcd60e51b815260206004820181905260248201527f546865726520617265206e6f2077616c6c65747320746f20617761726420746f6044820152606401610bab565b6014545b801561165e57600b546000546000190161159a906001612617565b11156115dd5760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610bab565b61161960146115ed6001846126db565b815481106115fd576115fd6126ee565b6000918252602090912001546001600160a01b03166001611bab565b601480548061162a5761162a612704565b600082815260209020810160001990810180546001600160a01b0319169055019055806116568161271a565b91505061157f565b50565b6116696118a2565b6001600160a01b0381166116ce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bab565b61165e81611b59565b6116df6118a2565b6011805462ff0000191662010000179055565b60115460019060ff166117475760405162461bcd60e51b815260206004820152601b60248201527f5075626c6963206d696e7420686173206e6f74207374617274656400000000006044820152606401610bab565b600d5481600e546117589190612617565b11156117a65760405162461bcd60e51b815260206004820152601c60248201527f45786365656473206d6178206465706f7369747320616c6c6f776564000000006044820152606401610bab565b600c5433600090815260166020526040902054106117ff5760405162461bcd60e51b8152602060048201526016602482015275115e18d959591cc81b585e081c195c881dd85b1b195d60521b6044820152606401610bab565b600f5461180c908261262a565b34101561182b5760405162461bcd60e51b8152600401610bab90612641565b600e805490600061183b83612683565b909155505060148054600181019091557fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0180546001600160a01b03191633908117909155600090815260166020526040812080549161189a83612683565b919050555050565b6008546001600160a01b03163314610e735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bab565b600081600111158015611910575060005482105b80156108c6575050600090815260046020526040902054600160e01b161590565b600061193c82611aea565b9050836001600160a01b0316816001600160a01b03161461196f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176119bc5761199f8633610773565b6119bc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166119e357604051633a954ecd60e21b815260040160405180910390fd5b80156119ee57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611a8057600184016000818152600460205260408120549003611a7e576000548114611a7e5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b611ae583838360405180602001604052806000815250611199565b505050565b60008180600111611b4057600054811015611b405760008181526004602052604081205490600160e01b82169003611b3e575b80600003611307575060001901600081815260046020526040902054611b1d565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c31828260405180602001604052806000815250611cc1565b611bd0848484610a64565b6001600160a01b0383163b15610bbf57611bec84848484611d27565b610bbf576040516368d2bf6b60e11b815260040160405180910390fd5b600082611c168584611e13565b14949350505050565b6060601280546108db906124a4565b60606000611c3b83611e60565b600101905060008167ffffffffffffffff811115611c5b57611c5b6121c1565b6040519080825280601f01601f191660200182016040528015611c85576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611c8f57509392505050565b611ccb8383611f38565b6001600160a01b0383163b15611ae5576000548281035b611cf56000868380600101945086611d27565b611d12576040516368d2bf6b60e11b815260040160405180910390fd5b818110611ce25781600054146112f157600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611d5c903390899088908890600401612731565b6020604051808303816000875af1925050508015611d97575060408051601f3d908101601f19168201909252611d949181019061276e565b60015b611df5573d808015611dc5576040519150601f19603f3d011682016040523d82523d6000602084013e611dca565b606091505b508051600003611ded576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600081815b8451811015611e5857611e4482868381518110611e3757611e376126ee565b6020026020010151612036565b915080611e5081612683565b915050611e18565b509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611e9f5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611ecb576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611ee957662386f26fc10000830492506010015b6305f5e1008310611f01576305f5e100830492506008015b6127108310611f1557612710830492506004015b60648310611f27576064830492506002015b600a83106108c65760010192915050565b6000805490829003611f5d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461200c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611fd4565b508160000361202d57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000818310612052576000828152602084905260409020611307565b6000838152602083905260409020611307565b60006020828403121561207757600080fd5b5035919050565b6001600160e01b03198116811461165e57600080fd5b6000602082840312156120a657600080fd5b81356113078161207e565b60005b838110156120cc5781810151838201526020016120b4565b50506000910152565b600081518084526120ed8160208601602086016120b1565b601f01601f19169290920160200192915050565b60208152600061130760208301846120d5565b80356001600160a01b038116811461212b57600080fd5b919050565b6000806040838503121561214357600080fd5b61214c83612114565b946020939093013593505050565b801515811461165e57600080fd5b60006020828403121561217a57600080fd5b81356113078161215a565b60008060006060848603121561219a57600080fd5b6121a384612114565b92506121b160208501612114565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612200576122006121c1565b604052919050565b600067ffffffffffffffff831115612222576122226121c1565b612235601f8401601f19166020016121d7565b905082815283838301111561224957600080fd5b828260208301376000602084830101529392505050565b60006020828403121561227257600080fd5b813567ffffffffffffffff81111561228957600080fd5b8201601f8101841361229a57600080fd5b611e0b84823560208401612208565b6000602082840312156122bb57600080fd5b61130782612114565b600082601f8301126122d557600080fd5b8135602067ffffffffffffffff8211156122f1576122f16121c1565b8160051b6123008282016121d7565b928352848101820192828101908785111561231a57600080fd5b83870192505b8483101561233957823582529183019190830190612320565b979650505050505050565b60006020828403121561235657600080fd5b813567ffffffffffffffff81111561236d57600080fd5b611e0b848285016122c4565b6000806040838503121561238c57600080fd5b61239583612114565b915060208301356123a58161215a565b809150509250929050565b600080600080608085870312156123c657600080fd5b6123cf85612114565b93506123dd60208601612114565b925060408501359150606085013567ffffffffffffffff81111561240057600080fd5b8501601f8101871361241157600080fd5b61242087823560208401612208565b91505092959194509250565b6000806040838503121561243f57600080fd5b823567ffffffffffffffff81111561245657600080fd5b612462858286016122c4565b95602094909401359450505050565b6000806040838503121561248457600080fd5b61248d83612114565b915061249b60208401612114565b90509250929050565b600181811c908216806124b857607f821691505b6020821081036124d857634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156124f057600080fd5b81516113078161215a565b601f821115611ae557600081815260208120601f850160051c810160208610156125225750805b601f850160051c820191505b81811015611ac25782815560010161252e565b815167ffffffffffffffff81111561255b5761255b6121c1565b61256f8161256984546124a4565b846124fb565b602080601f8311600181146125a4576000841561258c5750858301515b600019600386901b1c1916600185901b178555611ac2565b600085815260208120601f198616915b828110156125d3578886015182559484019460019091019084016125b4565b50858210156125f15787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156108c6576108c6612601565b80820281158282048414176108c6576108c6612601565b60208082526022908201527f45746865722076616c75652073656e74206973206e6f742073756666696369656040820152611b9d60f21b606082015260800190565b60006001820161269557612695612601565b5060010190565b600083516126ae8184602088016120b1565b8351908301906126c28183602088016120b1565b64173539b7b760d91b9101908152600501949350505050565b818103818111156108c6576108c6612601565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60008161272957612729612601565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612764908301846120d5565b9695505050505050565b60006020828403121561278057600080fd5b81516113078161207e56fea2646970667358221220258725e3c0f563d9a396687a50b221ea2ca356f66d6bb9af93075302fba18f3664736f6c63430008110033
Deployed Bytecode Sourcemap
96896:5996:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98394:82;;;;;;;;;;-1:-1:-1;98394:82:0;;;;;:::i;:::-;;:::i;:::-;;63774:639;;;;;;;;;;-1:-1:-1;63774:639:0;;;;;:::i;:::-;;:::i;:::-;;;750:14:1;;743:22;725:41;;713:2;698:18;63774:639:0;;;;;;;;64676:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;71167:218::-;;;;;;;;;;-1:-1:-1;71167:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;71167:218:0;1533:203:1;70600:408:0;;;;;;:::i;:::-;;:::i;97343:27::-;;;;;;;;;;-1:-1:-1;97343:27:0;;;;;;;;;;;97483:75;;;;;;;;;;-1:-1:-1;97483:75:0;;;;-1:-1:-1;;;;;97483:75:0;;;60427:323;;;;;;;;;;-1:-1:-1;97981:1:0;60701:12;60488:7;60685:13;:28;-1:-1:-1;;60685:46:0;60427:323;;;2324:25:1;;;2312:2;2297:18;60427:323:0;2178:177:1;98857:91:0;;;;;;;;;;-1:-1:-1;98857:91:0;;;;;:::i;:::-;;:::i;102290:180::-;;;;;;:::i;:::-;;:::i;97446:33::-;;;;;;;;;;-1:-1:-1;97446:33:0;;;;;:::i;:::-;;:::i;97262:32::-;;;;;;;;;;-1:-1:-1;97262:32:0;;;;;;;;97104:27;;;;;;;;;;;;;;;;98956:148;;;;;;;;;;;;;:::i;102478:188::-;;;;;;:::i;:::-;;:::i;97070:28::-;;;;;;;;;;;;;;;;98171:139;;;;;;;;;;-1:-1:-1;98171:139:0;;;;;:::i;:::-;;:::i;66069:152::-;;;;;;;;;;-1:-1:-1;66069:152:0;;;;;:::i;:::-;;:::i;99288:141::-;;;;;;;;;;-1:-1:-1;99288:141:0;;;;;:::i;:::-;;:::i;61611:233::-;;;;;;;;;;-1:-1:-1;61611:233:0;;;;;:::i;:::-;;:::i;44553:103::-;;;;;;;;;;;;;:::i;98667:92::-;;;;;;;;;;-1:-1:-1;98667:92:0;;;;;:::i;:::-;;:::i;100194:621::-;;;;;;:::i;:::-;;:::i;99109:174::-;;;;;;;;;;-1:-1:-1;99109:174:0;;;;;:::i;:::-;;:::i;43905:87::-;;;;;;;;;;-1:-1:-1;43978:6:0;;-1:-1:-1;;;;;43978:6:0;43905:87;;64852:104;;;;;;;;;;;;;:::i;71725:234::-;;;;;;;;;;-1:-1:-1;71725:234:0;;;;;:::i;:::-;;:::i;97175:37::-;;;;;;;;;;;;;;;;102674:213;;;;;;:::i;:::-;;:::i;99780:145::-;;;;;;;;;;-1:-1:-1;99780:145:0;;;;;:::i;:::-;;:::i;98764:85::-;;;;;;;;;;-1:-1:-1;98764:85:0;;;;;:::i;:::-;;:::i;98573:86::-;;;;;;;;;;-1:-1:-1;98573:86:0;;;;;:::i;:::-;;:::i;97301:35::-;;;;;;;;;;-1:-1:-1;97301:35:0;;;;;;;;;;;99434:341;;;;;;;;;;-1:-1:-1;99434:341:0;;;;;:::i;:::-;;:::i;97039:27::-;;;;;;;;;;;;;;;;97406:31;;;;;;;;;;;;;:::i;98316:73::-;;;;;;;;;;-1:-1:-1;98316:73:0;;;;;:::i;:::-;;:::i;97138:31::-;;;;;;;;;;;;;;;;98481:84;;;;;;;;;;-1:-1:-1;98481:84:0;;;;;:::i;:::-;;:::i;101692:530::-;;;;;;;;;;;;;:::i;97992:78::-;;;;;;;;;;-1:-1:-1;98056:9:0;;;;;;;;;-1:-1:-1;98056:9:0;;97992:78;;72116:164;;;;;;;;;;-1:-1:-1;72116:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;72237:25:0;;;72213:4;72237:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;72116:164;96988:19;;;;;;;;;;;;;;;;44811:201;;;;;;;;;;-1:-1:-1;44811:201:0;;;;;:::i;:::-;;:::i;97567:46::-;;;;;;;;;;-1:-1:-1;97567:46:0;;;;;:::i;:::-;;;;;;;;;;;;;;98078:88;;;;;;;;;;;;;:::i;97687:117::-;;;;;;;;;;-1:-1:-1;97687:117:0;;;;;:::i;:::-;-1:-1:-1;;;;;97774:22:0;97750:4;97774:22;;;:13;:22;;;;;;;97687:117;101032:498;;;:::i;97216:40::-;;;;;;;;;;;;;;;;98394:82;43791:13;:11;:13::i;:::-;98453:11:::1;:18:::0;98394:82::o;63774:639::-;63859:4;-1:-1:-1;;;;;;;;;64183:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;64260:25:0;;;64183:102;:179;;;-1:-1:-1;;;;;;;;;;64337:25:0;;;64183:179;64163:199;63774:639;-1:-1:-1;;63774:639:0:o;64676:100::-;64730:13;64763:5;64756:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64676:100;:::o;71167:218::-;71243:7;71268:16;71276:7;71268;:16::i;:::-;71263:64;;71293:34;;-1:-1:-1;;;71293:34:0;;;;;;;;;;;71263:64;-1:-1:-1;71347:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;71347:30:0;;71167:218::o;70600:408::-;70689:13;70705:16;70713:7;70705;:16::i;:::-;70689:32;-1:-1:-1;94933:10:0;-1:-1:-1;;;;;70738:28:0;;;70734:175;;70786:44;70803:5;94933:10;72116:164;:::i;70786:44::-;70781:128;;70858:35;;-1:-1:-1;;;70858:35:0;;;;;;;;;;;70781:128;70921:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;70921:35:0;-1:-1:-1;;;;;70921:35:0;;;;;;;;;70972:28;;70921:24;;70972:28;;;;;;;70678:330;70600:408;;:::o;98857:91::-;43791:13;:11;:13::i;:::-;98920:15:::1;:23:::0;;;::::1;;;;-1:-1:-1::0;;98920:23:0;;::::1;::::0;;;::::1;::::0;;98857:91::o;102290:180::-;102408:4;2444:42;3584:43;:47;3580:699;;3871:10;-1:-1:-1;;;;;3863:18:0;;;3859:85;;102425:37:::1;102444:4;102450:2;102454:7;102425:18;:37::i;:::-;3922:7:::0;;3859:85;4004:67;;-1:-1:-1;;;4004:67:0;;4053:4;4004:67;;;8245:34:1;4060:10:0;8295:18:1;;;8288:43;2444:42:0;;4004:40;;8180:18:1;;4004:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;4100:61:0;;-1:-1:-1;;;4100:61:0;;4149:4;4100:61;;;8245:34:1;-1:-1:-1;;;;;8315:15:1;;8295:18;;;8288:43;2444:42:0;;4100:40;;8180:18:1;;4100:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3958:310;;4222:30;;-1:-1:-1;;;4222:30:0;;4241:10;4222:30;;;1679:51:1;1652:18;;4222:30:0;;;;;;;;3958:310;102425:37:::1;102444:4;102450:2;102454:7;102425:18;:37::i;:::-;102290:180:::0;;;;:::o;97446:33::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;97446:33:0;;-1:-1:-1;97446:33:0;:::o;98956:148::-;43791:13;:11;:13::i;:::-;99062:15:::1;::::0;99054:42:::1;::::0;99022:21:::1;::::0;-1:-1:-1;;;;;99062:15:0::1;::::0;99054:42;::::1;;;::::0;99022:21;;99004:15:::1;99054:42:::0;99004:15;99054:42;99022:21;99062:15;99054:42;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;98993:111;98956:148::o:0;102478:188::-;102600:4;2444:42;3584:43;:47;3580:699;;3871:10;-1:-1:-1;;;;;3863:18:0;;;3859:85;;102617:41:::1;102640:4;102646:2;102650:7;102617:22;:41::i;3859:85::-:0;4004:67;;-1:-1:-1;;;4004:67:0;;4053:4;4004:67;;;8245:34:1;4060:10:0;8295:18:1;;;8288:43;2444:42:0;;4004:40;;8180:18:1;;4004:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;4100:61:0;;-1:-1:-1;;;4100:61:0;;4149:4;4100:61;;;8245:34:1;-1:-1:-1;;;;;8315:15:1;;8295:18;;;8288:43;2444:42:0;;4100:40;;8180:18:1;;4100:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3958:310;;4222:30;;-1:-1:-1;;;4222:30:0;;4241:10;4222:30;;;1679:51:1;1652:18;;4222:30:0;1533:203:1;3958:310:0;102617:41:::1;102640:4;102646:2;102650:7;102617:22;:41::i;98171:139::-:0;43791:13;:11;:13::i;:::-;98245:15:::1;::::0;;;::::1;;;98244:16;98236:50;;;::::0;-1:-1:-1;;;98236:50:0;;8794:2:1;98236:50:0::1;::::0;::::1;8776:21:1::0;8833:2;8813:18;;;8806:30;-1:-1:-1;;;8852:18:1;;;8845:51;8913:18;;98236:50:0::1;8592:345:1::0;98236:50:0::1;98291:8;:14;98302:3:::0;98291:8;:14:::1;:::i;66069:152::-:0;66141:7;66184:27;66203:7;66184:18;:27::i;99288:141::-;43791:13;:11;:13::i;:::-;99382:12:::1;99367:11;;:27;;99359:36;;;::::0;::::1;;99400:9;:24:::0;99288:141::o;61611:233::-;61683:7;-1:-1:-1;;;;;61707:19:0;;61703:60;;61735:28;;-1:-1:-1;;;61735:28:0;;;;;;;;;;;61703:60;-1:-1:-1;;;;;;61781:25:0;;;;;:18;:25;;;;;;55770:13;61781:55;;61611:233::o;44553:103::-;43791:13;:11;:13::i;:::-;44618:30:::1;44645:1;44618:18;:30::i;:::-;44553:103::o:0;98667:92::-;43791:13;:11;:13::i;:::-;98731:14:::1;:23:::0;98667:92::o;100194:621::-;100291:15;;100277:1;;100291:15;;;;;100283:58;;;;-1:-1:-1;;;100283:58:0;;11348:2:1;100283:58:0;;;11330:21:1;11387:2;11367:18;;;11360:30;11426:32;11406:18;;;11399:60;11476:18;;100283:58:0;11146:354:1;100283:58:0;100381:11;;100372:5;100354:15;;:23;;;;:::i;:::-;:38;;100346:79;;;;-1:-1:-1;;;100346:79:0;;11969:2:1;100346:79:0;;;11951:21:1;12008:2;11988:18;;;11981:30;12047;12027:18;;;12020:58;12095:18;;100346:79:0;11767:352:1;100346:79:0;100466:12;;100452:10;100438:25;;;;:13;:25;;;;;;:40;100430:75;;;;-1:-1:-1;;;100430:75:0;;12326:2:1;100430:75:0;;;12308:21:1;12365:2;12345:18;;;12338:30;-1:-1:-1;;;12384:18:1;;;12377:52;12446:18;;100430:75:0;12124:346:1;100430:75:0;100556:28;;-1:-1:-1;;100573:10:0;12624:2:1;12620:15;12616:53;100556:28:0;;;12604:66:1;100531:55:0;;100539:5;;12686:12:1;;100556:28:0;;;;;;;;;;;;100546:39;;;;;;100531:7;:55::i;:::-;100526:98;;100588:36;;-1:-1:-1;;;100588:36:0;;12911:2:1;100588:36:0;;;12893:21:1;12950:2;12930:18;;;12923:30;12989:28;12969:18;;;12962:56;13035:18;;100588:36:0;12709:350:1;100526:98:0;100665:14;;100657:22;;:5;:22;:::i;:::-;100644:9;:35;;100631:95;;;;-1:-1:-1;;;100631:95:0;;;;;;;:::i;:::-;100739:16;:33;;;;;;;;;;;;-1:-1:-1;;;;;;100739:33:0;100761:10;100739:33;;;;;;-1:-1:-1;100783:25:0;;;:13;100739:33;100783:25;;;;:27;;;;;;:::i;:::-;;;;;;100259:556;100194:621;:::o;99109:174::-;43791:13;:11;:13::i;:::-;99213:9:::1;;99204:5;99187:14;60903:7:::0;61094:13;-1:-1:-1;;61094:31:0;;60848:296;99187:14:::1;:22;;;;:::i;:::-;:35;;99174:79;;;::::0;-1:-1:-1;;;99174:79:0;;13982:2:1;99174:79:0::1;::::0;::::1;13964:21:1::0;14021:2;14001:18;;;13994:30;-1:-1:-1;;;14040:18:1;;;14033:48;14098:18;;99174:79:0::1;13780:342:1::0;99174:79:0::1;99258:20;99268:2;99272:5;99258:9;:20::i;64852:104::-:0;64908:13;64941:7;64934:14;;;;;:::i;71725:234::-;94933:10;71820:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;71820:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;71820:60:0;;;;;;;;;;71896:55;;725:41:1;;;71820:49:0;;94933:10;71896:55;;698:18:1;71896:55:0;;;;;;;71725:234;;:::o;102674:213::-;102815:4;2444:42;3584:43;:47;3580:699;;3871:10;-1:-1:-1;;;;;3863:18:0;;;3859:85;;102832:47:::1;102855:4;102861:2;102865:7;102874:4;102832:22;:47::i;:::-;3922:7:::0;;3859:85;4004:67;;-1:-1:-1;;;4004:67:0;;4053:4;4004:67;;;8245:34:1;4060:10:0;8295:18:1;;;8288:43;2444:42:0;;4004:40;;8180:18:1;;4004:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:157;;;;-1:-1:-1;4100:61:0;;-1:-1:-1;;;4100:61:0;;4149:4;4100:61;;;8245:34:1;-1:-1:-1;;;;;8315:15:1;;8295:18;;;8288:43;2444:42:0;;4100:40;;8180:18:1;;4100:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3958:310;;4222:30;;-1:-1:-1;;;4222:30:0;;4241:10;4222:30;;;1679:51:1;1652:18;;4222:30:0;1533:203:1;3958:310:0;102832:47:::1;102855:4;102861:2;102865:7;102874:4;102832:22;:47::i;:::-;102674:213:::0;;;;;:::o;99780:145::-;99856:4;99880:37;99899:5;99906:4;;99912;99880:18;:37::i;:::-;99873:44;99780:145;-1:-1:-1;;;99780:145:0:o;98764:85::-;43791:13;:11;:13::i;:::-;98824:12:::1;:20:::0;;-1:-1:-1;;98824:20:0::1;::::0;::::1;;::::0;;;::::1;::::0;;98764:85::o;98573:86::-;43791:13;:11;:13::i;:::-;98634:11:::1;:20:::0;98573:86::o;99434:341::-;99508:13;99544:16;99552:7;99544;:16::i;:::-;99536:76;;;;-1:-1:-1;;;99536:76:0;;14329:2:1;99536:76:0;;;14311:21:1;14368:2;14348:18;;;14341:30;14407:34;14387:18;;;14380:62;-1:-1:-1;;;14458:18:1;;;14451:45;14513:19;;99536:76:0;14127:411:1;99536:76:0;99659:1;99638:10;:8;:10::i;:::-;99632:24;:28;:138;;99758:12;99632:138;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99701:10;:8;:10::i;:::-;99713:18;:7;:16;:18::i;:::-;99684:57;;;;;;;;;:::i;:::-;;;;;;;;;;;;;99625:145;99434:341;-1:-1:-1;;99434:341:0:o;97406:31::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;98316:73::-;43791:13;:11;:13::i;:::-;98372:4:::1;:12:::0;98316:73::o;98481:84::-;43791:13;:11;:13::i;:::-;98541:12:::1;:19:::0;98481:84::o;101692:530::-;43791:13;:11;:13::i;:::-;101763:16:::1;:23:::0;101755:72:::1;;;::::0;-1:-1:-1;;;101755:72:0;;15413:2:1;101755:72:0::1;::::0;::::1;15395:21:1::0;;;15432:18;;;15425:30;15491:34;15471:18;;;15464:62;15543:18;;101755:72:0::1;15211:356:1::0;101755:72:0::1;101907:16;:23:::0;101893:323:::1;101932:5:::0;;101893:323:::1;;101989:9;::::0;60903:7;61094:13;-1:-1:-1;;61094:31:0;101967:18:::1;::::0;101984:1:::1;101967:18;:::i;:::-;:31;;101959:62;;;::::0;-1:-1:-1;;;101959:62:0;;13982:2:1;101959:62:0::1;::::0;::::1;13964:21:1::0;14021:2;14001:18;;;13994:30;-1:-1:-1;;;14040:18:1;;;14033:48;14098:18;;101959:62:0::1;13780:342:1::0;101959:62:0::1;102070:35;102080:16;102097:3;102099:1;102097::::0;:3:::1;:::i;:::-;102080:21;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;102080:21:0::1;::::0;102070:9:::1;:35::i;:::-;102180:16;:22;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;-1:-1:-1;;102180:22:0;;;;;-1:-1:-1;;;;;;102180:22:0::1;::::0;;;;;101939:3;::::1;::::0;::::1;:::i;:::-;;;;101893:323;;;;101692:530::o:0;44811:201::-;43791:13;:11;:13::i;:::-;-1:-1:-1;;;;;44900:22:0;::::1;44892:73;;;::::0;-1:-1:-1;;;44892:73:0;;16312:2:1;44892:73:0::1;::::0;::::1;16294:21:1::0;16351:2;16331:18;;;16324:30;16390:34;16370:18;;;16363:62;-1:-1:-1;;;16441:18:1;;;16434:36;16487:19;;44892:73:0::1;16110:402:1::0;44892:73:0::1;44976:28;44995:8;44976:18;:28::i;98078:88::-:0;43791:13;:11;:13::i;:::-;98136:15:::1;:22:::0;;-1:-1:-1;;98136:22:0::1;::::0;::::1;::::0;;98078:88::o;101032:498::-;101104:12;;101090:1;;101104:12;;101096:52;;;;-1:-1:-1;;;101096:52:0;;16719:2:1;101096:52:0;;;16701:21:1;16758:2;16738:18;;;16731:30;16797:29;16777:18;;;16770:57;16844:18;;101096:52:0;16517:351:1;101096:52:0;101188:11;;101179:5;101161:15;;:23;;;;:::i;:::-;:38;;101153:79;;;;-1:-1:-1;;;101153:79:0;;11969:2:1;101153:79:0;;;11951:21:1;12008:2;11988:18;;;11981:30;12047;12027:18;;;12020:58;12095:18;;101153:79:0;11767:352:1;101153:79:0;101273:12;;101259:10;101245:25;;;;:13;:25;;;;;;:40;101237:75;;;;-1:-1:-1;;;101237:75:0;;12326:2:1;101237:75:0;;;12308:21:1;12365:2;12345:18;;;12338:30;-1:-1:-1;;;12384:18:1;;;12377:52;12446:18;;101237:75:0;12124:346:1;101237:75:0;101353:11;;101345:19;;:5;:19;:::i;:::-;101332:9;:32;;101319:92;;;;-1:-1:-1;;;101319:92:0;;;;;;;:::i;:::-;101424:15;:17;;;:15;:17;;;:::i;:::-;;;;-1:-1:-1;;101454:16:0;:33;;;;;;;;;;;;-1:-1:-1;;;;;;101454:33:0;101476:10;101454:33;;;;;;-1:-1:-1;101498:25:0;;;:13;101454:33;101498:25;;;;:27;;;;;;:::i;:::-;;;;;;101072:458;101032:498::o;44070:132::-;43978:6;;-1:-1:-1;;;;;43978:6:0;94933:10;44134:23;44126:68;;;;-1:-1:-1;;;44126:68:0;;17075:2:1;44126:68:0;;;17057:21:1;;;17094:18;;;17087:30;17153:34;17133:18;;;17126:62;17205:18;;44126:68:0;16873:356:1;72538:282:0;72603:4;72659:7;97981:1;72640:26;;:66;;;;;72693:13;;72683:7;:23;72640:66;:153;;;;-1:-1:-1;;72744:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;72744:44:0;:49;;72538:282::o;74806:2825::-;74948:27;74978;74997:7;74978:18;:27::i;:::-;74948:57;;75063:4;-1:-1:-1;;;;;75022:45:0;75038:19;-1:-1:-1;;;;;75022:45:0;;75018:86;;75076:28;;-1:-1:-1;;;75076:28:0;;;;;;;;;;;75018:86;75118:27;73914:24;;;:15;:24;;;;;74142:26;;94933:10;73539:30;;;-1:-1:-1;;;;;73232:28:0;;73517:20;;;73514:56;75304:180;;75397:43;75414:4;94933:10;72116:164;:::i;75397:43::-;75392:92;;75449:35;;-1:-1:-1;;;75449:35:0;;;;;;;;;;;75392:92;-1:-1:-1;;;;;75501:16:0;;75497:52;;75526:23;;-1:-1:-1;;;75526:23:0;;;;;;;;;;;75497:52;75698:15;75695:160;;;75838:1;75817:19;75810:30;75695:160;-1:-1:-1;;;;;76235:24:0;;;;;;;:18;:24;;;;;;76233:26;;-1:-1:-1;;76233:26:0;;;76304:22;;;;;;;;;76302:24;;-1:-1:-1;76302:24:0;;;69458:11;69433:23;69429:41;69416:63;-1:-1:-1;;;69416:63:0;76597:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;76892:47:0;;:52;;76888:627;;76997:1;76987:11;;76965:19;77120:30;;;:17;:30;;;;;;:35;;77116:384;;77258:13;;77243:11;:28;77239:242;;77405:30;;;;:17;:30;;;;;:52;;;77239:242;76946:569;76888:627;77562:7;77558:2;-1:-1:-1;;;;;77543:27:0;77552:4;-1:-1:-1;;;;;77543:27:0;;;;;;;;;;;77581:42;74937:2694;;;74806:2825;;;:::o;77727:193::-;77873:39;77890:4;77896:2;77900:7;77873:39;;;;;;;;;;;;:16;:39::i;:::-;77727:193;;;:::o;67224:1275::-;67291:7;67326;;97981:1;67375:23;67371:1061;;67428:13;;67421:4;:20;67417:1015;;;67466:14;67483:23;;;:17;:23;;;;;;;-1:-1:-1;;;67572:24:0;;:29;;67568:845;;68237:113;68244:6;68254:1;68244:11;68237:113;;-1:-1:-1;;;68315:6:0;68297:25;;;;:17;:25;;;;;;68237:113;;67568:845;67443:989;67417:1015;68460:31;;-1:-1:-1;;;68460:31:0;;;;;;;;;;;45172:191;45265:6;;;-1:-1:-1;;;;;45282:17:0;;;-1:-1:-1;;;;;;45282:17:0;;;;;;;45315:40;;45265:6;;;45282:17;45265:6;;45315:40;;45246:16;;45315:40;45235:128;45172:191;:::o;88678:112::-;88755:27;88765:2;88769:8;88755:27;;;;;;;;;;;;:9;:27::i;78518:407::-;78693:31;78706:4;78712:2;78716:7;78693:12;:31::i;:::-;-1:-1:-1;;;;;78739:14:0;;;:19;78735:183;;78778:56;78809:4;78815:2;78819:7;78828:5;78778:30;:56::i;:::-;78773:145;;78862:40;;-1:-1:-1;;;78862:40:0;;;;;;;;;;;5865:190;5990:4;6043;6014:25;6027:5;6034:4;6014:12;:25::i;:::-;:33;;5865:190;-1:-1:-1;;;;5865:190:0:o;97809:92::-;97861:13;97888:8;97881:15;;;;;:::i;39883:716::-;39939:13;39990:14;40007:17;40018:5;40007:10;:17::i;:::-;40027:1;40007:21;39990:38;;40043:20;40077:6;40066:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40066:18:0;-1:-1:-1;40043:41:0;-1:-1:-1;40208:28:0;;;40224:2;40208:28;40265:288;-1:-1:-1;;40297:5:0;-1:-1:-1;;;40434:2:0;40423:14;;40418:30;40297:5;40405:44;40495:2;40486:11;;;-1:-1:-1;40516:21:0;40265:288;40516:21;-1:-1:-1;40574:6:0;39883:716;-1:-1:-1;;;39883:716:0:o;87905:689::-;88036:19;88042:2;88046:8;88036:5;:19::i;:::-;-1:-1:-1;;;;;88097:14:0;;;:19;88093:483;;88137:11;88151:13;88199:14;;;88232:233;88263:62;88302:1;88306:2;88310:7;;;;;;88319:5;88263:30;:62::i;:::-;88258:167;;88361:40;;-1:-1:-1;;;88361:40:0;;;;;;;;;;;88258:167;88460:3;88452:5;:11;88232:233;;88547:3;88530:13;;:20;88526:34;;88552:8;;;81009:716;81193:88;;-1:-1:-1;;;81193:88:0;;81172:4;;-1:-1:-1;;;;;81193:45:0;;;;;:88;;94933:10;;81260:4;;81266:7;;81275:5;;81193:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81193:88:0;;;;;;;;-1:-1:-1;;81193:88:0;;;;;;;;;;;;:::i;:::-;;;81189:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81476:6;:13;81493:1;81476:18;81472:235;;81522:40;;-1:-1:-1;;;81522:40:0;;;;;;;;;;;81472:235;81665:6;81659:13;81650:6;81646:2;81642:15;81635:38;81189:529;-1:-1:-1;;;;;;81352:64:0;-1:-1:-1;;;81352:64:0;;-1:-1:-1;81189:529:0;81009:716;;;;;;:::o;6732:296::-;6815:7;6858:4;6815:7;6873:118;6897:5;:12;6893:1;:16;6873:118;;;6946:33;6956:12;6970:5;6976:1;6970:8;;;;;;;;:::i;:::-;;;;;;;6946:9;:33::i;:::-;6931:48;-1:-1:-1;6911:3:0;;;;:::i;:::-;;;;6873:118;;;-1:-1:-1;7008:12:0;6732:296;-1:-1:-1;;;6732:296:0:o;36749:922::-;36802:7;;-1:-1:-1;;;36880:15:0;;36876:102;;-1:-1:-1;;;36916:15:0;;;-1:-1:-1;36960:2:0;36950:12;36876:102;37005:6;36996:5;:15;36992:102;;37041:6;37032:15;;;-1:-1:-1;37076:2:0;37066:12;36992:102;37121:6;37112:5;:15;37108:102;;37157:6;37148:15;;;-1:-1:-1;37192:2:0;37182:12;37108:102;37237:5;37228;:14;37224:99;;37272:5;37263:14;;;-1:-1:-1;37306:1:0;37296:11;37224:99;37350:5;37341;:14;37337:99;;37385:5;37376:14;;;-1:-1:-1;37419:1:0;37409:11;37337:99;37463:5;37454;:14;37450:99;;37498:5;37489:14;;;-1:-1:-1;37532:1:0;37522:11;37450:99;37576:5;37567;:14;37563:66;;37612:1;37602:11;37657:6;36749:922;-1:-1:-1;;36749:922:0:o;82187:2966::-;82260:20;82283:13;;;82311;;;82307:44;;82333:18;;-1:-1:-1;;;82333:18:0;;;;;;;;;;;82307:44;-1:-1:-1;;;;;82839:22:0;;;;;;:18;:22;;;;55908:2;82839:22;;;:71;;82877:32;82865:45;;82839:71;;;83153:31;;;:17;:31;;;;;-1:-1:-1;69889:15:0;;69863:24;69859:46;69458:11;69433:23;69429:41;69426:52;69416:63;;83153:173;;83388:23;;;;83153:31;;82839:22;;84153:25;82839:22;;84006:335;84667:1;84653:12;84649:20;84607:346;84708:3;84699:7;84696:16;84607:346;;84926:7;84916:8;84913:1;84886:25;84883:1;84880;84875:59;84761:1;84748:15;84607:346;;;84611:77;84986:8;84998:1;84986:13;84982:45;;85008:19;;-1:-1:-1;;;85008:19:0;;;;;;;;;;;84982:45;85044:13;:19;-1:-1:-1;77727:193:0;;;:::o;13772:149::-;13835:7;13866:1;13862;:5;:51;;13997:13;14091:15;;;14127:4;14120:15;;;14174:4;14158:21;;13862:51;;;13997:13;14091:15;;;14127:4;14120:15;;;14174:4;14158:21;;13870:20;13929:268;14:180:1;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;199:131::-;-1:-1:-1;;;;;;273:32:1;;263:43;;253:71;;320:1;317;310:12;335:245;393:6;446:2;434:9;425:7;421:23;417:32;414:52;;;462:1;459;452:12;414:52;501:9;488:23;520:30;544:5;520:30;:::i;777:250::-;862:1;872:113;886:6;883:1;880:13;872:113;;;962:11;;;956:18;943:11;;;936:39;908:2;901:10;872:113;;;-1:-1:-1;;1019:1:1;1001:16;;994:27;777:250::o;1032:271::-;1074:3;1112:5;1106:12;1139:6;1134:3;1127:19;1155:76;1224:6;1217:4;1212:3;1208:14;1201:4;1194:5;1190:16;1155:76;:::i;:::-;1285:2;1264:15;-1:-1:-1;;1260:29:1;1251:39;;;;1292:4;1247:50;;1032:271;-1:-1:-1;;1032:271:1:o;1308:220::-;1457:2;1446:9;1439:21;1420:4;1477:45;1518:2;1507:9;1503:18;1495:6;1477:45;:::i;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:118::-;2446:5;2439:13;2432:21;2425:5;2422:32;2412:60;;2468:1;2465;2458:12;2483:241;2539:6;2592:2;2580:9;2571:7;2567:23;2563:32;2560:52;;;2608:1;2605;2598:12;2560:52;2647:9;2634:23;2666:28;2688:5;2666:28;:::i;2729:328::-;2806:6;2814;2822;2875:2;2863:9;2854:7;2850:23;2846:32;2843:52;;;2891:1;2888;2881:12;2843:52;2914:29;2933:9;2914:29;:::i;:::-;2904:39;;2962:38;2996:2;2985:9;2981:18;2962:38;:::i;:::-;2952:48;;3047:2;3036:9;3032:18;3019:32;3009:42;;2729:328;;;;;:::o;3062:127::-;3123:10;3118:3;3114:20;3111:1;3104:31;3154:4;3151:1;3144:15;3178:4;3175:1;3168:15;3194:275;3265:2;3259:9;3330:2;3311:13;;-1:-1:-1;;3307:27:1;3295:40;;3365:18;3350:34;;3386:22;;;3347:62;3344:88;;;3412:18;;:::i;:::-;3448:2;3441:22;3194:275;;-1:-1:-1;3194:275:1:o;3474:407::-;3539:5;3573:18;3565:6;3562:30;3559:56;;;3595:18;;:::i;:::-;3633:57;3678:2;3657:15;;-1:-1:-1;;3653:29:1;3684:4;3649:40;3633:57;:::i;:::-;3624:66;;3713:6;3706:5;3699:21;3753:3;3744:6;3739:3;3735:16;3732:25;3729:45;;;3770:1;3767;3760:12;3729:45;3819:6;3814:3;3807:4;3800:5;3796:16;3783:43;3873:1;3866:4;3857:6;3850:5;3846:18;3842:29;3835:40;3474:407;;;;;:::o;3886:451::-;3955:6;4008:2;3996:9;3987:7;3983:23;3979:32;3976:52;;;4024:1;4021;4014:12;3976:52;4064:9;4051:23;4097:18;4089:6;4086:30;4083:50;;;4129:1;4126;4119:12;4083:50;4152:22;;4205:4;4197:13;;4193:27;-1:-1:-1;4183:55:1;;4234:1;4231;4224:12;4183:55;4257:74;4323:7;4318:2;4305:16;4300:2;4296;4292:11;4257:74;:::i;4342:186::-;4401:6;4454:2;4442:9;4433:7;4429:23;4425:32;4422:52;;;4470:1;4467;4460:12;4422:52;4493:29;4512:9;4493:29;:::i;4533:712::-;4587:5;4640:3;4633:4;4625:6;4621:17;4617:27;4607:55;;4658:1;4655;4648:12;4607:55;4694:6;4681:20;4720:4;4743:18;4739:2;4736:26;4733:52;;;4765:18;;:::i;:::-;4811:2;4808:1;4804:10;4834:28;4858:2;4854;4850:11;4834:28;:::i;:::-;4896:15;;;4966;;;4962:24;;;4927:12;;;;4998:15;;;4995:35;;;5026:1;5023;5016:12;4995:35;5062:2;5054:6;5050:15;5039:26;;5074:142;5090:6;5085:3;5082:15;5074:142;;;5156:17;;5144:30;;5107:12;;;;5194;;;;5074:142;;;5234:5;4533:712;-1:-1:-1;;;;;;;4533:712:1:o;5250:348::-;5334:6;5387:2;5375:9;5366:7;5362:23;5358:32;5355:52;;;5403:1;5400;5393:12;5355:52;5443:9;5430:23;5476:18;5468:6;5465:30;5462:50;;;5508:1;5505;5498:12;5462:50;5531:61;5584:7;5575:6;5564:9;5560:22;5531:61;:::i;5603:315::-;5668:6;5676;5729:2;5717:9;5708:7;5704:23;5700:32;5697:52;;;5745:1;5742;5735:12;5697:52;5768:29;5787:9;5768:29;:::i;:::-;5758:39;;5847:2;5836:9;5832:18;5819:32;5860:28;5882:5;5860:28;:::i;:::-;5907:5;5897:15;;;5603:315;;;;;:::o;5923:667::-;6018:6;6026;6034;6042;6095:3;6083:9;6074:7;6070:23;6066:33;6063:53;;;6112:1;6109;6102:12;6063:53;6135:29;6154:9;6135:29;:::i;:::-;6125:39;;6183:38;6217:2;6206:9;6202:18;6183:38;:::i;:::-;6173:48;;6268:2;6257:9;6253:18;6240:32;6230:42;;6323:2;6312:9;6308:18;6295:32;6350:18;6342:6;6339:30;6336:50;;;6382:1;6379;6372:12;6336:50;6405:22;;6458:4;6450:13;;6446:27;-1:-1:-1;6436:55:1;;6487:1;6484;6477:12;6436:55;6510:74;6576:7;6571:2;6558:16;6553:2;6549;6545:11;6510:74;:::i;:::-;6500:84;;;5923:667;;;;;;;:::o;6595:416::-;6688:6;6696;6749:2;6737:9;6728:7;6724:23;6720:32;6717:52;;;6765:1;6762;6755:12;6717:52;6805:9;6792:23;6838:18;6830:6;6827:30;6824:50;;;6870:1;6867;6860:12;6824:50;6893:61;6946:7;6937:6;6926:9;6922:22;6893:61;:::i;:::-;6883:71;7001:2;6986:18;;;;6973:32;;-1:-1:-1;;;;6595:416:1:o;7201:260::-;7269:6;7277;7330:2;7318:9;7309:7;7305:23;7301:32;7298:52;;;7346:1;7343;7336:12;7298:52;7369:29;7388:9;7369:29;:::i;:::-;7359:39;;7417:38;7451:2;7440:9;7436:18;7417:38;:::i;:::-;7407:48;;7201:260;;;;;:::o;7648:380::-;7727:1;7723:12;;;;7770;;;7791:61;;7845:4;7837:6;7833:17;7823:27;;7791:61;7898:2;7890:6;7887:14;7867:18;7864:38;7861:161;;7944:10;7939:3;7935:20;7932:1;7925:31;7979:4;7976:1;7969:15;8007:4;8004:1;7997:15;7861:161;;7648:380;;;:::o;8342:245::-;8409:6;8462:2;8450:9;8441:7;8437:23;8433:32;8430:52;;;8478:1;8475;8468:12;8430:52;8510:9;8504:16;8529:28;8551:5;8529:28;:::i;9068:545::-;9170:2;9165:3;9162:11;9159:448;;;9206:1;9231:5;9227:2;9220:17;9276:4;9272:2;9262:19;9346:2;9334:10;9330:19;9327:1;9323:27;9317:4;9313:38;9382:4;9370:10;9367:20;9364:47;;;-1:-1:-1;9405:4:1;9364:47;9460:2;9455:3;9451:12;9448:1;9444:20;9438:4;9434:31;9424:41;;9515:82;9533:2;9526:5;9523:13;9515:82;;;9578:17;;;9559:1;9548:13;9515:82;;9789:1352;9915:3;9909:10;9942:18;9934:6;9931:30;9928:56;;;9964:18;;:::i;:::-;9993:97;10083:6;10043:38;10075:4;10069:11;10043:38;:::i;:::-;10037:4;9993:97;:::i;:::-;10145:4;;10209:2;10198:14;;10226:1;10221:663;;;;10928:1;10945:6;10942:89;;;-1:-1:-1;10997:19:1;;;10991:26;10942:89;-1:-1:-1;;9746:1:1;9742:11;;;9738:24;9734:29;9724:40;9770:1;9766:11;;;9721:57;11044:81;;10191:944;;10221:663;9015:1;9008:14;;;9052:4;9039:18;;-1:-1:-1;;10257:20:1;;;10375:236;10389:7;10386:1;10383:14;10375:236;;;10478:19;;;10472:26;10457:42;;10570:27;;;;10538:1;10526:14;;;;10405:19;;10375:236;;;10379:3;10639:6;10630:7;10627:19;10624:201;;;10700:19;;;10694:26;-1:-1:-1;;10783:1:1;10779:14;;;10795:3;10775:24;10771:37;10767:42;10752:58;10737:74;;10624:201;-1:-1:-1;;;;;10871:1:1;10855:14;;;10851:22;10838:36;;-1:-1:-1;9789:1352:1:o;11505:127::-;11566:10;11561:3;11557:20;11554:1;11547:31;11597:4;11594:1;11587:15;11621:4;11618:1;11611:15;11637:125;11702:9;;;11723:10;;;11720:36;;;11736:18;;:::i;13064:168::-;13137:9;;;13168;;13185:15;;;13179:22;;13165:37;13155:71;;13206:18;;:::i;13237:398::-;13439:2;13421:21;;;13478:2;13458:18;;;13451:30;13517:34;13512:2;13497:18;;13490:62;-1:-1:-1;;;13583:2:1;13568:18;;13561:32;13625:3;13610:19;;13237:398::o;13640:135::-;13679:3;13700:17;;;13697:43;;13720:18;;:::i;:::-;-1:-1:-1;13767:1:1;13756:13;;13640:135::o;14543:663::-;14823:3;14861:6;14855:13;14877:66;14936:6;14931:3;14924:4;14916:6;14912:17;14877:66;:::i;:::-;15006:13;;14965:16;;;;15028:70;15006:13;14965:16;15075:4;15063:17;;15028:70;:::i;:::-;-1:-1:-1;;;15120:20:1;;15149:22;;;15198:1;15187:13;;14543:663;-1:-1:-1;;;;14543:663:1:o;15572:128::-;15639:9;;;15660:11;;;15657:37;;;15674:18;;:::i;15705:127::-;15766:10;15761:3;15757:20;15754:1;15747:31;15797:4;15794:1;15787:15;15821:4;15818:1;15811:15;15837:127;15898:10;15893:3;15889:20;15886:1;15879:31;15929:4;15926:1;15919:15;15953:4;15950:1;15943:15;15969:136;16008:3;16036:5;16026:39;;16045:18;;:::i;:::-;-1:-1:-1;;;16081:18:1;;15969:136::o;17366:489::-;-1:-1:-1;;;;;17635:15:1;;;17617:34;;17687:15;;17682:2;17667:18;;17660:43;17734:2;17719:18;;17712:34;;;17782:3;17777:2;17762:18;;17755:31;;;17560:4;;17803:46;;17829:19;;17821:6;17803:46;:::i;:::-;17795:54;17366:489;-1:-1:-1;;;;;;17366:489:1:o;17860:249::-;17929:6;17982:2;17970:9;17961:7;17957:23;17953:32;17950:52;;;17998:1;17995;17988:12;17950:52;18030:9;18024:16;18049:30;18073:5;18049:30;:::i
Swarm Source
ipfs://258725e3c0f563d9a396687a50b221ea2ca356f66d6bb9af93075302fba18f36
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.