Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
4 TIME
Holders
4
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TIMELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TimeKeepers
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @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]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @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; } }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // 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); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @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); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; import "./strings.sol"; contract TimeKeepers is DefaultOperatorFilterer, ERC721AQueryable, ERC2981, Ownable { using Strings for uint256; uint constant MAX_SUPPLY = 6666; struct Clock { uint color; bool isMinus; uint timeZone; string brand; } mapping(uint256 => Clock) public clocks; mapping(string => bool) public taken; mapping(address => uint) public minted; constructor() ERC721A("TimeKeepers", "TIME") { _setDefaultRoyalty(owner(), 666); claim(2, false, "TIME"); } function claim( uint utcDiff, bool isMinus, string memory brand ) public payable { require(totalSupply() < MAX_SUPPLY, "Max supply reached"); require(minted[msg.sender] < 6, "Max mint per wallet reached"); require(utcDiff < 12, "UTC diff must be less than 12"); string memory cleanBrand = strings.trim(brand); string memory lowerBrand = _toLower(cleanBrand); require(taken[lowerBrand] == false, "Brand name is taken"); require( bytes(cleanBrand).length <= 10, "Brand name must be less than 10 characters" ); uint color = (uint( keccak256(abi.encodePacked(msg.sender, block.timestamp)) ) % 0xFFFFFF) + 1; taken[lowerBrand] = true; minted[msg.sender] += 1; clocks[totalSupply() + 1] = Clock(color, isMinus, utcDiff, cleanBrand); _mint(msg.sender, 1); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function withdraw() public onlyOwner { (bool success,) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function withdrawERC20(address token) public onlyOwner { IERC20(token).transfer(msg.sender, IERC20(token).balanceOf(address(this))); } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721A, IERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function tokenURI( uint256 tokenId ) public view virtual override(ERC721A, IERC721A) returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string[23] memory parts; Clock memory clock = clocks[tokenId]; string memory timezone; uint secondsInHour = 3600; uint secondsInMinute = 60; // get time uint time = block.timestamp; // get hour uint hour = (time / secondsInHour) % 12; // get minute uint minute = (time / secondsInMinute) % 60; // get second uint second = time % 60; if (clock.isMinus) { hour = (hour + 12 - clock.timeZone) % 12; timezone = string(abi.encodePacked("-", clock.timeZone.toString())); } else { hour = (hour + clock.timeZone) % 12; timezone = string(abi.encodePacked("+", clock.timeZone.toString())); } if(clock.timeZone == 0) { timezone = ""; } // get hour hand angle uint hourAngle = (hour * 30) + ((minute * 30) / 60); // get minute hand angle uint minuteAngle = (minute * 6) + ((second * 6) / 60); // get second hand angle uint secondAngle = second * 6; string memory colorHex = Strings.toHexString(clock.color); string memory trimmed = substring(colorHex, 2, bytes(colorHex).length); while (bytes(trimmed).length < 6) { trimmed = string(abi.encodePacked("0", trimmed)); } parts[ 0 ] = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><rect width="1000" height="1000" fill="#'; parts[1] = trimmed; parts[ 2 ] = '"/><text x="500" y="200" font-size="100" font-family="Arial" text-anchor="middle">12</text><text x="850" y="525" font-size="100" font-family="Arial" text-anchor="middle">3</text><text x="500" y="880" font-size="100" font-family="Arial" text-anchor="middle">6</text><text x="160" y="525" font-size="100" font-family="Arial" text-anchor="middle">9</text><circle cx="500" cy="500" r="400" stroke="black" stroke-width="10" fill="none" /><circle cx="500" cy="500" r="10" stroke="black" stroke-width="10" fill="black" /><g transform="rotate('; parts[3] = secondAngle.toString(); parts[ 4 ] = ' 500 500)"><line x1="500" y1="500" x2="500" y2="120" stroke="black" stroke-width="5"/><animateTransform attributeName="transform" type="rotate" from="'; parts[5] = secondAngle.toString(); parts[6] = ' 500 500" to="'; parts[7] = (secondAngle + 360).toString(); parts[ 8 ] = ' 500 500" dur="60s" repeatCount="indefinite" /></g><g transform="rotate('; parts[9] = minuteAngle.toString(); parts[ 10 ] = ' 500 500)"><line x1="500" y1="500" x2="500" y2="175" stroke="black" stroke-width="10"/><animateTransform attributeName="transform" type="rotate" from="'; parts[11] = minuteAngle.toString(); parts[12] = ' 500 500" to="'; parts[13] = (minuteAngle + 360).toString(); parts[ 14 ] = ' 500 500" dur="3600s" repeatCount="indefinite" /></g><g transform="rotate('; parts[15] = hourAngle.toString(); parts[ 16 ] = ' 500 500)"><line x1="500" y1="500" x2="500" y2="250" stroke="black" stroke-width="10"/><animateTransform attributeName="transform" type="rotate" from="'; parts[17] = hourAngle.toString(); parts[18] = ' 500 500" to="'; parts[19] = (hourAngle + 360).toString(); parts[ 20 ] = ' 500 500" dur="43200s" repeatCount="indefinite" /></g><text x="500" y="750" font-size="75" font-family="Arial" text-anchor="middle">'; parts[21] = clock.brand; parts[22] = "</text></svg>"; string memory output = string( abi.encodePacked(parts[0], parts[1], parts[2], parts[3]) ); output = string(abi.encodePacked(output, parts[4], parts[5], parts[6])); output = string(abi.encodePacked(output, parts[7], parts[8], parts[9])); output = string( abi.encodePacked(output, parts[10], parts[11], parts[12]) ); output = string( abi.encodePacked(output, parts[13], parts[14], parts[15]) ); output = string( abi.encodePacked(output, parts[16], parts[17], parts[18]) ); output = string( abi.encodePacked(output, parts[19], parts[20], parts[21]) ); output = string(abi.encodePacked(output, parts[22])); string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "TimeKeeper #', tokenId.toString(), '", "description": "TimeKeepers is a collection of on-chain, mostly accurate clocks. Refresh metadata to get accurate time.", "attributes":[{"trait_type":"timezone", "value": "UTC', timezone, '"}, {"trait_type":"brand", "value":"', clock.brand, '"}, {"trait_type":"color", "value":"', trimmed, '"}], "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}' ) ) ) ); output = string( abi.encodePacked("data:application/json;base64,", json) ); return output; } function _toLower(string memory str) internal pure returns (string memory) { bytes memory bStr = bytes(str); bytes memory bLower = new bytes(bStr.length); for (uint i = 0; i < bStr.length; i++) { // Uppercase character... if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) { // So we add 32 to make it lowercase bLower[i] = bytes1(uint8(bStr[i]) + 32); } else { bLower[i] = bStr[i]; } } return string(bLower); } function substring( string memory str, uint startIndex, uint endIndex ) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex - startIndex); for (uint i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } function setApprovalForAll( address operator, bool approved ) public override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve( address operator, uint256 tokenId ) public payable override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; library strings { function length(string memory _str) internal pure returns (uint256) { return bytes(_str).length; } function charAt(string memory _str, int256 _pos) internal pure returns (string memory _char) { bytes memory _inArr = bytes(_str); uint256 _index; _index = _translateIndex(_pos, _inArr.length); bytes memory _outArr = new bytes(1); _outArr[0] = _inArr[_index]; _char = string(_outArr); } function slice( string memory _str, int256 _start, int256 _end ) internal pure returns (string memory out) { bytes memory _inArr = bytes(_str); uint256 _inArrLen = _inArr.length; uint256 _startPos = _translateIndex(_start, _inArrLen); uint256 _endPos = _translateIndex(_end, _inArrLen); require( _startPos <= _endPos, "Start position must be less than end position" ); bytes memory _outArr = new bytes(_endPos - _startPos); for (uint256 i = _startPos; i < _endPos; i++) { _outArr[i - _startPos] = _inArr[i]; } out = string(_outArr); } function _translateIndex(int256 _index, uint256 _length) private pure returns (uint256 _translated) { if (_index < 0) { _translated = uint256(int256(_length) + _index); } else { _translated = uint256(_index); } require(_translated < _length, "Position out of bounds"); } function ltrim(string memory _in) internal pure returns (string memory) { bytes memory _inArr = bytes(_in); uint256 _inArrLen = _inArr.length; uint256 _start; // Find the index of the first non-whitespace character for (uint256 i = 0; i < _inArrLen; i++) { bytes1 _char = _inArr[i]; if ( _char != 0x20 && // space _char != 0x09 && // tab _char != 0x0a && // line feed _char != 0x0D && // carriage return _char != 0x0B && // vertical tab _char != 0x00 // null ) { _start = i; break; } } bytes memory _outArr = new bytes(_inArrLen - _start); for (uint256 i = _start; i < _inArrLen; i++) { _outArr[i - _start] = _inArr[i]; } return string(_outArr); } function rtrim(string memory _in) internal pure returns (string memory) { bytes memory _inArr = bytes(_in); uint256 _inArrLen = _inArr.length; uint256 _end; // Find the index of the last non-whitespace character for (uint256 i = _inArrLen - 1; i >= 0; i--) { bytes1 _char = _inArr[i]; if ( _char != 0x20 && // space _char != 0x09 && // tab _char != 0x0a && // line feed _char != 0x0D && // carriage return _char != 0x0B && // vertical tab _char != 0x00 // null ) { _end = i; break; } } bytes memory _outArr = new bytes(_end + 1); for (uint256 i = 0; i <= _end; i++) { _outArr[i] = _inArr[i]; } return string(_outArr); } function trim(string memory _in) internal pure returns (string memory) { return ltrim(rtrim(_in)); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @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; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @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); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. 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(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // 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) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 20 }, "metadata": { "bytecodeHash": "none" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"utcDiff","type":"uint256"},{"internalType":"bool","name":"isMinus","type":"bool"},{"internalType":"string","name":"brand","type":"string"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"clocks","outputs":[{"internalType":"uint256","name":"color","type":"uint256"},{"internalType":"bool","name":"isMinus","type":"bool"},{"internalType":"uint256","name":"timeZone","type":"uint256"},{"internalType":"string","name":"brand","type":"string"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"taken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523462000136576200001560c0604052565b600b6080526a54696d654b65657065727360a81b60a05262000036620001e7565b6daaeb6d7670e522a718067333cd4e90813b620000b4575b62000063906200005d62000351565b62000446565b6200006e6001600055565b620000793362000551565b600a5462000090906001600160a01b03166200059a565b620000a46200009e620001e7565b620008c4565b6040516139fe908162000eb18239f35b813b156200013657604051633e9f1edf60e11b8152306004820152733cc6cdda760b79bafa08df41ecfa224f810dceb66024820152916000908390604490829084905af19182156200013057620000639262000112575b506200004e565b8062000122620001299262000151565b8062000539565b386200010b565b62000545565b600080fd5b634e487b7160e01b600052604160045260246000fd5b6001600160401b0381116200016557604052565b6200013b565b604081019081106001600160401b038211176200016557604052565b601f909101601f19168101906001600160401b038211908210176200016557604052565b60405190608082016001600160401b038111838210176200016557604052565b6001600160401b0381116200016557601f01601f191660200190565b60405190620001f6826200016b565b600482526354494d4560e01b6020830152565b90600182811c921680156200023b575b60208310146200022557565b634e487b7160e01b600052602260045260246000fd5b91607f169162000219565b601f811162000253575050565b6000906002825260208220906020601f850160051c8301941062000294575b601f0160051c01915b8281106200028857505050565b8181556001016200027b565b909250829062000272565b601f8111620002ac575050565b6000906003825260208220906020601f850160051c83019410620002ed575b601f0160051c01915b828110620002e157505050565b818155600101620002d4565b9092508290620002cb565b90601f81116200030757505050565b600091825260208220906020601f850160051c8301941062000346575b601f0160051c01915b8281106200033a57505050565b8181556001016200032d565b909250829062000324565b608080519091906001600160401b03811162000165576200037f816200037960025462000209565b62000246565b602080601f8311600114620003be5750819293600092620003b2575b50508160011b916000199060031b1c191617600255565b0151905038806200039b565b6002600052601f198316949091907f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace926000905b8782106200042d57505083600195961062000413575b505050811b01600255565b015160001960f88460031b161c1916905538808062000408565b80600185968294968601518155019501930190620003f2565b80519091906001600160401b038111620001655762000472816200046c60035462000209565b6200029f565b602080601f8311600114620004b15750819293600092620004a5575b50508160011b916000199060031b1c191617600355565b0151905038806200048e565b6003600052601f198316949091907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b926000905b8782106200052057505083600195961062000506575b505050811b01600355565b015160001960f88460031b161c19169055388080620004fb565b80600185968294968601518155019501930190620004e5565b60009103126200013657565b6040513d6000823e3d90fd5b600a80546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6001600160a01b03168015620005ce5761029a6020604051620005bd816200016b565b838152015261014d60a11b17600855565b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b156200061b57565b60405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606490fd5b156200065d57565b60405162461bcd60e51b815260206004820152601b60248201527f4d6178206d696e74207065722077616c6c6574207265616368656400000000006044820152606490fd5b604051908181519160005b838110620006c75750506020918101600c81520301902090565b60208282018101518683015285935001620006ad565b15620006e557565b60405162461bcd60e51b815260206004820152601360248201527f4272616e64206e616d652069732074616b656e000000000000000000000000006044820152606490fd5b156200073257565b60405162461bcd60e51b815260206004820152602a60248201527f4272616e64206e616d65206d757374206265206c657373207468616e203130206044820152696368617261637465727360b01b6064820152608490fd5b634e487b7160e01b600052601160045260246000fd5b9060018201809211620007af57565b6200078a565b8151815560206060600382850151151593620007e16001958683019060ff801983541691151516179055565b60408601516002820155019301519081519160018060401b0383116200016557620008198362000812875462000209565b87620002f8565b81601f841160011462000855575092829391839260009462000849575b50501b916000199060031b1c1916179055565b01519250388062000836565b919083601f1981166200086d88600052602060002090565b946000905b88838310620008a957505050106200088f575b505050811b019055565b015160001960f88460031b161c1916905538808062000885565b85870151885590960195948501948793509081019062000872565b6200091e6200091862000a3692620008f3611a0a620008ec6000546000199060015490030190565b1062000613565b336000908152600d602052604090206200091290600690541062000655565b62000d07565b62000bce565b620009298162000ac6565b906200094b620009446200093d84620006a2565b5460ff1690565b15620006dd565b6200095b600a825111156200072a565b6040516001600160601b03193360601b1660208201908152426034808401919091528252620009c791620009ba91620009b391620009ad9190620009a160548262000187565b51902062ffffff900690565b620007a0565b93620006a2565b805460ff19166001179055565b336000908152600d60205260409020620009e28154620007a0565b9055620009ee620001ab565b9182526000602083015260026040830152606082015262000a3062000a20620009ad6000546000199060015490030190565b600052600b602052604060002090565b620007b5565b62000a413362000e06565b565b9062000a4f82620001cb565b62000a5e604051918262000187565b828152809262000a71601f1991620001cb565b0190602036910137565b6000198114620007af5760010190565b90815181101562000a9d570160200190565b634e487b7160e01b600052603260045260246000fd5b60ff60209116019060ff8211620007af57565b9062000ad3825162000a43565b600092835b815181101562000ba95780604162000b1b62000b1562000b0f62000b0162000b71968862000a8b565b516001600160f81b03191690565b60f81c90565b60ff1690565b10158062000b87575b1562000b775762000b5c62000b4c62000b4662000b0f62000b01858862000a8b565b62000ab3565b60f81b6001600160f81b03191690565b861a62000b6a828662000a8b565b5362000a7b565b62000ad8565b62000b5c62000b01828562000a8b565b50605a60ff62000ba062000b0f62000b01858862000a8b565b16111562000b24565b5090925050565b600019810191908211620007af57565b91908203918211620007af57565b90815160009081805b82811062000c41575b5062000bf762000bf1848462000bc0565b62000a43565b92805b83811062000c0b5750929450505050565b8062000c2062000b0162000c3b938a62000a8b565b62000b6a62000c30858462000bc0565b91861a918862000a8b565b62000bfa565b62000c6262000c5562000b01838962000a8b565b6001600160f81b03191690565b600160fd1b811415908162000ce9575b8162000cd9575b8162000cc9575b8162000cb9575b8162000cae575b5062000ca55762000c9f9062000a7b565b62000bd7565b92503862000be0565b905015153862000c8e565b600b60f81b811415915062000c87565b600d60f81b811415915062000c80565b600560f91b811415915062000c79565b600960f81b811415915062000c72565b8015620007af576000190190565b80519062000d1760009262000bb0565b62000d2b62000c5562000b01838562000a8b565b600160fd1b811415908162000df6575b8162000de6575b8162000dd6575b8162000dc6575b8162000dbb575b5062000d6e5762000d689062000cf9565b62000d17565b909162000d7f62000bf183620007a0565b92815b8381111562000d92575050505090565b8062000da762000b0162000db5938562000a8b565b841a62000b6a828862000a8b565b62000d82565b905015153862000d57565b600b60f81b811415915062000d50565b600d60f81b811415915062000d49565b600560f91b811415915062000d42565b600960f81b811415915062000d3b565b600080546001600160a01b03909216808252600560209081526040808420805468010000000000000001019055848452600490915282204260a01b8217600160e11b1790556001808401937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908385838180a4845b85810362000ea0575050501562000e8f5755565b604051622e076360e81b8152600490fd5b8083918587858180a40162000e7b56fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d35780631e7269c5146101ce5780631f030aa5146101c957806323b872dd146101c45780632a55205a146101bf5780633779bfde146101ba5780633ccfd60b146101b557806341f43434146101b057806342842e0e146101ab5780634510f440146101a65780635bbb2177146101a15780636352211e1461019c57806370a0823114610197578063715018a6146101925780638462151c1461018d5780638da5cb5b1461018857806395d89b411461018357806399a2557a1461017e578063a22cb46514610179578063b88d4fde14610174578063c23dc68f1461016f578063c87b56dd1461016a578063e985e9c514610165578063f2fde38b146101605763f4f3b2001461015b57600080fd5b611e04565b611d41565b611cfc565b611508565b6114db565b611339565b6112a2565b61126a565b6111c6565b61119d565b6110e9565b611050565b611025565b610ff6565b610f91565b610ea7565b610c1c565b610bf3565b610b88565b610b40565b610a66565b6108f3565b610727565b6105a3565b610517565b610459565b6103d9565b6102f9565b610203565b6001600160e01b03198116036101fe57565b600080fd5b346101fe5760203660031901126101fe576020600435610222816101ec565b63ffffffff60e01b166301ffc9a760e01b8114908190821561028c575b821561027b575b8215610259575b50506040519015158152f35b63152a902d60e11b1491508115610273575b50388061024d565b90503861026b565b635b5e139f60e01b81149250610246565b6380ac58cd60e01b8114925061023f565b60005b8381106102b05750506000910152565b81810151838201526020016102a0565b906020916102d98151809281855285808601910161029d565b601f01601f1916010190565b9060206102f69281815201906102c0565b90565b346101fe576000806003193601126103d6576040518160025461031b81610dc9565b808452906001908181169081156103ae5750600114610355575b610351846103458188038261068a565b604051918291826102e5565b0390f35b60028352602094507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b82841061039b5750505081610351936103459282010193610335565b805485850187015292850192810161037f565b61035196506103459450602092508593915060ff191682840152151560051b82010193610335565b80fd5b346101fe5760203660031901126101fe576004356103f68161341a565b1561041b576000526006602052602060018060a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b600435906001600160a01b03821682036101fe57565b602435906001600160a01b03821682036101fe57565b60403660031901126101fe5761046d61042d565b60243561047982613910565b6001600160a01b038061048b836133a2565b16908133036104e6575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b81600052600760205260ff6104ff33604060002061058c565b5416610495576040516367d9dca160e11b8152600490fd5b346101fe5760003660031901126101fe576000546001546040519103600019018152602090f35b6001600160a01b03166000908152600d6020526040902090565b6001600160a01b0316600090815260076020526040902090565b6001600160a01b0316600090815260056020526040902090565b9060018060a01b0316600052602052604060002090565b346101fe5760203660031901126101fe576001600160a01b036105c461042d565b16600052600d6020526020604060002054604051908152f35b801515036101fe57565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761061857604052565b6105e7565b608081019081106001600160401b0382111761061857604052565b602081019081106001600160401b0382111761061857604052565b61024081019081106001600160401b0382111761061857604052565b60c081019081106001600160401b0382111761061857604052565b90601f801991011681019081106001600160401b0382111761061857604052565b604051906106b88261061d565b565b6001600160401b03811161061857601f01601f191660200190565b9291926106e1826106ba565b916106ef604051938461068a565b8294818452818301116101fe578281602093846000960137010152565b9080601f830112156101fe578160206102f6933591016106d5565b60603660031901126101fe57600435602435610742816105dd565b604435916001600160401b0383116101fe576107b06107ab61076b6108b395369060040161070c565b60005460015461078591611a0a9190036000190110611ff3565b61079a60066107933361053e565b5410612034565b6107a6600c851061207e565b613287565b613183565b9061087b6107bd83613057565b936107da6107d46107cd87610b1a565b5460ff1690565b156120ca565b6107e8600a8551111561210c565b6040513360601b6001600160601b03191660208201908152426034830152610852916108459161083f9161083a919061082e81605481015b03601f19810183528261068a565b51902062ffffff900690565b61216b565b96610b1a565b805460ff19166001179055565b61085b3361053e565b610865815461216b565b905561086f6106ab565b94855215156020850152565b604083015260608201526000546001546108ae9161089e9190036000190161216b565b600052600b602052604060002090565b612205565b6108bc3361356f565b005b60609060031901126101fe576001600160a01b039060043582811681036101fe579160243590811681036101fe579060443590565b6108fc366108be565b91906001600160a01b038083169190338303610a3d575b61091c856133a2565b918382841603610a2c5761092f8661346d565b909261094361093f338985613455565b1590565b6109fd575b82169586156109eb5761097193610964926109e1575b50610572565b8054600019019055610572565b80546001019055600160e11b4260a01b8417811761098e86610db9565b558116156109ad575b506000805160206139d2833981519152600080a4005b600184016109ba81610db9565b54156109c7575b50610997565b60005481146109c1576109d990610db9565b5538806109c1565b600090553861095e565b604051633a954ecd60e21b8152600490fd5b610a1561093f6107cd33610a108b610558565b61058c565b1561094857604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b610a4633613910565b610913565b6001600160a01b039091168152602081019190915260400190565b346101fe5760403660031901126101fe576004356000526009602052604060002060405190610a94826105fd565b546001600160a01b03811680835260a09190911c602083015215610af5575b6020810151610ae69061271090610ad5906001600160601b0316602435611fe0565b92519204916001600160a01b031690565b61035160405192839283610a4b565b50610afe611f43565b610ab3565b90610b166020928281519485920161029d565b0190565b6020610b3391816040519382858094519384920161029d565b8101600c81520301902090565b346101fe5760203660031901126101fe576004356001600160401b0381116101fe5760ff610b7c610b77602093369060040161070c565b610b1a565b54166040519015158152f35b346101fe576000806003193601126103d657610ba2611eeb565b8080808047335af1610bb261231a565b5015610bbb5780f35b60405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606490fd5b346101fe5760003660031901126101fe5760206040516daaeb6d7670e522a718067333cd4e8152f35b610c25366108be565b336001600160a01b038085169182141594929085610dab575b60405192610c4b84610638565b60009680888652610d9d575b610d8f575b610c65836133a2565b908083831603610a2c57610c788461346d565b929093610c8961093f338a87613455565b610d65575b88169283156109eb5785948a91610d5d575b5050610cab87610572565b8054600019019055610cbc88610572565b80546001019055600160e11b4260a01b84178117610cd986610db9565b55811615610d2a575b506000805160206139d28339815191528880a4833b610cff578480f35b610d0c9361093f936134c6565b610d1857388080808480f35b6040516368d2bf6b60e11b8152600490fd5b60018401610d3781610db9565b5415610d44575b50610ce2565b89548114610d3e57610d5590610db9565b553880610d3e565b558838610ca0565b610d7861093f6107cd33610a108c610558565b15610c8e57604051632ce44b5f60e11b8152600490fd5b610d9833613910565b610c5c565b610da633613910565b610c57565b610db433613910565b610c3e565b6000526004602052604060002090565b90600182811c92168015610df9575b6020831014610de357565b634e487b7160e01b600052602260045260246000fd5b91607f1691610dd8565b9060405191826000825492610e1784610dc9565b908184526001948581169081600014610e845750600114610e41575b50506106b89250038361068a565b9093915060005260209081600020936000915b818310610e6c5750506106b893508201013880610e33565b85548884018501529485019487945091830191610e54565b9150506106b894506020925060ff191682840152151560051b8201013880610e33565b346101fe5760203660031901126101fe57600435600052600b6020526040600020805461035160ff60018401541692610ee7600360028301549201610e03565b9060405194859485521515602085015260408401526080606084015260808301906102c0565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020908160408183019282815285518094520193019160005b828110610f70575050505090565b9091929382608082610f856001948951610f0d565b01950193929101610f62565b346101fe5760203660031901126101fe576001600160401b036004358181116101fe57366023820112156101fe5780600401359182116101fe573660248360051b830101116101fe57610351916024610fea9201613706565b60405191829182610f49565b346101fe5760203660031901126101fe5760206001600160a01b0361101c6004356133a2565b16604051908152f35b346101fe5760203660031901126101fe57602061104861104361042d565b613367565b604051908152f35b346101fe576000806003193601126103d65761106a611eeb565b600a80546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b6020908160408183019282815285518094520193019160005b8281106110d5575050505090565b8351855293810193928101926001016110c7565b346101fe5760203660031901126101fe5761110261042d565b6000809161110f81613367565b61111881613796565b926111216135f9565b506001926001600160a01b0390811690845b848403611148576040518061035189826110ae565b816111528261367d565b876040820151611194575051168061118c575b50859083838a1614611178575b01611133565b80611186838701968a6136f2565b52611172565b975085611165565b92915050611172565b346101fe5760003660031901126101fe57600a546040516001600160a01b039091168152602090f35b346101fe576000806003193601126103d657604051816003546111e881610dc9565b808452906001908181169081156103ae575060011461121157610351846103458188038261068a565b60038352602094507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106112575750505081610351936103459282010193610335565b805485850187015292850192810161123b565b346101fe5760603660031901126101fe5761035161129661128961042d565b60443590602435906137be565b604051918291826110ae565b346101fe5760403660031901126101fe576112bb61042d565b602435906112c8826105dd565b6112d181613910565b3360005260076020526112fd826112ec83604060002061058c565b9060ff801983541691151516179055565b60405191151582526001600160a01b03169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60803660031901126101fe5761134d61042d565b611355610443565b906044356064356001600160401b0381116101fe57366023820112156101fe576113899036906024816004013591016106d5565b906001600160a01b038381169033821415806114cd575b6114bf575b6113ae836133a2565b918082841603610a2c576113c18461346d565b9390926113d261093f338a88613455565b611495575b88169283156109eb57859461148b575b506113f187610572565b805460001901905561140288610572565b80546001019055600160e11b4260a01b8417811761141f86610db9565b55811615611457575b506000805160206139d2833981519152600080a4833b61144457005b6114519361093f936134c6565b610d1857005b6001840161146481610db9565b5415611471575b50611428565b600054811461146b5761148390610db9565b55388061146b565b60009055386113e7565b6114a861093f6107cd33610a108c610558565b156113d757604051632ce44b5f60e11b8152600490fd5b6114c833613910565b6113a5565b6114d633613910565b6113a0565b346101fe5760203660031901126101fe5760806114f960043561361e565b6115066040518092610f0d565bf35b346101fe5760203660031901126101fe5761152c61152760043561341a565b61237a565b6115346123de565b61155261154d600435600052600b602052604060002090565b61241b565b90600c610e1042040691603c8042040691603c4206936115756020840151151590565b15611cc05761158390612179565b926108206115c96115ae6115a76115a06040880198895190612468565b600c900690565b9651612d63565b604051602d60f81b6020820152928391602183015b90610b03565b935b604084015115611c9b575b61161661160a6116046115eb61161c94611f7f565b6115fe6115f787611f7f565b603c900490565b906121a4565b93611f9a565b6115fe6115f789611f9a565b95611f9a565b9461163261162a8551612ea0565b805190613123565b60068151101561166257604051600360fc1b60208201529061165d90829061082090602183016115c3565b611632565b91908661166d61248b565b855283602086015261167d612532565b604086015261168b81612d63565b60608601526116986127d0565b60808601526116a681612d63565b60a08601526116b3612888565b60c08601526116c190612187565b6116ca90612d63565b60e08501526116d76128b2565b6101008501526116e681612d63565b6101208501526116f4612922565b61014085015261170381612d63565b610160850152611711612888565b61018085015261172090612187565b61172990612d63565b6101a08401526117376129db565b6101c084015261174681612d63565b6101e0840152611754612a4d565b61020084015261176381612d63565b610220840152611771612888565b61024084015261178090612187565b61178990612d63565b610260830152611797612b06565b61028083015260608301516102a08301526117b0612bbe565b6102c08301528151916020810151926040820151606083015190604051958693602085016117dd91610b03565b6117e691610b03565b6117ef91610b03565b6117f891610b03565b03601f198101845261180a908461068a565b60808101519260a082015160c0830151906040519586936020850161182e91610b03565b61183791610b03565b61184091610b03565b61184991610b03565b03601f198101845261185b908461068a565b60e081015192610100820151610120830151906040519586936020850161188191610b03565b61188a91610b03565b61189391610b03565b61189c91610b03565b03601f19810184526118ae908461068a565b6101408101519261016082015161018083015190604051958693602085016118d591610b03565b6118de91610b03565b6118e791610b03565b6118f091610b03565b03601f1981018452611902908461068a565b6101a0810151926101c08201516101e0830151906040519586936020850161192991610b03565b61193291610b03565b61193b91610b03565b61194491610b03565b03601f1981018452611956908461068a565b61020081015192610220820151610240830151906040519586936020850161197d91610b03565b61198691610b03565b61198f91610b03565b61199891610b03565b03601f19810184526119aa908461068a565b610260810151926102808201516102a083015190604051958693602085016119d191610b03565b6119da91610b03565b6119e391610b03565b6119ec91610b03565b03601f19810184526119fe908461068a565b6102c001519160405192839160208301611a1791610b03565b611a2091610b03565b03601f1981018352611a32908361068a565b611a3d600435612d63565b926060015191611a4c90612c88565b604051757b226e616d65223a202254696d654b6565706572202360501b602082015294859491939160368601611a8191610b03565b7f222c20226465736372697074696f6e223a202254696d654b656570657273206981527f73206120636f6c6c656374696f6e206f66206f6e2d636861696e2c206d6f737460208201527f6c7920616363757261746520636c6f636b732e2052656672657368206d65746160408201527f6461746120746f206765742061636375726174652074696d652e222c2022617460608201527f7472696275746573223a5b7b2274726169745f74797065223a2274696d657a6f6080820152716e65222c202276616c7565223a202255544360701b60a082015260b201611b6391610b03565b7f227d2c207b2274726169745f74797065223a226272616e64222c202276616c7581526332911d1160e11b6020820152602401611b9f91610b03565b7f227d2c207b2274726169745f74797065223a22636f6c6f72222c202276616c7581526332911d1160e11b6020820152602401611bdb91610b03565b7f227d5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d8152681b0ed8985cd94d8d0b60ba1b6020820152602901611c1c91610b03565b61227d60f01b815260020103601f1981018252611c39908261068a565b611c4290612c88565b6040517f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006020820152908190603d8201611c7b91610b03565b03601f1981018252611c8d908261068a565b6040516103518192826102e5565b935061161c61161661160a6116046115eb611cb4612307565b989450505050506115d6565b92610820611cf6611cdd6115a76115a060408801988951906121a4565b604051602b60f81b6020820152928391602183016115c3565b936115cb565b346101fe5760403660031901126101fe57602060ff610b7c611d1c61042d565b611d24610443565b6001600160a01b039091166000908152600785526040902061058c565b346101fe5760203660031901126101fe57611d5a61042d565b611d62611eeb565b6001600160a01b03908116908115611db057600a80546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346101fe576020806003193601126101fe57611e1e61042d565b611e26611eeb565b6040516370a0823160e01b81523060048201526001600160a01b0391909116908281602481855afa908115611eb9576000928492611e83928591611ebe575b5060405194858094819363a9059cbb60e01b83523360048401610a4b565b03925af18015611eb957611e9357005b816108bc92903d10611eb2575b611eaa818361068a565b810190612365565b503d611ea0565b612359565b611ede9150843d8611611ee4575b611ed6818361068a565b81019061234a565b38611e65565b503d611ecc565b600a546001600160a01b03163303611eff57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405190611f50826105fd565b6008546001600160a01b038116835260a01c6020830152565b634e487b7160e01b600052601160045260246000fd5b90601e820291808304601e1490151715611f9557565b611f69565b90600682029180830460061490151715611f9557565b600281901b91906001600160fe1b03811603611f9557565b600181901b91906001600160ff1b03811603611f9557565b81810292918115918404141715611f9557565b15611ffa57565b60405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606490fd5b1561203b57565b60405162461bcd60e51b815260206004820152601b60248201527a13585e081b5a5b9d081c195c881dd85b1b195d081c995858da1959602a1b6044820152606490fd5b1561208557565b60405162461bcd60e51b815260206004820152601d60248201527f5554432064696666206d757374206265206c657373207468616e2031320000006044820152606490fd5b156120d157565b60405162461bcd60e51b8152602060048201526013602482015272213930b732103730b6b29034b9903a30b5b2b760691b6044820152606490fd5b1561211357565b60405162461bcd60e51b815260206004820152602a60248201527f4272616e64206e616d65206d757374206265206c657373207468616e203130206044820152696368617261637465727360b01b6064820152608490fd5b9060018201809211611f9557565b90600c8201809211611f9557565b906101688201809211611f9557565b9060028201809211611f9557565b91908201809211611f9557565b90601f81116121bf57505050565b600091825260208220906020601f850160051c830194106121fb575b601f0160051c01915b8281106121f057505050565b8181556001016121e4565b90925082906121db565b81518155602060606003828501511515936122306001958683019060ff801983541691151516179055565b6040860151600282015501930151908151916001600160401b038311610618576122648361225e8754610dc9565b876121b1565b81601f841160011461229d5750928293918392600094612292575b50501b916000199060031b1c1916179055565b01519250388061227f565b919083601f1981166122b488600052602060002090565b946000905b888383106122ed57505050106122d4575b505050811b019055565b015160001960f88460031b161c191690553880806122ca565b8587015188559096019594850194879350908101906122b9565b6040519061231482610638565b60008252565b3d15612345573d9061232b826106ba565b91612339604051938461068a565b82523d6000602084013e565b606090565b908160209103126101fe575190565b6040513d6000823e3d90fd5b908160209103126101fe57516102f6816105dd565b1561238157565b60405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608490fd5b604051906102e08083018381106001600160401b03821117610618576040528260005b82811061240d57505050565b606082820152602001612401565b906040516124288161061d565b6060612454600383958054855260ff600182015416151560208601526002810154604086015201610e03565b910152565b600019810191908211611f9557565b91908203918211611f9557565b634e487b7160e01b600052603260045260246000fd5b6040519060a082018281106001600160401b03821117610618576040908152606883527f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060208401527f30302f737667222076696577426f783d2230203020313030302031303030223e908301527f3c726563742077696474683d223130303022206865696768743d2231303030226060830152672066696c6c3d222360c01b6080830152565b6040519061253f82610653565b61021782527f222f3e3c7465787420783d223530302220793d223230302220666f6e742d736960208301527f7a653d223130302220666f6e742d66616d696c793d22417269616c222074657860408301527f742d616e63686f723d226d6964646c65223e31323c2f746578743e3c7465787460608301527f20783d223835302220793d223532352220666f6e742d73697a653d223130302260808301527f20666f6e742d66616d696c793d22417269616c2220746578742d616e63686f7260a08301527f3d226d6964646c65223e333c2f746578743e3c7465787420783d22353030222060c08301527f793d223838302220666f6e742d73697a653d223130302220666f6e742d66616d60e08301527f696c793d22417269616c2220746578742d616e63686f723d226d6964646c65226101008301527f3e363c2f746578743e3c7465787420783d223136302220793d223532352220666101208301527f6f6e742d73697a653d223130302220666f6e742d66616d696c793d22417269616101408301527f6c2220746578742d616e63686f723d226d6964646c65223e393c2f746578743e6101608301527f3c636972636c652063783d22353030222063793d223530302220723d223430306101808301527f22207374726f6b653d22626c61636b22207374726f6b652d77696474683d22316101a08301527f30222066696c6c3d226e6f6e6522202f3e3c636972636c652063783d223530306101c08301527f222063793d223530302220723d22313022207374726f6b653d22626c61636b226101e08301527f207374726f6b652d77696474683d223130222066696c6c3d22626c61636b22206102008301527605e7c78ce40e8e4c2dce6ccdee4da7a44e4dee8c2e8ca5604b1b610220830152565b604051906127dd8261066f565b609682526000805160206139b283398151915260208301527f30222078323d22353030222079323d2231323022207374726f6b653d22626c6160408301527f636b22207374726f6b652d77696474683d2235222f3e3c616e696d617465547260608301527f616e73666f726d206174747269627574654e616d653d227472616e73666f726d60808301527511103a3cb8329e913937ba30ba329110333937b69e9160511b60a0830152565b60405190612895826105fd565b600e82526d101a9818101a981811103a379e9160911b6020830152565b604051906128bf8261061d565b604882527f203530302035303022206475723d223630732220726570656174436f756e743d60208301527f22696e646566696e69746522202f3e3c2f673e3c67207472616e73666f726d3d604083015267044e4dee8c2e8ca560c31b6060830152565b6040519061292f8261066f565b609782526000805160206139b283398151915260208301527f30222078323d22353030222079323d2231373522207374726f6b653d22626c6160408301527f636b22207374726f6b652d77696474683d223130222f3e3c616e696d6174655460608301527f72616e73666f726d206174747269627574654e616d653d227472616e73666f726080830152763691103a3cb8329e913937ba30ba329110333937b69e9160491b60a0830152565b604051906129e88261061d565b604a82527f203530302035303022206475723d2233363030732220726570656174436f756e60208301527f743d22696e646566696e69746522202f3e3c2f673e3c67207472616e73666f726040830152690da7a44e4dee8c2e8ca560b31b6060830152565b60405190612a5a8261066f565b609782526000805160206139b283398151915260208301527f30222078323d22353030222079323d2232353022207374726f6b653d22626c6160408301527f636b22207374726f6b652d77696474683d223130222f3e3c616e696d6174655460608301527f72616e73666f726d206174747269627574654e616d653d227472616e73666f726080830152763691103a3cb8329e913937ba30ba329110333937b69e9160491b60a0830152565b60405190612b138261066f565b608482527f203530302035303022206475723d223433323030732220726570656174436f7560208301527f6e743d22696e646566696e69746522202f3e3c2f673e3c7465787420783d223560408301527f30302220793d223735302220666f6e742d73697a653d2237352220666f6e742d60608301527f66616d696c793d22417269616c2220746578742d616e63686f723d226d6964646080830152633632911f60e11b60a0830152565b60405190612bcb826105fd565b600d82526c1e17ba32bc3a1f1e17b9bb339f60991b6020830152565b60405190606082018281106001600160401b0382111761061857604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b90612c60826106ba565b612c6d604051918261068a565b8281528092612c7e601f19916106ba565b0190602036910137565b805115612d5a57612c97612be7565b612cbb612cb6612cb1612caa8551612196565b6003900490565b611fb0565b612c56565b9160208301918182518301915b828210612d0857505050600390510680600114612cf557600214612cea575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c1688010151600286015316850101519082015301939190612cc8565b506102f6612307565b6000908072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b80821015612e92575b506904ee2d6d415b85acef8160201b80831015612e83575b50662386f26fc1000080831015612e74575b506305f5e10080831015612e65575b5061271080831015612e56575b506064821015612e46575b600a80921015612e3c575b600190816021612df4828701612c56565b95860101905b612e06575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304918215612e3757919082612dfa565b612dff565b9160010191612de3565b9190606460029104910191612dd8565b60049193920491019138612dcd565b60089193920491019138612dc0565b60109193920491019138612db1565b60209193920491019138612d9f565b604093508104915038612d87565b806000908260801c80612fb1575b508060401c80612fa4575b508060201c80612f97575b5060109080821c80612f8a575b5060081c612f80575b60018092019291612ef5612cb6612ef086611fc8565b612196565b93845115612f7b5761083a612f209160306020889796959701536078612f1a88612fbd565b53611fc8565b925b808411612f365750506102f6915015612feb565b9091600f81169083821015612f7b57612f73916f181899199a1a9b1b9c1cb0b131b232b360811b901a612f698688612fcd565b5360041c93612fde565b929190612f22565b612475565b9060010190612eda565b6002915092019138612ed1565b6004915091019038612ec4565b6008915091019038612eb9565b91505060109038612eae565b805160011015612f7b5760210190565b908151811015612f7b570160200190565b8015611f95576000190190565b15612ff257565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b6000198114611f955760010190565b60ff60209116019060ff8211611f9557565b906130628251612c56565b600092835b815181101561311c578060416130a361309d6130976130896130ed9688612fcd565b516001600160f81b03191690565b60f81c90565b60ff1690565b1015806130ff575b156130f2576130db6130cb6130c66130976130898588612fcd565b613045565b60f81b6001600160f81b03191690565b861a6130e78286612fcd565b53613036565b613067565b6130db6130898285612fcd565b50605a60ff6131146130976130898588612fcd565b1611156130ab565b5090925050565b9060011990818101818111611f955761313b90612c56565b9260025b82811061314d575050505090565b6001600160f81b03196131608284612fcd565b511690848101818111611f95576130e761317e9360001a9188612fcd565b61313f565b90815160009081805b8281106131e2575b506131a2612cb68484612468565b92805b8381106131b55750929450505050565b806131c66130896131dd938a612fcd565b6130e76131d38584612468565b91861a9188612fcd565b6131a5565b6131ff6131f26130898389612fcd565b6001600160f81b03191690565b600160fd1b8114159081613278575b81613269575b8161325a575b8161324b575b81613241575b506132395761323490613036565b61318c565b925038613194565b9050151538613226565b600b60f81b8114159150613220565b600d60f81b811415915061321a565b600560f91b8114159150613214565b600960f81b811415915061320e565b805190613295600092612459565b6132a56131f26130898385612fcd565b600160fd1b8114159081613358575b81613349575b8161333a575b8161332b575b81613321575b506132df576132da90612fde565b613295565b90916132ed612cb68361216b565b92815b838111156132ff575050505090565b8061331061308961331c9385612fcd565b841a6130e78288612fcd565b6132f0565b90501515386132cc565b600b60f81b81141591506132c6565b600d60f81b81141591506132c0565b600560f91b81141591506132ba565b600960f81b81141591506132b4565b6001600160a01b031680156133905760005260056020526001600160401b036040600020541690565b6040516323d3ad8160e21b8152600490fd5b60008180600111156133c1575b604051636f96cda160e11b8152600490fd5b81548110156133af5781526004906020918083526040928383205494600160e01b8616156133f1575050506133af565b93929190935b851561340557505050505090565b600019018083528185528383205495506133f7565b80600111159081613449575b8161342f575090565b90506000526004602052600160e01b604060002054161590565b60005481109150613426565b6001600160a01b039182169190921690811491141790565b6000526006602052604060002090815490565b908160209103126101fe57516102f6816101ec565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526102f6929101906102c0565b926020916134ef936000604051809681958294630a85bd0160e11b9a8b85523360048601613495565b03926001600160a01b03165af16000918161353f575b506135315761351261231a565b8051908161352c576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b61356191925060203d8111613568575b613559818361068a565b810190613480565b9038613505565b503d61354f565b600080549161357d81610572565b80546001600160401b010190556001600160a01b03164260a01b8117600160e11b176135a884610db9565b556001808401936000805160206139d2833981519152908385838180a4845b8581036135ea57505050156135d95755565b604051622e076360e81b8152600490fd5b8083918587858180a4016135c7565b604051906136068261061d565b60006060838281528260208201528260408201520152565b6136266135f9565b5061362f6135f9565b600182108015613671575b61366c57506136488161367d565b604081015161366c57506136676102f6916136616135f9565b506133a2565b613698565b905090565b5060005482101561363a565b6136856135f9565b5060005260046020526102f66040600020545b906136a16135f9565b6001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b83161515604082015260e89290921c6060830152565b6001600160401b0381116106185760051b60200190565b8051821015612f7b5760209160051b010190565b61370f826136db565b9161371d604051938461068a565b808352601f1961372c826136db565b0160005b81811061377f57505060005b8181036137495750505090565b81811015612f7b578061376360019260051b85013561361e565b61376d82876136f2565b5261377881866136f2565b500161373c565b60209061378a6135f9565b82828801015201613730565b906137a0826136db565b6137ad604051918261068a565b8281528092612c7e601f19916136db565b90828110156138fe576000918254916001928382106138f6575b8086116138ee575b506137ea82613367565b91858210156138e6578186038381106138de575b505b61380983613796565b9583156138d557849361381b8461361e565b91879460409361383061093f86830151151590565b6138c3575b50955b613849575b50505050505050815290565b80861415806138b9575b156138b4578686613864829861367d565b808601516138ae57516001600160a01b03908116806138a6575b5080871690881614613892575b0195613838565b806138a0838c019b8d6136f2565b5261388b565b97503861387e565b5061388b565b61383d565b5081881415613853565b516001600160a01b0316955038613835565b50505050505090565b9250386137fe565b849250613800565b9450386137e0565b8391506137d8565b604051631960ccad60e11b8152600490fd5b6daaeb6d7670e522a718067333cd4e803b613929575050565b604051633185c44d60e21b81523060048201526001600160a01b038316602482015290602090829060449082905afa908115611eb957600091613993575b50156139705750565b604051633b79c77360e21b81526001600160a01b03919091166004820152602490fd5b6139ab915060203d8111611eb257611eaa818361068a565b3861396756fe203530302035303029223e3c6c696e652078313d22353030222079313d223530ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa164736f6c6343000812000a
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146101e757806306fdde03146101e2578063081812fc146101dd578063095ea7b3146101d857806318160ddd146101d35780631e7269c5146101ce5780631f030aa5146101c957806323b872dd146101c45780632a55205a146101bf5780633779bfde146101ba5780633ccfd60b146101b557806341f43434146101b057806342842e0e146101ab5780634510f440146101a65780635bbb2177146101a15780636352211e1461019c57806370a0823114610197578063715018a6146101925780638462151c1461018d5780638da5cb5b1461018857806395d89b411461018357806399a2557a1461017e578063a22cb46514610179578063b88d4fde14610174578063c23dc68f1461016f578063c87b56dd1461016a578063e985e9c514610165578063f2fde38b146101605763f4f3b2001461015b57600080fd5b611e04565b611d41565b611cfc565b611508565b6114db565b611339565b6112a2565b61126a565b6111c6565b61119d565b6110e9565b611050565b611025565b610ff6565b610f91565b610ea7565b610c1c565b610bf3565b610b88565b610b40565b610a66565b6108f3565b610727565b6105a3565b610517565b610459565b6103d9565b6102f9565b610203565b6001600160e01b03198116036101fe57565b600080fd5b346101fe5760203660031901126101fe576020600435610222816101ec565b63ffffffff60e01b166301ffc9a760e01b8114908190821561028c575b821561027b575b8215610259575b50506040519015158152f35b63152a902d60e11b1491508115610273575b50388061024d565b90503861026b565b635b5e139f60e01b81149250610246565b6380ac58cd60e01b8114925061023f565b60005b8381106102b05750506000910152565b81810151838201526020016102a0565b906020916102d98151809281855285808601910161029d565b601f01601f1916010190565b9060206102f69281815201906102c0565b90565b346101fe576000806003193601126103d6576040518160025461031b81610dc9565b808452906001908181169081156103ae5750600114610355575b610351846103458188038261068a565b604051918291826102e5565b0390f35b60028352602094507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b82841061039b5750505081610351936103459282010193610335565b805485850187015292850192810161037f565b61035196506103459450602092508593915060ff191682840152151560051b82010193610335565b80fd5b346101fe5760203660031901126101fe576004356103f68161341a565b1561041b576000526006602052602060018060a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b600435906001600160a01b03821682036101fe57565b602435906001600160a01b03821682036101fe57565b60403660031901126101fe5761046d61042d565b60243561047982613910565b6001600160a01b038061048b836133a2565b16908133036104e6575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b81600052600760205260ff6104ff33604060002061058c565b5416610495576040516367d9dca160e11b8152600490fd5b346101fe5760003660031901126101fe576000546001546040519103600019018152602090f35b6001600160a01b03166000908152600d6020526040902090565b6001600160a01b0316600090815260076020526040902090565b6001600160a01b0316600090815260056020526040902090565b9060018060a01b0316600052602052604060002090565b346101fe5760203660031901126101fe576001600160a01b036105c461042d565b16600052600d6020526020604060002054604051908152f35b801515036101fe57565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761061857604052565b6105e7565b608081019081106001600160401b0382111761061857604052565b602081019081106001600160401b0382111761061857604052565b61024081019081106001600160401b0382111761061857604052565b60c081019081106001600160401b0382111761061857604052565b90601f801991011681019081106001600160401b0382111761061857604052565b604051906106b88261061d565b565b6001600160401b03811161061857601f01601f191660200190565b9291926106e1826106ba565b916106ef604051938461068a565b8294818452818301116101fe578281602093846000960137010152565b9080601f830112156101fe578160206102f6933591016106d5565b60603660031901126101fe57600435602435610742816105dd565b604435916001600160401b0383116101fe576107b06107ab61076b6108b395369060040161070c565b60005460015461078591611a0a9190036000190110611ff3565b61079a60066107933361053e565b5410612034565b6107a6600c851061207e565b613287565b613183565b9061087b6107bd83613057565b936107da6107d46107cd87610b1a565b5460ff1690565b156120ca565b6107e8600a8551111561210c565b6040513360601b6001600160601b03191660208201908152426034830152610852916108459161083f9161083a919061082e81605481015b03601f19810183528261068a565b51902062ffffff900690565b61216b565b96610b1a565b805460ff19166001179055565b61085b3361053e565b610865815461216b565b905561086f6106ab565b94855215156020850152565b604083015260608201526000546001546108ae9161089e9190036000190161216b565b600052600b602052604060002090565b612205565b6108bc3361356f565b005b60609060031901126101fe576001600160a01b039060043582811681036101fe579160243590811681036101fe579060443590565b6108fc366108be565b91906001600160a01b038083169190338303610a3d575b61091c856133a2565b918382841603610a2c5761092f8661346d565b909261094361093f338985613455565b1590565b6109fd575b82169586156109eb5761097193610964926109e1575b50610572565b8054600019019055610572565b80546001019055600160e11b4260a01b8417811761098e86610db9565b558116156109ad575b506000805160206139d2833981519152600080a4005b600184016109ba81610db9565b54156109c7575b50610997565b60005481146109c1576109d990610db9565b5538806109c1565b600090553861095e565b604051633a954ecd60e21b8152600490fd5b610a1561093f6107cd33610a108b610558565b61058c565b1561094857604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b610a4633613910565b610913565b6001600160a01b039091168152602081019190915260400190565b346101fe5760403660031901126101fe576004356000526009602052604060002060405190610a94826105fd565b546001600160a01b03811680835260a09190911c602083015215610af5575b6020810151610ae69061271090610ad5906001600160601b0316602435611fe0565b92519204916001600160a01b031690565b61035160405192839283610a4b565b50610afe611f43565b610ab3565b90610b166020928281519485920161029d565b0190565b6020610b3391816040519382858094519384920161029d565b8101600c81520301902090565b346101fe5760203660031901126101fe576004356001600160401b0381116101fe5760ff610b7c610b77602093369060040161070c565b610b1a565b54166040519015158152f35b346101fe576000806003193601126103d657610ba2611eeb565b8080808047335af1610bb261231a565b5015610bbb5780f35b60405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606490fd5b346101fe5760003660031901126101fe5760206040516daaeb6d7670e522a718067333cd4e8152f35b610c25366108be565b336001600160a01b038085169182141594929085610dab575b60405192610c4b84610638565b60009680888652610d9d575b610d8f575b610c65836133a2565b908083831603610a2c57610c788461346d565b929093610c8961093f338a87613455565b610d65575b88169283156109eb5785948a91610d5d575b5050610cab87610572565b8054600019019055610cbc88610572565b80546001019055600160e11b4260a01b84178117610cd986610db9565b55811615610d2a575b506000805160206139d28339815191528880a4833b610cff578480f35b610d0c9361093f936134c6565b610d1857388080808480f35b6040516368d2bf6b60e11b8152600490fd5b60018401610d3781610db9565b5415610d44575b50610ce2565b89548114610d3e57610d5590610db9565b553880610d3e565b558838610ca0565b610d7861093f6107cd33610a108c610558565b15610c8e57604051632ce44b5f60e11b8152600490fd5b610d9833613910565b610c5c565b610da633613910565b610c57565b610db433613910565b610c3e565b6000526004602052604060002090565b90600182811c92168015610df9575b6020831014610de357565b634e487b7160e01b600052602260045260246000fd5b91607f1691610dd8565b9060405191826000825492610e1784610dc9565b908184526001948581169081600014610e845750600114610e41575b50506106b89250038361068a565b9093915060005260209081600020936000915b818310610e6c5750506106b893508201013880610e33565b85548884018501529485019487945091830191610e54565b9150506106b894506020925060ff191682840152151560051b8201013880610e33565b346101fe5760203660031901126101fe57600435600052600b6020526040600020805461035160ff60018401541692610ee7600360028301549201610e03565b9060405194859485521515602085015260408401526080606084015260808301906102c0565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020908160408183019282815285518094520193019160005b828110610f70575050505090565b9091929382608082610f856001948951610f0d565b01950193929101610f62565b346101fe5760203660031901126101fe576001600160401b036004358181116101fe57366023820112156101fe5780600401359182116101fe573660248360051b830101116101fe57610351916024610fea9201613706565b60405191829182610f49565b346101fe5760203660031901126101fe5760206001600160a01b0361101c6004356133a2565b16604051908152f35b346101fe5760203660031901126101fe57602061104861104361042d565b613367565b604051908152f35b346101fe576000806003193601126103d65761106a611eeb565b600a80546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b6020908160408183019282815285518094520193019160005b8281106110d5575050505090565b8351855293810193928101926001016110c7565b346101fe5760203660031901126101fe5761110261042d565b6000809161110f81613367565b61111881613796565b926111216135f9565b506001926001600160a01b0390811690845b848403611148576040518061035189826110ae565b816111528261367d565b876040820151611194575051168061118c575b50859083838a1614611178575b01611133565b80611186838701968a6136f2565b52611172565b975085611165565b92915050611172565b346101fe5760003660031901126101fe57600a546040516001600160a01b039091168152602090f35b346101fe576000806003193601126103d657604051816003546111e881610dc9565b808452906001908181169081156103ae575060011461121157610351846103458188038261068a565b60038352602094507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106112575750505081610351936103459282010193610335565b805485850187015292850192810161123b565b346101fe5760603660031901126101fe5761035161129661128961042d565b60443590602435906137be565b604051918291826110ae565b346101fe5760403660031901126101fe576112bb61042d565b602435906112c8826105dd565b6112d181613910565b3360005260076020526112fd826112ec83604060002061058c565b9060ff801983541691151516179055565b60405191151582526001600160a01b03169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60803660031901126101fe5761134d61042d565b611355610443565b906044356064356001600160401b0381116101fe57366023820112156101fe576113899036906024816004013591016106d5565b906001600160a01b038381169033821415806114cd575b6114bf575b6113ae836133a2565b918082841603610a2c576113c18461346d565b9390926113d261093f338a88613455565b611495575b88169283156109eb57859461148b575b506113f187610572565b805460001901905561140288610572565b80546001019055600160e11b4260a01b8417811761141f86610db9565b55811615611457575b506000805160206139d2833981519152600080a4833b61144457005b6114519361093f936134c6565b610d1857005b6001840161146481610db9565b5415611471575b50611428565b600054811461146b5761148390610db9565b55388061146b565b60009055386113e7565b6114a861093f6107cd33610a108c610558565b156113d757604051632ce44b5f60e11b8152600490fd5b6114c833613910565b6113a5565b6114d633613910565b6113a0565b346101fe5760203660031901126101fe5760806114f960043561361e565b6115066040518092610f0d565bf35b346101fe5760203660031901126101fe5761152c61152760043561341a565b61237a565b6115346123de565b61155261154d600435600052600b602052604060002090565b61241b565b90600c610e1042040691603c8042040691603c4206936115756020840151151590565b15611cc05761158390612179565b926108206115c96115ae6115a76115a06040880198895190612468565b600c900690565b9651612d63565b604051602d60f81b6020820152928391602183015b90610b03565b935b604084015115611c9b575b61161661160a6116046115eb61161c94611f7f565b6115fe6115f787611f7f565b603c900490565b906121a4565b93611f9a565b6115fe6115f789611f9a565b95611f9a565b9461163261162a8551612ea0565b805190613123565b60068151101561166257604051600360fc1b60208201529061165d90829061082090602183016115c3565b611632565b91908661166d61248b565b855283602086015261167d612532565b604086015261168b81612d63565b60608601526116986127d0565b60808601526116a681612d63565b60a08601526116b3612888565b60c08601526116c190612187565b6116ca90612d63565b60e08501526116d76128b2565b6101008501526116e681612d63565b6101208501526116f4612922565b61014085015261170381612d63565b610160850152611711612888565b61018085015261172090612187565b61172990612d63565b6101a08401526117376129db565b6101c084015261174681612d63565b6101e0840152611754612a4d565b61020084015261176381612d63565b610220840152611771612888565b61024084015261178090612187565b61178990612d63565b610260830152611797612b06565b61028083015260608301516102a08301526117b0612bbe565b6102c08301528151916020810151926040820151606083015190604051958693602085016117dd91610b03565b6117e691610b03565b6117ef91610b03565b6117f891610b03565b03601f198101845261180a908461068a565b60808101519260a082015160c0830151906040519586936020850161182e91610b03565b61183791610b03565b61184091610b03565b61184991610b03565b03601f198101845261185b908461068a565b60e081015192610100820151610120830151906040519586936020850161188191610b03565b61188a91610b03565b61189391610b03565b61189c91610b03565b03601f19810184526118ae908461068a565b6101408101519261016082015161018083015190604051958693602085016118d591610b03565b6118de91610b03565b6118e791610b03565b6118f091610b03565b03601f1981018452611902908461068a565b6101a0810151926101c08201516101e0830151906040519586936020850161192991610b03565b61193291610b03565b61193b91610b03565b61194491610b03565b03601f1981018452611956908461068a565b61020081015192610220820151610240830151906040519586936020850161197d91610b03565b61198691610b03565b61198f91610b03565b61199891610b03565b03601f19810184526119aa908461068a565b610260810151926102808201516102a083015190604051958693602085016119d191610b03565b6119da91610b03565b6119e391610b03565b6119ec91610b03565b03601f19810184526119fe908461068a565b6102c001519160405192839160208301611a1791610b03565b611a2091610b03565b03601f1981018352611a32908361068a565b611a3d600435612d63565b926060015191611a4c90612c88565b604051757b226e616d65223a202254696d654b6565706572202360501b602082015294859491939160368601611a8191610b03565b7f222c20226465736372697074696f6e223a202254696d654b656570657273206981527f73206120636f6c6c656374696f6e206f66206f6e2d636861696e2c206d6f737460208201527f6c7920616363757261746520636c6f636b732e2052656672657368206d65746160408201527f6461746120746f206765742061636375726174652074696d652e222c2022617460608201527f7472696275746573223a5b7b2274726169745f74797065223a2274696d657a6f6080820152716e65222c202276616c7565223a202255544360701b60a082015260b201611b6391610b03565b7f227d2c207b2274726169745f74797065223a226272616e64222c202276616c7581526332911d1160e11b6020820152602401611b9f91610b03565b7f227d2c207b2274726169745f74797065223a22636f6c6f72222c202276616c7581526332911d1160e11b6020820152602401611bdb91610b03565b7f227d5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d8152681b0ed8985cd94d8d0b60ba1b6020820152602901611c1c91610b03565b61227d60f01b815260020103601f1981018252611c39908261068a565b611c4290612c88565b6040517f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006020820152908190603d8201611c7b91610b03565b03601f1981018252611c8d908261068a565b6040516103518192826102e5565b935061161c61161661160a6116046115eb611cb4612307565b989450505050506115d6565b92610820611cf6611cdd6115a76115a060408801988951906121a4565b604051602b60f81b6020820152928391602183016115c3565b936115cb565b346101fe5760403660031901126101fe57602060ff610b7c611d1c61042d565b611d24610443565b6001600160a01b039091166000908152600785526040902061058c565b346101fe5760203660031901126101fe57611d5a61042d565b611d62611eeb565b6001600160a01b03908116908115611db057600a80546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b346101fe576020806003193601126101fe57611e1e61042d565b611e26611eeb565b6040516370a0823160e01b81523060048201526001600160a01b0391909116908281602481855afa908115611eb9576000928492611e83928591611ebe575b5060405194858094819363a9059cbb60e01b83523360048401610a4b565b03925af18015611eb957611e9357005b816108bc92903d10611eb2575b611eaa818361068a565b810190612365565b503d611ea0565b612359565b611ede9150843d8611611ee4575b611ed6818361068a565b81019061234a565b38611e65565b503d611ecc565b600a546001600160a01b03163303611eff57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405190611f50826105fd565b6008546001600160a01b038116835260a01c6020830152565b634e487b7160e01b600052601160045260246000fd5b90601e820291808304601e1490151715611f9557565b611f69565b90600682029180830460061490151715611f9557565b600281901b91906001600160fe1b03811603611f9557565b600181901b91906001600160ff1b03811603611f9557565b81810292918115918404141715611f9557565b15611ffa57565b60405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606490fd5b1561203b57565b60405162461bcd60e51b815260206004820152601b60248201527a13585e081b5a5b9d081c195c881dd85b1b195d081c995858da1959602a1b6044820152606490fd5b1561208557565b60405162461bcd60e51b815260206004820152601d60248201527f5554432064696666206d757374206265206c657373207468616e2031320000006044820152606490fd5b156120d157565b60405162461bcd60e51b8152602060048201526013602482015272213930b732103730b6b29034b9903a30b5b2b760691b6044820152606490fd5b1561211357565b60405162461bcd60e51b815260206004820152602a60248201527f4272616e64206e616d65206d757374206265206c657373207468616e203130206044820152696368617261637465727360b01b6064820152608490fd5b9060018201809211611f9557565b90600c8201809211611f9557565b906101688201809211611f9557565b9060028201809211611f9557565b91908201809211611f9557565b90601f81116121bf57505050565b600091825260208220906020601f850160051c830194106121fb575b601f0160051c01915b8281106121f057505050565b8181556001016121e4565b90925082906121db565b81518155602060606003828501511515936122306001958683019060ff801983541691151516179055565b6040860151600282015501930151908151916001600160401b038311610618576122648361225e8754610dc9565b876121b1565b81601f841160011461229d5750928293918392600094612292575b50501b916000199060031b1c1916179055565b01519250388061227f565b919083601f1981166122b488600052602060002090565b946000905b888383106122ed57505050106122d4575b505050811b019055565b015160001960f88460031b161c191690553880806122ca565b8587015188559096019594850194879350908101906122b9565b6040519061231482610638565b60008252565b3d15612345573d9061232b826106ba565b91612339604051938461068a565b82523d6000602084013e565b606090565b908160209103126101fe575190565b6040513d6000823e3d90fd5b908160209103126101fe57516102f6816105dd565b1561238157565b60405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608490fd5b604051906102e08083018381106001600160401b03821117610618576040528260005b82811061240d57505050565b606082820152602001612401565b906040516124288161061d565b6060612454600383958054855260ff600182015416151560208601526002810154604086015201610e03565b910152565b600019810191908211611f9557565b91908203918211611f9557565b634e487b7160e01b600052603260045260246000fd5b6040519060a082018281106001600160401b03821117610618576040908152606883527f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060208401527f30302f737667222076696577426f783d2230203020313030302031303030223e908301527f3c726563742077696474683d223130303022206865696768743d2231303030226060830152672066696c6c3d222360c01b6080830152565b6040519061253f82610653565b61021782527f222f3e3c7465787420783d223530302220793d223230302220666f6e742d736960208301527f7a653d223130302220666f6e742d66616d696c793d22417269616c222074657860408301527f742d616e63686f723d226d6964646c65223e31323c2f746578743e3c7465787460608301527f20783d223835302220793d223532352220666f6e742d73697a653d223130302260808301527f20666f6e742d66616d696c793d22417269616c2220746578742d616e63686f7260a08301527f3d226d6964646c65223e333c2f746578743e3c7465787420783d22353030222060c08301527f793d223838302220666f6e742d73697a653d223130302220666f6e742d66616d60e08301527f696c793d22417269616c2220746578742d616e63686f723d226d6964646c65226101008301527f3e363c2f746578743e3c7465787420783d223136302220793d223532352220666101208301527f6f6e742d73697a653d223130302220666f6e742d66616d696c793d22417269616101408301527f6c2220746578742d616e63686f723d226d6964646c65223e393c2f746578743e6101608301527f3c636972636c652063783d22353030222063793d223530302220723d223430306101808301527f22207374726f6b653d22626c61636b22207374726f6b652d77696474683d22316101a08301527f30222066696c6c3d226e6f6e6522202f3e3c636972636c652063783d223530306101c08301527f222063793d223530302220723d22313022207374726f6b653d22626c61636b226101e08301527f207374726f6b652d77696474683d223130222066696c6c3d22626c61636b22206102008301527605e7c78ce40e8e4c2dce6ccdee4da7a44e4dee8c2e8ca5604b1b610220830152565b604051906127dd8261066f565b609682526000805160206139b283398151915260208301527f30222078323d22353030222079323d2231323022207374726f6b653d22626c6160408301527f636b22207374726f6b652d77696474683d2235222f3e3c616e696d617465547260608301527f616e73666f726d206174747269627574654e616d653d227472616e73666f726d60808301527511103a3cb8329e913937ba30ba329110333937b69e9160511b60a0830152565b60405190612895826105fd565b600e82526d101a9818101a981811103a379e9160911b6020830152565b604051906128bf8261061d565b604882527f203530302035303022206475723d223630732220726570656174436f756e743d60208301527f22696e646566696e69746522202f3e3c2f673e3c67207472616e73666f726d3d604083015267044e4dee8c2e8ca560c31b6060830152565b6040519061292f8261066f565b609782526000805160206139b283398151915260208301527f30222078323d22353030222079323d2231373522207374726f6b653d22626c6160408301527f636b22207374726f6b652d77696474683d223130222f3e3c616e696d6174655460608301527f72616e73666f726d206174747269627574654e616d653d227472616e73666f726080830152763691103a3cb8329e913937ba30ba329110333937b69e9160491b60a0830152565b604051906129e88261061d565b604a82527f203530302035303022206475723d2233363030732220726570656174436f756e60208301527f743d22696e646566696e69746522202f3e3c2f673e3c67207472616e73666f726040830152690da7a44e4dee8c2e8ca560b31b6060830152565b60405190612a5a8261066f565b609782526000805160206139b283398151915260208301527f30222078323d22353030222079323d2232353022207374726f6b653d22626c6160408301527f636b22207374726f6b652d77696474683d223130222f3e3c616e696d6174655460608301527f72616e73666f726d206174747269627574654e616d653d227472616e73666f726080830152763691103a3cb8329e913937ba30ba329110333937b69e9160491b60a0830152565b60405190612b138261066f565b608482527f203530302035303022206475723d223433323030732220726570656174436f7560208301527f6e743d22696e646566696e69746522202f3e3c2f673e3c7465787420783d223560408301527f30302220793d223735302220666f6e742d73697a653d2237352220666f6e742d60608301527f66616d696c793d22417269616c2220746578742d616e63686f723d226d6964646080830152633632911f60e11b60a0830152565b60405190612bcb826105fd565b600d82526c1e17ba32bc3a1f1e17b9bb339f60991b6020830152565b60405190606082018281106001600160401b0382111761061857604052604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b90612c60826106ba565b612c6d604051918261068a565b8281528092612c7e601f19916106ba565b0190602036910137565b805115612d5a57612c97612be7565b612cbb612cb6612cb1612caa8551612196565b6003900490565b611fb0565b612c56565b9160208301918182518301915b828210612d0857505050600390510680600114612cf557600214612cea575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c1688010151600286015316850101519082015301939190612cc8565b506102f6612307565b6000908072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b80821015612e92575b506904ee2d6d415b85acef8160201b80831015612e83575b50662386f26fc1000080831015612e74575b506305f5e10080831015612e65575b5061271080831015612e56575b506064821015612e46575b600a80921015612e3c575b600190816021612df4828701612c56565b95860101905b612e06575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304918215612e3757919082612dfa565b612dff565b9160010191612de3565b9190606460029104910191612dd8565b60049193920491019138612dcd565b60089193920491019138612dc0565b60109193920491019138612db1565b60209193920491019138612d9f565b604093508104915038612d87565b806000908260801c80612fb1575b508060401c80612fa4575b508060201c80612f97575b5060109080821c80612f8a575b5060081c612f80575b60018092019291612ef5612cb6612ef086611fc8565b612196565b93845115612f7b5761083a612f209160306020889796959701536078612f1a88612fbd565b53611fc8565b925b808411612f365750506102f6915015612feb565b9091600f81169083821015612f7b57612f73916f181899199a1a9b1b9c1cb0b131b232b360811b901a612f698688612fcd565b5360041c93612fde565b929190612f22565b612475565b9060010190612eda565b6002915092019138612ed1565b6004915091019038612ec4565b6008915091019038612eb9565b91505060109038612eae565b805160011015612f7b5760210190565b908151811015612f7b570160200190565b8015611f95576000190190565b15612ff257565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b6000198114611f955760010190565b60ff60209116019060ff8211611f9557565b906130628251612c56565b600092835b815181101561311c578060416130a361309d6130976130896130ed9688612fcd565b516001600160f81b03191690565b60f81c90565b60ff1690565b1015806130ff575b156130f2576130db6130cb6130c66130976130898588612fcd565b613045565b60f81b6001600160f81b03191690565b861a6130e78286612fcd565b53613036565b613067565b6130db6130898285612fcd565b50605a60ff6131146130976130898588612fcd565b1611156130ab565b5090925050565b9060011990818101818111611f955761313b90612c56565b9260025b82811061314d575050505090565b6001600160f81b03196131608284612fcd565b511690848101818111611f95576130e761317e9360001a9188612fcd565b61313f565b90815160009081805b8281106131e2575b506131a2612cb68484612468565b92805b8381106131b55750929450505050565b806131c66130896131dd938a612fcd565b6130e76131d38584612468565b91861a9188612fcd565b6131a5565b6131ff6131f26130898389612fcd565b6001600160f81b03191690565b600160fd1b8114159081613278575b81613269575b8161325a575b8161324b575b81613241575b506132395761323490613036565b61318c565b925038613194565b9050151538613226565b600b60f81b8114159150613220565b600d60f81b811415915061321a565b600560f91b8114159150613214565b600960f81b811415915061320e565b805190613295600092612459565b6132a56131f26130898385612fcd565b600160fd1b8114159081613358575b81613349575b8161333a575b8161332b575b81613321575b506132df576132da90612fde565b613295565b90916132ed612cb68361216b565b92815b838111156132ff575050505090565b8061331061308961331c9385612fcd565b841a6130e78288612fcd565b6132f0565b90501515386132cc565b600b60f81b81141591506132c6565b600d60f81b81141591506132c0565b600560f91b81141591506132ba565b600960f81b81141591506132b4565b6001600160a01b031680156133905760005260056020526001600160401b036040600020541690565b6040516323d3ad8160e21b8152600490fd5b60008180600111156133c1575b604051636f96cda160e11b8152600490fd5b81548110156133af5781526004906020918083526040928383205494600160e01b8616156133f1575050506133af565b93929190935b851561340557505050505090565b600019018083528185528383205495506133f7565b80600111159081613449575b8161342f575090565b90506000526004602052600160e01b604060002054161590565b60005481109150613426565b6001600160a01b039182169190921690811491141790565b6000526006602052604060002090815490565b908160209103126101fe57516102f6816101ec565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526102f6929101906102c0565b926020916134ef936000604051809681958294630a85bd0160e11b9a8b85523360048601613495565b03926001600160a01b03165af16000918161353f575b506135315761351261231a565b8051908161352c576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b61356191925060203d8111613568575b613559818361068a565b810190613480565b9038613505565b503d61354f565b600080549161357d81610572565b80546001600160401b010190556001600160a01b03164260a01b8117600160e11b176135a884610db9565b556001808401936000805160206139d2833981519152908385838180a4845b8581036135ea57505050156135d95755565b604051622e076360e81b8152600490fd5b8083918587858180a4016135c7565b604051906136068261061d565b60006060838281528260208201528260408201520152565b6136266135f9565b5061362f6135f9565b600182108015613671575b61366c57506136488161367d565b604081015161366c57506136676102f6916136616135f9565b506133a2565b613698565b905090565b5060005482101561363a565b6136856135f9565b5060005260046020526102f66040600020545b906136a16135f9565b6001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b83161515604082015260e89290921c6060830152565b6001600160401b0381116106185760051b60200190565b8051821015612f7b5760209160051b010190565b61370f826136db565b9161371d604051938461068a565b808352601f1961372c826136db565b0160005b81811061377f57505060005b8181036137495750505090565b81811015612f7b578061376360019260051b85013561361e565b61376d82876136f2565b5261377881866136f2565b500161373c565b60209061378a6135f9565b82828801015201613730565b906137a0826136db565b6137ad604051918261068a565b8281528092612c7e601f19916136db565b90828110156138fe576000918254916001928382106138f6575b8086116138ee575b506137ea82613367565b91858210156138e6578186038381106138de575b505b61380983613796565b9583156138d557849361381b8461361e565b91879460409361383061093f86830151151590565b6138c3575b50955b613849575b50505050505050815290565b80861415806138b9575b156138b4578686613864829861367d565b808601516138ae57516001600160a01b03908116806138a6575b5080871690881614613892575b0195613838565b806138a0838c019b8d6136f2565b5261388b565b97503861387e565b5061388b565b61383d565b5081881415613853565b516001600160a01b0316955038613835565b50505050505090565b9250386137fe565b849250613800565b9450386137e0565b8391506137d8565b604051631960ccad60e11b8152600490fd5b6daaeb6d7670e522a718067333cd4e803b613929575050565b604051633185c44d60e21b81523060048201526001600160a01b038316602482015290602090829060449082905afa908115611eb957600091613993575b50156139705750565b604051633b79c77360e21b81526001600160a01b03919091166004820152602490fd5b6139ab915060203d8111611eb257611eaa818361068a565b3861396756fe203530302035303029223e3c6c696e652078313d22353030222079313d223530ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa164736f6c6343000812000a
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.