Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
163 TIANFTP
Holders
87
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TIANFTPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
TIANFTP
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-28 */ // 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 ExceedsMaxPerTransaction(); error MaxPerWalletExceeded(); error IncorrectPayment(); error InvalidMintQuantity(); error MintingDisabled(); error PresaleNotAllowed(); error TokenNotFound(); error PresaleClosed(); error InsufficientPayment(); error MaxSupplyReached(); error WithdrawalFailed(); pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } pragma solidity ^0.8.13; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !( operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender) && operatorFilterRegistry.isOperatorAllowed(address(this), from) ) ) { revert OperatorNotAllowed(msg.sender); } } _; } } pragma solidity ^0.8.13; abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } pragma solidity ^0.8.7; contract TIANFTP is ERC721AQueryable, ReentrancyGuard, ERC2981, Ownable, DefaultOperatorFilterer { using ECDSA for bytes32; string private _baseTokenURI = "ipfs://QmWW3YFndQpdgVUZT4bWu6HtwNLoZHwEjQDcRmNx9VoUS8/"; bool public canMint = false; uint public cost = 0.0042 ether; uint public freePerWallet = 1; uint public maxPerTransaction = 10; uint public maxPerWallet = 25; uint public totalAvailable = 6969; constructor() ERC721A("This is a NFT Project", "TIANFTP") { _safeMint(msg.sender, 69); } modifier callerIsUser() { require(tx.origin == msg.sender, "not original sender"); _; } function mint(uint qty) external payable callerIsUser nonReentrant { uint price = getPrice(qty); if (!canMint) revert MintingDisabled(); if (_totalMinted() + qty > totalAvailable + 1) revert MaxSupplyReached(); if (_numberMinted(msg.sender) + qty > maxPerWallet + 1) revert MaxPerWalletExceeded(); if (qty > maxPerTransaction + 1) revert ExceedsMaxPerTransaction(); _mint(msg.sender, qty); _refundOverPayment(price); } function getPrice(uint qty) public view returns (uint) { uint numMinted = _numberMinted(msg.sender); uint free = numMinted < freePerWallet ? freePerWallet - numMinted : 0; if (qty >= free) { return (cost) * (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 TIANFTPMint(uint256 quantity, address to) external onlyOwner { require( totalSupply() + quantity <= totalAvailable, "dev you should know better" ); _mint(to, quantity); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function setMaxPerTx(uint256 maxPerTransaction_) external onlyOwner { maxPerTransaction = maxPerTransaction_; } function setMaxPerWallet(uint256 maxPerWallet_) external onlyOwner { maxPerWallet = maxPerWallet_; } function setMaxSupply(uint256 maxSupply_) public onlyOwner { totalAvailable = maxSupply_; } function toggleCanMint() external onlyOwner { canMint = !canMint; } 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 supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981, IERC721A) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - 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":"ExceedsMaxPerTransaction","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MaxPerWalletExceeded","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":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"TIANFTPMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"qty","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","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":"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":"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":"maxPerTransaction_","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleCanMint","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":"totalAvailable","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
60e06040526036608081815290620027dd60a03980516200002991600c916020909101906200052b565b50600d805460ff19169055660eebe0b40e8000600e556001600f55600a6010556019601155611b396012553480156200006157600080fd5b50604080518082018252601581527f546869732069732061204e46542050726f6a656374000000000000000000000060208083019182528351808501909452600784526605449414e4654560cc1b908401528151733cc6cdda760b79bafa08df41ecfa224f810dceb693600193929091620000df916002916200052b565b508051620000f59060039060208401906200052b565b506001600055505060016008556200010d3362000268565b6daaeb6d7670e522a718067333cd4e3b1562000252578015620001a057604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200018157600080fd5b505af115801562000196573d6000803e3d6000fd5b5050505062000252565b6001600160a01b03821615620001f15760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000166565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200023857600080fd5b505af11580156200024d573d6000803e3d6000fd5b505050505b50620002629050336045620002ba565b620006bb565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002dc828260405180602001604052806000815250620002e060201b60201c565b5050565b620002ec838362000357565b6001600160a01b0383163b1562000352576000548281035b60018101906200031a9060009087908662000437565b62000338576040516368d2bf6b60e11b815260040160405180910390fd5b818110620003045781600054146200034f57600080fd5b50505b505050565b60008054908290036200037d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020620027bd8339815191528180a4600183015b8181146200040c5780836000600080516020620027bd833981519152600080a4600101620003e3565b50816000036200042e57604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200046e903390899088908890600401620005d1565b6020604051808303816000875af1925050508015620004ac575060408051601f3d908101601f19168201909252620004a9918101906200064c565b60015b6200050e573d808015620004dd576040519150601f19603f3d011682016040523d82523d6000602084013e620004e2565b606091505b50805160000362000506576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b82805462000539906200067f565b90600052602060002090601f0160209004810192826200055d5760008555620005a8565b82601f106200057857805160ff1916838001178555620005a8565b82800160010185558215620005a8579182015b82811115620005a85782518255916020019190600101906200058b565b50620005b6929150620005ba565b5090565b5b80821115620005b65760008155600101620005bb565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620006205785810182015185820160a00152810162000602565b828111156200063357600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200065f57600080fd5b81516001600160e01b0319811681146200067857600080fd5b9392505050565b600181811c908216806200069457607f821691505b602082108103620006b557634e487b7160e01b600052602260045260246000fd5b50919050565b6120f280620006cb6000396000f3fe6080604052600436106102255760003560e01c8063715018a611610123578063beb9716d116100ab578063dc33e6811161006f578063dc33e68114610659578063e268e4d314610679578063e757223014610699578063e985e9c5146106b9578063f2fde38b1461070257600080fd5b8063beb9716d146105bc578063c23dc68f146105d6578063c6f6f21614610603578063c87b56dd14610623578063d85d7f5b1461064357600080fd5b806399a2557a116100f257806399a2557a14610529578063a0712d6814610549578063a22cb4651461055c578063adb0f5881461057c578063b88d4fde1461059c57600080fd5b8063715018a6146104b45780638462151c146104c95780638da5cb5b146104f657806395d89b411461051457600080fd5b806342842e0e116101b15780635b74efcf116101755780635b74efcf146104115780635bbb2177146104275780636352211e146104545780636f8b44b01461047457806370a082311461049457600080fd5b806342842e0e14610390578063453c2310146103b057806346b253e4146103c65780634b980d67146103db57806355f804b3146103f157600080fd5b806313faede6116101f857806313faede6146102db57806318160ddd146102ff57806323b872dd1461031c5780632a55205a1461033c5780633ccfd60b1461037b57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a610245366004611aac565b610722565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b50610274610742565b6040516102569190611b21565b34801561028d57600080fd5b506102a161029c366004611b34565b6107d4565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d4366004611b69565b610818565b005b3480156102e757600080fd5b506102f1600e5481565b604051908152602001610256565b34801561030b57600080fd5b5060015460005403600019016102f1565b34801561032857600080fd5b506102d9610337366004611b93565b6108b8565b34801561034857600080fd5b5061035c610357366004611bcf565b610a50565b604080516001600160a01b039093168352602083019190915201610256565b34801561038757600080fd5b506102d9610afc565b34801561039c57600080fd5b506102d96103ab366004611b93565b610b70565b3480156103bc57600080fd5b506102f160115481565b3480156103d257600080fd5b506102d9610b90565b3480156103e757600080fd5b506102f160105481565b3480156103fd57600080fd5b506102d961040c366004611bf1565b610bac565b34801561041d57600080fd5b506102f1600f5481565b34801561043357600080fd5b50610447610442366004611c63565b610bc0565b6040516102569190611d03565b34801561046057600080fd5b506102a161046f366004611b34565b610c8c565b34801561048057600080fd5b506102d961048f366004611b34565b610c97565b3480156104a057600080fd5b506102f16104af366004611d45565b610ca4565b3480156104c057600080fd5b506102d9610cf3565b3480156104d557600080fd5b506104e96104e4366004611d45565b610d07565b6040516102569190611d60565b34801561050257600080fd5b50600b546001600160a01b03166102a1565b34801561052057600080fd5b50610274610e10565b34801561053557600080fd5b506104e9610544366004611d98565b610e1f565b6102d9610557366004611b34565b610fa7565b34801561056857600080fd5b506102d9610577366004611dcb565b6110fc565b34801561058857600080fd5b506102d9610597366004611e07565b611191565b3480156105a857600080fd5b506102d96105b7366004611e49565b611210565b3480156105c857600080fd5b50600d5461024a9060ff1681565b3480156105e257600080fd5b506105f66105f1366004611b34565b61125a565b6040516102569190611f25565b34801561060f57600080fd5b506102d961061e366004611b34565b6112e2565b34801561062f57600080fd5b5061027461063e366004611b34565b6112ef565b34801561064f57600080fd5b506102f160125481565b34801561066557600080fd5b506102f1610674366004611d45565b611372565b34801561068557600080fd5b506102d9610694366004611b34565b61137d565b3480156106a557600080fd5b506102f16106b4366004611b34565b61138a565b3480156106c557600080fd5b5061024a6106d4366004611f33565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561070e57600080fd5b506102d961071d366004611d45565b6113ea565b600061072d82611460565b8061073c575061073c826114ae565b92915050565b60606002805461075190611f5d565b80601f016020809104026020016040519081016040528092919081815260200182805461077d90611f5d565b80156107ca5780601f1061079f576101008083540402835291602001916107ca565b820191906000526020600020905b8154815290600101906020018083116107ad57829003601f168201915b5050505050905090565b60006107df826114e3565b6107fc576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061082382610c8c565b9050336001600160a01b0382161461085c5761083f81336106d4565b61085c576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006108c382611518565b9050836001600160a01b0316816001600160a01b0316146108f65760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176109435761092686336106d4565b61094357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661096a57604051633a954ecd60e21b815260040160405180910390fd5b801561097557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610a0757600184016000818152600460205260408120549003610a05576000548114610a055760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ac55750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ae4906001600160601b031687611fad565b610aee9190611fcc565b915196919550909350505050565b610b04611587565b604051600090339047908381818185875af1925050503d8060008114610b46576040519150601f19603f3d011682016040523d82523d6000602084013e610b4b565b606091505b5050905080610b6d576040516327fcd9d160e01b815260040160405180910390fd5b50565b610b8b83838360405180602001604052806000815250611210565b505050565b610b98611587565b600d805460ff19811660ff90911615179055565b610bb4611587565b610b8b600c83836119fd565b60608160008167ffffffffffffffff811115610bde57610bde611e33565b604051908082528060200260200182016040528015610c3057816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610bfc5790505b50905060005b828114610c8357610c5e868683818110610c5257610c52611fee565b9050602002013561125a565b828281518110610c7057610c70611fee565b6020908102919091010152600101610c36565b50949350505050565b600061073c82611518565b610c9f611587565b601255565b60006001600160a01b038216610ccd576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610cfb611587565b610d0560006115e1565b565b60606000806000610d1785610ca4565b905060008167ffffffffffffffff811115610d3457610d34611e33565b604051908082528060200260200182016040528015610d5d578160200160208202803683370190505b509050610d8a60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610e0457610d9d81611633565b91508160400151610dfc5781516001600160a01b031615610dbd57815194505b876001600160a01b0316856001600160a01b031603610dfc5780838780600101985081518110610def57610def611fee565b6020026020010181815250505b600101610d8d565b50909695505050505050565b60606003805461075190611f5d565b6060818310610e4157604051631960ccad60e11b815260040160405180910390fd5b600080610e4d60005490565b90506001851015610e5d57600194505b80841115610e69578093505b6000610e7487610ca4565b905084861015610e935785850381811015610e8d578091505b50610e97565b5060005b60008167ffffffffffffffff811115610eb257610eb2611e33565b604051908082528060200260200182016040528015610edb578160200160208202803683370190505b50905081600003610ef1579350610fa092505050565b6000610efc8861125a565b905060008160400151610f0d575080515b885b888114158015610f1f5750848714155b15610f9457610f2d81611633565b92508260400151610f8c5782516001600160a01b031615610f4d57825191505b8a6001600160a01b0316826001600160a01b031603610f8c5780848880600101995081518110610f7f57610f7f611fee565b6020026020010181815250505b600101610f0f565b50505092835250909150505b9392505050565b323314610ff15760405162461bcd60e51b81526020600482015260136024820152723737ba1037b934b3b4b730b61039b2b73232b960691b60448201526064015b60405180910390fd5b610ff961166f565b60006110048261138a565b600d5490915060ff1661102a5760405163af79b43760e01b815260040160405180910390fd5b601254611038906001612004565b826110466000546000190190565b6110509190612004565b111561106f5760405163d05cb60960e01b815260040160405180910390fd5b60115461107d906001612004565b82611087336116c8565b6110919190612004565b11156110b057604051637ab0312d60e11b815260040160405180910390fd5b6010546110be906001612004565b8211156110de5760405163162d230560e11b815260040160405180910390fd5b6110e833836116f1565b6110f1816117ef565b50610b6d6001600855565b336001600160a01b038316036111255760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611199611587565b60125460015460005484919003600019016111b49190612004565b11156112025760405162461bcd60e51b815260206004820152601a60248201527f64657620796f752073686f756c64206b6e6f77206265747465720000000000006044820152606401610fe8565b61120c81836116f1565b5050565b61121b8484846108b8565b6001600160a01b0383163b15611254576112378484848461184e565b611254576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608081018252600080825260208201819052918101829052606081019190915260408051608081018252600080825260208201819052918101829052606081019190915260018310806112b357506000548310155b156112be5792915050565b6112c783611633565b90508060400151156112d95792915050565b610fa083611939565b6112ea611587565b601055565b60606112fa826114e3565b61131757604051630a14c4b560e41b815260040160405180910390fd5b600061132161196e565b905080516000036113415760405180602001604052806000815250610fa0565b8061134b8461197d565b60405160200161135c92919061201c565b6040516020818303038152906040529392505050565b600061073c826116c8565b611385611587565b601155565b600080611396336116c8565b90506000600f5482106113aa5760006113b8565b81600f546113b8919061204b565b90508084106113e0576113cb818561204b565b600e546113d89190611fad565b949350505050565b5060009392505050565b6113f2611587565b6001600160a01b0381166114575760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610fe8565b610b6d816115e1565b60006301ffc9a760e01b6001600160e01b03198316148061149157506380ac58cd60e01b6001600160e01b03198316145b8061073c5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061073c57506301ffc9a760e01b6001600160e01b031983161461073c565b6000816001111580156114f7575060005482105b801561073c575050600090815260046020526040902054600160e01b161590565b6000818060011161156e5760005481101561156e5760008181526004602052604081205490600160e01b8216900361156c575b80600003610fa057506000190160008181526004602052604090205461154b565b505b604051636f96cda160e11b815260040160405180910390fd5b600b546001600160a01b03163314610d055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610fe8565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461073c906119b5565b6002600854036116c15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610fe8565b6002600855565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b60008054908290036117165760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146117c557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161178d565b50816000036117e657604051622e076360e81b815260040160405180910390fd5b60005550505050565b803410156118105760405163cd1c886760e01b815260040160405180910390fd5b80341115610b6d57336108fc611826833461204b565b6040518115909202916000818181858888f1935050505015801561120c573d6000803e3d6000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611883903390899088908890600401612062565b6020604051808303816000875af19250505080156118be575060408051601f3d908101601f191682019092526118bb9181019061209f565b60015b61191c573d8080156118ec576040519150601f19603f3d011682016040523d82523d6000602084013e6118f1565b606091505b508051600003611914576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60408051608081018252600080825260208201819052918101829052606081019190915261073c61196983611518565b6119b5565b6060600c805461075190611f5d565b604080516080019081905280825b600183039250600a81066030018353600a90048061198b5750819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b828054611a0990611f5d565b90600052602060002090601f016020900481019282611a2b5760008555611a71565b82601f10611a445782800160ff19823516178555611a71565b82800160010185558215611a71579182015b82811115611a71578235825591602001919060010190611a56565b50611a7d929150611a81565b5090565b5b80821115611a7d5760008155600101611a82565b6001600160e01b031981168114610b6d57600080fd5b600060208284031215611abe57600080fd5b8135610fa081611a96565b60005b83811015611ae4578181015183820152602001611acc565b838111156112545750506000910152565b60008151808452611b0d816020860160208601611ac9565b601f01601f19169290920160200192915050565b602081526000610fa06020830184611af5565b600060208284031215611b4657600080fd5b5035919050565b80356001600160a01b0381168114611b6457600080fd5b919050565b60008060408385031215611b7c57600080fd5b611b8583611b4d565b946020939093013593505050565b600080600060608486031215611ba857600080fd5b611bb184611b4d565b9250611bbf60208501611b4d565b9150604084013590509250925092565b60008060408385031215611be257600080fd5b50508035926020909101359150565b60008060208385031215611c0457600080fd5b823567ffffffffffffffff80821115611c1c57600080fd5b818501915085601f830112611c3057600080fd5b813581811115611c3f57600080fd5b866020828501011115611c5157600080fd5b60209290920196919550909350505050565b60008060208385031215611c7657600080fd5b823567ffffffffffffffff80821115611c8e57600080fd5b818501915085601f830112611ca257600080fd5b813581811115611cb157600080fd5b8660208260051b8501011115611c5157600080fd5b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610e0457611d32838551611cc6565b9284019260809290920191600101611d1f565b600060208284031215611d5757600080fd5b610fa082611b4d565b6020808252825182820181905260009190848201906040850190845b81811015610e0457835183529284019291840191600101611d7c565b600080600060608486031215611dad57600080fd5b611db684611b4d565b95602085013595506040909401359392505050565b60008060408385031215611dde57600080fd5b611de783611b4d565b915060208301358015158114611dfc57600080fd5b809150509250929050565b60008060408385031215611e1a57600080fd5b82359150611e2a60208401611b4d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611e5f57600080fd5b611e6885611b4d565b9350611e7660208601611b4d565b925060408501359150606085013567ffffffffffffffff80821115611e9a57600080fd5b818701915087601f830112611eae57600080fd5b813581811115611ec057611ec0611e33565b604051601f8201601f19908116603f01168101908382118183101715611ee857611ee8611e33565b816040528281528a6020848701011115611f0157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6080810161073c8284611cc6565b60008060408385031215611f4657600080fd5b611f4f83611b4d565b9150611e2a60208401611b4d565b600181811c90821680611f7157607f821691505b602082108103611f9157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611fc757611fc7611f97565b500290565b600082611fe957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000821982111561201757612017611f97565b500190565b6000835161202e818460208801611ac9565b835190830190612042818360208801611ac9565b01949350505050565b60008282101561205d5761205d611f97565b500390565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061209590830184611af5565b9695505050505050565b6000602082840312156120b157600080fd5b8151610fa081611a9656fea26469706673582212209467a2fe6a517bf32f31a2373ded0a71470582126b44b12c92fa8ee341df318064736f6c634300080d0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef697066733a2f2f516d57573359466e645170646756555a5434625775364874774e4c6f5a4877456a514463526d4e7839566f5553382f
Deployed Bytecode
0x6080604052600436106102255760003560e01c8063715018a611610123578063beb9716d116100ab578063dc33e6811161006f578063dc33e68114610659578063e268e4d314610679578063e757223014610699578063e985e9c5146106b9578063f2fde38b1461070257600080fd5b8063beb9716d146105bc578063c23dc68f146105d6578063c6f6f21614610603578063c87b56dd14610623578063d85d7f5b1461064357600080fd5b806399a2557a116100f257806399a2557a14610529578063a0712d6814610549578063a22cb4651461055c578063adb0f5881461057c578063b88d4fde1461059c57600080fd5b8063715018a6146104b45780638462151c146104c95780638da5cb5b146104f657806395d89b411461051457600080fd5b806342842e0e116101b15780635b74efcf116101755780635b74efcf146104115780635bbb2177146104275780636352211e146104545780636f8b44b01461047457806370a082311461049457600080fd5b806342842e0e14610390578063453c2310146103b057806346b253e4146103c65780634b980d67146103db57806355f804b3146103f157600080fd5b806313faede6116101f857806313faede6146102db57806318160ddd146102ff57806323b872dd1461031c5780632a55205a1461033c5780633ccfd60b1461037b57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a610245366004611aac565b610722565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b50610274610742565b6040516102569190611b21565b34801561028d57600080fd5b506102a161029c366004611b34565b6107d4565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d4366004611b69565b610818565b005b3480156102e757600080fd5b506102f1600e5481565b604051908152602001610256565b34801561030b57600080fd5b5060015460005403600019016102f1565b34801561032857600080fd5b506102d9610337366004611b93565b6108b8565b34801561034857600080fd5b5061035c610357366004611bcf565b610a50565b604080516001600160a01b039093168352602083019190915201610256565b34801561038757600080fd5b506102d9610afc565b34801561039c57600080fd5b506102d96103ab366004611b93565b610b70565b3480156103bc57600080fd5b506102f160115481565b3480156103d257600080fd5b506102d9610b90565b3480156103e757600080fd5b506102f160105481565b3480156103fd57600080fd5b506102d961040c366004611bf1565b610bac565b34801561041d57600080fd5b506102f1600f5481565b34801561043357600080fd5b50610447610442366004611c63565b610bc0565b6040516102569190611d03565b34801561046057600080fd5b506102a161046f366004611b34565b610c8c565b34801561048057600080fd5b506102d961048f366004611b34565b610c97565b3480156104a057600080fd5b506102f16104af366004611d45565b610ca4565b3480156104c057600080fd5b506102d9610cf3565b3480156104d557600080fd5b506104e96104e4366004611d45565b610d07565b6040516102569190611d60565b34801561050257600080fd5b50600b546001600160a01b03166102a1565b34801561052057600080fd5b50610274610e10565b34801561053557600080fd5b506104e9610544366004611d98565b610e1f565b6102d9610557366004611b34565b610fa7565b34801561056857600080fd5b506102d9610577366004611dcb565b6110fc565b34801561058857600080fd5b506102d9610597366004611e07565b611191565b3480156105a857600080fd5b506102d96105b7366004611e49565b611210565b3480156105c857600080fd5b50600d5461024a9060ff1681565b3480156105e257600080fd5b506105f66105f1366004611b34565b61125a565b6040516102569190611f25565b34801561060f57600080fd5b506102d961061e366004611b34565b6112e2565b34801561062f57600080fd5b5061027461063e366004611b34565b6112ef565b34801561064f57600080fd5b506102f160125481565b34801561066557600080fd5b506102f1610674366004611d45565b611372565b34801561068557600080fd5b506102d9610694366004611b34565b61137d565b3480156106a557600080fd5b506102f16106b4366004611b34565b61138a565b3480156106c557600080fd5b5061024a6106d4366004611f33565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561070e57600080fd5b506102d961071d366004611d45565b6113ea565b600061072d82611460565b8061073c575061073c826114ae565b92915050565b60606002805461075190611f5d565b80601f016020809104026020016040519081016040528092919081815260200182805461077d90611f5d565b80156107ca5780601f1061079f576101008083540402835291602001916107ca565b820191906000526020600020905b8154815290600101906020018083116107ad57829003601f168201915b5050505050905090565b60006107df826114e3565b6107fc576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061082382610c8c565b9050336001600160a01b0382161461085c5761083f81336106d4565b61085c576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006108c382611518565b9050836001600160a01b0316816001600160a01b0316146108f65760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176109435761092686336106d4565b61094357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661096a57604051633a954ecd60e21b815260040160405180910390fd5b801561097557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610a0757600184016000818152600460205260408120549003610a05576000548114610a055760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ac55750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610ae4906001600160601b031687611fad565b610aee9190611fcc565b915196919550909350505050565b610b04611587565b604051600090339047908381818185875af1925050503d8060008114610b46576040519150601f19603f3d011682016040523d82523d6000602084013e610b4b565b606091505b5050905080610b6d576040516327fcd9d160e01b815260040160405180910390fd5b50565b610b8b83838360405180602001604052806000815250611210565b505050565b610b98611587565b600d805460ff19811660ff90911615179055565b610bb4611587565b610b8b600c83836119fd565b60608160008167ffffffffffffffff811115610bde57610bde611e33565b604051908082528060200260200182016040528015610c3057816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610bfc5790505b50905060005b828114610c8357610c5e868683818110610c5257610c52611fee565b9050602002013561125a565b828281518110610c7057610c70611fee565b6020908102919091010152600101610c36565b50949350505050565b600061073c82611518565b610c9f611587565b601255565b60006001600160a01b038216610ccd576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610cfb611587565b610d0560006115e1565b565b60606000806000610d1785610ca4565b905060008167ffffffffffffffff811115610d3457610d34611e33565b604051908082528060200260200182016040528015610d5d578160200160208202803683370190505b509050610d8a60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614610e0457610d9d81611633565b91508160400151610dfc5781516001600160a01b031615610dbd57815194505b876001600160a01b0316856001600160a01b031603610dfc5780838780600101985081518110610def57610def611fee565b6020026020010181815250505b600101610d8d565b50909695505050505050565b60606003805461075190611f5d565b6060818310610e4157604051631960ccad60e11b815260040160405180910390fd5b600080610e4d60005490565b90506001851015610e5d57600194505b80841115610e69578093505b6000610e7487610ca4565b905084861015610e935785850381811015610e8d578091505b50610e97565b5060005b60008167ffffffffffffffff811115610eb257610eb2611e33565b604051908082528060200260200182016040528015610edb578160200160208202803683370190505b50905081600003610ef1579350610fa092505050565b6000610efc8861125a565b905060008160400151610f0d575080515b885b888114158015610f1f5750848714155b15610f9457610f2d81611633565b92508260400151610f8c5782516001600160a01b031615610f4d57825191505b8a6001600160a01b0316826001600160a01b031603610f8c5780848880600101995081518110610f7f57610f7f611fee565b6020026020010181815250505b600101610f0f565b50505092835250909150505b9392505050565b323314610ff15760405162461bcd60e51b81526020600482015260136024820152723737ba1037b934b3b4b730b61039b2b73232b960691b60448201526064015b60405180910390fd5b610ff961166f565b60006110048261138a565b600d5490915060ff1661102a5760405163af79b43760e01b815260040160405180910390fd5b601254611038906001612004565b826110466000546000190190565b6110509190612004565b111561106f5760405163d05cb60960e01b815260040160405180910390fd5b60115461107d906001612004565b82611087336116c8565b6110919190612004565b11156110b057604051637ab0312d60e11b815260040160405180910390fd5b6010546110be906001612004565b8211156110de5760405163162d230560e11b815260040160405180910390fd5b6110e833836116f1565b6110f1816117ef565b50610b6d6001600855565b336001600160a01b038316036111255760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611199611587565b60125460015460005484919003600019016111b49190612004565b11156112025760405162461bcd60e51b815260206004820152601a60248201527f64657620796f752073686f756c64206b6e6f77206265747465720000000000006044820152606401610fe8565b61120c81836116f1565b5050565b61121b8484846108b8565b6001600160a01b0383163b15611254576112378484848461184e565b611254576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608081018252600080825260208201819052918101829052606081019190915260408051608081018252600080825260208201819052918101829052606081019190915260018310806112b357506000548310155b156112be5792915050565b6112c783611633565b90508060400151156112d95792915050565b610fa083611939565b6112ea611587565b601055565b60606112fa826114e3565b61131757604051630a14c4b560e41b815260040160405180910390fd5b600061132161196e565b905080516000036113415760405180602001604052806000815250610fa0565b8061134b8461197d565b60405160200161135c92919061201c565b6040516020818303038152906040529392505050565b600061073c826116c8565b611385611587565b601155565b600080611396336116c8565b90506000600f5482106113aa5760006113b8565b81600f546113b8919061204b565b90508084106113e0576113cb818561204b565b600e546113d89190611fad565b949350505050565b5060009392505050565b6113f2611587565b6001600160a01b0381166114575760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610fe8565b610b6d816115e1565b60006301ffc9a760e01b6001600160e01b03198316148061149157506380ac58cd60e01b6001600160e01b03198316145b8061073c5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061073c57506301ffc9a760e01b6001600160e01b031983161461073c565b6000816001111580156114f7575060005482105b801561073c575050600090815260046020526040902054600160e01b161590565b6000818060011161156e5760005481101561156e5760008181526004602052604081205490600160e01b8216900361156c575b80600003610fa057506000190160008181526004602052604090205461154b565b505b604051636f96cda160e11b815260040160405180910390fd5b600b546001600160a01b03163314610d055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610fe8565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461073c906119b5565b6002600854036116c15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610fe8565b6002600855565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b60008054908290036117165760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146117c557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161178d565b50816000036117e657604051622e076360e81b815260040160405180910390fd5b60005550505050565b803410156118105760405163cd1c886760e01b815260040160405180910390fd5b80341115610b6d57336108fc611826833461204b565b6040518115909202916000818181858888f1935050505015801561120c573d6000803e3d6000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611883903390899088908890600401612062565b6020604051808303816000875af19250505080156118be575060408051601f3d908101601f191682019092526118bb9181019061209f565b60015b61191c573d8080156118ec576040519150601f19603f3d011682016040523d82523d6000602084013e6118f1565b606091505b508051600003611914576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60408051608081018252600080825260208201819052918101829052606081019190915261073c61196983611518565b6119b5565b6060600c805461075190611f5d565b604080516080019081905280825b600183039250600a81066030018353600a90048061198b5750819003601f19909101908152919050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b828054611a0990611f5d565b90600052602060002090601f016020900481019282611a2b5760008555611a71565b82601f10611a445782800160ff19823516178555611a71565b82800160010185558215611a71579182015b82811115611a71578235825591602001919060010190611a56565b50611a7d929150611a81565b5090565b5b80821115611a7d5760008155600101611a82565b6001600160e01b031981168114610b6d57600080fd5b600060208284031215611abe57600080fd5b8135610fa081611a96565b60005b83811015611ae4578181015183820152602001611acc565b838111156112545750506000910152565b60008151808452611b0d816020860160208601611ac9565b601f01601f19169290920160200192915050565b602081526000610fa06020830184611af5565b600060208284031215611b4657600080fd5b5035919050565b80356001600160a01b0381168114611b6457600080fd5b919050565b60008060408385031215611b7c57600080fd5b611b8583611b4d565b946020939093013593505050565b600080600060608486031215611ba857600080fd5b611bb184611b4d565b9250611bbf60208501611b4d565b9150604084013590509250925092565b60008060408385031215611be257600080fd5b50508035926020909101359150565b60008060208385031215611c0457600080fd5b823567ffffffffffffffff80821115611c1c57600080fd5b818501915085601f830112611c3057600080fd5b813581811115611c3f57600080fd5b866020828501011115611c5157600080fd5b60209290920196919550909350505050565b60008060208385031215611c7657600080fd5b823567ffffffffffffffff80821115611c8e57600080fd5b818501915085601f830112611ca257600080fd5b813581811115611cb157600080fd5b8660208260051b8501011115611c5157600080fd5b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015610e0457611d32838551611cc6565b9284019260809290920191600101611d1f565b600060208284031215611d5757600080fd5b610fa082611b4d565b6020808252825182820181905260009190848201906040850190845b81811015610e0457835183529284019291840191600101611d7c565b600080600060608486031215611dad57600080fd5b611db684611b4d565b95602085013595506040909401359392505050565b60008060408385031215611dde57600080fd5b611de783611b4d565b915060208301358015158114611dfc57600080fd5b809150509250929050565b60008060408385031215611e1a57600080fd5b82359150611e2a60208401611b4d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611e5f57600080fd5b611e6885611b4d565b9350611e7660208601611b4d565b925060408501359150606085013567ffffffffffffffff80821115611e9a57600080fd5b818701915087601f830112611eae57600080fd5b813581811115611ec057611ec0611e33565b604051601f8201601f19908116603f01168101908382118183101715611ee857611ee8611e33565b816040528281528a6020848701011115611f0157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6080810161073c8284611cc6565b60008060408385031215611f4657600080fd5b611f4f83611b4d565b9150611e2a60208401611b4d565b600181811c90821680611f7157607f821691505b602082108103611f9157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611fc757611fc7611f97565b500290565b600082611fe957634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000821982111561201757612017611f97565b500190565b6000835161202e818460208801611ac9565b835190830190612042818360208801611ac9565b01949350505050565b60008282101561205d5761205d611f97565b500390565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061209590830184611af5565b9695505050505050565b6000602082840312156120b157600080fd5b8151610fa081611a9656fea26469706673582212209467a2fe6a517bf32f31a2373ded0a71470582126b44b12c92fa8ee341df318064736f6c634300080d0033
Deployed Bytecode Sourcemap
108759:3565:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111872:447;;;;;;;;;;-1:-1:-1;111872:447:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;111872:447:0;;;;;;;;53960:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;60443:218::-;;;;;;;;;;-1:-1:-1;60443:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;60443:218:0;1528:203:1;59884:400:0;;;;;;;;;;-1:-1:-1;59884:400:0;;;;;:::i;:::-;;:::i;:::-;;109021:31;;;;;;;;;;;;;;;;;;;2319:25:1;;;2307:2;2292:18;109021:31:0;2173:177:1;49711:323:0;;;;;;;;;;-1:-1:-1;110977:1:0;49985:12;49772:7;49969:13;:28;-1:-1:-1;;49969:46:0;49711:323;;64156:2817;;;;;;;;;;-1:-1:-1;64156:2817:0;;;;;:::i;:::-;;:::i;8162:442::-;;;;;;;;;;-1:-1:-1;8162:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3133:32:1;;;3115:51;;3197:2;3182:18;;3175:34;;;;3088:18;8162:442:0;2941:274:1;111688:176:0;;;;;;;;;;;;;:::i;67069:185::-;;;;;;;;;;-1:-1:-1;67069:185:0;;;;;:::i;:::-;;:::i;109136:29::-;;;;;;;;;;;;;;;;111362:81;;;;;;;;;;;;;:::i;109095:34::-;;;;;;;;;;;;;;;;111572:108;;;;;;;;;;-1:-1:-1;111572:108:0;;;;;:::i;:::-;;:::i;109059:29::-;;;;;;;;;;;;;;;;95628:528;;;;;;;;;;-1:-1:-1;95628:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;55353:152::-;;;;;;;;;;-1:-1:-1;55353:152:0;;;;;:::i;:::-;;:::i;111249:105::-;;;;;;;;;;-1:-1:-1;111249:105: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;;54136:104;;;;;;;;;;;;;:::i;96544:2513::-;;;;;;;;;;-1:-1:-1;96544:2513:0;;;;;:::i;:::-;;:::i;109450:518::-;;;;;;:::i;:::-;;:::i;61001:308::-;;;;;;;;;;-1:-1:-1;61001:308:0;;;;;:::i;:::-;;:::i;110516:237::-;;;;;;;;;;-1:-1:-1;110516:237:0;;;;;:::i;:::-;;:::i;67852:399::-;;;;;;;;;;-1:-1:-1;67852:399:0;;;;;:::i;:::-;;:::i;108987:27::-;;;;;;;;;;-1:-1:-1;108987:27:0;;;;;;;;95041:428;;;;;;;;;;-1:-1:-1;95041:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;110994:125::-;;;;;;;;;;-1:-1:-1;110994:125:0;;;;;:::i;:::-;;:::i;54346:318::-;;;;;;;;;;-1:-1:-1;54346:318:0;;;;;:::i;:::-;;:::i;109172:33::-;;;;;;;;;;;;;;;;111451:113;;;;;;;;;;-1:-1:-1;111451:113:0;;;;;:::i;:::-;;:::i;111127:114::-;;;;;;;;;;-1:-1:-1;111127:114:0;;;;;:::i;:::-;;:::i;109984:283::-;;;;;;;;;;-1:-1:-1;109984:283: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;111872:447::-;111985:4;112218:38;112244:11;112218:25;:38::i;:::-;:93;;;;112273:38;112299:11;112273:25;:38::i;:::-;112198:113;111872:447;-1:-1:-1;;111872:447: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;;;;;;;;;;;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;111688:176::-;2057:13;:11;:13::i;:::-;111757:49:::1;::::0;111739:12:::1;::::0;111757:10:::1;::::0;111780:21:::1;::::0;111739:12;111757:49;111739:12;111757:49;111780:21;111757:10;:49:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111738:68;;;111822:7;111817:39;;111838:18;;-1:-1:-1::0;;;111838:18:0::1;;;;;;;;;;;111817:39;111727:137;111688:176::o:0;67069:185::-;67207:39;67224:4;67230:2;67234:7;67207:39;;;;;;;;;;;;:16;:39::i;:::-;67069:185;;;:::o;111362:81::-;2057:13;:11;:13::i;:::-;111428:7:::1;::::0;;-1:-1:-1;;111417:18:0;::::1;111428:7;::::0;;::::1;111427:8;111417:18;::::0;;111362:81::o;111572:108::-;2057:13;:11;:13::i;:::-;111648:24:::1;:13;111664:8:::0;;111648: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;111249:105::-;2057:13;:11;:13::i;:::-;111319:14:::1;:27:::0;111249:105::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;110977: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;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;110977:1:0;96947:5;:23;96943:87;;;110977: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;109450:518::-;109375:9;109388:10;109375:23;109367:55;;;;-1:-1:-1;;;109367:55:0;;10555:2:1;109367:55:0;;;10537:21:1;10594:2;10574:18;;;10567:30;-1:-1:-1;;;10613:18:1;;;10606:49;10672:18;;109367:55:0;;;;;;;;;103306:21:::1;:19;:21::i;:::-;109556:10:::2;109569:13;109578:3;109569:8;:13::i;:::-;109600:7;::::0;109556:26;;-1:-1:-1;109600:7:0::2;;109595:38;;109616:17;;-1:-1:-1::0;;;109616:17:0::2;;;;;;;;;;;109595:38;109671:14;::::0;:18:::2;::::0;109688:1:::2;109671:18;:::i;:::-;109665:3;109648:14;50187:7:::0;50378:13;-1:-1:-1;;50378:31:0;;50132:296;109648:14:::2;:20;;;;:::i;:::-;:41;109644:72;;;109698:18;;-1:-1:-1::0;;;109698:18:0::2;;;;;;;;;;;109644:72;109765:12;::::0;:16:::2;::::0;109780:1:::2;109765:16;:::i;:::-;109759:3;109731:25;109745:10;109731:13;:25::i;:::-;:31;;;;:::i;:::-;:50;109727:85;;;109790:22;;-1:-1:-1::0;;;109790:22:0::2;;;;;;;;;;;109727:85;109833:17;::::0;:21:::2;::::0;109853:1:::2;109833:21;:::i;:::-;109827:3;:27;109823:66;;;109863:26;;-1:-1:-1::0;;;109863:26:0::2;;;;;;;;;;;109823:66;109902:22;109908:10;109920:3;109902:5;:22::i;:::-;109935:25;109954:5;109935:18;:25::i;:::-;109545:423;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;110516:237::-;2057:13;:11;:13::i;:::-;110647:14:::1;::::0;110977:1;49985:12;49772:7;49969:13;110635:8;;49969:28;;-1:-1:-1;;49969:46:0;110619:24:::1;;;;:::i;:::-;:42;;110597:118;;;::::0;-1:-1:-1;;;110597:118:0;;11036:2:1;110597:118:0::1;::::0;::::1;11018:21:1::0;11075:2;11055:18;;;11048:30;11114:28;11094:18;;;11087:56;11160:18;;110597:118:0::1;10834:350:1::0;110597:118:0::1;110726:19;110732:2;110736:8;110726:5;:19::i;:::-;110516:237:::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;95041:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110977: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;110994:125::-;2057:13;:11;:13::i;:::-;111073:17:::1;:38:::0;110994:125::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;111451:113::-;111509:7;111536:20;111550:5;111536:13;:20::i;111127:114::-;2057:13;:11;:13::i;:::-;111205:12:::1;:28:::0;111127:114::o;109984:283::-;110033:4;110048:14;110065:25;110079:10;110065:13;:25::i;:::-;110048:42;;110099:9;110123:13;;110111:9;:25;:57;;110167:1;110111:57;;;110155:9;110139:13;;:25;;;;:::i;:::-;110099:69;;110188:4;110181:3;:11;110177:66;;110222:10;110228:4;110222:3;:10;:::i;:::-;110213:4;;110212:21;;;;:::i;:::-;110205:28;109984:283;-1:-1:-1;;;;109984:283:0:o;110177:66::-;-1:-1:-1;110258:1:0;;109984:283;-1:-1:-1;;;109984:283:0:o;3077:201::-;2057:13;:11;:13::i;:::-;-1:-1:-1;;;;;3166:22:0;::::1;3158:73;;;::::0;-1:-1:-1;;;3158:73:0;;11996:2:1;3158:73:0::1;::::0;::::1;11978:21:1::0;12035:2;12015:18;;;12008:30;12074:34;12054:18;;;12047:62;-1:-1:-1;;;12125:18:1;;;12118:36;12171:19;;3158:73:0::1;11794: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;110977: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;;110977: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;;12403:2:1;2392:68:0;;;12385:21:1;;;12422:18;;;12415:30;12481:34;12461:18;;;12454:62;12533:18;;2392:68:0;12201: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;103386:293::-;102788:1;103520:7;;:19;103512:63;;;;-1:-1:-1;;;103512:63:0;;12764:2:1;103512:63:0;;;12746:21:1;12803:2;12783:18;;;12776:30;12842:33;12822:18;;;12815:61;12893:18;;103512:63:0;12562: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;110275:233::-;110355:6;110343:9;:18;110339:52;;;110370:21;;-1:-1:-1;;;110370:21:0;;;;;;;;;;;110339:52;110418:6;110406:9;:18;110402:99;;;110449:10;110441:48;110470:18;110482:6;110470:9;:18;:::i;:::-;110441: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;110761:114::-;110821:13;110854;110847: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;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::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:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2688:248::-;2756:6;2764;2817:2;2805:9;2796:7;2792:23;2788:32;2785:52;;;2833:1;2830;2823:12;2785:52;-1:-1:-1;;2856:23:1;;;2926:2;2911:18;;;2898:32;;-1:-1:-1;2688:248:1:o;3220:592::-;3291:6;3299;3352:2;3340:9;3331:7;3327:23;3323:32;3320:52;;;3368:1;3365;3358:12;3320:52;3408:9;3395:23;3437:18;3478:2;3470:6;3467:14;3464:34;;;3494:1;3491;3484:12;3464:34;3532:6;3521:9;3517:22;3507:32;;3577:7;3570:4;3566:2;3562:13;3558:27;3548:55;;3599:1;3596;3589:12;3548:55;3639:2;3626:16;3665:2;3657:6;3654:14;3651:34;;;3681:1;3678;3671:12;3651:34;3726:7;3721:2;3712:6;3708:2;3704:15;3700:24;3697:37;3694:57;;;3747:1;3744;3737:12;3694:57;3778:2;3770:11;;;;;3800:6;;-1:-1:-1;3220:592:1;;-1:-1:-1;;;;3220:592:1:o;3817:615::-;3903:6;3911;3964:2;3952:9;3943:7;3939:23;3935:32;3932:52;;;3980:1;3977;3970:12;3932:52;4020:9;4007:23;4049:18;4090:2;4082:6;4079:14;4076:34;;;4106:1;4103;4096:12;4076:34;4144:6;4133:9;4129:22;4119:32;;4189:7;4182:4;4178:2;4174:13;4170:27;4160:55;;4211:1;4208;4201:12;4160:55;4251:2;4238:16;4277:2;4269:6;4266:14;4263:34;;;4293:1;4290;4283:12;4263:34;4346:7;4341:2;4331:6;4328:1;4324:14;4320:2;4316:23;4312:32;4309:45;4306:65;;;4367:1;4364;4357:12;4437:349;4521:12;;-1:-1:-1;;;;;4517:38:1;4505:51;;4609:4;4598:16;;;4592:23;4617:18;4588:48;4572:14;;;4565:72;4700:4;4689:16;;;4683:23;4676:31;4669:39;4653:14;;;4646:63;4762:4;4751:16;;;4745:23;4770:8;4741:38;4725:14;;4718:62;4437:349::o;4791:724::-;5026:2;5078:21;;;5148:13;;5051:18;;;5170:22;;;4997:4;;5026:2;5249:15;;;;5223:2;5208:18;;;4997:4;5292:197;5306:6;5303:1;5300:13;5292:197;;;5355:52;5403:3;5394:6;5388:13;5355:52;:::i;:::-;5464:15;;;;5436:4;5427:14;;;;;5328:1;5321:9;5292:197;;5520:186;5579:6;5632:2;5620:9;5611:7;5607:23;5603:32;5600:52;;;5648:1;5645;5638:12;5600:52;5671:29;5690:9;5671:29;:::i;5711:632::-;5882:2;5934:21;;;6004:13;;5907:18;;;6026:22;;;5853:4;;5882:2;6105:15;;;;6079:2;6064:18;;;5853:4;6148:169;6162:6;6159:1;6156:13;6148:169;;;6223:13;;6211:26;;6292:15;;;;6257:12;;;;6184:1;6177:9;6148:169;;6348:322;6425:6;6433;6441;6494:2;6482:9;6473:7;6469:23;6465:32;6462:52;;;6510:1;6507;6500:12;6462:52;6533:29;6552:9;6533:29;:::i;:::-;6523:39;6609:2;6594:18;;6581:32;;-1:-1:-1;6660:2:1;6645:18;;;6632:32;;6348:322;-1:-1:-1;;;6348:322:1:o;6675:347::-;6740:6;6748;6801:2;6789:9;6780:7;6776:23;6772:32;6769:52;;;6817:1;6814;6807:12;6769:52;6840:29;6859:9;6840:29;:::i;:::-;6830:39;;6919:2;6908:9;6904:18;6891:32;6966:5;6959:13;6952:21;6945:5;6942:32;6932:60;;6988:1;6985;6978:12;6932:60;7011:5;7001:15;;;6675:347;;;;;:::o;7027:254::-;7095:6;7103;7156:2;7144:9;7135:7;7131:23;7127:32;7124:52;;;7172:1;7169;7162:12;7124:52;7208:9;7195:23;7185:33;;7237:38;7271:2;7260:9;7256:18;7237:38;:::i;:::-;7227:48;;7027:254;;;;;:::o;7286:127::-;7347:10;7342:3;7338:20;7335:1;7328:31;7378:4;7375:1;7368:15;7402:4;7399:1;7392:15;7418:1138;7513:6;7521;7529;7537;7590:3;7578:9;7569:7;7565:23;7561:33;7558:53;;;7607:1;7604;7597:12;7558:53;7630:29;7649:9;7630:29;:::i;:::-;7620:39;;7678:38;7712:2;7701:9;7697:18;7678:38;:::i;:::-;7668:48;;7763:2;7752:9;7748:18;7735:32;7725:42;;7818:2;7807:9;7803:18;7790:32;7841:18;7882:2;7874:6;7871:14;7868:34;;;7898:1;7895;7888:12;7868:34;7936:6;7925:9;7921:22;7911:32;;7981:7;7974:4;7970:2;7966:13;7962:27;7952:55;;8003:1;8000;7993:12;7952:55;8039:2;8026:16;8061:2;8057;8054:10;8051:36;;;8067:18;;:::i;:::-;8142:2;8136:9;8110:2;8196:13;;-1:-1:-1;;8192:22:1;;;8216:2;8188:31;8184:40;8172:53;;;8240:18;;;8260:22;;;8237:46;8234:72;;;8286:18;;:::i;:::-;8326:10;8322:2;8315:22;8361:2;8353:6;8346:18;8401:7;8396:2;8391;8387;8383:11;8379:20;8376:33;8373:53;;;8422:1;8419;8412:12;8373:53;8478:2;8473;8469;8465:11;8460:2;8452:6;8448:15;8435:46;8523:1;8518:2;8513;8505:6;8501:15;8497:24;8490:35;8544:6;8534:16;;;;;;;7418:1138;;;;;;;:::o;8561:268::-;8759:3;8744:19;;8772:51;8748:9;8805:6;8772:51;:::i;8834:260::-;8902:6;8910;8963:2;8951:9;8942:7;8938:23;8934:32;8931:52;;;8979:1;8976;8969:12;8931:52;9002:29;9021:9;9002:29;:::i;:::-;8992:39;;9050:38;9084:2;9073:9;9069:18;9050:38;:::i;9099:380::-;9178:1;9174:12;;;;9221;;;9242:61;;9296:4;9288:6;9284:17;9274:27;;9242:61;9349:2;9341:6;9338:14;9318:18;9315:38;9312:161;;9395:10;9390:3;9386:20;9383:1;9376:31;9430:4;9427:1;9420:15;9458:4;9455:1;9448:15;9312:161;;9099:380;;;:::o;9484:127::-;9545:10;9540:3;9536:20;9533:1;9526:31;9576:4;9573:1;9566:15;9600:4;9597:1;9590:15;9616:168;9656:7;9722:1;9718;9714:6;9710:14;9707:1;9704:21;9699:1;9692:9;9685:17;9681:45;9678:71;;;9729:18;;:::i;:::-;-1:-1:-1;9769:9:1;;9616:168::o;9789:217::-;9829:1;9855;9845:132;;9899:10;9894:3;9890:20;9887:1;9880:31;9934:4;9931:1;9924:15;9962:4;9959:1;9952:15;9845:132;-1:-1:-1;9991:9:1;;9789:217::o;10221:127::-;10282:10;10277:3;10273:20;10270:1;10263:31;10313:4;10310:1;10303:15;10337:4;10334:1;10327:15;10701:128;10741:3;10772:1;10768:6;10765:1;10762:13;10759:39;;;10778:18;;:::i;:::-;-1:-1:-1;10814:9:1;;10701:128::o;11189:470::-;11368:3;11406:6;11400:13;11422:53;11468:6;11463:3;11456:4;11448:6;11444:17;11422:53;:::i;:::-;11538:13;;11497:16;;;;11560:57;11538:13;11497:16;11594:4;11582:17;;11560:57;:::i;:::-;11633:20;;11189:470;-1:-1:-1;;;;11189:470:1:o;11664:125::-;11704:4;11732:1;11729;11726:8;11723:34;;;11737:18;;:::i;:::-;-1:-1:-1;11774:9:1;;11664:125::o;12922:489::-;-1:-1:-1;;;;;13191:15:1;;;13173:34;;13243:15;;13238:2;13223:18;;13216:43;13290:2;13275:18;;13268:34;;;13338:3;13333:2;13318:18;;13311:31;;;13116:4;;13359:46;;13385:19;;13377:6;13359:46;:::i;:::-;13351:54;12922:489;-1:-1:-1;;;;;;12922:489:1:o;13416:249::-;13485:6;13538:2;13526:9;13517:7;13513:23;13509:32;13506:52;;;13554:1;13551;13544:12;13506:52;13586:9;13580:16;13605:30;13629:5;13605:30;:::i
Swarm Source
ipfs://9467a2fe6a517bf32f31a2373ded0a71470582126b44b12c92fa8ee341df3180
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.