Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
9711
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
YootGods
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-01 */ // File @openzeppelin/contracts/utils/[email protected] // SPDX-License-Identifier: MIT // 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/[email protected] // 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 @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/interfaces/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/token/common/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // File @openzeppelin/contracts/utils/math/[email protected] // 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/[email protected] // 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/cryptography/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File contracts/IERC721A.sol // ERC721A Contracts v4.2.2 // 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(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // 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 contracts/ERC721A.sol // ERC721A Contracts v4.2.2 // 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 { // Reference type for token approval. 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 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 { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _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 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 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 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`. ) 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 0x80 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File contracts/extensions/IERC4907A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC4907A. */ interface IERC4907A is IERC721A { /** * The caller must own the token or be an approved operator. */ error SetUserCallerNotOwnerNorApproved(); /** * @dev Emitted when the `user` of an NFT or the `expires` of the `user` is changed. * The zero address for user indicates that there is no user address. */ event UpdateUser(uint256 indexed tokenId, address indexed user, uint64 expires); /** * @dev Sets the `user` and `expires` for `tokenId`. * The zero address indicates there is no user. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function setUser( uint256 tokenId, address user, uint64 expires ) external; /** * @dev Returns the user address for `tokenId`. * The zero address indicates that there is no user or if the user is expired. */ function userOf(uint256 tokenId) external view returns (address); /** * @dev Returns the user's expires of `tokenId`. */ function userExpires(uint256 tokenId) external view returns (uint256); } // File contracts/extensions/ERC4907A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC4907A * * @dev [ERC4907](https://eips.ethereum.org/EIPS/eip-4907) compliant * extension of ERC721A, which allows owners and authorized addresses * to add a time-limited role with restricted permissions to ERC721 tokens. */ abstract contract ERC4907A is ERC721A, IERC4907A { // The bit position of `expires` in packed user info. uint256 private constant _BITPOS_EXPIRES = 160; // Mapping from token ID to user info. // // Bits Layout: // - [0..159] `user` // - [160..223] `expires` mapping(uint256 => uint256) private _packedUserInfo; /** * @dev Sets the `user` and `expires` for `tokenId`. * The zero address indicates there is no user. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function setUser( uint256 tokenId, address user, uint64 expires ) public virtual override { // Require the caller to be either the token owner or an approved operator. address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) if (getApproved(tokenId) != _msgSenderERC721A()) revert SetUserCallerNotOwnerNorApproved(); _packedUserInfo[tokenId] = (uint256(expires) << _BITPOS_EXPIRES) | uint256(uint160(user)); emit UpdateUser(tokenId, user, expires); } /** * @dev Returns the user address for `tokenId`. * The zero address indicates that there is no user or if the user is expired. */ function userOf(uint256 tokenId) public view virtual override returns (address) { uint256 packed = _packedUserInfo[tokenId]; assembly { // Branchless `packed *= (block.timestamp <= expires ? 1 : 0)`. // If the `block.timestamp == expires`, the `lt` clause will be true // if there is a non-zero user address in the lower 160 bits of `packed`. packed := mul( packed, // `block.timestamp <= expires ? 1 : 0`. lt(shl(_BITPOS_EXPIRES, timestamp()), packed) ) } return address(uint160(packed)); } /** * @dev Returns the user's expires of `tokenId`. */ function userExpires(uint256 tokenId) public view virtual override returns (uint256) { return _packedUserInfo[tokenId] >> _BITPOS_EXPIRES; } /** * @dev Override of {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A) returns (bool) { // The interface ID for ERC4907 is `0xad092b5c`, // as defined in [ERC4907](https://eips.ethereum.org/EIPS/eip-4907). return super.supportsInterface(interfaceId) || interfaceId == 0xad092b5c; } /** * @dev Returns the user address for `tokenId`, ignoring the expiry status. */ function _explicitUserOf(uint256 tokenId) internal view virtual returns (address) { return address(uint160(_packedUserInfo[tokenId])); } } // File contracts/extensions/IERC721ABurnable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; } // File contracts/extensions/ERC721ABurnable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } } // File contracts/extensions/IERC721AQueryable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File contracts/extensions/ERC721AQueryable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // File contracts/interfaces/IERC4907A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; // File contracts/interfaces/IERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; // File contracts/interfaces/IERC721ABurnable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; // File contracts/interfaces/IERC721AQueryable.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; // File @openzeppelin/contracts/security/[email protected] // 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; } } pragma solidity ^0.8.13; error AccessDenied(); error IncorrectPayment(); error InsufficientPayment(); error InvalidMintQuantity(); error MintingDisabled(); error MaxPerTXReached(); error MaxSupplyReached(); error WithdrawalFailed(); error WalletLimitReached(); contract YootGods is ERC721AQueryable, ReentrancyGuard, ERC2981, Ownable { string private _baseTokenURI; uint public maxSupply = 10000; uint public price = 0.0069 ether; uint public freePerWallet = 1; uint public maxPerWallet = 50; uint public maxPerTX = 25; bool public mintEnabled = false; constructor() ERC721A("YootGods", "YG") {} modifier callerIsUser() { require(tx.origin == msg.sender, "not original sender"); _; } function mint(uint qty) external payable callerIsUser nonReentrant { uint price_ = calculatePrice(qty); if (_numberMinted(msg.sender) + qty > maxPerWallet + 1) revert WalletLimitReached(); if (_totalMinted() + qty > maxSupply + 1) revert MaxSupplyReached(); if (!mintEnabled) revert MintingDisabled(); if (qty > maxPerTX + 1) revert MaxPerTXReached(); _mint(msg.sender, qty); _refundOverPayment(price_); } function calculatePrice(uint qty) public view returns (uint) { uint numMinted = _numberMinted(msg.sender); uint free = numMinted < freePerWallet ? freePerWallet - numMinted : 0; if (qty >= free) { return (price) * (qty - free); } return 0; } function _refundOverPayment(uint256 amount) internal { if (msg.value < amount) revert InsufficientPayment(); if (msg.value > amount) { payable(msg.sender).transfer(msg.value - amount); } } function teamMintTo(uint256 quantity, address to) external onlyOwner { require(totalSupply() + quantity <= maxSupply,"not enough!"); _mint(to, quantity); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function deleteDefaultRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } function setMaxPerTx(uint256 maxPerTX_) external onlyOwner { maxPerTX = maxPerTX_; } function setMaxPerWallet(uint256 maxPerWallet_) external onlyOwner { maxPerWallet = maxPerWallet_; } function setMaxSupply(uint256 maxSupply_) public onlyOwner { maxSupply = maxSupply_; } function toggleMint() external onlyOwner { mintEnabled = !mintEnabled; } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function setBaseURI(string calldata baseURI_) external onlyOwner { _baseTokenURI = baseURI_; } function withdraw() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); if (!success) revert WithdrawalFailed(); } function setRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981, IERC721A) returns (bool) { // Supports the following `interfaceId`s: // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } }
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":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MaxPerTXReached","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintingDisabled","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"},{"inputs":[],"name":"WalletLimitReached","type":"error"},{"inputs":[],"name":"WithdrawalFailed","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":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"maxPerTX","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":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerTX_","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerWallet_","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setRoyalty","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":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"teamMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052612710600d556618838370f34000600e556001600f55603260105560196011556012805460ff191690553480156200003b57600080fd5b5060405180604001604052806008815260200167596f6f74476f647360c01b81525060405180604001604052806002815260200161594760f01b8152508160029081620000899190620001ad565b506003620000988282620001ad565b50600160005550506001600855620000b033620000b6565b62000279565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200013357607f821691505b6020821081036200015457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001a857600081815260208120601f850160051c81016020861015620001835750805b601f850160051c820191505b81811015620001a4578281556001016200018f565b5050505b505050565b81516001600160401b03811115620001c957620001c962000108565b620001e181620001da84546200011e565b846200015a565b602080601f831160018114620002195760008415620002005750858301515b600019600386901b1c1916600185901b178555620001a4565b600085815260208120601f198616915b828110156200024a5788860151825594840194600190910190840162000229565b5085821015620002695787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6122d780620002896000396000f3fe60806040526004361061023b5760003560e01c806395d89b411161012e578063c23dc68f116100ab578063d5abeb011161006f578063d5abeb01146106aa578063dc33e681146106c0578063e268e4d3146106e0578063e985e9c514610700578063f2fde38b1461074957600080fd5b8063c23dc68f1461060e578063c6f6f2161461063b578063c87b56dd1461065b578063d12397301461067b578063d3dd5fe01461069557600080fd5b8063a40d36cd116100f2578063a40d36cd14610583578063aa1b103f14610599578063ae104265146105ae578063b88d4fde146105ce578063c13c6156146105ee57600080fd5b806395d89b411461050557806399a2557a1461051a578063a035b1fe1461053a578063a0712d6814610550578063a22cb4651461056357600080fd5b806355f804b3116101bc57806370a082311161018057806370a0823114610465578063715018a6146104855780638462151c1461049a5780638da5cb5b146104c75780638f2fc60b146104e557600080fd5b806355f804b3146103c25780635b74efcf146103e25780635bbb2177146103f85780636352211e146104255780636f8b44b01461044557600080fd5b806323b872dd1161020357806323b872dd146103185780632a55205a146103385780633ccfd60b1461037757806342842e0e1461038c578063453c2310146103ac57600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf57806318160ddd146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611b6b565b610769565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610789565b60405161026c9190611bd8565b3480156102a357600080fd5b506102b76102b2366004611beb565b61081b565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004611c20565b61085f565b005b3480156102fd57600080fd5b5060015460005403600019015b60405190815260200161026c565b34801561032457600080fd5b506102ef610333366004611c4a565b6108ff565b34801561034457600080fd5b50610358610353366004611c86565b610a98565b604080516001600160a01b03909316835260208301919091520161026c565b34801561038357600080fd5b506102ef610b44565b34801561039857600080fd5b506102ef6103a7366004611c4a565b610bb8565b3480156103b857600080fd5b5061030a60105481565b3480156103ce57600080fd5b506102ef6103dd366004611ca8565b610bd8565b3480156103ee57600080fd5b5061030a600f5481565b34801561040457600080fd5b50610418610413366004611d1a565b610bed565b60405161026c9190611dba565b34801561043157600080fd5b506102b7610440366004611beb565b610cb9565b34801561045157600080fd5b506102ef610460366004611beb565b610cc4565b34801561047157600080fd5b5061030a610480366004611dfc565b610cd1565b34801561049157600080fd5b506102ef610d20565b3480156104a657600080fd5b506104ba6104b5366004611dfc565b610d34565b60405161026c9190611e17565b3480156104d357600080fd5b50600b546001600160a01b03166102b7565b3480156104f157600080fd5b506102ef610500366004611e4f565b610e3d565b34801561051157600080fd5b5061028a610e53565b34801561052657600080fd5b506104ba610535366004611e92565b610e62565b34801561054657600080fd5b5061030a600e5481565b6102ef61055e366004611beb565b610fea565b34801561056f57600080fd5b506102ef61057e366004611ec5565b61113f565b34801561058f57600080fd5b5061030a60115481565b3480156105a557600080fd5b506102ef6111d4565b3480156105ba57600080fd5b5061030a6105c9366004611beb565b6111e6565b3480156105da57600080fd5b506102ef6105e9366004611f0c565b611246565b3480156105fa57600080fd5b506102ef610609366004611fe8565b611290565b34801561061a57600080fd5b5061062e610629366004611beb565b6112f9565b60405161026c9190612014565b34801561064757600080fd5b506102ef610656366004611beb565b611381565b34801561066757600080fd5b5061028a610676366004611beb565b61138e565b34801561068757600080fd5b506012546102609060ff1681565b3480156106a157600080fd5b506102ef611411565b3480156106b657600080fd5b5061030a600d5481565b3480156106cc57600080fd5b5061030a6106db366004611dfc565b61142d565b3480156106ec57600080fd5b506102ef6106fb366004611beb565b611438565b34801561070c57600080fd5b5061026061071b366004612022565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561075557600080fd5b506102ef610764366004611dfc565b611445565b6000610774826114bb565b80610783575061078382611509565b92915050565b6060600280546107989061204c565b80601f01602080910402602001604051908101604052809291908181526020018280546107c49061204c565b80156108115780601f106107e657610100808354040283529160200191610811565b820191906000526020600020905b8154815290600101906020018083116107f457829003601f168201915b5050505050905090565b60006108268261153e565b610843576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061086a82610cb9565b9050336001600160a01b038216146108a357610886813361071b565b6108a3576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061090a82611573565b9050836001600160a01b0316816001600160a01b03161461093d5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761098a5761096d863361071b565b61098a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166109b157604051633a954ecd60e21b815260040160405180910390fd5b80156109bc57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610a4e57600184016000818152600460205260408120549003610a4c576000548114610a4c5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b0d5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b2c906001600160601b03168761209c565b610b3691906120b3565b915196919550909350505050565b610b4c6115e2565b604051600090339047908381818185875af1925050503d8060008114610b8e576040519150601f19603f3d011682016040523d82523d6000602084013e610b93565b606091505b5050905080610bb5576040516327fcd9d160e01b815260040160405180910390fd5b50565b610bd383838360405180602001604052806000815250611246565b505050565b610be06115e2565b600c610bd382848361211b565b60608160008167ffffffffffffffff811115610c0b57610c0b611ef6565b604051908082528060200260200182016040528015610c5d57816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610c295790505b50905060005b828114610cb057610c8b868683818110610c7f57610c7f6121dc565b905060200201356112f9565b828281518110610c9d57610c9d6121dc565b6020908102919091010152600101610c63565b50949350505050565b600061078382611573565b610ccc6115e2565b600d55565b60006001600160a01b038216610cfa576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d286115e2565b610d32600061163c565b565b60606000806000610d4485610cd1565b905060008167ffffffffffffffff811115610d6157610d61611ef6565b604051908082528060200260200182016040528015610d8a578160200160208202803683370190505b509050610db760408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610e3157610dca8161168e565b91508160400151610e295781516001600160a01b031615610dea57815194505b876001600160a01b0316856001600160a01b031603610e295780838780600101985081518110610e1c57610e1c6121dc565b6020026020010181815250505b600101610dba565b50909695505050505050565b610e456115e2565b610e4f82826116ca565b5050565b6060600380546107989061204c565b6060818310610e8457604051631960ccad60e11b815260040160405180910390fd5b600080610e9060005490565b90506001851015610ea057600194505b80841115610eac578093505b6000610eb787610cd1565b905084861015610ed65785850381811015610ed0578091505b50610eda565b5060005b60008167ffffffffffffffff811115610ef557610ef5611ef6565b604051908082528060200260200182016040528015610f1e578160200160208202803683370190505b50905081600003610f34579350610fe392505050565b6000610f3f886112f9565b905060008160400151610f50575080515b885b888114158015610f625750848714155b15610fd757610f708161168e565b92508260400151610fcf5782516001600160a01b031615610f9057825191505b8a6001600160a01b0316826001600160a01b031603610fcf5780848880600101995081518110610fc257610fc26121dc565b6020026020010181815250505b600101610f52565b50505092835250909150505b9392505050565b3233146110345760405162461bcd60e51b81526020600482015260136024820152723737ba1037b934b3b4b730b61039b2b73232b960691b60448201526064015b60405180910390fd5b61103c6117c7565b6000611047826111e6565b9050601054600161105891906121f2565b8261106233611820565b61106c91906121f2565b111561108b5760405163426d5b2360e11b815260040160405180910390fd5b600d546110999060016121f2565b826110a76000546000190190565b6110b191906121f2565b11156110d05760405163d05cb60960e01b815260040160405180910390fd5b60125460ff166110f35760405163af79b43760e01b815260040160405180910390fd5b6011546111019060016121f2565b8211156111215760405163870bad0760e01b815260040160405180910390fd5b61112b3383611849565b61113481611947565b50610bb56001600855565b336001600160a01b038316036111685760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6111dc6115e2565b610d326000600955565b6000806111f233611820565b90506000600f548210611206576000611214565b81600f546112149190612205565b905080841061123c576112278185612205565b600e54611234919061209c565b949350505050565b5060009392505050565b6112518484846108ff565b6001600160a01b0383163b1561128a5761126d848484846119a6565b61128a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6112986115e2565b600d5460015460005484919003600019016112b391906121f2565b11156112ef5760405162461bcd60e51b815260206004820152600b60248201526a6e6f7420656e6f7567682160a81b604482015260640161102b565b610e4f8183611849565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061135257506000548310155b1561135d5792915050565b6113668361168e565b90508060400151156113785792915050565b610fe383611a91565b6113896115e2565b601155565b60606113998261153e565b6113b657604051630a14c4b560e41b815260040160405180910390fd5b60006113c0611ac6565b905080516000036113e05760405180602001604052806000815250610fe3565b806113ea84611ad5565b6040516020016113fb929190612218565b6040516020818303038152906040529392505050565b6114196115e2565b6012805460ff19811660ff90911615179055565b600061078382611820565b6114406115e2565b601055565b61144d6115e2565b6001600160a01b0381166114b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161102b565b610bb58161163c565b60006301ffc9a760e01b6001600160e01b0319831614806114ec57506380ac58cd60e01b6001600160e01b03198316145b806107835750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061078357506301ffc9a760e01b6001600160e01b0319831614610783565b600081600111158015611552575060005482105b8015610783575050600090815260046020526040902054600160e01b161590565b600081806001116115c9576000548110156115c95760008181526004602052604081205490600160e01b821690036115c7575b80600003610fe35750600019016000818152600460205260409020546115a6565b505b604051636f96cda160e11b815260040160405180910390fd5b600b546001600160a01b03163314610d325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161102b565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461078390611b0d565b6127106001600160601b03821611156117385760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161102b565b6001600160a01b03821661178e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161102b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6002600854036118195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161102b565b6002600855565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b600080549082900361186e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461191d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016118e5565b508160000361193e57604051622e076360e81b815260040160405180910390fd5b60005550505050565b803410156119685760405163cd1c886760e01b815260040160405180910390fd5b80341115610bb557336108fc61197e8334612205565b6040518115909202916000818181858888f19350505050158015610e4f573d6000803e3d6000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906119db903390899088908890600401612247565b6020604051808303816000875af1925050508015611a16575060408051601f3d908101601f19168201909252611a1391810190612284565b60015b611a74573d808015611a44576040519150601f19603f3d011682016040523d82523d6000602084013e611a49565b606091505b508051600003611a6c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610783611ac183611573565b611b0d565b6060600c80546107989061204c565b604080516080019081905280825b600183039250600a81066030018353600a900480611ae35750819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001600160e01b031981168114610bb557600080fd5b600060208284031215611b7d57600080fd5b8135610fe381611b55565b60005b83811015611ba3578181015183820152602001611b8b565b50506000910152565b60008151808452611bc4816020860160208601611b88565b601f01601f19169290920160200192915050565b602081526000610fe36020830184611bac565b600060208284031215611bfd57600080fd5b5035919050565b80356001600160a01b0381168114611c1b57600080fd5b919050565b60008060408385031215611c3357600080fd5b611c3c83611c04565b946020939093013593505050565b600080600060608486031215611c5f57600080fd5b611c6884611c04565b9250611c7660208501611c04565b9150604084013590509250925092565b60008060408385031215611c9957600080fd5b50508035926020909101359150565b60008060208385031215611cbb57600080fd5b823567ffffffffffffffff80821115611cd357600080fd5b818501915085601f830112611ce757600080fd5b813581811115611cf657600080fd5b866020828501011115611d0857600080fd5b60209290920196919550909350505050565b60008060208385031215611d2d57600080fd5b823567ffffffffffffffff80821115611d4557600080fd5b818501915085601f830112611d5957600080fd5b813581811115611d6857600080fd5b8660208260051b8501011115611d0857600080fd5b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610e3157611de9838551611d7d565b9284019260809290920191600101611dd6565b600060208284031215611e0e57600080fd5b610fe382611c04565b6020808252825182820181905260009190848201906040850190845b81811015610e3157835183529284019291840191600101611e33565b60008060408385031215611e6257600080fd5b611e6b83611c04565b915060208301356001600160601b0381168114611e8757600080fd5b809150509250929050565b600080600060608486031215611ea757600080fd5b611eb084611c04565b95602085013595506040909401359392505050565b60008060408385031215611ed857600080fd5b611ee183611c04565b915060208301358015158114611e8757600080fd5b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611f2257600080fd5b611f2b85611c04565b9350611f3960208601611c04565b925060408501359150606085013567ffffffffffffffff80821115611f5d57600080fd5b818701915087601f830112611f7157600080fd5b813581811115611f8357611f83611ef6565b604051601f8201601f19908116603f01168101908382118183101715611fab57611fab611ef6565b816040528281528a6020848701011115611fc457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611ffb57600080fd5b8235915061200b60208401611c04565b90509250929050565b608081016107838284611d7d565b6000806040838503121561203557600080fd5b61203e83611c04565b915061200b60208401611c04565b600181811c9082168061206057607f821691505b60208210810361208057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761078357610783612086565b6000826120d057634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610bd357600081815260208120601f850160051c810160208610156120fc5750805b601f850160051c820191505b81811015610a9057828155600101612108565b67ffffffffffffffff83111561213357612133611ef6565b61214783612141835461204c565b836120d5565b6000601f84116001811461217b57600085156121635750838201355b600019600387901b1c1916600186901b1783556121d5565b600083815260209020601f19861690835b828110156121ac578685013582556020948501946001909201910161218c565b50868210156121c95760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561078357610783612086565b8181038181111561078357610783612086565b6000835161222a818460208801611b88565b83519083019061223e818360208801611b88565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061227a90830184611bac565b9695505050505050565b60006020828403121561229657600080fd5b8151610fe381611b5556fea264697066735822122075c2ff4bbe73169bccde33cc5654d193742ff5297f9fd61b66c73e3a10a0ad3664736f6c63430008120033
Deployed Bytecode
0x60806040526004361061023b5760003560e01c806395d89b411161012e578063c23dc68f116100ab578063d5abeb011161006f578063d5abeb01146106aa578063dc33e681146106c0578063e268e4d3146106e0578063e985e9c514610700578063f2fde38b1461074957600080fd5b8063c23dc68f1461060e578063c6f6f2161461063b578063c87b56dd1461065b578063d12397301461067b578063d3dd5fe01461069557600080fd5b8063a40d36cd116100f2578063a40d36cd14610583578063aa1b103f14610599578063ae104265146105ae578063b88d4fde146105ce578063c13c6156146105ee57600080fd5b806395d89b411461050557806399a2557a1461051a578063a035b1fe1461053a578063a0712d6814610550578063a22cb4651461056357600080fd5b806355f804b3116101bc57806370a082311161018057806370a0823114610465578063715018a6146104855780638462151c1461049a5780638da5cb5b146104c75780638f2fc60b146104e557600080fd5b806355f804b3146103c25780635b74efcf146103e25780635bbb2177146103f85780636352211e146104255780636f8b44b01461044557600080fd5b806323b872dd1161020357806323b872dd146103185780632a55205a146103385780633ccfd60b1461037757806342842e0e1461038c578063453c2310146103ac57600080fd5b806301ffc9a71461024057806306fdde0314610275578063081812fc14610297578063095ea7b3146102cf57806318160ddd146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611b6b565b610769565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028a610789565b60405161026c9190611bd8565b3480156102a357600080fd5b506102b76102b2366004611beb565b61081b565b6040516001600160a01b03909116815260200161026c565b3480156102db57600080fd5b506102ef6102ea366004611c20565b61085f565b005b3480156102fd57600080fd5b5060015460005403600019015b60405190815260200161026c565b34801561032457600080fd5b506102ef610333366004611c4a565b6108ff565b34801561034457600080fd5b50610358610353366004611c86565b610a98565b604080516001600160a01b03909316835260208301919091520161026c565b34801561038357600080fd5b506102ef610b44565b34801561039857600080fd5b506102ef6103a7366004611c4a565b610bb8565b3480156103b857600080fd5b5061030a60105481565b3480156103ce57600080fd5b506102ef6103dd366004611ca8565b610bd8565b3480156103ee57600080fd5b5061030a600f5481565b34801561040457600080fd5b50610418610413366004611d1a565b610bed565b60405161026c9190611dba565b34801561043157600080fd5b506102b7610440366004611beb565b610cb9565b34801561045157600080fd5b506102ef610460366004611beb565b610cc4565b34801561047157600080fd5b5061030a610480366004611dfc565b610cd1565b34801561049157600080fd5b506102ef610d20565b3480156104a657600080fd5b506104ba6104b5366004611dfc565b610d34565b60405161026c9190611e17565b3480156104d357600080fd5b50600b546001600160a01b03166102b7565b3480156104f157600080fd5b506102ef610500366004611e4f565b610e3d565b34801561051157600080fd5b5061028a610e53565b34801561052657600080fd5b506104ba610535366004611e92565b610e62565b34801561054657600080fd5b5061030a600e5481565b6102ef61055e366004611beb565b610fea565b34801561056f57600080fd5b506102ef61057e366004611ec5565b61113f565b34801561058f57600080fd5b5061030a60115481565b3480156105a557600080fd5b506102ef6111d4565b3480156105ba57600080fd5b5061030a6105c9366004611beb565b6111e6565b3480156105da57600080fd5b506102ef6105e9366004611f0c565b611246565b3480156105fa57600080fd5b506102ef610609366004611fe8565b611290565b34801561061a57600080fd5b5061062e610629366004611beb565b6112f9565b60405161026c9190612014565b34801561064757600080fd5b506102ef610656366004611beb565b611381565b34801561066757600080fd5b5061028a610676366004611beb565b61138e565b34801561068757600080fd5b506012546102609060ff1681565b3480156106a157600080fd5b506102ef611411565b3480156106b657600080fd5b5061030a600d5481565b3480156106cc57600080fd5b5061030a6106db366004611dfc565b61142d565b3480156106ec57600080fd5b506102ef6106fb366004611beb565b611438565b34801561070c57600080fd5b5061026061071b366004612022565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561075557600080fd5b506102ef610764366004611dfc565b611445565b6000610774826114bb565b80610783575061078382611509565b92915050565b6060600280546107989061204c565b80601f01602080910402602001604051908101604052809291908181526020018280546107c49061204c565b80156108115780601f106107e657610100808354040283529160200191610811565b820191906000526020600020905b8154815290600101906020018083116107f457829003601f168201915b5050505050905090565b60006108268261153e565b610843576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061086a82610cb9565b9050336001600160a01b038216146108a357610886813361071b565b6108a3576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061090a82611573565b9050836001600160a01b0316816001600160a01b03161461093d5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761098a5761096d863361071b565b61098a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166109b157604051633a954ecd60e21b815260040160405180910390fd5b80156109bc57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610a4e57600184016000818152600460205260408120549003610a4c576000548114610a4c5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b0d5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b2c906001600160601b03168761209c565b610b3691906120b3565b915196919550909350505050565b610b4c6115e2565b604051600090339047908381818185875af1925050503d8060008114610b8e576040519150601f19603f3d011682016040523d82523d6000602084013e610b93565b606091505b5050905080610bb5576040516327fcd9d160e01b815260040160405180910390fd5b50565b610bd383838360405180602001604052806000815250611246565b505050565b610be06115e2565b600c610bd382848361211b565b60608160008167ffffffffffffffff811115610c0b57610c0b611ef6565b604051908082528060200260200182016040528015610c5d57816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610c295790505b50905060005b828114610cb057610c8b868683818110610c7f57610c7f6121dc565b905060200201356112f9565b828281518110610c9d57610c9d6121dc565b6020908102919091010152600101610c63565b50949350505050565b600061078382611573565b610ccc6115e2565b600d55565b60006001600160a01b038216610cfa576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d286115e2565b610d32600061163c565b565b60606000806000610d4485610cd1565b905060008167ffffffffffffffff811115610d6157610d61611ef6565b604051908082528060200260200182016040528015610d8a578160200160208202803683370190505b509050610db760408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610e3157610dca8161168e565b91508160400151610e295781516001600160a01b031615610dea57815194505b876001600160a01b0316856001600160a01b031603610e295780838780600101985081518110610e1c57610e1c6121dc565b6020026020010181815250505b600101610dba565b50909695505050505050565b610e456115e2565b610e4f82826116ca565b5050565b6060600380546107989061204c565b6060818310610e8457604051631960ccad60e11b815260040160405180910390fd5b600080610e9060005490565b90506001851015610ea057600194505b80841115610eac578093505b6000610eb787610cd1565b905084861015610ed65785850381811015610ed0578091505b50610eda565b5060005b60008167ffffffffffffffff811115610ef557610ef5611ef6565b604051908082528060200260200182016040528015610f1e578160200160208202803683370190505b50905081600003610f34579350610fe392505050565b6000610f3f886112f9565b905060008160400151610f50575080515b885b888114158015610f625750848714155b15610fd757610f708161168e565b92508260400151610fcf5782516001600160a01b031615610f9057825191505b8a6001600160a01b0316826001600160a01b031603610fcf5780848880600101995081518110610fc257610fc26121dc565b6020026020010181815250505b600101610f52565b50505092835250909150505b9392505050565b3233146110345760405162461bcd60e51b81526020600482015260136024820152723737ba1037b934b3b4b730b61039b2b73232b960691b60448201526064015b60405180910390fd5b61103c6117c7565b6000611047826111e6565b9050601054600161105891906121f2565b8261106233611820565b61106c91906121f2565b111561108b5760405163426d5b2360e11b815260040160405180910390fd5b600d546110999060016121f2565b826110a76000546000190190565b6110b191906121f2565b11156110d05760405163d05cb60960e01b815260040160405180910390fd5b60125460ff166110f35760405163af79b43760e01b815260040160405180910390fd5b6011546111019060016121f2565b8211156111215760405163870bad0760e01b815260040160405180910390fd5b61112b3383611849565b61113481611947565b50610bb56001600855565b336001600160a01b038316036111685760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6111dc6115e2565b610d326000600955565b6000806111f233611820565b90506000600f548210611206576000611214565b81600f546112149190612205565b905080841061123c576112278185612205565b600e54611234919061209c565b949350505050565b5060009392505050565b6112518484846108ff565b6001600160a01b0383163b1561128a5761126d848484846119a6565b61128a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6112986115e2565b600d5460015460005484919003600019016112b391906121f2565b11156112ef5760405162461bcd60e51b815260206004820152600b60248201526a6e6f7420656e6f7567682160a81b604482015260640161102b565b610e4f8183611849565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061135257506000548310155b1561135d5792915050565b6113668361168e565b90508060400151156113785792915050565b610fe383611a91565b6113896115e2565b601155565b60606113998261153e565b6113b657604051630a14c4b560e41b815260040160405180910390fd5b60006113c0611ac6565b905080516000036113e05760405180602001604052806000815250610fe3565b806113ea84611ad5565b6040516020016113fb929190612218565b6040516020818303038152906040529392505050565b6114196115e2565b6012805460ff19811660ff90911615179055565b600061078382611820565b6114406115e2565b601055565b61144d6115e2565b6001600160a01b0381166114b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161102b565b610bb58161163c565b60006301ffc9a760e01b6001600160e01b0319831614806114ec57506380ac58cd60e01b6001600160e01b03198316145b806107835750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061078357506301ffc9a760e01b6001600160e01b0319831614610783565b600081600111158015611552575060005482105b8015610783575050600090815260046020526040902054600160e01b161590565b600081806001116115c9576000548110156115c95760008181526004602052604081205490600160e01b821690036115c7575b80600003610fe35750600019016000818152600460205260409020546115a6565b505b604051636f96cda160e11b815260040160405180910390fd5b600b546001600160a01b03163314610d325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161102b565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461078390611b0d565b6127106001600160601b03821611156117385760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840161102b565b6001600160a01b03821661178e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161102b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6002600854036118195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161102b565b6002600855565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b600080549082900361186e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461191d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016118e5565b508160000361193e57604051622e076360e81b815260040160405180910390fd5b60005550505050565b803410156119685760405163cd1c886760e01b815260040160405180910390fd5b80341115610bb557336108fc61197e8334612205565b6040518115909202916000818181858888f19350505050158015610e4f573d6000803e3d6000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906119db903390899088908890600401612247565b6020604051808303816000875af1925050508015611a16575060408051601f3d908101601f19168201909252611a1391810190612284565b60015b611a74573d808015611a44576040519150601f19603f3d011682016040523d82523d6000602084013e611a49565b606091505b508051600003611a6c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610783611ac183611573565b611b0d565b6060600c80546107989061204c565b604080516080019081905280825b600183039250600a81066030018353600a900480611ae35750819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6001600160e01b031981168114610bb557600080fd5b600060208284031215611b7d57600080fd5b8135610fe381611b55565b60005b83811015611ba3578181015183820152602001611b8b565b50506000910152565b60008151808452611bc4816020860160208601611b88565b601f01601f19169290920160200192915050565b602081526000610fe36020830184611bac565b600060208284031215611bfd57600080fd5b5035919050565b80356001600160a01b0381168114611c1b57600080fd5b919050565b60008060408385031215611c3357600080fd5b611c3c83611c04565b946020939093013593505050565b600080600060608486031215611c5f57600080fd5b611c6884611c04565b9250611c7660208501611c04565b9150604084013590509250925092565b60008060408385031215611c9957600080fd5b50508035926020909101359150565b60008060208385031215611cbb57600080fd5b823567ffffffffffffffff80821115611cd357600080fd5b818501915085601f830112611ce757600080fd5b813581811115611cf657600080fd5b866020828501011115611d0857600080fd5b60209290920196919550909350505050565b60008060208385031215611d2d57600080fd5b823567ffffffffffffffff80821115611d4557600080fd5b818501915085601f830112611d5957600080fd5b813581811115611d6857600080fd5b8660208260051b8501011115611d0857600080fd5b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610e3157611de9838551611d7d565b9284019260809290920191600101611dd6565b600060208284031215611e0e57600080fd5b610fe382611c04565b6020808252825182820181905260009190848201906040850190845b81811015610e3157835183529284019291840191600101611e33565b60008060408385031215611e6257600080fd5b611e6b83611c04565b915060208301356001600160601b0381168114611e8757600080fd5b809150509250929050565b600080600060608486031215611ea757600080fd5b611eb084611c04565b95602085013595506040909401359392505050565b60008060408385031215611ed857600080fd5b611ee183611c04565b915060208301358015158114611e8757600080fd5b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611f2257600080fd5b611f2b85611c04565b9350611f3960208601611c04565b925060408501359150606085013567ffffffffffffffff80821115611f5d57600080fd5b818701915087601f830112611f7157600080fd5b813581811115611f8357611f83611ef6565b604051601f8201601f19908116603f01168101908382118183101715611fab57611fab611ef6565b816040528281528a6020848701011115611fc457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611ffb57600080fd5b8235915061200b60208401611c04565b90509250929050565b608081016107838284611d7d565b6000806040838503121561203557600080fd5b61203e83611c04565b915061200b60208401611c04565b600181811c9082168061206057607f821691505b60208210810361208057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761078357610783612086565b6000826120d057634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610bd357600081815260208120601f850160051c810160208610156120fc5750805b601f850160051c820191505b81811015610a9057828155600101612108565b67ffffffffffffffff83111561213357612133611ef6565b61214783612141835461204c565b836120d5565b6000601f84116001811461217b57600085156121635750838201355b600019600387901b1c1916600186901b1783556121d5565b600083815260209020601f19861690835b828110156121ac578685013582556020948501946001909201910161218c565b50868210156121c95760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561078357610783612086565b8181038181111561078357610783612086565b6000835161222a818460208801611b88565b83519083019061223e818360208801611b88565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061227a90830184611bac565b9695505050505050565b60006020828403121561229657600080fd5b8151610fe381611b5556fea264697066735822122075c2ff4bbe73169bccde33cc5654d193742ff5297f9fd61b66c73e3a10a0ad3664736f6c63430008120033
Deployed Bytecode Sourcemap
104198:3537:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107307:423;;;;;;;;;;-1:-1:-1;107307:423:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;107307:423:0;;;;;;;;53960:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;60443:218::-;;;;;;;;;;-1:-1:-1;60443:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;60443:218:0;1533:203:1;59884:400:0;;;;;;;;;;-1:-1:-1;59884:400:0;;;;;:::i;:::-;;:::i;:::-;;49711:323;;;;;;;;;;-1:-1:-1;107290:1:0;49985:12;49772:7;49969:13;:28;-1:-1:-1;;49969:46:0;49711:323;;;2324:25:1;;;2312:2;2297:18;49711:323:0;2178:177:1;64156:2817:0;;;;;;;;;;-1:-1:-1;64156:2817:0;;;;;:::i;:::-;;:::i;8162:442::-;;;;;;;;;;-1:-1:-1;8162:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3138:32:1;;;3120:51;;3202:2;3187:18;;3180:34;;;;3093:18;8162:442:0;2946:274:1;106863:176:0;;;;;;;;;;;;;:::i;67069:185::-;;;;;;;;;;-1:-1:-1;67069:185:0;;;;;:::i;:::-;;:::i;104429:29::-;;;;;;;;;;;;;;;;106747:108;;;;;;;;;;-1:-1:-1;106747:108:0;;;;;:::i;:::-;;:::i;104393:29::-;;;;;;;;;;;;;;;;95628:528;;;;;;;;;;-1:-1:-1;95628:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;55353:152::-;;;;;;;;;;-1:-1:-1;55353:152:0;;;;;:::i;:::-;;:::i;106424:100::-;;;;;;;;;;-1:-1:-1;106424:100:0;;;;;:::i;:::-;;:::i;50895:233::-;;;;;;;;;;-1:-1:-1;50895:233:0;;;;;:::i;:::-;;:::i;2819:103::-;;;;;;;;;;;;;:::i;99504:900::-;;;;;;;;;;-1:-1:-1;99504:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;2171:87::-;;;;;;;;;;-1:-1:-1;2244:6:0;;-1:-1:-1;;;;;2244:6:0;2171:87;;107047:139;;;;;;;;;;-1:-1:-1;107047:139:0;;;;;:::i;:::-;;:::i;54136:104::-;;;;;;;;;;;;;:::i;96544:2513::-;;;;;;;;;;-1:-1:-1;96544:2513:0;;;;;:::i;:::-;;:::i;104354:32::-;;;;;;;;;;;;;;;;104717:523;;;;;;:::i;:::-;;:::i;61001:308::-;;;;;;;;;;-1:-1:-1;61001:308:0;;;;;:::i;:::-;;:::i;104471:25::-;;;;;;;;;;;;;;;;106095:93;;;;;;;;;;;;;:::i;105248:290::-;;;;;;;;;;-1:-1:-1;105248:290:0;;;;;:::i;:::-;;:::i;67852:399::-;;;;;;;;;;-1:-1:-1;67852:399:0;;;;;:::i;:::-;;:::i;105787:178::-;;;;;;;;;;-1:-1:-1;105787:178:0;;;;;:::i;:::-;;:::i;95041:428::-;;;;;;;;;;-1:-1:-1;95041:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;106196:98::-;;;;;;;;;;-1:-1:-1;106196:98:0;;;;;:::i;:::-;;:::i;54346:318::-;;;;;;;;;;-1:-1:-1;54346:318:0;;;;;:::i;:::-;;:::i;104509:31::-;;;;;;;;;;-1:-1:-1;104509:31:0;;;;;;;;106532:86;;;;;;;;;;;;;:::i;104313:29::-;;;;;;;;;;;;;;;;106626:113;;;;;;;;;;-1:-1:-1;106626:113:0;;;;;:::i;:::-;;:::i;106302:114::-;;;;;;;;;;-1:-1:-1;106302:114:0;;;;;:::i;:::-;;:::i;61466:164::-;;;;;;;;;;-1:-1:-1;61466:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;61587:25:0;;;61563:4;61587:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;61466:164;3077:201;;;;;;;;;;-1:-1:-1;3077:201:0;;;;;:::i;:::-;;:::i;107307:423::-;107420:4;107629:38;107655:11;107629:25;:38::i;:::-;:93;;;;107684:38;107710:11;107684:25;:38::i;:::-;107609:113;107307:423;-1:-1:-1;;107307:423:0:o;53960:100::-;54014:13;54047:5;54040:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53960:100;:::o;60443:218::-;60519:7;60544:16;60552:7;60544;:16::i;:::-;60539:64;;60569:34;;-1:-1:-1;;;60569:34:0;;;;;;;;;;;60539:64;-1:-1:-1;60623:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;60623:30:0;;60443:218::o;59884:400::-;59965:13;59981:16;59989:7;59981;:16::i;:::-;59965:32;-1:-1:-1;84013:10:0;-1:-1:-1;;;;;60014:28:0;;;60010:175;;60062:44;60079:5;84013:10;61466:164;:::i;60062:44::-;60057:128;;60134:35;;-1:-1:-1;;;60134:35:0;;;;;;;;;;;60057:128;60197:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;60197:35:0;-1:-1:-1;;;;;60197:35:0;;;;;;;;;60248:28;;60197:24;;60248:28;;;;;;;59954:330;59884:400;;:::o;64156:2817::-;64290:27;64320;64339:7;64320:18;:27::i;:::-;64290:57;;64405:4;-1:-1:-1;;;;;64364:45:0;64380:19;-1:-1:-1;;;;;64364:45:0;;64360:86;;64418:28;;-1:-1:-1;;;64418:28:0;;;;;;;;;;;64360:86;64460:27;63264:24;;;:15;:24;;;;;63492:26;;84013:10;62889:30;;;-1:-1:-1;;;;;62582:28:0;;62867:20;;;62864:56;64646:180;;64739:43;64756:4;84013:10;61466:164;:::i;64739:43::-;64734:92;;64791:35;;-1:-1:-1;;;64791:35:0;;;;;;;;;;;64734:92;-1:-1:-1;;;;;64843:16:0;;64839:52;;64868:23;;-1:-1:-1;;;64868:23:0;;;;;;;;;;;64839:52;65040:15;65037:160;;;65180:1;65159:19;65152:30;65037:160;-1:-1:-1;;;;;65577:24:0;;;;;;;:18;:24;;;;;;65575:26;;-1:-1:-1;;65575:26:0;;;65646:22;;;;;;;;;65644:24;;-1:-1:-1;65644:24:0;;;58742:11;58717:23;58713:41;58700:63;-1:-1:-1;;;58700:63:0;65939:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;66234:47:0;;:52;;66230:627;;66339:1;66329:11;;66307:19;66462:30;;;:17;:30;;;;;;:35;;66458:384;;66600:13;;66585:11;:28;66581:242;;66747:30;;;;:17;:30;;;;;:52;;;66581:242;66288:569;66230:627;66904:7;66900:2;-1:-1:-1;;;;;66885:27:0;66894:4;-1:-1:-1;;;;;66885:27:0;;;;;;;;;;;66923:42;64279:2694;;;64156:2817;;;:::o;8162:442::-;8259:7;8317:27;;;:17;:27;;;;;;;;8288:56;;;;;;;;;-1:-1:-1;;;;;8288:56:0;;;;;-1:-1:-1;;;8288:56:0;;;-1:-1:-1;;;;;8288:56:0;;;;;;;;8259:7;;8357:92;;-1:-1:-1;8408:29:0;;;;;;;;;8418:19;8408:29;-1:-1:-1;;;;;8408:29:0;;;;-1:-1:-1;;;8408:29:0;;-1:-1:-1;;;;;8408:29:0;;;;;8357:92;8499:23;;;;8461:21;;8970:5;;8486:36;;-1:-1:-1;;;;;8486:36:0;:10;:36;:::i;:::-;8485:58;;;;:::i;:::-;8564:16;;;;;-1:-1:-1;8162:442:0;;-1:-1:-1;;;;8162:442:0:o;106863:176::-;2057:13;:11;:13::i;:::-;106932:49:::1;::::0;106914:12:::1;::::0;106932:10:::1;::::0;106955:21:::1;::::0;106914:12;106932:49;106914:12;106932:49;106955:21;106932:10;:49:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106913:68;;;106997:7;106992:39;;107013:18;;-1:-1:-1::0;;;107013:18:0::1;;;;;;;;;;;106992:39;106902:137;106863:176::o:0;67069:185::-;67207:39;67224:4;67230:2;67234:7;67207:39;;;;;;;;;;;;:16;:39::i;:::-;67069:185;;;:::o;106747:108::-;2057:13;:11;:13::i;:::-;106823::::1;:24;106839:8:::0;;106823:13;:24:::1;:::i;95628:528::-:0;95772:23;95863:8;95838:22;95863:8;95930:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95930:36:0;;-1:-1:-1;;95930:36:0;;;;;;;;;;;;95893:73;;95986:9;95981:125;96002:14;95997:1;:19;95981:125;;96058:32;96078:8;;96087:1;96078:11;;;;;;;:::i;:::-;;;;;;;96058:19;:32::i;:::-;96042:10;96053:1;96042:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;96018:3;;95981:125;;;-1:-1:-1;96127:10:0;95628:528;-1:-1:-1;;;;95628:528:0:o;55353:152::-;55425:7;55468:27;55487:7;55468:18;:27::i;106424:100::-;2057:13;:11;:13::i;:::-;106494:9:::1;:22:::0;106424:100::o;50895:233::-;50967:7;-1:-1:-1;;;;;50991:19:0;;50987:60;;51019:28;;-1:-1:-1;;;51019:28:0;;;;;;;;;;;50987:60;-1:-1:-1;;;;;;51065:25:0;;;;;:18;:25;;;;;;45054:13;51065:55;;50895:233::o;2819:103::-;2057:13;:11;:13::i;:::-;2884:30:::1;2911:1;2884:18;:30::i;:::-;2819:103::o:0;99504:900::-;99582:16;99636:19;99670:25;99710:22;99735:16;99745:5;99735:9;:16::i;:::-;99710:41;;99766:25;99808:14;99794:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;99794:29:0;;99766:57;;99838:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99838:31:0;107290:1;99884:472;99933:14;99918:11;:29;99884:472;;99985:15;99998:1;99985:12;:15::i;:::-;99973:27;;100023:9;:16;;;100064:8;100019:73;100114:14;;-1:-1:-1;;;;;100114:28:0;;100110:111;;100187:14;;;-1:-1:-1;100110:111:0;100264:5;-1:-1:-1;;;;;100243:26:0;:17;-1:-1:-1;;;;;100243:26:0;;100239:102;;100320:1;100294:8;100303:13;;;;;;100294:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;100239:102;99949:3;;99884:472;;;-1:-1:-1;100377:8:0;;99504:900;-1:-1:-1;;;;;;99504:900:0:o;107047:139::-;2057:13;:11;:13::i;:::-;107136:42:::1;107155:8;107165:12;107136:18;:42::i;:::-;107047:139:::0;;:::o;54136:104::-;54192:13;54225:7;54218:14;;;;;:::i;96544:2513::-;96687:16;96754:4;96745:5;:13;96741:45;;96767:19;;-1:-1:-1;;;96767:19:0;;;;;;;;;;;96741:45;96801:19;96835:17;96855:14;49453:7;49480:13;;49398:103;96855:14;96835:34;-1:-1:-1;107290:1:0;96947:5;:23;96943:87;;;107290:1;96991:23;;96943:87;97106:9;97099:4;:16;97095:73;;;97143:9;97136:16;;97095:73;97182:25;97210:16;97220:5;97210:9;:16::i;:::-;97182:44;;97404:4;97396:5;:12;97392:278;;;97451:12;;;97486:31;;;97482:111;;;97562:11;97542:31;;97482:111;97410:198;97392:278;;;-1:-1:-1;97653:1:0;97392:278;97684:25;97726:17;97712:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;97712:32:0;;97684:60;;97763:17;97784:1;97763:22;97759:78;;97813:8;-1:-1:-1;97806:15:0;;-1:-1:-1;;;97806:15:0;97759:78;97981:31;98015:26;98035:5;98015:19;:26::i;:::-;97981:60;;98056:25;98301:9;:16;;;98296:92;;-1:-1:-1;98358:14:0;;98296:92;98419:5;98402:478;98431:4;98426:1;:9;;:45;;;;;98454:17;98439:11;:32;;98426:45;98402:478;;;98509:15;98522:1;98509:12;:15::i;:::-;98497:27;;98547:9;:16;;;98588:8;98543:73;98638:14;;-1:-1:-1;;;;;98638:28:0;;98634:111;;98711:14;;;-1:-1:-1;98634:111:0;98788:5;-1:-1:-1;;;;;98767:26:0;:17;-1:-1:-1;;;;;98767:26:0;;98763:102;;98844:1;98818:8;98827:13;;;;;;98818:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;98763:102;98473:3;;98402:478;;;-1:-1:-1;;;98965:29:0;;;-1:-1:-1;98972:8:0;;-1:-1:-1;;96544:2513:0;;;;;;:::o;104717:523::-;104642:9;104655:10;104642:23;104634:55;;;;-1:-1:-1;;;104634:55:0;;12989:2:1;104634:55:0;;;12971:21:1;13028:2;13008:18;;;13001:30;-1:-1:-1;;;13047:18:1;;;13040:49;13106:18;;104634:55:0;;;;;;;;;103306:21:::1;:19;:21::i;:::-;104823:11:::2;104837:19;104852:3;104837:14;:19::i;:::-;104823:33;;104907:12;;104922:1;104907:16;;;;:::i;:::-;104901:3;104873:25;104887:10;104873:13;:25::i;:::-;:31;;;;:::i;:::-;:50;104869:83;;;104932:20;;-1:-1:-1::0;;;104932:20:0::2;;;;;;;;;;;104869:83;104990:9;::::0;:13:::2;::::0;105002:1:::2;104990:13;:::i;:::-;104984:3;104967:14;50187:7:::0;50378:13;-1:-1:-1;;50378:31:0;;50132:296;104967:14:::2;:20;;;;:::i;:::-;:36;104963:67;;;105012:18;;-1:-1:-1::0;;;105012:18:0::2;;;;;;;;;;;104963:67;105046:11;::::0;::::2;;105041:42;;105066:17;;-1:-1:-1::0;;;105066:17:0::2;;;;;;;;;;;105041:42;105122:8;::::0;:12:::2;::::0;105133:1:::2;105122:12;:::i;:::-;105116:3;:18;105112:48;;;105143:17;;-1:-1:-1::0;;;105143:17:0::2;;;;;;;;;;;105112:48;105173:22;105179:10;105191:3;105173:5;:22::i;:::-;105206:26;105225:6;105206:18;:26::i;:::-;104812:428;103350:20:::1;102744:1:::0;103870:7;:22;103687:213;61001:308;84013:10;-1:-1:-1;;;;;61100:31:0;;;61096:61;;61140:17;;-1:-1:-1;;;61140:17:0;;;;;;;;;;;61096:61;84013:10;61170:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;61170:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;61170:60:0;;;;;;;;;;61246:55;;540:41:1;;;61170:49:0;;84013:10;61246:55;;513:18:1;61246:55:0;;;;;;;61001:308;;:::o;106095:93::-;2057:13;:11;:13::i;:::-;106157:23:::1;9730:19:::0;;9723:26;9662:95;105248:290;105303:4;105318:14;105335:25;105349:10;105335:13;:25::i;:::-;105318:42;;105369:9;105393:13;;105381:9;:25;:57;;105437:1;105381:57;;;105425:9;105409:13;;:25;;;;:::i;:::-;105369:69;;105458:4;105451:3;:11;105447:67;;105493:10;105499:4;105493:3;:10;:::i;:::-;105483:5;;105482:22;;;;:::i;:::-;105475:29;105248:290;-1:-1:-1;;;;105248:290:0:o;105447:67::-;-1:-1:-1;105529:1:0;;105248:290;-1:-1:-1;;;105248:290:0:o;67852:399::-;68019:31;68032:4;68038:2;68042:7;68019:12;:31::i;:::-;-1:-1:-1;;;;;68065:14:0;;;:19;68061:183;;68104:56;68135:4;68141:2;68145:7;68154:5;68104:30;:56::i;:::-;68099:145;;68188:40;;-1:-1:-1;;;68188:40:0;;;;;;;;;;;68099:145;67852:399;;;;:::o;105787:178::-;2057:13;:11;:13::i;:::-;105903:9:::1;::::0;107290:1;49985:12;49772:7;49969:13;105891:8;;49969:28;;-1:-1:-1;;49969:46:0;105875:24:::1;;;;:::i;:::-;:37;;105867:60;;;::::0;-1:-1:-1;;;105867:60:0;;13600:2:1;105867:60:0::1;::::0;::::1;13582:21:1::0;13639:2;13619:18;;;13612:30;-1:-1:-1;;;13658:18:1;;;13651:41;13709:18;;105867:60:0::1;13398:335:1::0;105867:60:0::1;105938:19;105944:2;105948:8;105938:5;:19::i;95041:428::-:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107290:1:0;95205:7;:25;:54;;;-1:-1:-1;49453:7:0;49480:13;95234:7;:25;;95205:54;95201:103;;;95283:9;95041:428;-1:-1:-1;;95041:428:0:o;95201:103::-;95326:21;95339:7;95326:12;:21::i;:::-;95314:33;;95362:9;:16;;;95358:65;;;95402:9;95041:428;-1:-1:-1;;95041:428:0:o;95358:65::-;95440:21;95453:7;95440:12;:21::i;106196:98::-;2057:13;:11;:13::i;:::-;106266:8:::1;:20:::0;106196:98::o;54346:318::-;54419:13;54450:16;54458:7;54450;:16::i;:::-;54445:59;;54475:29;;-1:-1:-1;;;54475:29:0;;;;;;;;;;;54445:59;54517:21;54541:10;:8;:10::i;:::-;54517:34;;54575:7;54569:21;54594:1;54569:26;:87;;;;;;;;;;;;;;;;;54622:7;54631:18;54641:7;54631:9;:18::i;:::-;54605:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;54562:94;54346:318;-1:-1:-1;;;54346:318:0:o;106532:86::-;2057:13;:11;:13::i;:::-;106599:11:::1;::::0;;-1:-1:-1;;106584:26:0;::::1;106599:11;::::0;;::::1;106598:12;106584:26;::::0;;106532:86::o;106626:113::-;106684:7;106711:20;106725:5;106711:13;:20::i;106302:114::-;2057:13;:11;:13::i;:::-;106380:12:::1;:28:::0;106302:114::o;3077:201::-;2057:13;:11;:13::i;:::-;-1:-1:-1;;;;;3166:22:0;::::1;3158:73;;;::::0;-1:-1:-1;;;3158:73:0;;14441:2:1;3158:73:0::1;::::0;::::1;14423:21:1::0;14480:2;14460:18;;;14453:30;14519:34;14499:18;;;14492:62;-1:-1:-1;;;14570:18:1;;;14563:36;14616:19;;3158:73:0::1;14239:402:1::0;3158:73:0::1;3242:28;3261:8;3242:18;:28::i;53058:639::-:0;53143:4;-1:-1:-1;;;;;;;;;53467:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;53544:25:0;;;53467:102;:179;;;-1:-1:-1;;;;;;;;53621:25:0;-1:-1:-1;;;53621:25:0;;53058:639::o;7892:215::-;7994:4;-1:-1:-1;;;;;;8018:41:0;;-1:-1:-1;;;8018:41:0;;:81;;-1:-1:-1;;;;;;;;;;6445:40:0;;;8063:36;6336:157;61888:282;61953:4;62009:7;107290:1;61990:26;;:66;;;;;62043:13;;62033:7;:23;61990:66;:153;;;;-1:-1:-1;;62094:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;62094:44:0;:49;;61888:282::o;56508:1275::-;56575:7;56610;;107290:1;56659:23;56655:1061;;56712:13;;56705:4;:20;56701:1015;;;56750:14;56767:23;;;:17;:23;;;;;;;-1:-1:-1;;;56856:24:0;;:29;;56852:845;;57521:113;57528:6;57538:1;57528:11;57521:113;;-1:-1:-1;;;57599:6:0;57581:25;;;;:17;:25;;;;;;57521:113;;56852:845;56727:989;56701:1015;57744:31;;-1:-1:-1;;;57744:31:0;;;;;;;;;;;2336:132;2244:6;;-1:-1:-1;;;;;2244:6:0;84013:10;2400:23;2392:68;;;;-1:-1:-1;;;2392:68:0;;14848:2:1;2392:68:0;;;14830:21:1;;;14867:18;;;14860:30;14926:34;14906:18;;;14899:62;14978:18;;2392:68:0;14646:356:1;3438:191:0;3531:6;;;-1:-1:-1;;;;;3548:17:0;;;-1:-1:-1;;;;;;3548:17:0;;;;;;;3581:40;;3531:6;;;3548:17;3531:6;;3581:40;;3512:16;;3581:40;3501:128;3438:191;:::o;55956:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56084:24:0;;;;:17;:24;;;;;;56065:44;;:18;:44::i;9254:332::-;8970:5;-1:-1:-1;;;;;9357:33:0;;;;9349:88;;;;-1:-1:-1;;;9349:88:0;;15209:2:1;9349:88:0;;;15191:21:1;15248:2;15228:18;;;15221:30;15287:34;15267:18;;;15260:62;-1:-1:-1;;;15338:18:1;;;15331:40;15388:19;;9349:88:0;15007:406:1;9349:88:0;-1:-1:-1;;;;;9456:22:0;;9448:60;;;;-1:-1:-1;;;9448:60:0;;15620:2:1;9448:60:0;;;15602:21:1;15659:2;15639:18;;;15632:30;15698:27;15678:18;;;15671:55;15743:18;;9448:60:0;15418:349:1;9448:60:0;9543:35;;;;;;;;;-1:-1:-1;;;;;9543:35:0;;;;;;-1:-1:-1;;;;;9543:35:0;;;;;;;;;;-1:-1:-1;;;9521:57:0;;;;:19;:57;9254:332::o;103386:293::-;102788:1;103520:7;;:19;103512:63;;;;-1:-1:-1;;;103512:63:0;;15974:2:1;103512:63:0;;;15956:21:1;16013:2;15993:18;;;15986:30;16052:33;16032:18;;;16025:61;16103:18;;103512:63:0;15772:355:1;103512:63:0;102788:1;103653:7;:18;103386:293::o;51210:178::-;-1:-1:-1;;;;;51299:25:0;51271:7;51299:25;;;:18;:25;;45192:2;51299:25;;;;;:50;;45054:13;51298:82;;51210:178::o;71513:2720::-;71586:20;71609:13;;;71637;;;71633:44;;71659:18;;-1:-1:-1;;;71659:18:0;;;;;;;;;;;71633:44;-1:-1:-1;;;;;72165:22:0;;;;;;:18;:22;;;;45192:2;72165:22;;;:71;;72203:32;72191:45;;72165:71;;;72479:31;;;:17;:31;;;;;-1:-1:-1;59173:15:0;;59147:24;59143:46;58742:11;58717:23;58713:41;58710:52;58700:63;;72479:173;;72714:23;;;;72479:31;;72165:22;;73479:25;72165:22;;73332:335;73747:1;73733:12;73729:20;73687:346;73788:3;73779:7;73776:16;73687:346;;74006:7;73996:8;73993:1;73966:25;73963:1;73960;73955:59;73841:1;73828:15;73687:346;;;73691:77;74066:8;74078:1;74066:13;74062:45;;74088:19;;-1:-1:-1;;;74088:19:0;;;;;;;;;;;74062:45;74124:13;:19;-1:-1:-1;67069:185:0;;;:::o;105546:233::-;105626:6;105614:9;:18;105610:52;;;105641:21;;-1:-1:-1;;;105641:21:0;;;;;;;;;;;105610:52;105689:6;105677:9;:18;105673:99;;;105720:10;105712:48;105741:18;105753:6;105741:9;:18;:::i;:::-;105712:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70335:716;70519:88;;-1:-1:-1;;;70519:88:0;;70498:4;;-1:-1:-1;;;;;70519:45:0;;;;;:88;;84013:10;;70586:4;;70592:7;;70601:5;;70519:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70519:88:0;;;;;;;;-1:-1:-1;;70519:88:0;;;;;;;;;;;;:::i;:::-;;;70515:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70802:6;:13;70819:1;70802:18;70798:235;;70848:40;;-1:-1:-1;;;70848:40:0;;;;;;;;;;;70798:235;70991:6;70985:13;70976:6;70972:2;70968:15;70961:38;70515:529;-1:-1:-1;;;;;;70678:64:0;-1:-1:-1;;;70678:64:0;;-1:-1:-1;70335:716:0;;;;;;:::o;55694:166::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55805:47:0;55824:27;55843:7;55824:18;:27::i;:::-;55805:18;:47::i;105973:114::-;106033:13;106066;106059:20;;;;;:::i;84133:1582::-;84617:4;84611:11;;84624:4;84607:22;84703:17;;;;84607:22;85061:5;85043:428;85109:1;85104:3;85100:11;85093:18;;85280:2;85274:4;85270:13;85266:2;85262:22;85257:3;85249:36;85374:2;85364:13;;85431:25;85043:428;85431:25;-1:-1:-1;85501:13:0;;;-1:-1:-1;;85616:14:0;;;85678:19;;;85616:14;84133:1582;-1:-1:-1;84133:1582:0:o;57882:366::-;-1:-1:-1;;;;;;;;;;;;;57992:41:0;;;;45713:3;58078:33;;;58044:68;;-1:-1:-1;;;58044:68:0;-1:-1:-1;;;58142:24:0;;:29;;-1:-1:-1;;;58123:48:0;;;;46234:3;58211:28;;;;-1:-1:-1;;;58182:58:0;-1:-1:-1;57882:366:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:248::-;2761:6;2769;2822:2;2810:9;2801:7;2797:23;2793:32;2790:52;;;2838:1;2835;2828:12;2790:52;-1:-1:-1;;2861:23:1;;;2931:2;2916:18;;;2903:32;;-1:-1:-1;2693:248:1:o;3225:592::-;3296:6;3304;3357:2;3345:9;3336:7;3332:23;3328:32;3325:52;;;3373:1;3370;3363:12;3325:52;3413:9;3400:23;3442:18;3483:2;3475:6;3472:14;3469:34;;;3499:1;3496;3489:12;3469:34;3537:6;3526:9;3522:22;3512:32;;3582:7;3575:4;3571:2;3567:13;3563:27;3553:55;;3604:1;3601;3594:12;3553:55;3644:2;3631:16;3670:2;3662:6;3659:14;3656:34;;;3686:1;3683;3676:12;3656:34;3731:7;3726:2;3717:6;3713:2;3709:15;3705:24;3702:37;3699:57;;;3752:1;3749;3742:12;3699:57;3783:2;3775:11;;;;;3805:6;;-1:-1:-1;3225:592:1;;-1:-1:-1;;;;3225:592:1:o;3822:615::-;3908:6;3916;3969:2;3957:9;3948:7;3944:23;3940:32;3937:52;;;3985:1;3982;3975:12;3937:52;4025:9;4012:23;4054:18;4095:2;4087:6;4084:14;4081:34;;;4111:1;4108;4101:12;4081:34;4149:6;4138:9;4134:22;4124:32;;4194:7;4187:4;4183:2;4179:13;4175:27;4165:55;;4216:1;4213;4206:12;4165:55;4256:2;4243:16;4282:2;4274:6;4271:14;4268:34;;;4298:1;4295;4288:12;4268:34;4351:7;4346:2;4336:6;4333:1;4329:14;4325:2;4321:23;4317:32;4314:45;4311:65;;;4372:1;4369;4362:12;4442:349;4526:12;;-1:-1:-1;;;;;4522:38:1;4510:51;;4614:4;4603:16;;;4597:23;4622:18;4593:48;4577:14;;;4570:72;4705:4;4694:16;;;4688:23;4681:31;4674:39;4658:14;;;4651:63;4767:4;4756:16;;;4750:23;4775:8;4746:38;4730:14;;4723:62;4442:349::o;4796:724::-;5031:2;5083:21;;;5153:13;;5056:18;;;5175:22;;;5002:4;;5031:2;5254:15;;;;5228:2;5213:18;;;5002:4;5297:197;5311:6;5308:1;5305:13;5297:197;;;5360:52;5408:3;5399:6;5393:13;5360:52;:::i;:::-;5469:15;;;;5441:4;5432:14;;;;;5333:1;5326:9;5297:197;;5525:186;5584:6;5637:2;5625:9;5616:7;5612:23;5608:32;5605:52;;;5653:1;5650;5643:12;5605:52;5676:29;5695:9;5676:29;:::i;5716:632::-;5887:2;5939:21;;;6009:13;;5912:18;;;6031:22;;;5858:4;;5887:2;6110:15;;;;6084:2;6069:18;;;5858:4;6153:169;6167:6;6164:1;6161:13;6153:169;;;6228:13;;6216:26;;6297:15;;;;6262:12;;;;6189:1;6182:9;6153:169;;6353:366;6420:6;6428;6481:2;6469:9;6460:7;6456:23;6452:32;6449:52;;;6497:1;6494;6487:12;6449:52;6520:29;6539:9;6520:29;:::i;:::-;6510:39;;6599:2;6588:9;6584:18;6571:32;-1:-1:-1;;;;;6636:5:1;6632:38;6625:5;6622:49;6612:77;;6685:1;6682;6675:12;6612:77;6708:5;6698:15;;;6353:366;;;;;:::o;6724:322::-;6801:6;6809;6817;6870:2;6858:9;6849:7;6845:23;6841:32;6838:52;;;6886:1;6883;6876:12;6838:52;6909:29;6928:9;6909:29;:::i;:::-;6899:39;6985:2;6970:18;;6957:32;;-1:-1:-1;7036:2:1;7021:18;;;7008:32;;6724:322;-1:-1:-1;;;6724:322:1:o;7051:347::-;7116:6;7124;7177:2;7165:9;7156:7;7152:23;7148:32;7145:52;;;7193:1;7190;7183:12;7145:52;7216:29;7235:9;7216:29;:::i;:::-;7206:39;;7295:2;7284:9;7280:18;7267:32;7342:5;7335:13;7328:21;7321:5;7318:32;7308:60;;7364:1;7361;7354:12;7403:127;7464:10;7459:3;7455:20;7452:1;7445:31;7495:4;7492:1;7485:15;7519:4;7516:1;7509:15;7535:1138;7630:6;7638;7646;7654;7707:3;7695:9;7686:7;7682:23;7678:33;7675:53;;;7724:1;7721;7714:12;7675:53;7747:29;7766:9;7747:29;:::i;:::-;7737:39;;7795:38;7829:2;7818:9;7814:18;7795:38;:::i;:::-;7785:48;;7880:2;7869:9;7865:18;7852:32;7842:42;;7935:2;7924:9;7920:18;7907:32;7958:18;7999:2;7991:6;7988:14;7985:34;;;8015:1;8012;8005:12;7985:34;8053:6;8042:9;8038:22;8028:32;;8098:7;8091:4;8087:2;8083:13;8079:27;8069:55;;8120:1;8117;8110:12;8069:55;8156:2;8143:16;8178:2;8174;8171:10;8168:36;;;8184:18;;:::i;:::-;8259:2;8253:9;8227:2;8313:13;;-1:-1:-1;;8309:22:1;;;8333:2;8305:31;8301:40;8289:53;;;8357:18;;;8377:22;;;8354:46;8351:72;;;8403:18;;:::i;:::-;8443:10;8439:2;8432:22;8478:2;8470:6;8463:18;8518:7;8513:2;8508;8504;8500:11;8496:20;8493:33;8490:53;;;8539:1;8536;8529:12;8490:53;8595:2;8590;8586;8582:11;8577:2;8569:6;8565:15;8552:46;8640:1;8635:2;8630;8622:6;8618:15;8614:24;8607:35;8661:6;8651:16;;;;;;;7535:1138;;;;;;;:::o;8678:254::-;8746:6;8754;8807:2;8795:9;8786:7;8782:23;8778:32;8775:52;;;8823:1;8820;8813:12;8775:52;8859:9;8846:23;8836:33;;8888:38;8922:2;8911:9;8907:18;8888:38;:::i;:::-;8878:48;;8678:254;;;;;:::o;8937:268::-;9135:3;9120:19;;9148:51;9124:9;9181:6;9148:51;:::i;9210:260::-;9278:6;9286;9339:2;9327:9;9318:7;9314:23;9310:32;9307:52;;;9355:1;9352;9345:12;9307:52;9378:29;9397:9;9378:29;:::i;:::-;9368:39;;9426:38;9460:2;9449:9;9445:18;9426:38;:::i;9475:380::-;9554:1;9550:12;;;;9597;;;9618:61;;9672:4;9664:6;9660:17;9650:27;;9618:61;9725:2;9717:6;9714:14;9694:18;9691:38;9688:161;;9771:10;9766:3;9762:20;9759:1;9752:31;9806:4;9803:1;9796:15;9834:4;9831:1;9824:15;9688:161;;9475:380;;;:::o;9860:127::-;9921:10;9916:3;9912:20;9909:1;9902:31;9952:4;9949:1;9942:15;9976:4;9973:1;9966:15;9992:168;10065:9;;;10096;;10113:15;;;10107:22;;10093:37;10083:71;;10134:18;;:::i;10165:217::-;10205:1;10231;10221:132;;10275:10;10270:3;10266:20;10263:1;10256:31;10310:4;10307:1;10300:15;10338:4;10335:1;10328:15;10221:132;-1:-1:-1;10367:9:1;;10165:217::o;10723:545::-;10825:2;10820:3;10817:11;10814:448;;;10861:1;10886:5;10882:2;10875:17;10931:4;10927:2;10917:19;11001:2;10989:10;10985:19;10982:1;10978:27;10972:4;10968:38;11037:4;11025:10;11022:20;11019:47;;;-1:-1:-1;11060:4:1;11019:47;11115:2;11110:3;11106:12;11103:1;11099:20;11093:4;11089:31;11079:41;;11170:82;11188:2;11181:5;11178:13;11170:82;;;11233:17;;;11214:1;11203:13;11170:82;;11444:1206;11568:18;11563:3;11560:27;11557:53;;;11590:18;;:::i;:::-;11619:94;11709:3;11669:38;11701:4;11695:11;11669:38;:::i;:::-;11663:4;11619:94;:::i;:::-;11739:1;11764:2;11759:3;11756:11;11781:1;11776:616;;;;12436:1;12453:3;12450:93;;;-1:-1:-1;12509:19:1;;;12496:33;12450:93;-1:-1:-1;;11401:1:1;11397:11;;;11393:24;11389:29;11379:40;11425:1;11421:11;;;11376:57;12556:78;;11749:895;;11776:616;10670:1;10663:14;;;10707:4;10694:18;;-1:-1:-1;;11812:17:1;;;11913:9;11935:229;11949:7;11946:1;11943:14;11935:229;;;12038:19;;;12025:33;12010:49;;12145:4;12130:20;;;;12098:1;12086:14;;;;11965:12;11935:229;;;11939:3;12192;12183:7;12180:16;12177:159;;;12316:1;12312:6;12306:3;12300;12297:1;12293:11;12289:21;12285:34;12281:39;12268:9;12263:3;12259:19;12246:33;12242:79;12234:6;12227:95;12177:159;;;12379:1;12373:3;12370:1;12366:11;12362:19;12356:4;12349:33;11749:895;;;11444:1206;;;:::o;12655:127::-;12716:10;12711:3;12707:20;12704:1;12697:31;12747:4;12744:1;12737:15;12771:4;12768:1;12761:15;13135:125;13200:9;;;13221:10;;;13218:36;;;13234:18;;:::i;13265:128::-;13332:9;;;13353:11;;;13350:37;;;13367:18;;:::i;13738:496::-;13917:3;13955:6;13949:13;13971:66;14030:6;14025:3;14018:4;14010:6;14006:17;13971:66;:::i;:::-;14100:13;;14059:16;;;;14122:70;14100:13;14059:16;14169:4;14157:17;;14122:70;:::i;:::-;14208:20;;13738:496;-1:-1:-1;;;;13738:496:1:o;16132:489::-;-1:-1:-1;;;;;16401:15:1;;;16383:34;;16453:15;;16448:2;16433:18;;16426:43;16500:2;16485:18;;16478:34;;;16548:3;16543:2;16528:18;;16521:31;;;16326:4;;16569:46;;16595:19;;16587:6;16569:46;:::i;:::-;16561:54;16132:489;-1:-1:-1;;;;;;16132:489:1:o;16626:249::-;16695:6;16748:2;16736:9;16727:7;16723:23;16719:32;16716:52;;;16764:1;16761;16754:12;16716:52;16796:9;16790:16;16815:30;16839:5;16815:30;:::i
Swarm Source
ipfs://75c2ff4bbe73169bccde33cc5654d193742ff5297f9fd61b66c73e3a10a0ad36
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.