Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 8 from a total of 8 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Flur Alpha H... | 16130134 | 636 days ago | IN | 0 ETH | 0.06989746 | ||||
Set Flur Alpha H... | 16130131 | 636 days ago | IN | 0 ETH | 0.06189977 | ||||
Set Flur Alpha H... | 16130124 | 636 days ago | IN | 0 ETH | 0.06296881 | ||||
Set Flur Alpha H... | 16130116 | 636 days ago | IN | 0 ETH | 0.06196211 | ||||
Set Flur Alpha H... | 16130098 | 636 days ago | IN | 0 ETH | 0.06390333 | ||||
Set Flur Alpha W... | 16130079 | 636 days ago | IN | 0 ETH | 0.03244112 | ||||
Set Base URI | 16130077 | 636 days ago | IN | 0 ETH | 0.00069179 | ||||
0x6001600b | 16130069 | 636 days ago | IN | 0 ETH | 0.0442695 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
GALAXIES
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-07 */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.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); } } } /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } /** * @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); } } /** * @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); } interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } /** * @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; } } /** * @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); } } /** * @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; } } /** * @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); } /** * @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); } /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; } /** * @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); } /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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`. * * 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 calldata data ) external; /** * @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 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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); } /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} } /** * @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]; } } /** * @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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId, bool approvalCheck) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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) } } } /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } /** * @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; } } } /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } } abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(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)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !( OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender) && OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), from) ) ) { revert OperatorNotAllowed(msg.sender); } } _; } } abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } contract GALAXIES is ERC721A, ERC721ABurnable, ERC721AQueryable, Ownable, ERC2981, DefaultOperatorFilterer { using Strings for uint256; uint256 constant maxSupply = 420; uint256 constant mintPrice = 0.03 ether; uint256 public maxPerAddress = 1; uint256 public maxPerTx = 1; string public baseURI; string public baseExtension = ".json"; string public notRevealedUri; bool public revealed = true; bool public letsgolive = false; mapping(address => uint256) public flurAlphaWhale; mapping(address => uint256) public flurAlphaHolders; mapping(address => uint256) public flurAlphaMintAttempts; uint public randNonce = 0; uint public reservedWhales = 113; constructor() ERC721A("GALAXIES by SweepersLair x Flur", "GALAXIES") { } function goLive(bool _letsfngo) external onlyOwner { letsgolive = _letsfngo; } function setFlurAlphaWhales(address[] memory wallets, uint256[] memory amounts) external onlyOwner { require(wallets.length <= 200, "Can only set 200 wallets per txn due to gas limits"); for(uint256 i = 0; i < wallets.length; i++){ flurAlphaWhale[wallets[i]] = amounts[i]; } } function setFlurAlphaHolders(address[] memory wallets, uint256[] memory amounts) external onlyOwner { require(wallets.length <= 200, "Can only set 200 wallets per txn due to gas limits"); for(uint256 i = 0; i < wallets.length; i++){ flurAlphaHolders[wallets[i]] = amounts[i]; } } function whaleMint(uint256 _quantity) external payable { require(letsgolive, "Galaxies: Mint Not Active"); require(flurAlphaWhale[msg.sender] > 0, "You are NOT a whale"); require(_quantity <= flurAlphaWhale[msg.sender], "Galaxies: Trying to mint more than Allowed"); require(totalSupply() + _quantity <= maxSupply, "Galaxies: Mint Supply Exceeded"); require(_numberMinted(msg.sender) + _quantity <= flurAlphaWhale[msg.sender], "Galaxies: Exceeds Max For Your Whale Wallet"); require(mintPrice * _quantity <= msg.value, "Not enough ETH sent for selected amount"); _safeMint(msg.sender, _quantity); } function lotteryWinner() internal returns (bool) { randNonce++; if ((uint(keccak256(abi.encodePacked(block.timestamp,msg.sender,randNonce))) % 100) > 50) { return true; } else { return false; } } function updateWhaleReserved(uint _reserved) external onlyOwner { reservedWhales = _reserved; } function mint() external payable { uint256 _quantity = 1; require(letsgolive, "Galaxies: Mint Not Active"); require(_quantity <= maxPerTx, "Galaxies: Max Per Transaction Exceeded"); require(totalSupply() + _quantity <= (maxSupply - reservedWhales), "Galaxies: Mint Supply Exceeded"); require(_numberMinted(msg.sender) + _quantity <= maxPerAddress, "Galaxies: Exceeds Max Per Wallet"); require(flurAlphaMintAttempts[msg.sender] <= flurAlphaHolders[msg.sender], "Galaxies: You've maxed out your mint attempts"); if (lotteryWinner()) { _safeMint(msg.sender, _quantity); flurAlphaMintAttempts[msg.sender]++; } else { payable(_msgSender()).transfer(mintPrice); flurAlphaMintAttempts[msg.sender]++; } } function reserve(address _address, uint256 _quantity) external onlyOwner { require(totalSupply() + _quantity <= maxSupply, "Galaxies: Mint Supply Exceeded"); _safeMint(_address, _quantity); } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if(revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } function supportsInterface( bytes4 interfaceId ) public view override(ERC721A, ERC2981, IERC721A) returns (bool) { return ERC2981.supportsInterface(interfaceId) || ERC721A.supportsInterface(interfaceId); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function reveal() public onlyOwner { revealed = true; } function setDefaultRoyalty( address _receiver, uint96 _feeNumerator ) external onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } function deleteDefaultRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } function setTokenRoyalty( uint256 _tokenId, address _receiver, uint96 _feeNumerator ) external onlyOwner { _setTokenRoyalty(_tokenId, _receiver, _feeNumerator); } function resetTokenRoyalty( uint256 tokenId ) external onlyOwner { _resetTokenRoyalty(tokenId); } /* ------------ OpenSea Overrides --------------*/ 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); } function withdrawMoney() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Withdraw failed."); } }
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":[{"internalType":"address","name":"to","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":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"flurAlphaHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"flurAlphaMintAttempts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"flurAlphaWhale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_letsfngo","type":"bool"}],"name":"goLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"letsgolive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","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":"randNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedWhales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setFlurAlphaHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setFlurAlphaWhales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"internalType":"uint256","name":"_reserved","type":"uint256"}],"name":"updateWhaleReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"whaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6001600b819055600c5560c06040526005608090815264173539b7b760d91b60a052600e906200003090826200033c565b506010805461ffff19166001179055600060145560716015553480156200005657600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601f81526020017f47414c41584945532062792053776565706572734c616972207820466c7572008152506040518060400160405280600881526020016747414c415849455360c01b8152508160029081620000d691906200033c565b506003620000e582826200033c565b5050600160005550620000f83362000245565b6daaeb6d7670e522a718067333cd4e3b156200023d5780156200018b57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200016c57600080fd5b505af115801562000181573d6000803e3d6000fd5b505050506200023d565b6001600160a01b03821615620001dc5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000151565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200022357600080fd5b505af115801562000238573d6000803e3d6000fd5b505050505b505062000408565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002c257607f821691505b602082108103620002e357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200033757600081815260208120601f850160051c81016020861015620003125750805b601f850160051c820191505b8181101562000333578281556001016200031e565b5050505b505050565b81516001600160401b0381111562000358576200035862000297565b6200037081620003698454620002ad565b84620002e9565b602080601f831160018114620003a857600084156200038f5750858301515b600019600386901b1c1916600185901b17855562000333565b600085815260208120601f198616915b82811015620003d957888601518255948401946001909101908401620003b8565b5085821015620003f85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61354980620004186000396000f3fe6080604052600436106102e45760003560e01c806370a0823111610190578063b88d4fde116100dc578063cc47a40b11610095578063e985e9c51161006f578063e985e9c51461089b578063f2c4ce1e146108e4578063f2fde38b14610904578063f968adbe1461092457600080fd5b8063cc47a40b1461082e578063d7d1620e1461084e578063da3ef23f1461087b57600080fd5b8063b88d4fde14610790578063bd01ed84146107a3578063c23dc68f146107b9578063c6682862146107e6578063c87b56dd146107fb578063cbe514b61461081b57600080fd5b806395d89b4111610149578063a22cb46511610123578063a22cb46514610731578063a475b5dd14610751578063aa1b103f14610766578063ac4460021461077b57600080fd5b806395d89b41146106dc57806399a2557a146106f15780639b7453b01461071157600080fd5b806370a082311461061c578063715018a61461063c5780638462151c146106515780638a616bc01461067e5780638da5cb5b1461069e5780639434654b146106bc57600080fd5b80632a55205a1161024f57806359328d491161020857806361e01356116101e257806361e01356146105bb5780636352211e146105d1578063639814e0146105f15780636c0360eb1461060757600080fd5b806359328d49146105415780635944c7531461056e5780635bbb21771461058e57600080fd5b80632a55205a1461047657806342842e0e146104b557806342966c68146104c85780634725508e146104e8578063518302271461050757806355f804b31461052157600080fd5b80630cf84502116102a15780630cf84502146103c25780631249c58b146103fd57806318160ddd146104055780631bac14ce14610423578063219d1ce91461044357806323b872dd1461046357600080fd5b806301ffc9a7146102e957806304634d8d1461031e57806306fdde0314610340578063081812fc14610362578063081c8c441461039a578063095ea7b3146103af575b600080fd5b3480156102f557600080fd5b50610309610304366004612a88565b61093a565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b5061033e610339366004612ad8565b61095a565b005b34801561034c57600080fd5b50610355610970565b6040516103159190612b5b565b34801561036e57600080fd5b5061038261037d366004612b6e565b610a02565b6040516001600160a01b039091168152602001610315565b3480156103a657600080fd5b50610355610a46565b61033e6103bd366004612b87565b610ad4565b3480156103ce57600080fd5b506103ef6103dd366004612bb1565b60116020526000908152604090205481565b604051908152602001610315565b61033e610ae0565b34801561041157600080fd5b506103ef600154600054036000190190565b34801561042f57600080fd5b5061033e61043e366004612ca0565b610d66565b34801561044f57600080fd5b5061033e61045e366004612b6e565b610e10565b61033e610471366004612d5f565b610e1d565b34801561048257600080fd5b50610496610491366004612d9b565b610f79565b604080516001600160a01b039093168352602083019190915201610315565b61033e6104c3366004612d5f565b611025565b3480156104d457600080fd5b5061033e6104e3366004612b6e565b611176565b3480156104f457600080fd5b5060105461030990610100900460ff1681565b34801561051357600080fd5b506010546103099060ff1681565b34801561052d57600080fd5b5061033e61053c366004612e14565b611181565b34801561054d57600080fd5b506103ef61055c366004612bb1565b60126020526000908152604090205481565b34801561057a57600080fd5b5061033e610589366004612e5c565b611195565b34801561059a57600080fd5b506105ae6105a9366004612e98565b6111a8565b6040516103159190612f48565b3480156105c757600080fd5b506103ef60145481565b3480156105dd57600080fd5b506103826105ec366004612b6e565b611273565b3480156105fd57600080fd5b506103ef600b5481565b34801561061357600080fd5b5061035561127e565b34801561062857600080fd5b506103ef610637366004612bb1565b61128b565b34801561064857600080fd5b5061033e6112d9565b34801561065d57600080fd5b5061067161066c366004612bb1565b6112ed565b6040516103159190612f8a565b34801561068a57600080fd5b5061033e610699366004612b6e565b6113f5565b3480156106aa57600080fd5b506008546001600160a01b0316610382565b3480156106c857600080fd5b5061033e6106d7366004612fd0565b61140e565b3480156106e857600080fd5b50610355611430565b3480156106fd57600080fd5b5061067161070c366004612fed565b61143f565b34801561071d57600080fd5b5061033e61072c366004612ca0565b6115c6565b34801561073d57600080fd5b5061033e61074c366004613020565b61166b565b34801561075d57600080fd5b5061033e6116d7565b34801561077257600080fd5b5061033e6116ee565b34801561078757600080fd5b5061033e611700565b61033e61079e366004613057565b611793565b3480156107af57600080fd5b506103ef60155481565b3480156107c557600080fd5b506107d96107d4366004612b6e565b6118f2565b60405161031591906130d2565b3480156107f257600080fd5b5061035561197a565b34801561080757600080fd5b50610355610816366004612b6e565b611987565b61033e610829366004612b6e565b611af5565b34801561083a57600080fd5b5061033e610849366004612b87565b611d59565b34801561085a57600080fd5b506103ef610869366004612bb1565b60136020526000908152604090205481565b34801561088757600080fd5b5061033e610896366004612e14565b611da8565b3480156108a757600080fd5b506103096108b63660046130e0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108f057600080fd5b5061033e6108ff366004612e14565b611dbc565b34801561091057600080fd5b5061033e61091f366004612bb1565b611dd0565b34801561093057600080fd5b506103ef600c5481565b600061094582611e46565b80610954575061095482611e7b565b92915050565b610962611ec9565b61096c8282611f23565b5050565b60606002805461097f9061310a565b80601f01602080910402602001604051908101604052809291908181526020018280546109ab9061310a565b80156109f85780601f106109cd576101008083540402835291602001916109f8565b820191906000526020600020905b8154815290600101906020018083116109db57829003601f168201915b5050505050905090565b6000610a0d82611fdd565b610a2a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600f8054610a539061310a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7f9061310a565b8015610acc5780601f10610aa157610100808354040283529160200191610acc565b820191906000526020600020905b815481529060010190602001808311610aaf57829003601f168201915b505050505081565b61096c82826001612012565b601054600190610100900460ff16610b3b5760405162461bcd60e51b815260206004820152601960248201527847616c61786965733a204d696e74204e6f742041637469766560381b60448201526064015b60405180910390fd5b600c54811115610b9c5760405162461bcd60e51b815260206004820152602660248201527f47616c61786965733a204d617820506572205472616e73616374696f6e20457860448201526518d95959195960d21b6064820152608401610b32565b601554610bab906101a461315a565b81610bbd600154600054036000190190565b610bc7919061316d565b1115610be55760405162461bcd60e51b8152600401610b3290613180565b600b5433600090815260056020526040908190205483911c6001600160401b0316610c10919061316d565b1115610c5e5760405162461bcd60e51b815260206004820181905260248201527f47616c61786965733a2045786365656473204d6178205065722057616c6c65746044820152606401610b32565b336000908152601260209081526040808320546013909252909120541115610cde5760405162461bcd60e51b815260206004820152602d60248201527f47616c61786965733a20596f75277665206d61786564206f757420796f75722060448201526c6d696e7420617474656d70747360981b6064820152608401610b32565b610ce66120be565b15610d1857610cf53382612147565b336000908152601360205260408120805491610d10836131b7565b919050555050565b6040513390600090666a94d74f4300009082818181858883f19350505050158015610d47573d6000803e3d6000fd5b50336000908152601360205260408120805491610d10836131b7565b50565b610d6e611ec9565b60c882511115610d905760405162461bcd60e51b8152600401610b32906131d0565b60005b8251811015610e0b57818181518110610dae57610dae613222565b602002602001015160116000858481518110610dcc57610dcc613222565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610e03906131b7565b915050610d93565b505050565b610e18611ec9565b601555565b826daaeb6d7670e522a718067333cd4e3b15610f6857336001600160a01b03821603610e5357610e4e848484612161565b610f73565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ea2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec69190613238565b8015610f495750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610f25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f499190613238565b610f6857604051633b79c77360e21b8152336004820152602401610b32565b610f73848484612161565b50505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610fee5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061100d906001600160601b031687613255565b6110179190613282565b915196919550909350505050565b826daaeb6d7670e522a718067333cd4e3b1561116b57336001600160a01b0382160361105657610e4e8484846122f2565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c99190613238565b801561114c5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611128573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114c9190613238565b61116b57604051633b79c77360e21b8152336004820152602401610b32565b610f738484846122f2565b610d6381600161230d565b611189611ec9565b600d61096c82826132dc565b61119d611ec9565b610e0b838383612445565b6060816000816001600160401b038111156111c5576111c5612bcc565b60405190808252806020026020018201604052801561121757816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816111e35790505b50905060005b82811461126a5761124586868381811061123957611239613222565b905060200201356118f2565b82828151811061125757611257613222565b602090810291909101015260010161121d565b50949350505050565b600061095482612510565b600d8054610a539061310a565b60006001600160a01b0382166112b4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6112e1611ec9565b6112eb600061257f565b565b606060008060006112fd8561128b565b90506000816001600160401b0381111561131957611319612bcc565b604051908082528060200260200182016040528015611342578160200160208202803683370190505b50905061136f60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146113e957611382816125d1565b915081604001516113e15781516001600160a01b0316156113a257815194505b876001600160a01b0316856001600160a01b0316036113e157808387806001019850815181106113d4576113d4613222565b6020026020010181815250505b600101611372565b50909695505050505050565b6113fd611ec9565b6000908152600a6020526040812055565b611416611ec9565b601080549115156101000261ff0019909216919091179055565b60606003805461097f9061310a565b606081831061146157604051631960ccad60e11b815260040160405180910390fd5b60008061146d60005490565b9050600185101561147d57600194505b80841115611489578093505b60006114948761128b565b9050848610156114b357858503818110156114ad578091505b506114b7565b5060005b6000816001600160401b038111156114d1576114d1612bcc565b6040519080825280602002602001820160405280156114fa578160200160208202803683370190505b509050816000036115105793506115bf92505050565b600061151b886118f2565b90506000816040015161152c575080515b885b88811415801561153e5750848714155b156115b35761154c816125d1565b925082604001516115ab5782516001600160a01b03161561156c57825191505b8a6001600160a01b0316826001600160a01b0316036115ab578084888060010199508151811061159e5761159e613222565b6020026020010181815250505b60010161152e565b50505092835250909150505b9392505050565b6115ce611ec9565b60c8825111156115f05760405162461bcd60e51b8152600401610b32906131d0565b60005b8251811015610e0b5781818151811061160e5761160e613222565b60200260200101516012600085848151811061162c5761162c613222565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611663906131b7565b9150506115f3565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116df611ec9565b6010805460ff19166001179055565b6116f6611ec9565b6112eb6000600955565b611708611ec9565b604051600090339047908381818185875af1925050503d806000811461174a576040519150601f19603f3d011682016040523d82523d6000602084013e61174f565b606091505b5050905080610d635760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401610b32565b836daaeb6d7670e522a718067333cd4e3b156118df57336001600160a01b038216036117ca576117c58585858561260d565b6118eb565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611819573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183d9190613238565b80156118c05750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561189c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c09190613238565b6118df57604051633b79c77360e21b8152336004820152602401610b32565b6118eb8585858561260d565b5050505050565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061194b57506000548310155b156119565792915050565b61195f836125d1565b90508060400151156119715792915050565b6115bf83612651565b600e8054610a539061310a565b606061199282611fdd565b6119f65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b32565b60105460ff161515600003611a9757600f8054611a129061310a565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3e9061310a565b8015611a8b5780601f10611a6057610100808354040283529160200191611a8b565b820191906000526020600020905b815481529060010190602001808311611a6e57829003601f168201915b50505050509050919050565b6000611aa1612686565b90506000815111611ac157604051806020016040528060008152506115bf565b80611acb84612695565b600e604051602001611adf9392919061339b565b6040516020818303038152906040529392505050565b601054610100900460ff16611b485760405162461bcd60e51b815260206004820152601960248201527847616c61786965733a204d696e74204e6f742041637469766560381b6044820152606401610b32565b33600090815260116020526040902054611b9a5760405162461bcd60e51b8152602060048201526013602482015272596f7520617265204e4f542061207768616c6560681b6044820152606401610b32565b33600090815260116020526040902054811115611c0c5760405162461bcd60e51b815260206004820152602a60248201527f47616c61786965733a20547279696e6720746f206d696e74206d6f7265207468604482015269185b88105b1b1bddd95960b21b6064820152608401610b32565b6101a481611c21600154600054036000190190565b611c2b919061316d565b1115611c495760405162461bcd60e51b8152600401610b3290613180565b33600090815260116020908152604080832054600590925291829020549091611c7d9184911c6001600160401b031661316d565b1115611cdf5760405162461bcd60e51b815260206004820152602b60248201527f47616c61786965733a2045786365656473204d617820466f7220596f7572205760448201526a1a185b194815d85b1b195d60aa1b6064820152608401610b32565b34611cf182666a94d74f430000613255565b1115611d4f5760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f756768204554482073656e7420666f722073656c656374656460448201526608185b5bdd5b9d60ca1b6064820152608401610b32565b610d633382612147565b611d61611ec9565b6101a481611d76600154600054036000190190565b611d80919061316d565b1115611d9e5760405162461bcd60e51b8152600401610b3290613180565b61096c8282612147565b611db0611ec9565b600e61096c82826132dc565b611dc4611ec9565b600f61096c82826132dc565b611dd8611ec9565b6001600160a01b038116611e3d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b32565b610d638161257f565b60006001600160e01b0319821663152a902d60e11b148061095457506301ffc9a760e01b6001600160e01b0319831614610954565b60006301ffc9a760e01b6001600160e01b031983161480611eac57506380ac58cd60e01b6001600160e01b03198316145b806109545750506001600160e01b031916635b5e139f60e01b1490565b6008546001600160a01b031633146112eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b32565b6127106001600160601b0382161115611f4e5760405162461bcd60e51b8152600401610b329061343b565b6001600160a01b038216611fa45760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b32565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081600111158015611ff1575060005482105b8015610954575050600090815260046020526040902054600160e01b161590565b600061201d83611273565b90508180156120355750336001600160a01b03821614155b156120615761204481336108b6565b612061576040516367d9dca160e11b815260040160405180910390fd5b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60148054600091826120cf836131b7565b91905055506032606442336014546040516020016121129392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b6040516020818303038152906040528051906020012060001c6121359190613485565b11156121415750600190565b50600090565b61096c828260405180602001604052806000815250612727565b600061216c82612510565b9050836001600160a01b0316816001600160a01b03161461219f5760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546121cb8187335b6001600160a01b039081169116811491141790565b6121f6576121d986336108b6565b6121f657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661221d57604051633a954ecd60e21b815260040160405180910390fd5b801561222857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036122ba576001840160008181526004602052604081205490036122b85760005481146122b85760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206134f483398151915260405160405180910390a45b505050505050565b610e0b83838360405180602001604052806000815250611793565b600061231883612510565b90508060008061233686600090815260066020526040902080549091565b9150915084156123765761234b8184336121b6565b6123765761235983336108b6565b61237657604051632ce44b5f60e11b815260040160405180910390fd5b801561238157600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b8516900361240f5760018601600081815260046020526040812054900361240d57600054811461240d5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616906000805160206134f4833981519152908390a45050600180548101905550505050565b6127106001600160601b03821611156124705760405162461bcd60e51b8152600401610b329061343b565b6001600160a01b0382166124c65760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610b32565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600a90529190942093519051909116600160a01b029116179055565b60008180600111612566576000548110156125665760008181526004602052604081205490600160e01b82169003612564575b806000036115bf575060001901600081815260046020526040902054612543565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600460205260409020546109549061278d565b612618848484610e1d565b6001600160a01b0383163b15610f7357612634848484846127d4565b610f73576040516368d2bf6b60e11b815260040160405180910390fd5b60408051608081018252600080825260208201819052918101829052606081019190915261095461268183612510565b61278d565b6060600d805461097f9061310a565b606060006126a2836128c0565b60010190506000816001600160401b038111156126c1576126c1612bcc565b6040519080825280601f01601f1916602001820160405280156126eb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846126f557509392505050565b6127318383612998565b6001600160a01b0383163b15610e0b576000548281035b61275b60008683806001019450866127d4565b612778576040516368d2bf6b60e11b815260040160405180910390fd5b8181106127485781600054146118eb57600080fd5b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612809903390899088908890600401613499565b6020604051808303816000875af1925050508015612844575060408051601f3d908101601f19168201909252612841918101906134d6565b60015b6128a2573d808015612872576040519150601f19603f3d011682016040523d82523d6000602084013e612877565b606091505b50805160000361289a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106128ff5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061292b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061294957662386f26fc10000830492506010015b6305f5e1008310612961576305f5e100830492506008015b612710831061297557612710830492506004015b60648310612987576064830492506002015b600a83106109545760010192915050565b60008054908290036129bd5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206134f48339815191528180a4600183015b818114612a4857808360006000805160206134f4833981519152600080a4600101612a22565b5081600003612a6957604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610d6357600080fd5b600060208284031215612a9a57600080fd5b81356115bf81612a72565b80356001600160a01b0381168114612abc57600080fd5b919050565b80356001600160601b0381168114612abc57600080fd5b60008060408385031215612aeb57600080fd5b612af483612aa5565b9150612b0260208401612ac1565b90509250929050565b60005b83811015612b26578181015183820152602001612b0e565b50506000910152565b60008151808452612b47816020860160208601612b0b565b601f01601f19169290920160200192915050565b6020815260006115bf6020830184612b2f565b600060208284031215612b8057600080fd5b5035919050565b60008060408385031215612b9a57600080fd5b612ba383612aa5565b946020939093013593505050565b600060208284031215612bc357600080fd5b6115bf82612aa5565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612c0a57612c0a612bcc565b604052919050565b60006001600160401b03821115612c2b57612c2b612bcc565b5060051b60200190565b600082601f830112612c4657600080fd5b81356020612c5b612c5683612c12565b612be2565b82815260059290921b84018101918181019086841115612c7a57600080fd5b8286015b84811015612c955780358352918301918301612c7e565b509695505050505050565b60008060408385031215612cb357600080fd5b82356001600160401b0380821115612cca57600080fd5b818501915085601f830112612cde57600080fd5b81356020612cee612c5683612c12565b82815260059290921b84018101918181019089841115612d0d57600080fd5b948201945b83861015612d3257612d2386612aa5565b82529482019490820190612d12565b96505086013592505080821115612d4857600080fd5b50612d5585828601612c35565b9150509250929050565b600080600060608486031215612d7457600080fd5b612d7d84612aa5565b9250612d8b60208501612aa5565b9150604084013590509250925092565b60008060408385031215612dae57600080fd5b50508035926020909101359150565b60006001600160401b03831115612dd657612dd6612bcc565b612de9601f8401601f1916602001612be2565b9050828152838383011115612dfd57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e2657600080fd5b81356001600160401b03811115612e3c57600080fd5b8201601f81018413612e4d57600080fd5b6128b884823560208401612dbd565b600080600060608486031215612e7157600080fd5b83359250612e8160208501612aa5565b9150612e8f60408501612ac1565b90509250925092565b60008060208385031215612eab57600080fd5b82356001600160401b0380821115612ec257600080fd5b818501915085601f830112612ed657600080fd5b813581811115612ee557600080fd5b8660208260051b8501011115612efa57600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156113e957612f77838551612f0c565b9284019260809290920191600101612f64565b6020808252825182820181905260009190848201906040850190845b818110156113e957835183529284019291840191600101612fa6565b8015158114610d6357600080fd5b600060208284031215612fe257600080fd5b81356115bf81612fc2565b60008060006060848603121561300257600080fd5b61300b84612aa5565b95602085013595506040909401359392505050565b6000806040838503121561303357600080fd5b61303c83612aa5565b9150602083013561304c81612fc2565b809150509250929050565b6000806000806080858703121561306d57600080fd5b61307685612aa5565b935061308460208601612aa5565b92506040850135915060608501356001600160401b038111156130a657600080fd5b8501601f810187136130b757600080fd5b6130c687823560208401612dbd565b91505092959194509250565b608081016109548284612f0c565b600080604083850312156130f357600080fd5b6130fc83612aa5565b9150612b0260208401612aa5565b600181811c9082168061311e57607f821691505b60208210810361313e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561095457610954613144565b8082018082111561095457610954613144565b6020808252601e908201527f47616c61786965733a204d696e7420537570706c792045786365656465640000604082015260600190565b6000600182016131c9576131c9613144565b5060010190565b60208082526032908201527f43616e206f6e6c7920736574203230302077616c6c657473207065722074786e6040820152712064756520746f20676173206c696d69747360701b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561324a57600080fd5b81516115bf81612fc2565b808202811582820484141761095457610954613144565b634e487b7160e01b600052601260045260246000fd5b6000826132915761329161326c565b500490565b601f821115610e0b57600081815260208120601f850160051c810160208610156132bd5750805b601f850160051c820191505b818110156122ea578281556001016132c9565b81516001600160401b038111156132f5576132f5612bcc565b61330981613303845461310a565b84613296565b602080601f83116001811461333e57600084156133265750858301515b600019600386901b1c1916600185901b1785556122ea565b600085815260208120601f198616915b8281101561336d5788860151825594840194600190910190840161334e565b508582101561338b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000845160206133ae8285838a01612b0b565b8551918401916133c18184848a01612b0b565b85549201916000906133d28161310a565b600182811680156133ea57600181146133ff5761342b565b60ff198416875282151583028701945061342b565b896000528560002060005b848110156134235781548982015290830190870161340a565b505082870194505b50929a9950505050505050505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6000826134945761349461326c565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134cc90830184612b2f565b9695505050505050565b6000602082840312156134e857600080fd5b81516115bf81612a7256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207a54a4439f6767cc3be2c29f85b5da788cbfc133434dc277aaf40502b3acbd4764736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102e45760003560e01c806370a0823111610190578063b88d4fde116100dc578063cc47a40b11610095578063e985e9c51161006f578063e985e9c51461089b578063f2c4ce1e146108e4578063f2fde38b14610904578063f968adbe1461092457600080fd5b8063cc47a40b1461082e578063d7d1620e1461084e578063da3ef23f1461087b57600080fd5b8063b88d4fde14610790578063bd01ed84146107a3578063c23dc68f146107b9578063c6682862146107e6578063c87b56dd146107fb578063cbe514b61461081b57600080fd5b806395d89b4111610149578063a22cb46511610123578063a22cb46514610731578063a475b5dd14610751578063aa1b103f14610766578063ac4460021461077b57600080fd5b806395d89b41146106dc57806399a2557a146106f15780639b7453b01461071157600080fd5b806370a082311461061c578063715018a61461063c5780638462151c146106515780638a616bc01461067e5780638da5cb5b1461069e5780639434654b146106bc57600080fd5b80632a55205a1161024f57806359328d491161020857806361e01356116101e257806361e01356146105bb5780636352211e146105d1578063639814e0146105f15780636c0360eb1461060757600080fd5b806359328d49146105415780635944c7531461056e5780635bbb21771461058e57600080fd5b80632a55205a1461047657806342842e0e146104b557806342966c68146104c85780634725508e146104e8578063518302271461050757806355f804b31461052157600080fd5b80630cf84502116102a15780630cf84502146103c25780631249c58b146103fd57806318160ddd146104055780631bac14ce14610423578063219d1ce91461044357806323b872dd1461046357600080fd5b806301ffc9a7146102e957806304634d8d1461031e57806306fdde0314610340578063081812fc14610362578063081c8c441461039a578063095ea7b3146103af575b600080fd5b3480156102f557600080fd5b50610309610304366004612a88565b61093a565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b5061033e610339366004612ad8565b61095a565b005b34801561034c57600080fd5b50610355610970565b6040516103159190612b5b565b34801561036e57600080fd5b5061038261037d366004612b6e565b610a02565b6040516001600160a01b039091168152602001610315565b3480156103a657600080fd5b50610355610a46565b61033e6103bd366004612b87565b610ad4565b3480156103ce57600080fd5b506103ef6103dd366004612bb1565b60116020526000908152604090205481565b604051908152602001610315565b61033e610ae0565b34801561041157600080fd5b506103ef600154600054036000190190565b34801561042f57600080fd5b5061033e61043e366004612ca0565b610d66565b34801561044f57600080fd5b5061033e61045e366004612b6e565b610e10565b61033e610471366004612d5f565b610e1d565b34801561048257600080fd5b50610496610491366004612d9b565b610f79565b604080516001600160a01b039093168352602083019190915201610315565b61033e6104c3366004612d5f565b611025565b3480156104d457600080fd5b5061033e6104e3366004612b6e565b611176565b3480156104f457600080fd5b5060105461030990610100900460ff1681565b34801561051357600080fd5b506010546103099060ff1681565b34801561052d57600080fd5b5061033e61053c366004612e14565b611181565b34801561054d57600080fd5b506103ef61055c366004612bb1565b60126020526000908152604090205481565b34801561057a57600080fd5b5061033e610589366004612e5c565b611195565b34801561059a57600080fd5b506105ae6105a9366004612e98565b6111a8565b6040516103159190612f48565b3480156105c757600080fd5b506103ef60145481565b3480156105dd57600080fd5b506103826105ec366004612b6e565b611273565b3480156105fd57600080fd5b506103ef600b5481565b34801561061357600080fd5b5061035561127e565b34801561062857600080fd5b506103ef610637366004612bb1565b61128b565b34801561064857600080fd5b5061033e6112d9565b34801561065d57600080fd5b5061067161066c366004612bb1565b6112ed565b6040516103159190612f8a565b34801561068a57600080fd5b5061033e610699366004612b6e565b6113f5565b3480156106aa57600080fd5b506008546001600160a01b0316610382565b3480156106c857600080fd5b5061033e6106d7366004612fd0565b61140e565b3480156106e857600080fd5b50610355611430565b3480156106fd57600080fd5b5061067161070c366004612fed565b61143f565b34801561071d57600080fd5b5061033e61072c366004612ca0565b6115c6565b34801561073d57600080fd5b5061033e61074c366004613020565b61166b565b34801561075d57600080fd5b5061033e6116d7565b34801561077257600080fd5b5061033e6116ee565b34801561078757600080fd5b5061033e611700565b61033e61079e366004613057565b611793565b3480156107af57600080fd5b506103ef60155481565b3480156107c557600080fd5b506107d96107d4366004612b6e565b6118f2565b60405161031591906130d2565b3480156107f257600080fd5b5061035561197a565b34801561080757600080fd5b50610355610816366004612b6e565b611987565b61033e610829366004612b6e565b611af5565b34801561083a57600080fd5b5061033e610849366004612b87565b611d59565b34801561085a57600080fd5b506103ef610869366004612bb1565b60136020526000908152604090205481565b34801561088757600080fd5b5061033e610896366004612e14565b611da8565b3480156108a757600080fd5b506103096108b63660046130e0565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108f057600080fd5b5061033e6108ff366004612e14565b611dbc565b34801561091057600080fd5b5061033e61091f366004612bb1565b611dd0565b34801561093057600080fd5b506103ef600c5481565b600061094582611e46565b80610954575061095482611e7b565b92915050565b610962611ec9565b61096c8282611f23565b5050565b60606002805461097f9061310a565b80601f01602080910402602001604051908101604052809291908181526020018280546109ab9061310a565b80156109f85780601f106109cd576101008083540402835291602001916109f8565b820191906000526020600020905b8154815290600101906020018083116109db57829003601f168201915b5050505050905090565b6000610a0d82611fdd565b610a2a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600f8054610a539061310a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7f9061310a565b8015610acc5780601f10610aa157610100808354040283529160200191610acc565b820191906000526020600020905b815481529060010190602001808311610aaf57829003601f168201915b505050505081565b61096c82826001612012565b601054600190610100900460ff16610b3b5760405162461bcd60e51b815260206004820152601960248201527847616c61786965733a204d696e74204e6f742041637469766560381b60448201526064015b60405180910390fd5b600c54811115610b9c5760405162461bcd60e51b815260206004820152602660248201527f47616c61786965733a204d617820506572205472616e73616374696f6e20457860448201526518d95959195960d21b6064820152608401610b32565b601554610bab906101a461315a565b81610bbd600154600054036000190190565b610bc7919061316d565b1115610be55760405162461bcd60e51b8152600401610b3290613180565b600b5433600090815260056020526040908190205483911c6001600160401b0316610c10919061316d565b1115610c5e5760405162461bcd60e51b815260206004820181905260248201527f47616c61786965733a2045786365656473204d6178205065722057616c6c65746044820152606401610b32565b336000908152601260209081526040808320546013909252909120541115610cde5760405162461bcd60e51b815260206004820152602d60248201527f47616c61786965733a20596f75277665206d61786564206f757420796f75722060448201526c6d696e7420617474656d70747360981b6064820152608401610b32565b610ce66120be565b15610d1857610cf53382612147565b336000908152601360205260408120805491610d10836131b7565b919050555050565b6040513390600090666a94d74f4300009082818181858883f19350505050158015610d47573d6000803e3d6000fd5b50336000908152601360205260408120805491610d10836131b7565b50565b610d6e611ec9565b60c882511115610d905760405162461bcd60e51b8152600401610b32906131d0565b60005b8251811015610e0b57818181518110610dae57610dae613222565b602002602001015160116000858481518110610dcc57610dcc613222565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080610e03906131b7565b915050610d93565b505050565b610e18611ec9565b601555565b826daaeb6d7670e522a718067333cd4e3b15610f6857336001600160a01b03821603610e5357610e4e848484612161565b610f73565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ea2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec69190613238565b8015610f495750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610f25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f499190613238565b610f6857604051633b79c77360e21b8152336004820152602401610b32565b610f73848484612161565b50505050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610fee5750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061100d906001600160601b031687613255565b6110179190613282565b915196919550909350505050565b826daaeb6d7670e522a718067333cd4e3b1561116b57336001600160a01b0382160361105657610e4e8484846122f2565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c99190613238565b801561114c5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611128573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114c9190613238565b61116b57604051633b79c77360e21b8152336004820152602401610b32565b610f738484846122f2565b610d6381600161230d565b611189611ec9565b600d61096c82826132dc565b61119d611ec9565b610e0b838383612445565b6060816000816001600160401b038111156111c5576111c5612bcc565b60405190808252806020026020018201604052801561121757816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816111e35790505b50905060005b82811461126a5761124586868381811061123957611239613222565b905060200201356118f2565b82828151811061125757611257613222565b602090810291909101015260010161121d565b50949350505050565b600061095482612510565b600d8054610a539061310a565b60006001600160a01b0382166112b4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6112e1611ec9565b6112eb600061257f565b565b606060008060006112fd8561128b565b90506000816001600160401b0381111561131957611319612bcc565b604051908082528060200260200182016040528015611342578160200160208202803683370190505b50905061136f60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146113e957611382816125d1565b915081604001516113e15781516001600160a01b0316156113a257815194505b876001600160a01b0316856001600160a01b0316036113e157808387806001019850815181106113d4576113d4613222565b6020026020010181815250505b600101611372565b50909695505050505050565b6113fd611ec9565b6000908152600a6020526040812055565b611416611ec9565b601080549115156101000261ff0019909216919091179055565b60606003805461097f9061310a565b606081831061146157604051631960ccad60e11b815260040160405180910390fd5b60008061146d60005490565b9050600185101561147d57600194505b80841115611489578093505b60006114948761128b565b9050848610156114b357858503818110156114ad578091505b506114b7565b5060005b6000816001600160401b038111156114d1576114d1612bcc565b6040519080825280602002602001820160405280156114fa578160200160208202803683370190505b509050816000036115105793506115bf92505050565b600061151b886118f2565b90506000816040015161152c575080515b885b88811415801561153e5750848714155b156115b35761154c816125d1565b925082604001516115ab5782516001600160a01b03161561156c57825191505b8a6001600160a01b0316826001600160a01b0316036115ab578084888060010199508151811061159e5761159e613222565b6020026020010181815250505b60010161152e565b50505092835250909150505b9392505050565b6115ce611ec9565b60c8825111156115f05760405162461bcd60e51b8152600401610b32906131d0565b60005b8251811015610e0b5781818151811061160e5761160e613222565b60200260200101516012600085848151811061162c5761162c613222565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611663906131b7565b9150506115f3565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116df611ec9565b6010805460ff19166001179055565b6116f6611ec9565b6112eb6000600955565b611708611ec9565b604051600090339047908381818185875af1925050503d806000811461174a576040519150601f19603f3d011682016040523d82523d6000602084013e61174f565b606091505b5050905080610d635760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401610b32565b836daaeb6d7670e522a718067333cd4e3b156118df57336001600160a01b038216036117ca576117c58585858561260d565b6118eb565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611819573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061183d9190613238565b80156118c05750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561189c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c09190613238565b6118df57604051633b79c77360e21b8152336004820152602401610b32565b6118eb8585858561260d565b5050505050565b604080516080810182526000808252602082018190529181018290526060810191909152604080516080810182526000808252602082018190529181018290526060810191909152600183108061194b57506000548310155b156119565792915050565b61195f836125d1565b90508060400151156119715792915050565b6115bf83612651565b600e8054610a539061310a565b606061199282611fdd565b6119f65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b32565b60105460ff161515600003611a9757600f8054611a129061310a565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3e9061310a565b8015611a8b5780601f10611a6057610100808354040283529160200191611a8b565b820191906000526020600020905b815481529060010190602001808311611a6e57829003601f168201915b50505050509050919050565b6000611aa1612686565b90506000815111611ac157604051806020016040528060008152506115bf565b80611acb84612695565b600e604051602001611adf9392919061339b565b6040516020818303038152906040529392505050565b601054610100900460ff16611b485760405162461bcd60e51b815260206004820152601960248201527847616c61786965733a204d696e74204e6f742041637469766560381b6044820152606401610b32565b33600090815260116020526040902054611b9a5760405162461bcd60e51b8152602060048201526013602482015272596f7520617265204e4f542061207768616c6560681b6044820152606401610b32565b33600090815260116020526040902054811115611c0c5760405162461bcd60e51b815260206004820152602a60248201527f47616c61786965733a20547279696e6720746f206d696e74206d6f7265207468604482015269185b88105b1b1bddd95960b21b6064820152608401610b32565b6101a481611c21600154600054036000190190565b611c2b919061316d565b1115611c495760405162461bcd60e51b8152600401610b3290613180565b33600090815260116020908152604080832054600590925291829020549091611c7d9184911c6001600160401b031661316d565b1115611cdf5760405162461bcd60e51b815260206004820152602b60248201527f47616c61786965733a2045786365656473204d617820466f7220596f7572205760448201526a1a185b194815d85b1b195d60aa1b6064820152608401610b32565b34611cf182666a94d74f430000613255565b1115611d4f5760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f756768204554482073656e7420666f722073656c656374656460448201526608185b5bdd5b9d60ca1b6064820152608401610b32565b610d633382612147565b611d61611ec9565b6101a481611d76600154600054036000190190565b611d80919061316d565b1115611d9e5760405162461bcd60e51b8152600401610b3290613180565b61096c8282612147565b611db0611ec9565b600e61096c82826132dc565b611dc4611ec9565b600f61096c82826132dc565b611dd8611ec9565b6001600160a01b038116611e3d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b32565b610d638161257f565b60006001600160e01b0319821663152a902d60e11b148061095457506301ffc9a760e01b6001600160e01b0319831614610954565b60006301ffc9a760e01b6001600160e01b031983161480611eac57506380ac58cd60e01b6001600160e01b03198316145b806109545750506001600160e01b031916635b5e139f60e01b1490565b6008546001600160a01b031633146112eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b32565b6127106001600160601b0382161115611f4e5760405162461bcd60e51b8152600401610b329061343b565b6001600160a01b038216611fa45760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b32565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081600111158015611ff1575060005482105b8015610954575050600090815260046020526040902054600160e01b161590565b600061201d83611273565b90508180156120355750336001600160a01b03821614155b156120615761204481336108b6565b612061576040516367d9dca160e11b815260040160405180910390fd5b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b60148054600091826120cf836131b7565b91905055506032606442336014546040516020016121129392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b6040516020818303038152906040528051906020012060001c6121359190613485565b11156121415750600190565b50600090565b61096c828260405180602001604052806000815250612727565b600061216c82612510565b9050836001600160a01b0316816001600160a01b03161461219f5760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546121cb8187335b6001600160a01b039081169116811491141790565b6121f6576121d986336108b6565b6121f657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661221d57604051633a954ecd60e21b815260040160405180910390fd5b801561222857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036122ba576001840160008181526004602052604081205490036122b85760005481146122b85760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206134f483398151915260405160405180910390a45b505050505050565b610e0b83838360405180602001604052806000815250611793565b600061231883612510565b90508060008061233686600090815260066020526040902080549091565b9150915084156123765761234b8184336121b6565b6123765761235983336108b6565b61237657604051632ce44b5f60e11b815260040160405180910390fd5b801561238157600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b8516900361240f5760018601600081815260046020526040812054900361240d57600054811461240d5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616906000805160206134f4833981519152908390a45050600180548101905550505050565b6127106001600160601b03821611156124705760405162461bcd60e51b8152600401610b329061343b565b6001600160a01b0382166124c65760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610b32565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600a90529190942093519051909116600160a01b029116179055565b60008180600111612566576000548110156125665760008181526004602052604081205490600160e01b82169003612564575b806000036115bf575060001901600081815260046020526040902054612543565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600460205260409020546109549061278d565b612618848484610e1d565b6001600160a01b0383163b15610f7357612634848484846127d4565b610f73576040516368d2bf6b60e11b815260040160405180910390fd5b60408051608081018252600080825260208201819052918101829052606081019190915261095461268183612510565b61278d565b6060600d805461097f9061310a565b606060006126a2836128c0565b60010190506000816001600160401b038111156126c1576126c1612bcc565b6040519080825280601f01601f1916602001820160405280156126eb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846126f557509392505050565b6127318383612998565b6001600160a01b0383163b15610e0b576000548281035b61275b60008683806001019450866127d4565b612778576040516368d2bf6b60e11b815260040160405180910390fd5b8181106127485781600054146118eb57600080fd5b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612809903390899088908890600401613499565b6020604051808303816000875af1925050508015612844575060408051601f3d908101601f19168201909252612841918101906134d6565b60015b6128a2573d808015612872576040519150601f19603f3d011682016040523d82523d6000602084013e612877565b606091505b50805160000361289a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106128ff5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061292b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061294957662386f26fc10000830492506010015b6305f5e1008310612961576305f5e100830492506008015b612710831061297557612710830492506004015b60648310612987576064830492506002015b600a83106109545760010192915050565b60008054908290036129bd5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206134f48339815191528180a4600183015b818114612a4857808360006000805160206134f4833981519152600080a4600101612a22565b5081600003612a6957604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610d6357600080fd5b600060208284031215612a9a57600080fd5b81356115bf81612a72565b80356001600160a01b0381168114612abc57600080fd5b919050565b80356001600160601b0381168114612abc57600080fd5b60008060408385031215612aeb57600080fd5b612af483612aa5565b9150612b0260208401612ac1565b90509250929050565b60005b83811015612b26578181015183820152602001612b0e565b50506000910152565b60008151808452612b47816020860160208601612b0b565b601f01601f19169290920160200192915050565b6020815260006115bf6020830184612b2f565b600060208284031215612b8057600080fd5b5035919050565b60008060408385031215612b9a57600080fd5b612ba383612aa5565b946020939093013593505050565b600060208284031215612bc357600080fd5b6115bf82612aa5565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612c0a57612c0a612bcc565b604052919050565b60006001600160401b03821115612c2b57612c2b612bcc565b5060051b60200190565b600082601f830112612c4657600080fd5b81356020612c5b612c5683612c12565b612be2565b82815260059290921b84018101918181019086841115612c7a57600080fd5b8286015b84811015612c955780358352918301918301612c7e565b509695505050505050565b60008060408385031215612cb357600080fd5b82356001600160401b0380821115612cca57600080fd5b818501915085601f830112612cde57600080fd5b81356020612cee612c5683612c12565b82815260059290921b84018101918181019089841115612d0d57600080fd5b948201945b83861015612d3257612d2386612aa5565b82529482019490820190612d12565b96505086013592505080821115612d4857600080fd5b50612d5585828601612c35565b9150509250929050565b600080600060608486031215612d7457600080fd5b612d7d84612aa5565b9250612d8b60208501612aa5565b9150604084013590509250925092565b60008060408385031215612dae57600080fd5b50508035926020909101359150565b60006001600160401b03831115612dd657612dd6612bcc565b612de9601f8401601f1916602001612be2565b9050828152838383011115612dfd57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e2657600080fd5b81356001600160401b03811115612e3c57600080fd5b8201601f81018413612e4d57600080fd5b6128b884823560208401612dbd565b600080600060608486031215612e7157600080fd5b83359250612e8160208501612aa5565b9150612e8f60408501612ac1565b90509250925092565b60008060208385031215612eab57600080fd5b82356001600160401b0380821115612ec257600080fd5b818501915085601f830112612ed657600080fd5b813581811115612ee557600080fd5b8660208260051b8501011115612efa57600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156113e957612f77838551612f0c565b9284019260809290920191600101612f64565b6020808252825182820181905260009190848201906040850190845b818110156113e957835183529284019291840191600101612fa6565b8015158114610d6357600080fd5b600060208284031215612fe257600080fd5b81356115bf81612fc2565b60008060006060848603121561300257600080fd5b61300b84612aa5565b95602085013595506040909401359392505050565b6000806040838503121561303357600080fd5b61303c83612aa5565b9150602083013561304c81612fc2565b809150509250929050565b6000806000806080858703121561306d57600080fd5b61307685612aa5565b935061308460208601612aa5565b92506040850135915060608501356001600160401b038111156130a657600080fd5b8501601f810187136130b757600080fd5b6130c687823560208401612dbd565b91505092959194509250565b608081016109548284612f0c565b600080604083850312156130f357600080fd5b6130fc83612aa5565b9150612b0260208401612aa5565b600181811c9082168061311e57607f821691505b60208210810361313e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561095457610954613144565b8082018082111561095457610954613144565b6020808252601e908201527f47616c61786965733a204d696e7420537570706c792045786365656465640000604082015260600190565b6000600182016131c9576131c9613144565b5060010190565b60208082526032908201527f43616e206f6e6c7920736574203230302077616c6c657473207065722074786e6040820152712064756520746f20676173206c696d69747360701b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561324a57600080fd5b81516115bf81612fc2565b808202811582820484141761095457610954613144565b634e487b7160e01b600052601260045260246000fd5b6000826132915761329161326c565b500490565b601f821115610e0b57600081815260208120601f850160051c810160208610156132bd5750805b601f850160051c820191505b818110156122ea578281556001016132c9565b81516001600160401b038111156132f5576132f5612bcc565b61330981613303845461310a565b84613296565b602080601f83116001811461333e57600084156133265750858301515b600019600386901b1c1916600185901b1785556122ea565b600085815260208120601f198616915b8281101561336d5788860151825594840194600190910190840161334e565b508582101561338b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000845160206133ae8285838a01612b0b565b8551918401916133c18184848a01612b0b565b85549201916000906133d28161310a565b600182811680156133ea57600181146133ff5761342b565b60ff198416875282151583028701945061342b565b896000528560002060005b848110156134235781548982015290830190870161340a565b505082870194505b50929a9950505050505050505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6000826134945761349461326c565b500690565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134cc90830184612b2f565b9695505050505050565b6000602082840312156134e857600080fd5b81516115bf81612a7256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207a54a4439f6767cc3be2c29f85b5da788cbfc133434dc277aaf40502b3acbd4764736f6c63430008110033
Deployed Bytecode Sourcemap
130718:6950:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135034:301;;;;;;;;;;-1:-1:-1;135034:301:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;135034:301:0;;;;;;;;136033:172;;;;;;;;;;-1:-1:-1;136033:172:0;;;;;:::i;:::-;;:::i;:::-;;82068:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;88031:218::-;;;;;;;;;;-1:-1:-1;88031:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2322:32:1;;;2304:51;;2292:2;2277:18;88031:218:0;2158:203:1;131096:28:0;;;;;;;;;;;;;:::i;87748:124::-;;;;;;:::i;:::-;;:::i;131202:49::-;;;;;;;;;;-1:-1:-1;131202:49:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;2962:25:1;;;2950:2;2935:18;131202:49:0;2816:177:1;133376:834:0;;;:::i;77819:323::-;;;;;;;;;;;;135435:1;78093:12;77880:7;78077:13;:28;-1:-1:-1;;78077:46:0;;77819:323;131643:322;;;;;;;;;;-1:-1:-1;131643:322:0;;;;;:::i;:::-;;:::i;133259:109::-;;;;;;;;;;-1:-1:-1;133259:109:0;;;;;:::i;:::-;;:::i;136710:238::-;;;;;;:::i;:::-;;:::i;69402:442::-;;;;;;;;;;-1:-1:-1;69402:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;6194:32:1;;;6176:51;;6258:2;6243:18;;6236:34;;;;6149:18;69402:442:0;6002:274:1;136954:244:0;;;;;;:::i;:::-;;:::i;128313:94::-;;;;;;;;;;-1:-1:-1;128313:94:0;;;;;:::i;:::-;;:::i;131165:30::-;;;;;;;;;;-1:-1:-1;131165:30:0;;;;;;;;;;;131131:27;;;;;;;;;;-1:-1:-1;131131:27:0;;;;;;;;135590:104;;;;;;;;;;-1:-1:-1;135590:104:0;;;;;:::i;:::-;;:::i;131258:51::-;;;;;;;;;;-1:-1:-1;131258:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;136317:201;;;;;;;;;;-1:-1:-1;136317:201:0;;;;;:::i;:::-;;:::i;123175:528::-;;;;;;;;;;-1:-1:-1;123175:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;131379:25::-;;;;;;;;;;;;;;;;83461:152;;;;;;;;;;-1:-1:-1;83461:152:0;;;;;:::i;:::-;;:::i;130951:32::-;;;;;;;;;;;;;;;;131024:21;;;;;;;;;;;;;:::i;79003:233::-;;;;;;;;;;-1:-1:-1;79003:233:0;;;;;:::i;:::-;;:::i;30448:103::-;;;;;;;;;;;;;:::i;127051:900::-;;;;;;;;;;-1:-1:-1;127051:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;136524:126::-;;;;;;;;;;-1:-1:-1;136524:126:0;;;;;:::i;:::-;;:::i;29800:87::-;;;;;;;;;;-1:-1:-1;29873:6:0;;-1:-1:-1;;;;;29873:6:0;29800:87;;131543:92;;;;;;;;;;-1:-1:-1;131543:92:0;;;;;:::i;:::-;;:::i;82244:104::-;;;;;;;;;;;;;:::i;124091:2513::-;;;;;;;;;;-1:-1:-1;124091:2513:0;;;;;:::i;:::-;;:::i;131971:325::-;;;;;;;;;;-1:-1:-1;131971:325:0;;;;;:::i;:::-;;:::i;88589:234::-;;;;;;;;;;-1:-1:-1;88589:234:0;;;;;:::i;:::-;;:::i;135954:69::-;;;;;;;;;;;;;:::i;136211:100::-;;;;;;;;;;;;;:::i;137487:178::-;;;;;;;;;;;;;:::i;137204:275::-;;;;;;:::i;:::-;;:::i;131411:32::-;;;;;;;;;;;;;;;;122588:428;;;;;;;;;;-1:-1:-1;122588:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;131052:37::-;;;;;;;;;;;;;:::i;134440:584::-;;;;;;;;;;-1:-1:-1;134440:584:0;;;;;:::i;:::-;;:::i;132304:666::-;;;;;;:::i;:::-;;:::i;134218:214::-;;;;;;;;;;-1:-1:-1;134218:214:0;;;;;:::i;:::-;;:::i;131316:56::-;;;;;;;;;;-1:-1:-1;131316:56:0;;;;;:::i;:::-;;;;;;;;;;;;;;135702:128;;;;;;;;;;-1:-1:-1;135702:128:0;;;;;:::i;:::-;;:::i;88980:164::-;;;;;;;;;;-1:-1:-1;88980:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;89101:25:0;;;89077:4;89101:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;88980:164;135456:126;;;;;;;;;;-1:-1:-1;135456:126:0;;;;;:::i;:::-;;:::i;30706:201::-;;;;;;;;;;-1:-1:-1;30706:201:0;;;;;:::i;:::-;;:::i;130990:27::-;;;;;;;;;;;;;;;;135034:301;135191:4;135234:38;135260:11;135234:25;:38::i;:::-;:93;;;;135289:38;135315:11;135289:25;:38::i;:::-;135214:113;135034:301;-1:-1:-1;;135034:301:0:o;136033:172::-;29686:13;:11;:13::i;:::-;136155:44:::1;136174:9;136185:13;136155:18;:44::i;:::-;136033:172:::0;;:::o;82068:100::-;82122:13;82155:5;82148:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82068:100;:::o;88031:218::-;88107:7;88132:16;88140:7;88132;:16::i;:::-;88127:64;;88157:34;;-1:-1:-1;;;88157:34:0;;;;;;;;;;;88127:64;-1:-1:-1;88211:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;88211:30:0;;88031:218::o;131096:28::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;87748:124::-;87837:27;87846:2;87850:7;87859:4;87837:8;:27::i;133376:834::-;133460:10;;133440:1;;133460:10;;;;;133452:48;;;;-1:-1:-1;;;133452:48:0;;12633:2:1;133452:48:0;;;12615:21:1;12672:2;12652:18;;;12645:30;-1:-1:-1;;;12691:18:1;;;12684:55;12756:18;;133452:48:0;;;;;;;;;133532:8;;133519:9;:21;;133511:72;;;;-1:-1:-1;;;133511:72:0;;12987:2:1;133511:72:0;;;12969:21:1;13026:2;13006:18;;;12999:30;13065:34;13045:18;;;13038:62;-1:-1:-1;;;13116:18:1;;;13109:36;13162:19;;133511:72:0;12785:402:1;133511:72:0;133644:14;;133632:26;;130895:3;133632:26;:::i;:::-;133618:9;133602:13;135435:1;78093:12;77880:7;78077:13;:28;-1:-1:-1;;78077:46:0;;77819:323;133602:13;:25;;;;:::i;:::-;:57;;133594:100;;;;-1:-1:-1;;;133594:100:0;;;;;;;:::i;:::-;133754:13;;133727:10;79379:7;79407:25;;;:18;:25;;73300:2;79407:25;;;;;133741:9;;79407:50;-1:-1:-1;;;;;79406:82:0;133713:37;;;;:::i;:::-;:54;;133705:99;;;;-1:-1:-1;;;133705:99:0;;14148:2:1;133705:99:0;;;14130:21:1;;;14167:18;;;14160:30;14226:34;14206:18;;;14199:62;14278:18;;133705:99:0;13946:356:1;133705:99:0;133877:10;133860:28;;;;:16;:28;;;;;;;;;133823:21;:33;;;;;;;:65;;133815:123;;;;-1:-1:-1;;;133815:123:0;;14509:2:1;133815:123:0;;;14491:21:1;14548:2;14528:18;;;14521:30;14587:34;14567:18;;;14560:62;-1:-1:-1;;;14638:18:1;;;14631:43;14691:19;;133815:123:0;14307:409:1;133815:123:0;133953:15;:13;:15::i;:::-;133949:254;;;133985:32;133995:10;134007:9;133985;:32::i;:::-;134054:10;134032:33;;;;:21;:33;;;;;:35;;;;;;:::i;:::-;;;;;;133409:801;133376:834::o;133949:254::-;134100:41;;28589:10;;134100:41;;130934:10;;134100:41;;;;130934:10;28589;134100:41;;;;;;;;;;;;;;;;;;;;-1:-1:-1;134178:10:0;134156:33;;;;:21;:33;;;;;:35;;;;;;:::i;133949:254::-;133409:801;133376:834::o;131643:322::-;29686:13;:11;:13::i;:::-;131779:3:::1;131761:7;:14;:21;;131753:84;;;;-1:-1:-1::0;;;131753:84:0::1;;;;;;;:::i;:::-;131853:9;131849:109;131872:7;:14;131868:1;:18;131849:109;;;131936:7;131944:1;131936:10;;;;;;;;:::i;:::-;;;;;;;131907:14;:26;131922:7;131930:1;131922:10;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;131907:26:0::1;-1:-1:-1::0;;;;;131907:26:0::1;;;;;;;;;;;;:39;;;;131888:3;;;;;:::i;:::-;;;;131849:109;;;;131643:322:::0;;:::o;133259:109::-;29686:13;:11;:13::i;:::-;133334:14:::1;:26:::0;133259:109::o;136710:238::-;136883:5;128602:42;129750:45;:49;129746:705;;130039:10;-1:-1:-1;;;;;130031:18:0;;;130027:85;;136902:40:::1;136921:5;136928:3;136933:8;136902:18;:40::i;:::-;130090:7:::0;;130027:85;130172:69;;-1:-1:-1;;;130172:69:0;;130223:4;130172:69;;;15624:34:1;130230:10:0;15674:18:1;;;15667:43;128602:42:0;;130172;;15559:18:1;;130172:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:161;;;;-1:-1:-1;130270:63:0;;-1:-1:-1;;;130270:63:0;;130321:4;130270:63;;;15624:34:1;-1:-1:-1;;;;;15694:15:1;;15674:18;;;15667:43;128602:42:0;;130270;;15559:18:1;;130270:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130126:314;;130394:30;;-1:-1:-1;;;130394:30:0;;130413:10;130394:30;;;2304:51:1;2277:18;;130394:30:0;2158:203:1;130126:314:0;136902:40:::1;136921:5;136928:3;136933:8;136902:18;:40::i;:::-;136710:238:::0;;;;:::o;69402:442::-;69499:7;69557:27;;;:17;:27;;;;;;;;69528:56;;;;;;;;;-1:-1:-1;;;;;69528:56:0;;;;;-1:-1:-1;;;69528:56:0;;;-1:-1:-1;;;;;69528:56:0;;;;;;;;69499:7;;69597:92;;-1:-1:-1;69648:29:0;;;;;;;;;69658:19;69648:29;-1:-1:-1;;;;;69648:29:0;;;;-1:-1:-1;;;69648:29:0;;-1:-1:-1;;;;;69648:29:0;;;;;69597:92;69739:23;;;;69701:21;;70210:5;;69726:36;;-1:-1:-1;;;;;69726:36:0;:10;:36;:::i;:::-;69725:58;;;;:::i;:::-;69804:16;;;;;-1:-1:-1;69402:442:0;;-1:-1:-1;;;;69402:442:0:o;136954:244::-;137131:5;128602:42;129750:45;:49;129746:705;;130039:10;-1:-1:-1;;;;;130031:18:0;;;130027:85;;137148:44:::1;137171:5;137178:3;137183:8;137148:22;:44::i;130027:85::-:0;130172:69;;-1:-1:-1;;;130172:69:0;;130223:4;130172:69;;;15624:34:1;130230:10:0;15674:18:1;;;15667:43;128602:42:0;;130172;;15559:18:1;;130172:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:161;;;;-1:-1:-1;130270:63:0;;-1:-1:-1;;;130270:63:0;;130321:4;130270:63;;;15624:34:1;-1:-1:-1;;;;;15694:15:1;;15674:18;;;15667:43;128602:42:0;;130270;;15559:18:1;;130270:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130126:314;;130394:30;;-1:-1:-1;;;130394:30:0;;130413:10;130394:30;;;2304:51:1;2277:18;;130394:30:0;2158:203:1;130126:314:0;137148:44:::1;137171:5;137178:3;137183:8;137148:22;:44::i;128313:94::-:0;128379:20;128385:7;128394:4;128379:5;:20::i;135590:104::-;29686:13;:11;:13::i;:::-;135665:7:::1;:21;135675:11:::0;135665:7;:21:::1;:::i;136317:201::-:0;29686:13;:11;:13::i;:::-;136460:52:::1;136477:8;136487:9;136498:13;136460:16;:52::i;123175:528::-:0;123319:23;123410:8;123385:22;123410:8;-1:-1:-1;;;;;123477:36:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123477:36:0;;-1:-1:-1;;123477:36:0;;;;;;;;;;;;123440:73;;123533:9;123528:125;123549:14;123544:1;:19;123528:125;;123605:32;123625:8;;123634:1;123625:11;;;;;;;:::i;:::-;;;;;;;123605:19;:32::i;:::-;123589:10;123600:1;123589:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;123565:3;;123528:125;;;-1:-1:-1;123674:10:0;123175:528;-1:-1:-1;;;;123175:528:0:o;83461:152::-;83533:7;83576:27;83595:7;83576:18;:27::i;131024:21::-;;;;;;;:::i;79003:233::-;79075:7;-1:-1:-1;;;;;79099:19:0;;79095:60;;79127:28;;-1:-1:-1;;;79127:28:0;;;;;;;;;;;79095:60;-1:-1:-1;;;;;;79173:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;79173:55:0;;79003:233::o;30448:103::-;29686:13;:11;:13::i;:::-;30513:30:::1;30540:1;30513:18;:30::i;:::-;30448:103::o:0;127051:900::-;127129:16;127183:19;127217:25;127257:22;127282:16;127292:5;127282:9;:16::i;:::-;127257:41;;127313:25;127355:14;-1:-1:-1;;;;;127341:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;127341:29:0;;127313:57;;127385:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;127385:31:0;135435:1;127431:472;127480:14;127465:11;:29;127431:472;;127532:15;127545:1;127532:12;:15::i;:::-;127520:27;;127570:9;:16;;;127611:8;127566:73;127661:14;;-1:-1:-1;;;;;127661:28:0;;127657:111;;127734:14;;;-1:-1:-1;127657:111:0;127811:5;-1:-1:-1;;;;;127790:26:0;:17;-1:-1:-1;;;;;127790:26:0;;127786:102;;127867:1;127841:8;127850:13;;;;;;127841:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;127786:102;127496:3;;127431:472;;;-1:-1:-1;127924:8:0;;127051:900;-1:-1:-1;;;;;;127051:900:0:o;136524:126::-;29686:13;:11;:13::i;:::-;71858:26;;;;:17;:26;;;;;71851:33;133376:834::o;131543:92::-;29686:13;:11;:13::i;:::-;131605:10:::1;:22:::0;;;::::1;;;;-1:-1:-1::0;;131605:22:0;;::::1;::::0;;;::::1;::::0;;131543:92::o;82244:104::-;82300:13;82333:7;82326:14;;;;;:::i;124091:2513::-;124234:16;124301:4;124292:5;:13;124288:45;;124314:19;;-1:-1:-1;;;124314:19:0;;;;;;;;;;;124288:45;124348:19;124382:17;124402:14;77561:7;77588:13;;77506:103;124402:14;124382:34;-1:-1:-1;135435:1:0;124494:5;:23;124490:87;;;135435:1;124538:23;;124490:87;124653:9;124646:4;:16;124642:73;;;124690:9;124683:16;;124642:73;124729:25;124757:16;124767:5;124757:9;:16::i;:::-;124729:44;;124951:4;124943:5;:12;124939:278;;;124998:12;;;125033:31;;;125029:111;;;125109:11;125089:31;;125029:111;124957:198;124939:278;;;-1:-1:-1;125200:1:0;124939:278;125231:25;125273:17;-1:-1:-1;;;;;125259:32:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;125259:32:0;;125231:60;;125310:17;125331:1;125310:22;125306:78;;125360:8;-1:-1:-1;125353:15:0;;-1:-1:-1;;;125353:15:0;125306:78;125528:31;125562:26;125582:5;125562:19;:26::i;:::-;125528:60;;125603:25;125848:9;:16;;;125843:92;;-1:-1:-1;125905:14:0;;125843:92;125966:5;125949:478;125978:4;125973:1;:9;;:45;;;;;126001:17;125986:11;:32;;125973:45;125949:478;;;126056:15;126069:1;126056:12;:15::i;:::-;126044:27;;126094:9;:16;;;126135:8;126090:73;126185:14;;-1:-1:-1;;;;;126185:28:0;;126181:111;;126258:14;;;-1:-1:-1;126181:111:0;126335:5;-1:-1:-1;;;;;126314:26:0;:17;-1:-1:-1;;;;;126314:26:0;;126310:102;;126391:1;126365:8;126374:13;;;;;;126365:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;126310:102;126020:3;;125949:478;;;-1:-1:-1;;;126512:29:0;;;-1:-1:-1;126519:8:0;;-1:-1:-1;;124091:2513:0;;;;;;:::o;131971:325::-;29686:13;:11;:13::i;:::-;132108:3:::1;132090:7;:14;:21;;132082:84;;;;-1:-1:-1::0;;;132082:84:0::1;;;;;;;:::i;:::-;132182:9;132178:111;132201:7;:14;132197:1;:18;132178:111;;;132267:7;132275:1;132267:10;;;;;;;;:::i;:::-;;;;;;;132236:16;:28;132253:7;132261:1;132253:10;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;132236:28:0::1;-1:-1:-1::0;;;;;132236:28:0::1;;;;;;;;;;;;:41;;;;132217:3;;;;;:::i;:::-;;;;132178:111;;88589:234:::0;28589:10;88684:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;88684:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;88684:60:0;;;;;;;;;;88760:55;;540:41:1;;;88684:49:0;;28589:10;88760:55;;513:18:1;88760:55:0;;;;;;;88589:234;;:::o;135954:69::-;29686:13;:11;:13::i;:::-;136000:8:::1;:15:::0;;-1:-1:-1;;136000:15:0::1;136011:4;136000:15;::::0;;135954:69::o;136211:100::-;29686:13;:11;:13::i;:::-;136282:23:::1;70970:19:::0;;70963:26;70902:95;137487:178;29686:13;:11;:13::i;:::-;137561:49:::1;::::0;137543:12:::1;::::0;137561:10:::1;::::0;137584:21:::1;::::0;137543:12;137561:49;137543:12;137561:49;137584:21;137561:10;:49:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137542:68;;;137629:7;137621:36;;;::::0;-1:-1:-1;;;137621:36:0;;19017:2:1;137621:36:0::1;::::0;::::1;18999:21:1::0;19056:2;19036:18;;;19029:30;-1:-1:-1;;;19075:18:1;;;19068:46;19131:18;;137621:36:0::1;18815:340:1::0;137204:275:0;137405:5;128602:42;129750:45;:49;129746:705;;130039:10;-1:-1:-1;;;;;130031:18:0;;;130027:85;;137422:51:::1;137445:5;137452:3;137457:8;137467:5;137422:22;:51::i;:::-;130090:7:::0;;130027:85;130172:69;;-1:-1:-1;;;130172:69:0;;130223:4;130172:69;;;15624:34:1;130230:10:0;15674:18:1;;;15667:43;128602:42:0;;130172;;15559:18:1;;130172:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:161;;;;-1:-1:-1;130270:63:0;;-1:-1:-1;;;130270:63:0;;130321:4;130270:63;;;15624:34:1;-1:-1:-1;;;;;15694:15:1;;15674:18;;;15667:43;128602:42:0;;130270;;15559:18:1;;130270:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130126:314;;130394:30;;-1:-1:-1;;;130394:30:0;;130413:10;130394:30;;;2304:51:1;2277:18;;130394:30:0;2158:203:1;130126:314:0;137422:51:::1;137445:5;137452:3;137457:8;137467:5;137422:22;:51::i;:::-;137204:275:::0;;;;;:::o;122588:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135435:1:0;122752:7;:25;:54;;;-1:-1:-1;77561:7:0;77588:13;122781:7;:25;;122752:54;122748:103;;;122830:9;122588:428;-1:-1:-1;;122588:428:0:o;122748:103::-;122873:21;122886:7;122873:12;:21::i;:::-;122861:33;;122909:9;:16;;;122905:65;;;122949:9;122588:428;-1:-1:-1;;122588:428:0:o;122905:65::-;122987:21;123000:7;122987:12;:21::i;131052:37::-;;;;;;;:::i;134440:584::-;134577:13;134626:16;134634:7;134626;:16::i;:::-;134608:105;;;;-1:-1:-1;;;134608:105:0;;19362:2:1;134608:105:0;;;19344:21:1;19401:2;19381:18;;;19374:30;19440:34;19420:18;;;19413:62;-1:-1:-1;;;19491:18:1;;;19484:45;19546:19;;134608:105:0;19160:411:1;134608:105:0;134737:8;;;;:17;;:8;:17;134734:70;;134778:14;134771:21;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134440:584;;;:::o;134734:70::-;134816:28;134847:10;:8;:10::i;:::-;134816:41;;134906:1;134881:14;134875:28;:32;:141;;;;;;;;;;;;;;;;;134947:14;134963:18;:7;:16;:18::i;:::-;134983:13;134930:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;134868:148;134440:584;-1:-1:-1;;;134440:584:0:o;132304:666::-;132378:10;;;;;;;132370:48;;;;-1:-1:-1;;;132370:48:0;;12633:2:1;132370:48:0;;;12615:21:1;12672:2;12652:18;;;12645:30;-1:-1:-1;;;12691:18:1;;;12684:55;12756:18;;132370:48:0;12431:349:1;132370:48:0;132452:10;132466:1;132437:26;;;:14;:26;;;;;;132429:62;;;;-1:-1:-1;;;132429:62:0;;21039:2:1;132429:62:0;;;21021:21:1;21078:2;21058:18;;;21051:30;-1:-1:-1;;;21097:18:1;;;21090:49;21156:18;;132429:62:0;20837:343:1;132429:62:0;132538:10;132523:26;;;;:14;:26;;;;;;132510:39;;;132502:94;;;;-1:-1:-1;;;132502:94:0;;21387:2:1;132502:94:0;;;21369:21:1;21426:2;21406:18;;;21399:30;21465:34;21445:18;;;21438:62;-1:-1:-1;;;21516:18:1;;;21509:40;21566:19;;132502:94:0;21185:406:1;132502:94:0;130895:3;132631:9;132615:13;135435:1;78093:12;77880:7;78077:13;:28;-1:-1:-1;;78077:46:0;;77819:323;132615:13;:25;;;;:::i;:::-;:38;;132607:81;;;;-1:-1:-1;;;132607:81:0;;;;;;;:::i;:::-;132763:10;132748:26;;;;:14;:26;;;;;;;;;79407:18;:25;;;;;;;;132748:26;;132707:37;;132735:9;;79407:50;-1:-1:-1;;;;;79406:82:0;132707:37;:::i;:::-;:67;;132699:123;;;;-1:-1:-1;;;132699:123:0;;21798:2:1;132699:123:0;;;21780:21:1;21837:2;21817:18;;;21810:30;21876:34;21856:18;;;21849:62;-1:-1:-1;;;21927:18:1;;;21920:41;21978:19;;132699:123:0;21596:407:1;132699:123:0;132866:9;132841:21;132853:9;130934:10;132841:21;:::i;:::-;:34;;132833:86;;;;-1:-1:-1;;;132833:86:0;;22210:2:1;132833:86:0;;;22192:21:1;22249:2;22229:18;;;22222:30;22288:34;22268:18;;;22261:62;-1:-1:-1;;;22339:18:1;;;22332:37;22386:19;;132833:86:0;22008:403:1;132833:86:0;132930:32;132940:10;132952:9;132930;:32::i;134218:214::-;29686:13;:11;:13::i;:::-;130895:3:::1;134326:9;134310:13;135435:1:::0;78093:12;77880:7;78077:13;:28;-1:-1:-1;;78077:46:0;;77819:323;134310:13:::1;:25;;;;:::i;:::-;:38;;134302:81;;;;-1:-1:-1::0;;;134302:81:0::1;;;;;;;:::i;:::-;134394:30;134404:8;134414:9;134394;:30::i;135702:128::-:0;29686:13;:11;:13::i;:::-;135789::::1;:33;135805:17:::0;135789:13;:33:::1;:::i;135456:126::-:0;29686:13;:11;:13::i;:::-;135542:14:::1;:32;135559:15:::0;135542:14;:32:::1;:::i;30706:201::-:0;29686:13;:11;:13::i;:::-;-1:-1:-1;;;;;30795:22:0;::::1;30787:73;;;::::0;-1:-1:-1;;;30787:73:0;;22618:2:1;30787:73:0::1;::::0;::::1;22600:21:1::0;22657:2;22637:18;;;22630:30;22696:34;22676:18;;;22669:62;-1:-1:-1;;;22747:18:1;;;22740:36;22793:19;;30787:73:0::1;22416:402:1::0;30787:73:0::1;30871:28;30890:8;30871:18;:28::i;69132:215::-:0;69234:4;-1:-1:-1;;;;;;69258:41:0;;-1:-1:-1;;;69258:41:0;;:81;;-1:-1:-1;;;;;;;;;;32072:40:0;;;69303:36;31963:157;81166:639;81251:4;-1:-1:-1;;;;;;;;;81575:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;81652:25:0;;;81575:102;:179;;;-1:-1:-1;;;;;;;;81729:25:0;-1:-1:-1;;;81729:25:0;;81166:639::o;29965:132::-;29873:6;;-1:-1:-1;;;;;29873:6:0;28589:10;30029:23;30021:68;;;;-1:-1:-1;;;30021:68:0;;23025:2:1;30021:68:0;;;23007:21:1;;;23044:18;;;23037:30;23103:34;23083:18;;;23076:62;23155:18;;30021:68:0;22823:356:1;70494:332:0;70210:5;-1:-1:-1;;;;;70597:33:0;;;;70589:88;;;;-1:-1:-1;;;70589:88:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;70696:22:0;;70688:60;;;;-1:-1:-1;;;70688:60:0;;23797:2:1;70688:60:0;;;23779:21:1;23836:2;23816:18;;;23809:30;23875:27;23855:18;;;23848:55;23920:18;;70688:60:0;23595:349:1;70688:60:0;70783:35;;;;;;;;;-1:-1:-1;;;;;70783:35:0;;;;;;-1:-1:-1;;;;;70783:35:0;;;;;;;;;;-1:-1:-1;;;70761:57:0;;;;:19;:57;70494:332::o;89402:282::-;89467:4;89523:7;135435:1;89504:26;;:66;;;;;89557:13;;89547:7;:23;89504:66;:153;;;;-1:-1:-1;;89608:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;89608:44:0;:49;;89402:282::o;106462:431::-;106557:13;106573:16;106581:7;106573;:16::i;:::-;106557:32;;106606:13;:45;;;;-1:-1:-1;28589:10:0;-1:-1:-1;;;;;106623:28:0;;;;106606:45;106602:192;;;106671:44;106688:5;28589:10;88980:164;:::i;106671:44::-;106666:128;;106743:35;;-1:-1:-1;;;106743:35:0;;;;;;;;;;;106666:128;106806:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;106806:35:0;-1:-1:-1;;;;;106806:35:0;;;;;;;;;106857:28;;106806:24;;106857:28;;;;;;;106546:347;106462:431;;;:::o;132980:271::-;133040:9;:11;;133023:4;;;133040:11;;;:::i;:::-;;;;;;133148:2;133141:3;133099:15;133115:10;133126:9;;133082:54;;;;;;;;;24134:19:1;;;24191:2;24187:15;;;;-1:-1:-1;;24183:53:1;24178:2;24169:12;;24162:75;24262:2;24253:12;;24246:28;24299:2;24290:12;;23949:359;133082:54:0;;;;;;;;;;;;;133072:65;;;;;;133067:71;;:77;;;;:::i;:::-;133066:84;133062:182;;;-1:-1:-1;133174:4:0;;132980:271::o;133062:182::-;-1:-1:-1;133227:5:0;;132980:271::o;105542:112::-;105619:27;105629:2;105633:8;105619:27;;;;;;;;;;;;:9;:27::i;91670:2825::-;91812:27;91842;91861:7;91842:18;:27::i;:::-;91812:57;;91927:4;-1:-1:-1;;;;;91886:45:0;91902:19;-1:-1:-1;;;;;91886:45:0;;91882:86;;91940:28;;-1:-1:-1;;;91940:28:0;;;;;;;;;;;91882:86;91982:27;90778:24;;;:15;:24;;;;;91006:26;;92173:68;91006:26;92215:4;28589:10;92221:19;-1:-1:-1;;;;;90252:32:0;;;90096:28;;90381:20;;90403:30;;90378:56;;89793:659;92173:68;92168:180;;92261:43;92278:4;28589:10;88980:164;:::i;92261:43::-;92256:92;;92313:35;;-1:-1:-1;;;92313:35:0;;;;;;;;;;;92256:92;-1:-1:-1;;;;;92365:16:0;;92361:52;;92390:23;;-1:-1:-1;;;92390:23:0;;;;;;;;;;;92361:52;92562:15;92559:160;;;92702:1;92681:19;92674:30;92559:160;-1:-1:-1;;;;;93099:24:0;;;;;;;:18;:24;;;;;;93097:26;;-1:-1:-1;;93097:26:0;;;93168:22;;;;;;;;;93166:24;;-1:-1:-1;93166:24:0;;;86850:11;86825:23;86821:41;86808:63;-1:-1:-1;;;86808:63:0;93461:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;93756:47:0;;:52;;93752:627;;93861:1;93851:11;;93829:19;93984:30;;;:17;:30;;;;;;:35;;93980:384;;94122:13;;94107:11;:28;94103:242;;94269:30;;;;:17;:30;;;;;:52;;;94103:242;93810:569;93752:627;94426:7;94422:2;-1:-1:-1;;;;;94407:27:0;94416:4;-1:-1:-1;;;;;94407:27:0;-1:-1:-1;;;;;;;;;;;94407:27:0;;;;;;;;;94445:42;91801:2694;;;91670:2825;;;:::o;94591:193::-;94737:39;94754:4;94760:2;94764:7;94737:39;;;;;;;;;;;;:16;:39::i;107478:3081::-;107558:27;107588;107607:7;107588:18;:27::i;:::-;107558:57;-1:-1:-1;107558:57:0;107628:12;;107750:35;107777:7;90667:27;90778:24;;;:15;:24;;;;;91006:26;;90778:24;;90565:485;107750:35;107693:92;;;;107802:13;107798:316;;;107923:68;107948:15;107965:4;28589:10;107971:19;28509:98;107923:68;107918:184;;108015:43;108032:4;28589:10;88980:164;:::i;108015:43::-;108010:92;;108067:35;;-1:-1:-1;;;108067:35:0;;;;;;;;;;;108010:92;108270:15;108267:160;;;108410:1;108389:19;108382:30;108267:160;-1:-1:-1;;;;;109029:24:0;;;;;;:18;:24;;;;;:60;;109057:32;109029:60;;;86850:11;86825:23;86821:41;86808:63;-1:-1:-1;;;86808:63:0;109327:26;;;;:17;:26;;;;;:205;;;;-1:-1:-1;;;109652:47:0;;:52;;109648:627;;109757:1;109747:11;;109725:19;109880:30;;;:17;:30;;;;;;:35;;109876:384;;110018:13;;110003:11;:28;109999:242;;110165:30;;;;:17;:30;;;;;:52;;;109999:242;109706:569;109648:627;110303:35;;110330:7;;110326:1;;-1:-1:-1;;;;;110303:35:0;;;-1:-1:-1;;;;;;;;;;;110303:35:0;110326:1;;110303:35;-1:-1:-1;;110526:12:0;:14;;;;;;-1:-1:-1;;;;107478:3081:0:o;71277:390::-;70210:5;-1:-1:-1;;;;;71429:33:0;;;;71421:88;;;;-1:-1:-1;;;71421:88:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;71528:22:0;;71520:62;;;;-1:-1:-1;;;71520:62:0;;24632:2:1;71520:62:0;;;24614:21:1;24671:2;24651:18;;;24644:30;24710:29;24690:18;;;24683:57;24757:18;;71520:62:0;24430:351:1;71520:62:0;71624:35;;;;;;;;-1:-1:-1;;;;;71624:35:0;;;;;-1:-1:-1;;;;;71624:35:0;;;;;;;;;;-1:-1:-1;71595:26:0;;;:17;:26;;;;;;:64;;;;;;;-1:-1:-1;;;71595:64:0;;;;;;71277:390::o;84616:1275::-;84683:7;84718;;135435:1;84767:23;84763:1061;;84820:13;;84813:4;:20;84809:1015;;;84858:14;84875:23;;;:17;:23;;;;;;;-1:-1:-1;;;84964:24:0;;:29;;84960:845;;85629:113;85636:6;85646:1;85636:11;85629:113;;-1:-1:-1;;;85707:6:0;85689:25;;;;:17;:25;;;;;;85629:113;;84960:845;84835:989;84809:1015;85852:31;;-1:-1:-1;;;85852:31:0;;;;;;;;;;;31067:191;31160:6;;;-1:-1:-1;;;;;31177:17:0;;;-1:-1:-1;;;;;;31177:17:0;;;;;;;31210:40;;31160:6;;;31177:17;31160:6;;31210:40;;31141:16;;31210:40;31130:128;31067:191;:::o;84064:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84192:24:0;;;;:17;:24;;;;;;84173:44;;:18;:44::i;95382:407::-;95557:31;95570:4;95576:2;95580:7;95557:12;:31::i;:::-;-1:-1:-1;;;;;95603:14:0;;;:19;95599:183;;95642:56;95673:4;95679:2;95683:7;95692:5;95642:30;:56::i;:::-;95637:145;;95726:40;;-1:-1:-1;;;95726:40:0;;;;;;;;;;;83802:166;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83913:47:0;83932:27;83951:7;83932:18;:27::i;:::-;83913:18;:47::i;135838:108::-;135898:13;135931:7;135924:14;;;;;:::i;23207:716::-;23263:13;23314:14;23331:17;23342:5;23331:10;:17::i;:::-;23351:1;23331:21;23314:38;;23367:20;23401:6;-1:-1:-1;;;;;23390:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23390:18:0;-1:-1:-1;23367:41:0;-1:-1:-1;23532:28:0;;;23548:2;23532:28;23589:288;-1:-1:-1;;23621:5:0;-1:-1:-1;;;23758:2:0;23747:14;;23742:30;23621:5;23729:44;23819:2;23810:11;;;-1:-1:-1;23840:21:0;23589:288;23840:21;-1:-1:-1;23898:6:0;23207:716;-1:-1:-1;;;23207:716:0:o;104769:689::-;104900:19;104906:2;104910:8;104900:5;:19::i;:::-;-1:-1:-1;;;;;104961:14:0;;;:19;104957:483;;105001:11;105015:13;105063:14;;;105096:233;105127:62;105166:1;105170:2;105174:7;;;;;;105183:5;105127:30;:62::i;:::-;105122:167;;105225:40;;-1:-1:-1;;;105225:40:0;;;;;;;;;;;105122:167;105324:3;105316:5;:11;105096:233;;105411:3;105394:13;;:20;105390:34;;105416:8;;;85990:366;-1:-1:-1;;;;;;;;;;;;;86100:41:0;;;;73821:3;86186:33;;;-1:-1:-1;;;;;86152:68:0;-1:-1:-1;;;86152:68:0;-1:-1:-1;;;86250:24:0;;:29;;-1:-1:-1;;;86231:48:0;;;;74342:3;86319:28;;;;-1:-1:-1;;;86290:58:0;-1:-1:-1;85990:366:0:o;97873:716::-;98057:88;;-1:-1:-1;;;98057:88:0;;98036:4;;-1:-1:-1;;;;;98057:45:0;;;;;:88;;28589:10;;98124:4;;98130:7;;98139:5;;98057:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;98057:88:0;;;;;;;;-1:-1:-1;;98057:88:0;;;;;;;;;;;;:::i;:::-;;;98053:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98340:6;:13;98357:1;98340:18;98336:235;;98386:40;;-1:-1:-1;;;98386:40:0;;;;;;;;;;;98336:235;98529:6;98523:13;98514:6;98510:2;98506:15;98499:38;98053:529;-1:-1:-1;;;;;;98216:64:0;-1:-1:-1;;;98216:64:0;;-1:-1:-1;98053:529:0;97873:716;;;;;;:::o;10083:922::-;10136:7;;-1:-1:-1;;;10214:15:0;;10210:102;;-1:-1:-1;;;10250:15:0;;;-1:-1:-1;10294:2:0;10284:12;10210:102;10339:6;10330:5;:15;10326:102;;10375:6;10366:15;;;-1:-1:-1;10410:2:0;10400:12;10326:102;10455:6;10446:5;:15;10442:102;;10491:6;10482:15;;;-1:-1:-1;10526:2:0;10516:12;10442:102;10571:5;10562;:14;10558:99;;10606:5;10597:14;;;-1:-1:-1;10640:1:0;10630:11;10558:99;10684:5;10675;:14;10671:99;;10719:5;10710:14;;;-1:-1:-1;10753:1:0;10743:11;10671:99;10797:5;10788;:14;10784:99;;10832:5;10823:14;;;-1:-1:-1;10866:1:0;10856:11;10784:99;10910:5;10901;:14;10897:66;;10946:1;10936:11;10991:6;10083:922;-1:-1:-1;;10083:922:0:o;99051:2966::-;99124:20;99147:13;;;99175;;;99171:44;;99197:18;;-1:-1:-1;;;99197:18:0;;;;;;;;;;;99171:44;-1:-1:-1;;;;;99703:22:0;;;;;;:18;:22;;;;73300:2;99703:22;;;:71;;99741:32;99729:45;;99703:71;;;100017:31;;;:17;:31;;;;;-1:-1:-1;87281:15:0;;87255:24;87251:46;86850:11;86825:23;86821:41;86818:52;86808:63;;100017:173;;100252:23;;;;100017:31;;99703:22;;-1:-1:-1;;;;;;;;;;;99703:22:0;;100870:335;101531:1;101517:12;101513:20;101471:346;101572:3;101563:7;101560:16;101471:346;;101790:7;101780:8;101777:1;-1:-1:-1;;;;;;;;;;;101747:1:0;101744;101739:59;101625:1;101612:15;101471:346;;;101475:77;101850:8;101862:1;101850:13;101846:45;;101872:19;;-1:-1:-1;;;101872:19:0;;;;;;;;;;;101846:45;101908:13;:19;-1:-1:-1;131849:109:0::1;131643:322:::0;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;689:70;592:173;;;:::o;770:179::-;837:20;;-1:-1:-1;;;;;886:38:1;;876:49;;866:77;;939:1;936;929:12;954:258;1021:6;1029;1082:2;1070:9;1061:7;1057:23;1053:32;1050:52;;;1098:1;1095;1088:12;1050:52;1121:29;1140:9;1121:29;:::i;:::-;1111:39;;1169:37;1202:2;1191:9;1187:18;1169:37;:::i;:::-;1159:47;;954:258;;;;;:::o;1217:250::-;1302:1;1312:113;1326:6;1323:1;1320:13;1312:113;;;1402:11;;;1396:18;1383:11;;;1376:39;1348:2;1341:10;1312:113;;;-1:-1:-1;;1459:1:1;1441:16;;1434:27;1217:250::o;1472:271::-;1514:3;1552:5;1546:12;1579:6;1574:3;1567:19;1595:76;1664:6;1657:4;1652:3;1648:14;1641:4;1634:5;1630:16;1595:76;:::i;:::-;1725:2;1704:15;-1:-1:-1;;1700:29:1;1691:39;;;;1732:4;1687:50;;1472:271;-1:-1:-1;;1472:271:1:o;1748:220::-;1897:2;1886:9;1879:21;1860:4;1917:45;1958:2;1947:9;1943:18;1935:6;1917:45;:::i;1973:180::-;2032:6;2085:2;2073:9;2064:7;2060:23;2056:32;2053:52;;;2101:1;2098;2091:12;2053:52;-1:-1:-1;2124:23:1;;1973:180;-1:-1:-1;1973:180:1:o;2366:254::-;2434:6;2442;2495:2;2483:9;2474:7;2470:23;2466:32;2463:52;;;2511:1;2508;2501:12;2463:52;2534:29;2553:9;2534:29;:::i;:::-;2524:39;2610:2;2595:18;;;;2582:32;;-1:-1:-1;;;2366:254:1:o;2625:186::-;2684:6;2737:2;2725:9;2716:7;2712:23;2708:32;2705:52;;;2753:1;2750;2743:12;2705:52;2776:29;2795:9;2776:29;:::i;2998:127::-;3059:10;3054:3;3050:20;3047:1;3040:31;3090:4;3087:1;3080:15;3114:4;3111:1;3104:15;3130:275;3201:2;3195:9;3266:2;3247:13;;-1:-1:-1;;3243:27:1;3231:40;;-1:-1:-1;;;;;3286:34:1;;3322:22;;;3283:62;3280:88;;;3348:18;;:::i;:::-;3384:2;3377:22;3130:275;;-1:-1:-1;3130:275:1:o;3410:183::-;3470:4;-1:-1:-1;;;;;3495:6:1;3492:30;3489:56;;;3525:18;;:::i;:::-;-1:-1:-1;3570:1:1;3566:14;3582:4;3562:25;;3410:183::o;3598:662::-;3652:5;3705:3;3698:4;3690:6;3686:17;3682:27;3672:55;;3723:1;3720;3713:12;3672:55;3759:6;3746:20;3785:4;3809:60;3825:43;3865:2;3825:43;:::i;:::-;3809:60;:::i;:::-;3903:15;;;3989:1;3985:10;;;;3973:23;;3969:32;;;3934:12;;;;4013:15;;;4010:35;;;4041:1;4038;4031:12;4010:35;4077:2;4069:6;4065:15;4089:142;4105:6;4100:3;4097:15;4089:142;;;4171:17;;4159:30;;4209:12;;;;4122;;4089:142;;;-1:-1:-1;4249:5:1;3598:662;-1:-1:-1;;;;;;3598:662:1:o;4265:1146::-;4383:6;4391;4444:2;4432:9;4423:7;4419:23;4415:32;4412:52;;;4460:1;4457;4450:12;4412:52;4500:9;4487:23;-1:-1:-1;;;;;4570:2:1;4562:6;4559:14;4556:34;;;4586:1;4583;4576:12;4556:34;4624:6;4613:9;4609:22;4599:32;;4669:7;4662:4;4658:2;4654:13;4650:27;4640:55;;4691:1;4688;4681:12;4640:55;4727:2;4714:16;4749:4;4773:60;4789:43;4829:2;4789:43;:::i;4773:60::-;4867:15;;;4949:1;4945:10;;;;4937:19;;4933:28;;;4898:12;;;;4973:19;;;4970:39;;;5005:1;5002;4995:12;4970:39;5029:11;;;;5049:148;5065:6;5060:3;5057:15;5049:148;;;5131:23;5150:3;5131:23;:::i;:::-;5119:36;;5082:12;;;;5175;;;;5049:148;;;5216:5;-1:-1:-1;;5259:18:1;;5246:32;;-1:-1:-1;;5290:16:1;;;5287:36;;;5319:1;5316;5309:12;5287:36;;5342:63;5397:7;5386:8;5375:9;5371:24;5342:63;:::i;:::-;5332:73;;;4265:1146;;;;;:::o;5416:328::-;5493:6;5501;5509;5562:2;5550:9;5541:7;5537:23;5533:32;5530:52;;;5578:1;5575;5568:12;5530:52;5601:29;5620:9;5601:29;:::i;:::-;5591:39;;5649:38;5683:2;5672:9;5668:18;5649:38;:::i;:::-;5639:48;;5734:2;5723:9;5719:18;5706:32;5696:42;;5416:328;;;;;:::o;5749:248::-;5817:6;5825;5878:2;5866:9;5857:7;5853:23;5849:32;5846:52;;;5894:1;5891;5884:12;5846:52;-1:-1:-1;;5917:23:1;;;5987:2;5972:18;;;5959:32;;-1:-1:-1;5749:248:1:o;6281:407::-;6346:5;-1:-1:-1;;;;;6372:6:1;6369:30;6366:56;;;6402:18;;:::i;:::-;6440:57;6485:2;6464:15;;-1:-1:-1;;6460:29:1;6491:4;6456:40;6440:57;:::i;:::-;6431:66;;6520:6;6513:5;6506:21;6560:3;6551:6;6546:3;6542:16;6539:25;6536:45;;;6577:1;6574;6567:12;6536:45;6626:6;6621:3;6614:4;6607:5;6603:16;6590:43;6680:1;6673:4;6664:6;6657:5;6653:18;6649:29;6642:40;6281:407;;;;;:::o;6693:451::-;6762:6;6815:2;6803:9;6794:7;6790:23;6786:32;6783:52;;;6831:1;6828;6821:12;6783:52;6871:9;6858:23;-1:-1:-1;;;;;6896:6:1;6893:30;6890:50;;;6936:1;6933;6926:12;6890:50;6959:22;;7012:4;7004:13;;7000:27;-1:-1:-1;6990:55:1;;7041:1;7038;7031:12;6990:55;7064:74;7130:7;7125:2;7112:16;7107:2;7103;7099:11;7064:74;:::i;7149:326::-;7225:6;7233;7241;7294:2;7282:9;7273:7;7269:23;7265:32;7262:52;;;7310:1;7307;7300:12;7262:52;7346:9;7333:23;7323:33;;7375:38;7409:2;7398:9;7394:18;7375:38;:::i;:::-;7365:48;;7432:37;7465:2;7454:9;7450:18;7432:37;:::i;:::-;7422:47;;7149:326;;;;;:::o;7480:615::-;7566:6;7574;7627:2;7615:9;7606:7;7602:23;7598:32;7595:52;;;7643:1;7640;7633:12;7595:52;7683:9;7670:23;-1:-1:-1;;;;;7753:2:1;7745:6;7742:14;7739:34;;;7769:1;7766;7759:12;7739:34;7807:6;7796:9;7792:22;7782:32;;7852:7;7845:4;7841:2;7837:13;7833:27;7823:55;;7874:1;7871;7864:12;7823:55;7914:2;7901:16;7940:2;7932:6;7929:14;7926:34;;;7956:1;7953;7946:12;7926:34;8009:7;8004:2;7994:6;7991:1;7987:14;7983:2;7979:23;7975:32;7972:45;7969:65;;;8030:1;8027;8020:12;7969:65;8061:2;8053:11;;;;;8083:6;;-1:-1:-1;7480:615:1;;-1:-1:-1;;;;7480:615:1:o;8100:349::-;8184:12;;-1:-1:-1;;;;;8180:38:1;8168:51;;8272:4;8261:16;;;8255:23;-1:-1:-1;;;;;8251:48:1;8235:14;;;8228:72;8363:4;8352:16;;;8346:23;8339:31;8332:39;8316:14;;;8309:63;8425:4;8414:16;;;8408:23;8433:8;8404:38;8388:14;;8381:62;8100:349::o;8454:724::-;8689:2;8741:21;;;8811:13;;8714:18;;;8833:22;;;8660:4;;8689:2;8912:15;;;;8886:2;8871:18;;;8660:4;8955:197;8969:6;8966:1;8963:13;8955:197;;;9018:52;9066:3;9057:6;9051:13;9018:52;:::i;:::-;9127:15;;;;9099:4;9090:14;;;;;8991:1;8984:9;8955:197;;9183:632;9354:2;9406:21;;;9476:13;;9379:18;;;9498:22;;;9325:4;;9354:2;9577:15;;;;9551:2;9536:18;;;9325:4;9620:169;9634:6;9631:1;9628:13;9620:169;;;9695:13;;9683:26;;9764:15;;;;9729:12;;;;9656:1;9649:9;9620:169;;9820:118;9906:5;9899:13;9892:21;9885:5;9882:32;9872:60;;9928:1;9925;9918:12;9943:241;9999:6;10052:2;10040:9;10031:7;10027:23;10023:32;10020:52;;;10068:1;10065;10058:12;10020:52;10107:9;10094:23;10126:28;10148:5;10126:28;:::i;10189:322::-;10266:6;10274;10282;10335:2;10323:9;10314:7;10310:23;10306:32;10303:52;;;10351:1;10348;10341:12;10303:52;10374:29;10393:9;10374:29;:::i;:::-;10364:39;10450:2;10435:18;;10422:32;;-1:-1:-1;10501:2:1;10486:18;;;10473:32;;10189:322;-1:-1:-1;;;10189:322:1:o;10516:315::-;10581:6;10589;10642:2;10630:9;10621:7;10617:23;10613:32;10610:52;;;10658:1;10655;10648:12;10610:52;10681:29;10700:9;10681:29;:::i;:::-;10671:39;;10760:2;10749:9;10745:18;10732:32;10773:28;10795:5;10773:28;:::i;:::-;10820:5;10810:15;;;10516:315;;;;;:::o;10836:667::-;10931:6;10939;10947;10955;11008:3;10996:9;10987:7;10983:23;10979:33;10976:53;;;11025:1;11022;11015:12;10976:53;11048:29;11067:9;11048:29;:::i;:::-;11038:39;;11096:38;11130:2;11119:9;11115:18;11096:38;:::i;:::-;11086:48;;11181:2;11170:9;11166:18;11153:32;11143:42;;11236:2;11225:9;11221:18;11208:32;-1:-1:-1;;;;;11255:6:1;11252:30;11249:50;;;11295:1;11292;11285:12;11249:50;11318:22;;11371:4;11363:13;;11359:27;-1:-1:-1;11349:55:1;;11400:1;11397;11390:12;11349:55;11423:74;11489:7;11484:2;11471:16;11466:2;11462;11458:11;11423:74;:::i;:::-;11413:84;;;10836:667;;;;;;;:::o;11508:268::-;11706:3;11691:19;;11719:51;11695:9;11752:6;11719:51;:::i;11781:260::-;11849:6;11857;11910:2;11898:9;11889:7;11885:23;11881:32;11878:52;;;11926:1;11923;11916:12;11878:52;11949:29;11968:9;11949:29;:::i;:::-;11939:39;;11997:38;12031:2;12020:9;12016:18;11997:38;:::i;12046:380::-;12125:1;12121:12;;;;12168;;;12189:61;;12243:4;12235:6;12231:17;12221:27;;12189:61;12296:2;12288:6;12285:14;12265:18;12262:38;12259:161;;12342:10;12337:3;12333:20;12330:1;12323:31;12377:4;12374:1;12367:15;12405:4;12402:1;12395:15;12259:161;;12046:380;;;:::o;13192:127::-;13253:10;13248:3;13244:20;13241:1;13234:31;13284:4;13281:1;13274:15;13308:4;13305:1;13298:15;13324:128;13391:9;;;13412:11;;;13409:37;;;13426:18;;:::i;13457:125::-;13522:9;;;13543:10;;;13540:36;;;13556:18;;:::i;13587:354::-;13789:2;13771:21;;;13828:2;13808:18;;;13801:30;13867:32;13862:2;13847:18;;13840:60;13932:2;13917:18;;13587:354::o;14721:135::-;14760:3;14781:17;;;14778:43;;14801:18;;:::i;:::-;-1:-1:-1;14848:1:1;14837:13;;14721:135::o;14861:414::-;15063:2;15045:21;;;15102:2;15082:18;;;15075:30;15141:34;15136:2;15121:18;;15114:62;-1:-1:-1;;;15207:2:1;15192:18;;15185:48;15265:3;15250:19;;14861:414::o;15280:127::-;15341:10;15336:3;15332:20;15329:1;15322:31;15372:4;15369:1;15362:15;15396:4;15393:1;15386:15;15721:245;15788:6;15841:2;15829:9;15820:7;15816:23;15812:32;15809:52;;;15857:1;15854;15847:12;15809:52;15889:9;15883:16;15908:28;15930:5;15908:28;:::i;15971:168::-;16044:9;;;16075;;16092:15;;;16086:22;;16072:37;16062:71;;16113:18;;:::i;16144:127::-;16205:10;16200:3;16196:20;16193:1;16186:31;16236:4;16233:1;16226:15;16260:4;16257:1;16250:15;16276:120;16316:1;16342;16332:35;;16347:18;;:::i;:::-;-1:-1:-1;16381:9:1;;16276:120::o;16527:545::-;16629:2;16624:3;16621:11;16618:448;;;16665:1;16690:5;16686:2;16679:17;16735:4;16731:2;16721:19;16805:2;16793:10;16789:19;16786:1;16782:27;16776:4;16772:38;16841:4;16829:10;16826:20;16823:47;;;-1:-1:-1;16864:4:1;16823:47;16919:2;16914:3;16910:12;16907:1;16903:20;16897:4;16893:31;16883:41;;16974:82;16992:2;16985:5;16982:13;16974:82;;;17037:17;;;17018:1;17007:13;16974:82;;17248:1352;17374:3;17368:10;-1:-1:-1;;;;;17393:6:1;17390:30;17387:56;;;17423:18;;:::i;:::-;17452:97;17542:6;17502:38;17534:4;17528:11;17502:38;:::i;:::-;17496:4;17452:97;:::i;:::-;17604:4;;17668:2;17657:14;;17685:1;17680:663;;;;18387:1;18404:6;18401:89;;;-1:-1:-1;18456:19:1;;;18450:26;18401:89;-1:-1:-1;;17205:1:1;17201:11;;;17197:24;17193:29;17183:40;17229:1;17225:11;;;17180:57;18503:81;;17650:944;;17680:663;16474:1;16467:14;;;16511:4;16498:18;;-1:-1:-1;;17716:20:1;;;17834:236;17848:7;17845:1;17842:14;17834:236;;;17937:19;;;17931:26;17916:42;;18029:27;;;;17997:1;17985:14;;;;17864:19;;17834:236;;;17838:3;18098:6;18089:7;18086:19;18083:201;;;18159:19;;;18153:26;-1:-1:-1;;18242:1:1;18238:14;;;18254:3;18234:24;18230:37;18226:42;18211:58;18196:74;;18083:201;-1:-1:-1;;;;;18330:1:1;18314:14;;;18310:22;18297:36;;-1:-1:-1;17248:1352:1:o;19576:1256::-;19800:3;19838:6;19832:13;19864:4;19877:64;19934:6;19929:3;19924:2;19916:6;19912:15;19877:64;:::i;:::-;20004:13;;19963:16;;;;20026:68;20004:13;19963:16;20061:15;;;20026:68;:::i;:::-;20183:13;;20116:20;;;20156:1;;20221:36;20183:13;20221:36;:::i;:::-;20276:1;20293:18;;;20320:141;;;;20475:1;20470:337;;;;20286:521;;20320:141;-1:-1:-1;;20355:24:1;;20341:39;;20432:16;;20425:24;20411:39;;20400:51;;;-1:-1:-1;20320:141:1;;20470:337;20501:6;20498:1;20491:17;20549:2;20546:1;20536:16;20574:1;20588:169;20602:8;20599:1;20596:15;20588:169;;;20684:14;;20669:13;;;20662:37;20727:16;;;;20619:10;;20588:169;;;20592:3;;20788:8;20781:5;20777:20;20770:27;;20286:521;-1:-1:-1;20823:3:1;;19576:1256;-1:-1:-1;;;;;;;;;;19576:1256:1:o;23184:406::-;23386:2;23368:21;;;23425:2;23405:18;;;23398:30;23464:34;23459:2;23444:18;;23437:62;-1:-1:-1;;;23530:2:1;23515:18;;23508:40;23580:3;23565:19;;23184:406::o;24313:112::-;24345:1;24371;24361:35;;24376:18;;:::i;:::-;-1:-1:-1;24410:9:1;;24313:112::o;24786:489::-;-1:-1:-1;;;;;25055:15:1;;;25037:34;;25107:15;;25102:2;25087:18;;25080:43;25154:2;25139:18;;25132:34;;;25202:3;25197:2;25182:18;;25175:31;;;24980:4;;25223:46;;25249:19;;25241:6;25223:46;:::i;:::-;25215:54;24786:489;-1:-1:-1;;;;;;24786:489:1:o;25280:249::-;25349:6;25402:2;25390:9;25381:7;25377:23;25373:32;25370:52;;;25418:1;25415;25408:12;25370:52;25450:9;25444:16;25469:30;25493:5;25469:30;:::i
Swarm Source
ipfs://7a54a4439f6767cc3be2c29f85b5da788cbfc133434dc277aaf40502b3acbd47
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.