Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
LSRNftCollection
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-02-28 */ // SPDX-License-Identifier: MIT pragma solidity =0.8.9; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControlUpgradeable { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 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 This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Internal function that returns the initialized version. Returns `_initialized` */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Internal function that returns the initialized version. Returns `_initializing` */ function _isInitializing() internal view returns (bool) { return _initializing; } } /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } /** * @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 IERC165Upgradeable { /** * @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); } /** * @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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { 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); } } } /** * @dev String operations. */ library StringsUpgradeable { 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 = MathUpgradeable.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, MathUpgradeable.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 Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable { function __AccessControl_init() internal onlyInitializing { } function __AccessControl_init_unchained() internal onlyInitializing { } struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", StringsUpgradeable.toHexString(account), " is missing role ", StringsUpgradeable.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } /** * @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 IERC2981Upgradeable is IERC165Upgradeable { /** * @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 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 ERC2981Upgradeable is Initializable, IERC2981Upgradeable, ERC165Upgradeable { function __ERC2981_init() internal onlyInitializing { } function __ERC2981_init_unchained() internal onlyInitializing { } 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(IERC165Upgradeable, ERC165Upgradeable) returns (bool) { return interfaceId == type(IERC2981Upgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981Upgradeable */ 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 This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[48] private __gap; } /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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 IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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 ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @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 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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable 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. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).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 = ERC721Upgradeable.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 = ERC721Upgradeable.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 = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721Upgradeable.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(ERC721Upgradeable.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(ERC721Upgradeable.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(ERC721Upgradeable.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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.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 This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[44] private __gap; } /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually for * specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first. * * 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 ERC721RoyaltyUpgradeable is Initializable, ERC2981Upgradeable, ERC721Upgradeable { function __ERC721Royalty_init() internal onlyInitializing { } function __ERC721Royalty_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable, ERC2981Upgradeable) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } struct Share { address holder; uint16 bps; } struct BaseUriSettings { string baseUri; bool isEveryTokenUnique; } struct Royalty { address receiver; uint96 percentage; } contract LSRNftCollection is AccessControlUpgradeable, ERC721RoyaltyUpgradeable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); Share[] public shares_; uint256 public maxPossibleTotalSupply_; uint256 private totalSupply_; string public baseUri_; bool public isEveryTokenUnique_; uint256 public price_; bool public isSaleActive_; uint256 public maxSellAmountForOneBuyer_; mapping(address => uint256) public soldAmounts_; function version() external pure returns (string memory) { return "LSRNftCollection v1"; } constructor() { _disableInitializers(); } function initialize( string memory _name, string memory _symbol, address _admin, address[] memory _minters, Share[] memory _shares, uint256 _maxPossibleTotalSupply, uint256 _maxSellAmountForOneBuyer, BaseUriSettings memory _baseUriSettings, uint256 _price, Royalty memory _royalty, bool _isSaleActive ) external initializer { __ERC721_init(_name, _symbol); _grantRole(DEFAULT_ADMIN_ROLE, _admin); _grantRole(MINTER_ROLE, _admin); for (uint16 i = 0; i < _minters.length; ++i) { _grantRole(MINTER_ROLE, _minters[i]); } uint16 totalShares; for (uint256 i = 0; i < _shares.length; i++) { require(_shares[i].holder != address(0), "Zero shareholder address"); require(_shares[i].bps != 0, "Zero share"); shares_.push(_shares[i]); totalShares += _shares[i].bps; } require(totalShares == 10_000, "Invalid total shares"); require(_maxPossibleTotalSupply != 0, "Zero max possible total supply"); maxPossibleTotalSupply_ = _maxPossibleTotalSupply; maxSellAmountForOneBuyer_ = _maxSellAmountForOneBuyer; _setBaseUri(_baseUriSettings.baseUri, _baseUriSettings.isEveryTokenUnique); require(_price != 0, "Zero price"); price_ = _price; _setDefaultRoyalty(_royalty.receiver, _royalty.percentage); isSaleActive_ = _isSaleActive; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { _requireMinted(_tokenId); return isEveryTokenUnique_ ? string(abi.encodePacked(baseUri_, _toString(_tokenId), ".json")) : baseUri_; } function activateSale(bool _on) external onlyRole(DEFAULT_ADMIN_ROLE) { require(isSaleActive_ != _on, "Already done"); isSaleActive_ = _on; } function setPrice(uint256 _price) external onlyRole(DEFAULT_ADMIN_ROLE) { require(_price != 0, "Zero price"); require(price_ != _price, "Already done"); price_ = _price; } function setMaxSellAmountForOneBuyer(uint256 _maxSellAmountForOneBuyer) external onlyRole(DEFAULT_ADMIN_ROLE) { require(maxSellAmountForOneBuyer_ != _maxSellAmountForOneBuyer, "Already done"); maxSellAmountForOneBuyer_ = _maxSellAmountForOneBuyer; } function setMaxPossibleTotalSupply(uint256 _maxPossibleTotalSupply) external onlyRole(DEFAULT_ADMIN_ROLE) { require(maxPossibleTotalSupply_ != _maxPossibleTotalSupply, "Already done"); require(_maxPossibleTotalSupply >= totalSupply(), "New supply limit too small"); maxPossibleTotalSupply_ = _maxPossibleTotalSupply; } function totalSupply() public view returns (uint256) { return totalSupply_; } function availableForMintAmount() public view returns (uint256) { return maxPossibleTotalSupply_ - totalSupply_; } function availableForBuyAmount(address _buyer) external view returns (uint256) { return _min( availableForMintAmount(), _safeSub(maxSellAmountForOneBuyer_, soldAmounts_[_buyer]) ); } function mintBatch(address _to, uint256 _amount) external onlyRole(MINTER_ROLE) { _mintBatch(_to, _amount); } function calcPrice(uint256 _amount) external view returns (uint256) { return _amount * price_; } function buy(address _to, uint256 _amount) external payable { require(isSaleActive_, "Sale paused"); require(_amount != 0, "Zero mint amount"); require(soldAmounts_[_to] + _amount <= maxSellAmountForOneBuyer_, "Exceeded buyer limit"); soldAmounts_[_to] += _amount; _takePayment(_amount); _mintBatch(_to, _amount); } function _takePayment(uint256 _purchasedAmount) private { uint256 totalPrice = _purchasedAmount * price_; require(msg.value == totalPrice, "Payment amount mismatch"); uint256 sharesLength = shares_.length; // gas savings uint256 transferAmount; uint256 totalTransferred; for (uint16 i = 0; i < sharesLength - 1; ++i) { transferAmount = totalPrice * shares_[i].bps / 10_000; totalTransferred += transferAmount; _sendCoin(shares_[i].holder, transferAmount); } _sendCoin(shares_[sharesLength - 1].holder, totalPrice - totalTransferred); } function _mintBatch(address _to, uint256 _amount) private { uint256 tokenId = totalSupply_; // gas savings require(tokenId + _amount <= maxPossibleTotalSupply_, "Exceeded max possible total supply"); totalSupply_ = tokenId + _amount; for (uint256 i = 0; i < _amount; ++i) { _safeMint(_to, ++tokenId); } } function setBaseUri(string memory _baseUri, bool _isEveryTokenUnique) external onlyRole(DEFAULT_ADMIN_ROLE) { _setBaseUri(_baseUri, _isEveryTokenUnique); } function _setBaseUri(string memory _baseUri, bool _isEveryTokenUnique) private { require(bytes(_baseUri).length != 0, "Empty base URI"); baseUri_ = _baseUri; isEveryTokenUnique_ = _isEveryTokenUnique; } function _grantRole(bytes32 _role, address _account) internal virtual override { require(_account != address(0), "Unable to grant role to zero address"); super._grantRole(_role, _account); } function _revokeRole(bytes32 _role, address _account) internal virtual override { require(_account != address(0), "Unable to revoke role from zero address"); super._revokeRole(_role, _account); } function supportsInterface( bytes4 _interfaceId ) public view virtual override(AccessControlUpgradeable, ERC721RoyaltyUpgradeable) returns (bool) { return AccessControlUpgradeable.supportsInterface(_interfaceId) || ERC721RoyaltyUpgradeable.supportsInterface(_interfaceId); } function _sendCoin(address _to, uint256 _amount) private { (bool sent,) = _to.call{value : _amount}(""); require(sent, "Coin send failed"); } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation */ function _toString(uint256 _value) private pure returns (string memory) { if (_value == 0) { return "0"; } uint256 temp = _value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (_value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(_value % 10))); _value /= 10; } return string(buffer); } function _safeSub(uint256 _value, uint256 _sub) private pure returns (uint256) { unchecked { return _value > _sub ? _value - _sub : 0; } } function _min(uint256 _a, uint256 _b) private pure returns (uint256) { return _a <= _b ? _a : _b; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_on","type":"bool"}],"name":"activateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_buyer","type":"address"}],"name":"availableForBuyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableForMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calcPrice","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address[]","name":"_minters","type":"address[]"},{"components":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct Share[]","name":"_shares","type":"tuple[]"},{"internalType":"uint256","name":"_maxPossibleTotalSupply","type":"uint256"},{"internalType":"uint256","name":"_maxSellAmountForOneBuyer","type":"uint256"},{"components":[{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"bool","name":"isEveryTokenUnique","type":"bool"}],"internalType":"struct BaseUriSettings","name":"_baseUriSettings","type":"tuple"},{"internalType":"uint256","name":"_price","type":"uint256"},{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"percentage","type":"uint96"}],"internalType":"struct Royalty","name":"_royalty","type":"tuple"},{"internalType":"bool","name":"_isSaleActive","type":"bool"}],"name":"initialize","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":"isEveryTokenUnique_","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive_","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPossibleTotalSupply_","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellAmountForOneBuyer_","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"bool","name":"_isEveryTokenUnique","type":"bool"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPossibleTotalSupply","type":"uint256"}],"name":"setMaxPossibleTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSellAmountForOneBuyer","type":"uint256"}],"name":"setMaxSellAmountForOneBuyer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"shares_","outputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"soldAmounts_","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200001c62000022565b620000e4565b600054610100900460ff16156200008f5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161015620000e2576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6133d580620000f46000396000f3fe6080604052600436106102515760003560e01c80638952f10811610139578063cce7ec13116100b6578063d547741f1161007a578063d547741f1461073f578063d6037aba1461075f578063e25a1a0c1461077f578063e985e9c514610794578063ec3829ef146107dd578063f0098e5f146107f857600080fd5b8063cce7ec1314610691578063ce40b03f146106a4578063cf4f31c7146106bb578063d3ccf5f2146106db578063d53913931461071d57600080fd5b80639c5e8d9c116100fd5780639c5e8d9c146105fc578063a217fddf1461061c578063a22cb46514610631578063b88d4fde14610651578063c87b56dd1461067157600080fd5b80638952f1081461056757806391b7f5ed1461058757806391d14854146105a757806395d89b41146105c75780639b099055146105dc57600080fd5b8063248a9ca3116101d2578063340b309811610196578063340b30981461049457806336568abe146104ab57806342842e0e146104cb57806354fd4d50146104eb5780636352211e1461052757806370a082311461054757600080fd5b8063248a9ca3146103c5578063248b71fc146103f55780632a55205a146104155780632b280ef0146104545780632f2ff15d1461047457600080fd5b806316b32eaa1161021957806316b32eaa1461031c57806318160ddd146103415780631e75bd1a1461035757806320b92bf61461038557806323b872dd146103a557600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e557806315702c4e14610307575b600080fd5b34801561026257600080fd5b50610276610271366004612874565b610813565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a0610833565b60405161028291906128e9565b3480156102b957600080fd5b506102cd6102c83660046128fc565b6108c5565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b50610305610300366004612931565b6108ec565b005b34801561031357600080fd5b506102a0610a07565b34801561032857600080fd5b5061033361012e5481565b604051908152602001610282565b34801561034d57600080fd5b5061012f54610333565b34801561036357600080fd5b5061033361037236600461295b565b6101356020526000908152604090205481565b34801561039157600080fd5b506103336103a03660046128fc565b610a96565b3480156103b157600080fd5b506103056103c0366004612976565b610aa7565b3480156103d157600080fd5b506103336103e03660046128fc565b60009081526065602052604090206001015490565b34801561040157600080fd5b50610305610410366004612931565b610ad8565b34801561042157600080fd5b506104356104303660046129b2565b610afa565b604080516001600160a01b039093168352602083019190915201610282565b34801561046057600080fd5b5061030561046f3660046128fc565b610ba6565b34801561048057600080fd5b5061030561048f3660046129d4565b610bdb565b3480156104a057600080fd5b506103336101345481565b3480156104b757600080fd5b506103056104c63660046129d4565b610c00565b3480156104d757600080fd5b506103056104e6366004612976565b610c7e565b3480156104f757600080fd5b506040805180820190915260138152724c53524e6674436f6c6c656374696f6e20763160681b60208201526102a0565b34801561053357600080fd5b506102cd6105423660046128fc565b610c99565b34801561055357600080fd5b5061033361056236600461295b565b610cf9565b34801561057357600080fd5b5061033361058236600461295b565b610d7f565b34801561059357600080fd5b506103056105a23660046128fc565b610db9565b3480156105b357600080fd5b506102766105c23660046129d4565b610e28565b3480156105d357600080fd5b506102a0610e53565b3480156105e857600080fd5b506103056105f7366004612af8565b610e62565b34801561060857600080fd5b50610305610617366004612d04565b610e77565b34801561062857600080fd5b50610333600081565b34801561063d57600080fd5b5061030561064c366004612e2c565b6112b9565b34801561065d57600080fd5b5061030561066c366004612e56565b6112c4565b34801561067d57600080fd5b506102a061068c3660046128fc565b6112fc565b61030561069f366004612931565b6113d5565b3480156106b057600080fd5b506103336101325481565b3480156106c757600080fd5b506103056106d6366004612ed2565b611506565b3480156106e757600080fd5b506106fb6106f63660046128fc565b611550565b604080516001600160a01b03909316835261ffff909116602083015201610282565b34801561072957600080fd5b5061033360008051602061338083398151915281565b34801561074b57600080fd5b5061030561075a3660046129d4565b611587565b34801561076b57600080fd5b5061030561077a3660046128fc565b6115ac565b34801561078b57600080fd5b50610333611634565b3480156107a057600080fd5b506102766107af366004612eed565b6001600160a01b03918216600090815260ce6020908152604080832093909416825291909152205460ff1690565b3480156107e957600080fd5b50610131546102769060ff1681565b34801561080457600080fd5b50610133546102769060ff1681565b600061081e8261164d565b8061082d575061082d82611682565b92915050565b606060c9805461084290612f17565b80601f016020809104026020016040519081016040528092919081815260200182805461086e90612f17565b80156108bb5780601f10610890576101008083540402835291602001916108bb565b820191906000526020600020905b81548152906001019060200180831161089e57829003601f168201915b5050505050905090565b60006108d08261168d565b50600090815260cd60205260409020546001600160a01b031690565b60006108f782610c99565b9050806001600160a01b0316836001600160a01b0316141561096a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610986575061098681336107af565b6109f85760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610961565b610a0283836116ef565b505050565b6101308054610a1590612f17565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4190612f17565b8015610a8e5780601f10610a6357610100808354040283529160200191610a8e565b820191906000526020600020905b815481529060010190602001808311610a7157829003601f168201915b505050505081565b6000610132548261082d9190612f68565b610ab1338261175d565b610acd5760405162461bcd60e51b815260040161096190612f87565b610a028383836117dc565b600080516020613380833981519152610af08161194d565b610a028383611957565b60008281526098602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b6f5750604080518082019091526097546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b8e906001600160601b031687612f68565b610b989190612fea565b915196919550909350505050565b6000610bb18161194d565b81610134541415610bd45760405162461bcd60e51b815260040161096190612ffe565b5061013455565b600082815260656020526040902060010154610bf68161194d565b610a028383611a00565b6001600160a01b0381163314610c705760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610961565b610c7a8282611a6c565b5050565b610a02838383604051806020016040528060008152506112c4565b600081815260cb60205260408120546001600160a01b03168061082d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610961565b60006001600160a01b038216610d635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610961565b506001600160a01b0316600090815260cc602052604090205490565b600061082d610d8c611634565b610134546001600160a01b03851660009081526101356020526040902054610db49190611adc565b611af7565b6000610dc48161194d565b81610dfe5760405162461bcd60e51b815260206004820152600a6024820152695a65726f20707269636560b01b6044820152606401610961565b81610132541415610e215760405162461bcd60e51b815260040161096190612ffe565b5061013255565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060ca805461084290612f17565b6000610e6d8161194d565b610a028383611b0e565b600054610100900460ff1615808015610e975750600054600160ff909116105b80610eb15750303b158015610eb1575060005460ff166001145b610f145760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610961565b6000805460ff191660011790558015610f37576000805461ff0019166101001790555b610f418c8c611b77565b610f4c60008b611a00565b610f646000805160206133808339815191528b611a00565b60005b89518161ffff161015610fb957610fa96000805160206133808339815191528b8361ffff1681518110610f9c57610f9c613024565b6020026020010151611a00565b610fb28161303a565b9050610f67565b506000805b895181101561114d5760006001600160a01b03168a8281518110610fe457610fe4613024565b6020026020010151600001516001600160a01b031614156110475760405162461bcd60e51b815260206004820152601860248201527f5a65726f207368617265686f6c646572206164647265737300000000000000006044820152606401610961565b89818151811061105957611059613024565b60200260200101516020015161ffff16600014156110a65760405162461bcd60e51b815260206004820152600a6024820152695a65726f20736861726560b01b6044820152606401610961565b61012d8a82815181106110bb576110bb613024565b6020908102919091018101518254600181018455600093845292829020815193018054919092015161ffff16600160a01b026001600160b01b03199091166001600160a01b039093169290921791909117905589518a908290811061112257611122613024565b60200260200101516020015182611139919061305c565b91508061114581613082565b915050610fbe565b508061ffff166127101461119a5760405162461bcd60e51b8152602060048201526014602482015273496e76616c696420746f74616c2073686172657360601b6044820152606401610961565b876111e75760405162461bcd60e51b815260206004820152601e60248201527f5a65726f206d617820706f737369626c6520746f74616c20737570706c7900006044820152606401610961565b61012e889055610134879055855160208701516112049190611b0e565b8461123e5760405162461bcd60e51b815260206004820152600a6024820152695a65726f20707269636560b01b6044820152606401610961565b610132859055835160208501516112559190611ba8565b50610133805460ff191683151517905580156112ab576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050505050565b610c7a338383611ca5565b6112ce338361175d565b6112ea5760405162461bcd60e51b815260040161096190612f87565b6112f684848484611d74565b50505050565b60606113078261168d565b6101315460ff166113a357610130805461132090612f17565b80601f016020809104026020016040519081016040528092919081815260200182805461134c90612f17565b80156113995780601f1061136e57610100808354040283529160200191611399565b820191906000526020600020905b81548152906001019060200180831161137c57829003601f168201915b505050505061082d565b6101306113af83611da7565b6040516020016113c09291906130b9565b60405160208183030381529060405292915050565b6101335460ff166114165760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610961565b806114565760405162461bcd60e51b815260206004820152601060248201526f16995c9bc81b5a5b9d08185b5bdd5b9d60821b6044820152606401610961565b610134546001600160a01b0383166000908152610135602052604090205461147f908390613174565b11156114c45760405162461bcd60e51b8152602060048201526014602482015273115e18d95959195908189d5e595c881b1a5b5a5d60621b6044820152606401610961565b6001600160a01b03821660009081526101356020526040812080548392906114ed908490613174565b909155506114fc905081611ea5565b610c7a8282611957565b60006115118161194d565b6101335460ff161515821515141561153b5760405162461bcd60e51b815260040161096190612ffe565b50610133805460ff1916911515919091179055565b61012d818154811061156157600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900461ffff1682565b6000828152606560205260409020600101546115a28161194d565b610a028383611a6c565b60006115b78161194d565b8161012e5414156115da5760405162461bcd60e51b815260040161096190612ffe565b61012f5482101561162d5760405162461bcd60e51b815260206004820152601a60248201527f4e657720737570706c79206c696d697420746f6f20736d616c6c0000000000006044820152606401610961565b5061012e55565b600061012f5461012e54611648919061318c565b905090565b60006001600160e01b03198216637965db0b60e01b148061082d57506301ffc9a760e01b6001600160e01b031983161461082d565b600061082d8261200d565b600081815260cb60205260409020546001600160a01b03166116ec5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610961565b50565b600081815260cd6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061172482610c99565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061176983610c99565b9050806001600160a01b0316846001600160a01b031614806117b057506001600160a01b03808216600090815260ce602090815260408083209388168352929052205460ff165b806117d45750836001600160a01b03166117c9846108c5565b6001600160a01b0316145b949350505050565b826001600160a01b03166117ef82610c99565b6001600160a01b0316146118155760405162461bcd60e51b8152600401610961906131a3565b6001600160a01b0382166118775760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610961565b611884838383600161204d565b826001600160a01b031661189782610c99565b6001600160a01b0316146118bd5760405162461bcd60e51b8152600401610961906131a3565b600081815260cd6020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260cc855283862080546000190190559087168086528386208054600101905586865260cb90945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6116ec81336120d5565b61012f5461012e546119698383613174565b11156119c25760405162461bcd60e51b815260206004820152602260248201527f4578636565646564206d617820706f737369626c6520746f74616c20737570706044820152616c7960f01b6064820152608401610961565b6119cc8282613174565b61012f5560005b828110156112f6576119f0846119e884613082565b93508361212e565b6119f981613082565b90506119d3565b6001600160a01b038116611a625760405162461bcd60e51b8152602060048201526024808201527f556e61626c6520746f206772616e7420726f6c6520746f207a65726f206164646044820152637265737360e01b6064820152608401610961565b610c7a8282612148565b6001600160a01b038116611ad25760405162461bcd60e51b815260206004820152602760248201527f556e61626c6520746f207265766f6b6520726f6c652066726f6d207a65726f206044820152666164647265737360c81b6064820152608401610961565b610c7a82826121ce565b6000818311611aec576000611af0565b8183035b9392505050565b600081831115611b075781611af0565b5090919050565b8151611b4d5760405162461bcd60e51b815260206004820152600e60248201526d456d70747920626173652055524960901b6044820152606401610961565b8151611b61906101309060208501906127c5565b50610131805460ff191691151591909117905550565b600054610100900460ff16611b9e5760405162461bcd60e51b8152600401610961906131e8565b610c7a8282612235565b6127106001600160601b0382161115611c165760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610961565b6001600160a01b038216611c6c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610961565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217609755565b816001600160a01b0316836001600160a01b03161415611d075760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610961565b6001600160a01b03838116600081815260ce6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d7f8484846117dc565b611d8b84848484612283565b6112f65760405162461bcd60e51b815260040161096190613233565b606081611dcb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611df55780611ddf81613082565b9150611dee9050600a83612fea565b9150611dcf565b60008167ffffffffffffffff811115611e1057611e10612a00565b6040519080825280601f01601f191660200182016040528015611e3a576020820181803683370190505b5090505b84156117d457611e4f60018361318c565b9150611e5c600a86613285565b611e67906030613174565b60f81b818381518110611e7c57611e7c613024565b60200101906001600160f81b031916908160001a905350611e9e600a86612fea565b9450611e3e565b60006101325482611eb69190612f68565b9050803414611f075760405162461bcd60e51b815260206004820152601760248201527f5061796d656e7420616d6f756e74206d69736d617463680000000000000000006044820152606401610961565b61012d54600080805b611f1b60018561318c565b8161ffff161015611fc05761271061012d8261ffff1681548110611f4157611f41613024565b600091825260209091200154611f6290600160a01b900461ffff1687612f68565b611f6c9190612fea565b9250611f788383613174565b9150611fb061012d8261ffff1681548110611f9557611f95613024565b6000918252602090912001546001600160a01b031684612390565b611fb98161303a565b9050611f10565b5061200661012d611fd260018661318c565b81548110611fe257611fe2613024565b6000918252602090912001546001600160a01b0316612001838761318c565b612390565b5050505050565b60006001600160e01b031982166380ac58cd60e01b148061203e57506001600160e01b03198216635b5e139f60e01b145b8061082d575061082d82612426565b60018111156112f6576001600160a01b03841615612093576001600160a01b038416600090815260cc60205260408120805483929061208d90849061318c565b90915550505b6001600160a01b038316156112f6576001600160a01b038316600090815260cc6020526040812080548392906120ca908490613174565b909155505050505050565b6120df8282610e28565b610c7a576120ec8161244b565b6120f783602061245d565b604051602001612108929190613299565b60408051601f198184030181529082905262461bcd60e51b8252610961916004016128e9565b610c7a8282604051806020016040528060008152506125f9565b6121528282610e28565b610c7a5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561218a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6121d88282610e28565b15610c7a5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600054610100900460ff1661225c5760405162461bcd60e51b8152600401610961906131e8565b815161226f9060c99060208501906127c5565b508051610a029060ca9060208401906127c5565b60006001600160a01b0384163b1561238557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122c790339089908890889060040161330e565b602060405180830381600087803b1580156122e157600080fd5b505af1925050508015612311575060408051601f3d908101601f1916820190925261230e9181019061334b565b60015b61236b573d80801561233f576040519150601f19603f3d011682016040523d82523d6000602084013e612344565b606091505b5080516123635760405162461bcd60e51b815260040161096190613233565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117d4565b506001949350505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146123dd576040519150601f19603f3d011682016040523d82523d6000602084013e6123e2565b606091505b5050905080610a025760405162461bcd60e51b815260206004820152601060248201526f10dbda5b881cd95b990819985a5b195960821b6044820152606401610961565b60006001600160e01b0319821663152a902d60e11b148061082d575061082d8261164d565b606061082d6001600160a01b03831660145b6060600061246c836002612f68565b612477906002613174565b67ffffffffffffffff81111561248f5761248f612a00565b6040519080825280601f01601f1916602001820160405280156124b9576020820181803683370190505b509050600360fc1b816000815181106124d4576124d4613024565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061250357612503613024565b60200101906001600160f81b031916908160001a9053506000612527846002612f68565b612532906001613174565b90505b60018111156125aa576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061256657612566613024565b1a60f81b82828151811061257c5761257c613024565b60200101906001600160f81b031916908160001a90535060049490941c936125a381613368565b9050612535565b508315611af05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610961565b612603838361262c565b6126106000848484612283565b610a025760405162461bcd60e51b815260040161096190613233565b6001600160a01b0382166126825760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610961565b600081815260cb60205260409020546001600160a01b0316156126e75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610961565b6126f560008383600161204d565b600081815260cb60205260409020546001600160a01b03161561275a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610961565b6001600160a01b038216600081815260cc602090815260408083208054600101905584835260cb90915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546127d190612f17565b90600052602060002090601f0160209004810192826127f35760008555612839565b82601f1061280c57805160ff1916838001178555612839565b82800160010185558215612839579182015b8281111561283957825182559160200191906001019061281e565b50612845929150612849565b5090565b5b80821115612845576000815560010161284a565b6001600160e01b0319811681146116ec57600080fd5b60006020828403121561288657600080fd5b8135611af08161285e565b60005b838110156128ac578181015183820152602001612894565b838111156112f65750506000910152565b600081518084526128d5816020860160208601612891565b601f01601f19169290920160200192915050565b602081526000611af060208301846128bd565b60006020828403121561290e57600080fd5b5035919050565b80356001600160a01b038116811461292c57600080fd5b919050565b6000806040838503121561294457600080fd5b61294d83612915565b946020939093013593505050565b60006020828403121561296d57600080fd5b611af082612915565b60008060006060848603121561298b57600080fd5b61299484612915565b92506129a260208501612915565b9150604084013590509250925092565b600080604083850312156129c557600080fd5b50508035926020909101359150565b600080604083850312156129e757600080fd5b823591506129f760208401612915565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715612a3957612a39612a00565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612a6857612a68612a00565b604052919050565b600067ffffffffffffffff831115612a8a57612a8a612a00565b612a9d601f8401601f1916602001612a3f565b9050828152838383011115612ab157600080fd5b828260208301376000602084830101529392505050565b600082601f830112612ad957600080fd5b611af083833560208501612a70565b8035801515811461292c57600080fd5b60008060408385031215612b0b57600080fd5b823567ffffffffffffffff811115612b2257600080fd5b612b2e85828601612ac8565b9250506129f760208401612ae8565b600067ffffffffffffffff821115612b5757612b57612a00565b5060051b60200190565b600082601f830112612b7257600080fd5b81356020612b87612b8283612b3d565b612a3f565b82815260059290921b84018101918181019086841115612ba657600080fd5b8286015b84811015612bc857612bbb81612915565b8352918301918301612baa565b509695505050505050565b600082601f830112612be457600080fd5b81356020612bf4612b8283612b3d565b82815260069290921b84018101918181019086841115612c1357600080fd5b8286015b84811015612bc85760408189031215612c305760008081fd5b612c38612a16565b612c4182612915565b81528482013561ffff81168114612c585760008081fd5b81860152835291830191604001612c17565b600060408284031215612c7c57600080fd5b612c84612a16565b9050813567ffffffffffffffff811115612c9d57600080fd5b612ca984828501612ac8565b825250612cb860208301612ae8565b602082015292915050565b600060408284031215612cd557600080fd5b612cdd612a16565b9050612ce882612915565b815260208201356001600160601b0381168114612cb857600080fd5b60008060008060008060008060008060006101808c8e031215612d2657600080fd5b67ffffffffffffffff808d351115612d3d57600080fd5b612d4a8e8e358f01612ac8565b9b508060208e01351115612d5d57600080fd5b612d6d8e60208f01358f01612ac8565b9a50612d7b60408e01612915565b99508060608e01351115612d8e57600080fd5b612d9e8e60608f01358f01612b61565b98508060808e01351115612db157600080fd5b612dc18e60808f01358f01612bd3565b975060a08d0135965060c08d013595508060e08e01351115612de257600080fd5b50612df38d60e08e01358e01612c6a565b93506101008c01359250612e0b8d6101208e01612cc3565b9150612e1a6101608d01612ae8565b90509295989b509295989b9093969950565b60008060408385031215612e3f57600080fd5b612e4883612915565b91506129f760208401612ae8565b60008060008060808587031215612e6c57600080fd5b612e7585612915565b9350612e8360208601612915565b925060408501359150606085013567ffffffffffffffff811115612ea657600080fd5b8501601f81018713612eb757600080fd5b612ec687823560208401612a70565b91505092959194509250565b600060208284031215612ee457600080fd5b611af082612ae8565b60008060408385031215612f0057600080fd5b612f0983612915565b91506129f760208401612915565b600181811c90821680612f2b57607f821691505b60208210811415612f4c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612f8257612f82612f52565b500290565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612ff957612ff9612fd4565b500490565b6020808252600c908201526b416c726561647920646f6e6560a01b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600061ffff8083168181141561305257613052612f52565b6001019392505050565b600061ffff80831681851680830382111561307957613079612f52565b01949350505050565b600060001982141561309657613096612f52565b5060010190565b600081516130af818560208601612891565b9290920192915050565b600080845481600182811c9150808316806130d557607f831692505b60208084108214156130f557634e487b7160e01b86526022600452602486fd5b818015613109576001811461311a57613147565b60ff19861689528489019650613147565b60008b81526020902060005b8681101561313f5781548b820152908501908301613126565b505084890196505b50505050505061316b61315a828661309d565b64173539b7b760d91b815260050190565b95945050505050565b6000821982111561318757613187612f52565b500190565b60008282101561319e5761319e612f52565b500390565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261329457613294612fd4565b500690565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516132d1816017850160208801612891565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613302816028840160208801612891565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613341908301846128bd565b9695505050505050565b60006020828403121561335d57600080fd5b8151611af08161285e565b60008161337757613377612f52565b50600019019056fe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212203bc8b1e81cde592bb527cea4d92cee6b75e1866e124372179fa4fe4f7c947a7164736f6c63430008090033
Deployed Bytecode
0x6080604052600436106102515760003560e01c80638952f10811610139578063cce7ec13116100b6578063d547741f1161007a578063d547741f1461073f578063d6037aba1461075f578063e25a1a0c1461077f578063e985e9c514610794578063ec3829ef146107dd578063f0098e5f146107f857600080fd5b8063cce7ec1314610691578063ce40b03f146106a4578063cf4f31c7146106bb578063d3ccf5f2146106db578063d53913931461071d57600080fd5b80639c5e8d9c116100fd5780639c5e8d9c146105fc578063a217fddf1461061c578063a22cb46514610631578063b88d4fde14610651578063c87b56dd1461067157600080fd5b80638952f1081461056757806391b7f5ed1461058757806391d14854146105a757806395d89b41146105c75780639b099055146105dc57600080fd5b8063248a9ca3116101d2578063340b309811610196578063340b30981461049457806336568abe146104ab57806342842e0e146104cb57806354fd4d50146104eb5780636352211e1461052757806370a082311461054757600080fd5b8063248a9ca3146103c5578063248b71fc146103f55780632a55205a146104155780632b280ef0146104545780632f2ff15d1461047457600080fd5b806316b32eaa1161021957806316b32eaa1461031c57806318160ddd146103415780631e75bd1a1461035757806320b92bf61461038557806323b872dd146103a557600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e557806315702c4e14610307575b600080fd5b34801561026257600080fd5b50610276610271366004612874565b610813565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a0610833565b60405161028291906128e9565b3480156102b957600080fd5b506102cd6102c83660046128fc565b6108c5565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b50610305610300366004612931565b6108ec565b005b34801561031357600080fd5b506102a0610a07565b34801561032857600080fd5b5061033361012e5481565b604051908152602001610282565b34801561034d57600080fd5b5061012f54610333565b34801561036357600080fd5b5061033361037236600461295b565b6101356020526000908152604090205481565b34801561039157600080fd5b506103336103a03660046128fc565b610a96565b3480156103b157600080fd5b506103056103c0366004612976565b610aa7565b3480156103d157600080fd5b506103336103e03660046128fc565b60009081526065602052604090206001015490565b34801561040157600080fd5b50610305610410366004612931565b610ad8565b34801561042157600080fd5b506104356104303660046129b2565b610afa565b604080516001600160a01b039093168352602083019190915201610282565b34801561046057600080fd5b5061030561046f3660046128fc565b610ba6565b34801561048057600080fd5b5061030561048f3660046129d4565b610bdb565b3480156104a057600080fd5b506103336101345481565b3480156104b757600080fd5b506103056104c63660046129d4565b610c00565b3480156104d757600080fd5b506103056104e6366004612976565b610c7e565b3480156104f757600080fd5b506040805180820190915260138152724c53524e6674436f6c6c656374696f6e20763160681b60208201526102a0565b34801561053357600080fd5b506102cd6105423660046128fc565b610c99565b34801561055357600080fd5b5061033361056236600461295b565b610cf9565b34801561057357600080fd5b5061033361058236600461295b565b610d7f565b34801561059357600080fd5b506103056105a23660046128fc565b610db9565b3480156105b357600080fd5b506102766105c23660046129d4565b610e28565b3480156105d357600080fd5b506102a0610e53565b3480156105e857600080fd5b506103056105f7366004612af8565b610e62565b34801561060857600080fd5b50610305610617366004612d04565b610e77565b34801561062857600080fd5b50610333600081565b34801561063d57600080fd5b5061030561064c366004612e2c565b6112b9565b34801561065d57600080fd5b5061030561066c366004612e56565b6112c4565b34801561067d57600080fd5b506102a061068c3660046128fc565b6112fc565b61030561069f366004612931565b6113d5565b3480156106b057600080fd5b506103336101325481565b3480156106c757600080fd5b506103056106d6366004612ed2565b611506565b3480156106e757600080fd5b506106fb6106f63660046128fc565b611550565b604080516001600160a01b03909316835261ffff909116602083015201610282565b34801561072957600080fd5b5061033360008051602061338083398151915281565b34801561074b57600080fd5b5061030561075a3660046129d4565b611587565b34801561076b57600080fd5b5061030561077a3660046128fc565b6115ac565b34801561078b57600080fd5b50610333611634565b3480156107a057600080fd5b506102766107af366004612eed565b6001600160a01b03918216600090815260ce6020908152604080832093909416825291909152205460ff1690565b3480156107e957600080fd5b50610131546102769060ff1681565b34801561080457600080fd5b50610133546102769060ff1681565b600061081e8261164d565b8061082d575061082d82611682565b92915050565b606060c9805461084290612f17565b80601f016020809104026020016040519081016040528092919081815260200182805461086e90612f17565b80156108bb5780601f10610890576101008083540402835291602001916108bb565b820191906000526020600020905b81548152906001019060200180831161089e57829003601f168201915b5050505050905090565b60006108d08261168d565b50600090815260cd60205260409020546001600160a01b031690565b60006108f782610c99565b9050806001600160a01b0316836001600160a01b0316141561096a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610986575061098681336107af565b6109f85760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610961565b610a0283836116ef565b505050565b6101308054610a1590612f17565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4190612f17565b8015610a8e5780601f10610a6357610100808354040283529160200191610a8e565b820191906000526020600020905b815481529060010190602001808311610a7157829003601f168201915b505050505081565b6000610132548261082d9190612f68565b610ab1338261175d565b610acd5760405162461bcd60e51b815260040161096190612f87565b610a028383836117dc565b600080516020613380833981519152610af08161194d565b610a028383611957565b60008281526098602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b6f5750604080518082019091526097546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b8e906001600160601b031687612f68565b610b989190612fea565b915196919550909350505050565b6000610bb18161194d565b81610134541415610bd45760405162461bcd60e51b815260040161096190612ffe565b5061013455565b600082815260656020526040902060010154610bf68161194d565b610a028383611a00565b6001600160a01b0381163314610c705760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610961565b610c7a8282611a6c565b5050565b610a02838383604051806020016040528060008152506112c4565b600081815260cb60205260408120546001600160a01b03168061082d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610961565b60006001600160a01b038216610d635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610961565b506001600160a01b0316600090815260cc602052604090205490565b600061082d610d8c611634565b610134546001600160a01b03851660009081526101356020526040902054610db49190611adc565b611af7565b6000610dc48161194d565b81610dfe5760405162461bcd60e51b815260206004820152600a6024820152695a65726f20707269636560b01b6044820152606401610961565b81610132541415610e215760405162461bcd60e51b815260040161096190612ffe565b5061013255565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060ca805461084290612f17565b6000610e6d8161194d565b610a028383611b0e565b600054610100900460ff1615808015610e975750600054600160ff909116105b80610eb15750303b158015610eb1575060005460ff166001145b610f145760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610961565b6000805460ff191660011790558015610f37576000805461ff0019166101001790555b610f418c8c611b77565b610f4c60008b611a00565b610f646000805160206133808339815191528b611a00565b60005b89518161ffff161015610fb957610fa96000805160206133808339815191528b8361ffff1681518110610f9c57610f9c613024565b6020026020010151611a00565b610fb28161303a565b9050610f67565b506000805b895181101561114d5760006001600160a01b03168a8281518110610fe457610fe4613024565b6020026020010151600001516001600160a01b031614156110475760405162461bcd60e51b815260206004820152601860248201527f5a65726f207368617265686f6c646572206164647265737300000000000000006044820152606401610961565b89818151811061105957611059613024565b60200260200101516020015161ffff16600014156110a65760405162461bcd60e51b815260206004820152600a6024820152695a65726f20736861726560b01b6044820152606401610961565b61012d8a82815181106110bb576110bb613024565b6020908102919091018101518254600181018455600093845292829020815193018054919092015161ffff16600160a01b026001600160b01b03199091166001600160a01b039093169290921791909117905589518a908290811061112257611122613024565b60200260200101516020015182611139919061305c565b91508061114581613082565b915050610fbe565b508061ffff166127101461119a5760405162461bcd60e51b8152602060048201526014602482015273496e76616c696420746f74616c2073686172657360601b6044820152606401610961565b876111e75760405162461bcd60e51b815260206004820152601e60248201527f5a65726f206d617820706f737369626c6520746f74616c20737570706c7900006044820152606401610961565b61012e889055610134879055855160208701516112049190611b0e565b8461123e5760405162461bcd60e51b815260206004820152600a6024820152695a65726f20707269636560b01b6044820152606401610961565b610132859055835160208501516112559190611ba8565b50610133805460ff191683151517905580156112ab576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050505050565b610c7a338383611ca5565b6112ce338361175d565b6112ea5760405162461bcd60e51b815260040161096190612f87565b6112f684848484611d74565b50505050565b60606113078261168d565b6101315460ff166113a357610130805461132090612f17565b80601f016020809104026020016040519081016040528092919081815260200182805461134c90612f17565b80156113995780601f1061136e57610100808354040283529160200191611399565b820191906000526020600020905b81548152906001019060200180831161137c57829003601f168201915b505050505061082d565b6101306113af83611da7565b6040516020016113c09291906130b9565b60405160208183030381529060405292915050565b6101335460ff166114165760405162461bcd60e51b815260206004820152600b60248201526a14d85b19481c185d5cd95960aa1b6044820152606401610961565b806114565760405162461bcd60e51b815260206004820152601060248201526f16995c9bc81b5a5b9d08185b5bdd5b9d60821b6044820152606401610961565b610134546001600160a01b0383166000908152610135602052604090205461147f908390613174565b11156114c45760405162461bcd60e51b8152602060048201526014602482015273115e18d95959195908189d5e595c881b1a5b5a5d60621b6044820152606401610961565b6001600160a01b03821660009081526101356020526040812080548392906114ed908490613174565b909155506114fc905081611ea5565b610c7a8282611957565b60006115118161194d565b6101335460ff161515821515141561153b5760405162461bcd60e51b815260040161096190612ffe565b50610133805460ff1916911515919091179055565b61012d818154811061156157600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900461ffff1682565b6000828152606560205260409020600101546115a28161194d565b610a028383611a6c565b60006115b78161194d565b8161012e5414156115da5760405162461bcd60e51b815260040161096190612ffe565b61012f5482101561162d5760405162461bcd60e51b815260206004820152601a60248201527f4e657720737570706c79206c696d697420746f6f20736d616c6c0000000000006044820152606401610961565b5061012e55565b600061012f5461012e54611648919061318c565b905090565b60006001600160e01b03198216637965db0b60e01b148061082d57506301ffc9a760e01b6001600160e01b031983161461082d565b600061082d8261200d565b600081815260cb60205260409020546001600160a01b03166116ec5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610961565b50565b600081815260cd6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061172482610c99565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061176983610c99565b9050806001600160a01b0316846001600160a01b031614806117b057506001600160a01b03808216600090815260ce602090815260408083209388168352929052205460ff165b806117d45750836001600160a01b03166117c9846108c5565b6001600160a01b0316145b949350505050565b826001600160a01b03166117ef82610c99565b6001600160a01b0316146118155760405162461bcd60e51b8152600401610961906131a3565b6001600160a01b0382166118775760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610961565b611884838383600161204d565b826001600160a01b031661189782610c99565b6001600160a01b0316146118bd5760405162461bcd60e51b8152600401610961906131a3565b600081815260cd6020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260cc855283862080546000190190559087168086528386208054600101905586865260cb90945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6116ec81336120d5565b61012f5461012e546119698383613174565b11156119c25760405162461bcd60e51b815260206004820152602260248201527f4578636565646564206d617820706f737369626c6520746f74616c20737570706044820152616c7960f01b6064820152608401610961565b6119cc8282613174565b61012f5560005b828110156112f6576119f0846119e884613082565b93508361212e565b6119f981613082565b90506119d3565b6001600160a01b038116611a625760405162461bcd60e51b8152602060048201526024808201527f556e61626c6520746f206772616e7420726f6c6520746f207a65726f206164646044820152637265737360e01b6064820152608401610961565b610c7a8282612148565b6001600160a01b038116611ad25760405162461bcd60e51b815260206004820152602760248201527f556e61626c6520746f207265766f6b6520726f6c652066726f6d207a65726f206044820152666164647265737360c81b6064820152608401610961565b610c7a82826121ce565b6000818311611aec576000611af0565b8183035b9392505050565b600081831115611b075781611af0565b5090919050565b8151611b4d5760405162461bcd60e51b815260206004820152600e60248201526d456d70747920626173652055524960901b6044820152606401610961565b8151611b61906101309060208501906127c5565b50610131805460ff191691151591909117905550565b600054610100900460ff16611b9e5760405162461bcd60e51b8152600401610961906131e8565b610c7a8282612235565b6127106001600160601b0382161115611c165760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610961565b6001600160a01b038216611c6c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610961565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217609755565b816001600160a01b0316836001600160a01b03161415611d075760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610961565b6001600160a01b03838116600081815260ce6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d7f8484846117dc565b611d8b84848484612283565b6112f65760405162461bcd60e51b815260040161096190613233565b606081611dcb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611df55780611ddf81613082565b9150611dee9050600a83612fea565b9150611dcf565b60008167ffffffffffffffff811115611e1057611e10612a00565b6040519080825280601f01601f191660200182016040528015611e3a576020820181803683370190505b5090505b84156117d457611e4f60018361318c565b9150611e5c600a86613285565b611e67906030613174565b60f81b818381518110611e7c57611e7c613024565b60200101906001600160f81b031916908160001a905350611e9e600a86612fea565b9450611e3e565b60006101325482611eb69190612f68565b9050803414611f075760405162461bcd60e51b815260206004820152601760248201527f5061796d656e7420616d6f756e74206d69736d617463680000000000000000006044820152606401610961565b61012d54600080805b611f1b60018561318c565b8161ffff161015611fc05761271061012d8261ffff1681548110611f4157611f41613024565b600091825260209091200154611f6290600160a01b900461ffff1687612f68565b611f6c9190612fea565b9250611f788383613174565b9150611fb061012d8261ffff1681548110611f9557611f95613024565b6000918252602090912001546001600160a01b031684612390565b611fb98161303a565b9050611f10565b5061200661012d611fd260018661318c565b81548110611fe257611fe2613024565b6000918252602090912001546001600160a01b0316612001838761318c565b612390565b5050505050565b60006001600160e01b031982166380ac58cd60e01b148061203e57506001600160e01b03198216635b5e139f60e01b145b8061082d575061082d82612426565b60018111156112f6576001600160a01b03841615612093576001600160a01b038416600090815260cc60205260408120805483929061208d90849061318c565b90915550505b6001600160a01b038316156112f6576001600160a01b038316600090815260cc6020526040812080548392906120ca908490613174565b909155505050505050565b6120df8282610e28565b610c7a576120ec8161244b565b6120f783602061245d565b604051602001612108929190613299565b60408051601f198184030181529082905262461bcd60e51b8252610961916004016128e9565b610c7a8282604051806020016040528060008152506125f9565b6121528282610e28565b610c7a5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561218a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6121d88282610e28565b15610c7a5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600054610100900460ff1661225c5760405162461bcd60e51b8152600401610961906131e8565b815161226f9060c99060208501906127c5565b508051610a029060ca9060208401906127c5565b60006001600160a01b0384163b1561238557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906122c790339089908890889060040161330e565b602060405180830381600087803b1580156122e157600080fd5b505af1925050508015612311575060408051601f3d908101601f1916820190925261230e9181019061334b565b60015b61236b573d80801561233f576040519150601f19603f3d011682016040523d82523d6000602084013e612344565b606091505b5080516123635760405162461bcd60e51b815260040161096190613233565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117d4565b506001949350505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146123dd576040519150601f19603f3d011682016040523d82523d6000602084013e6123e2565b606091505b5050905080610a025760405162461bcd60e51b815260206004820152601060248201526f10dbda5b881cd95b990819985a5b195960821b6044820152606401610961565b60006001600160e01b0319821663152a902d60e11b148061082d575061082d8261164d565b606061082d6001600160a01b03831660145b6060600061246c836002612f68565b612477906002613174565b67ffffffffffffffff81111561248f5761248f612a00565b6040519080825280601f01601f1916602001820160405280156124b9576020820181803683370190505b509050600360fc1b816000815181106124d4576124d4613024565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061250357612503613024565b60200101906001600160f81b031916908160001a9053506000612527846002612f68565b612532906001613174565b90505b60018111156125aa576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061256657612566613024565b1a60f81b82828151811061257c5761257c613024565b60200101906001600160f81b031916908160001a90535060049490941c936125a381613368565b9050612535565b508315611af05760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610961565b612603838361262c565b6126106000848484612283565b610a025760405162461bcd60e51b815260040161096190613233565b6001600160a01b0382166126825760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610961565b600081815260cb60205260409020546001600160a01b0316156126e75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610961565b6126f560008383600161204d565b600081815260cb60205260409020546001600160a01b03161561275a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610961565b6001600160a01b038216600081815260cc602090815260408083208054600101905584835260cb90915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546127d190612f17565b90600052602060002090601f0160209004810192826127f35760008555612839565b82601f1061280c57805160ff1916838001178555612839565b82800160010185558215612839579182015b8281111561283957825182559160200191906001019061281e565b50612845929150612849565b5090565b5b80821115612845576000815560010161284a565b6001600160e01b0319811681146116ec57600080fd5b60006020828403121561288657600080fd5b8135611af08161285e565b60005b838110156128ac578181015183820152602001612894565b838111156112f65750506000910152565b600081518084526128d5816020860160208601612891565b601f01601f19169290920160200192915050565b602081526000611af060208301846128bd565b60006020828403121561290e57600080fd5b5035919050565b80356001600160a01b038116811461292c57600080fd5b919050565b6000806040838503121561294457600080fd5b61294d83612915565b946020939093013593505050565b60006020828403121561296d57600080fd5b611af082612915565b60008060006060848603121561298b57600080fd5b61299484612915565b92506129a260208501612915565b9150604084013590509250925092565b600080604083850312156129c557600080fd5b50508035926020909101359150565b600080604083850312156129e757600080fd5b823591506129f760208401612915565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff81118282101715612a3957612a39612a00565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612a6857612a68612a00565b604052919050565b600067ffffffffffffffff831115612a8a57612a8a612a00565b612a9d601f8401601f1916602001612a3f565b9050828152838383011115612ab157600080fd5b828260208301376000602084830101529392505050565b600082601f830112612ad957600080fd5b611af083833560208501612a70565b8035801515811461292c57600080fd5b60008060408385031215612b0b57600080fd5b823567ffffffffffffffff811115612b2257600080fd5b612b2e85828601612ac8565b9250506129f760208401612ae8565b600067ffffffffffffffff821115612b5757612b57612a00565b5060051b60200190565b600082601f830112612b7257600080fd5b81356020612b87612b8283612b3d565b612a3f565b82815260059290921b84018101918181019086841115612ba657600080fd5b8286015b84811015612bc857612bbb81612915565b8352918301918301612baa565b509695505050505050565b600082601f830112612be457600080fd5b81356020612bf4612b8283612b3d565b82815260069290921b84018101918181019086841115612c1357600080fd5b8286015b84811015612bc85760408189031215612c305760008081fd5b612c38612a16565b612c4182612915565b81528482013561ffff81168114612c585760008081fd5b81860152835291830191604001612c17565b600060408284031215612c7c57600080fd5b612c84612a16565b9050813567ffffffffffffffff811115612c9d57600080fd5b612ca984828501612ac8565b825250612cb860208301612ae8565b602082015292915050565b600060408284031215612cd557600080fd5b612cdd612a16565b9050612ce882612915565b815260208201356001600160601b0381168114612cb857600080fd5b60008060008060008060008060008060006101808c8e031215612d2657600080fd5b67ffffffffffffffff808d351115612d3d57600080fd5b612d4a8e8e358f01612ac8565b9b508060208e01351115612d5d57600080fd5b612d6d8e60208f01358f01612ac8565b9a50612d7b60408e01612915565b99508060608e01351115612d8e57600080fd5b612d9e8e60608f01358f01612b61565b98508060808e01351115612db157600080fd5b612dc18e60808f01358f01612bd3565b975060a08d0135965060c08d013595508060e08e01351115612de257600080fd5b50612df38d60e08e01358e01612c6a565b93506101008c01359250612e0b8d6101208e01612cc3565b9150612e1a6101608d01612ae8565b90509295989b509295989b9093969950565b60008060408385031215612e3f57600080fd5b612e4883612915565b91506129f760208401612ae8565b60008060008060808587031215612e6c57600080fd5b612e7585612915565b9350612e8360208601612915565b925060408501359150606085013567ffffffffffffffff811115612ea657600080fd5b8501601f81018713612eb757600080fd5b612ec687823560208401612a70565b91505092959194509250565b600060208284031215612ee457600080fd5b611af082612ae8565b60008060408385031215612f0057600080fd5b612f0983612915565b91506129f760208401612915565b600181811c90821680612f2b57607f821691505b60208210811415612f4c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612f8257612f82612f52565b500290565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612ff957612ff9612fd4565b500490565b6020808252600c908201526b416c726561647920646f6e6560a01b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600061ffff8083168181141561305257613052612f52565b6001019392505050565b600061ffff80831681851680830382111561307957613079612f52565b01949350505050565b600060001982141561309657613096612f52565b5060010190565b600081516130af818560208601612891565b9290920192915050565b600080845481600182811c9150808316806130d557607f831692505b60208084108214156130f557634e487b7160e01b86526022600452602486fd5b818015613109576001811461311a57613147565b60ff19861689528489019650613147565b60008b81526020902060005b8681101561313f5781548b820152908501908301613126565b505084890196505b50505050505061316b61315a828661309d565b64173539b7b760d91b815260050190565b95945050505050565b6000821982111561318757613187612f52565b500190565b60008282101561319e5761319e612f52565b500390565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261329457613294612fd4565b500690565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516132d1816017850160208801612891565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613302816028840160208801612891565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613341908301846128bd565b9695505050505050565b60006020828403121561335d57600080fd5b8151611af08161285e565b60008161337757613377612f52565b50600019019056fe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212203bc8b1e81cde592bb527cea4d92cee6b75e1866e124372179fa4fe4f7c947a7164736f6c63430008090033
Deployed Bytecode Sourcemap
76426:7972:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82962:315;;;;;;;;;;-1:-1:-1;82962:315:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;82962:315:0;;;;;;;;59066:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;60589:171::-;;;;;;;;;;-1:-1:-1;60589:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1714:32:1;;;1696:51;;1684:2;1669:18;60589:171:0;1550:203:1;60096:427:0;;;;;;;;;;-1:-1:-1;60096:427:0;;;;;:::i;:::-;;:::i;:::-;;76697:22;;;;;;;;;;;;;:::i;76615:38::-;;;;;;;;;;;;;;;;;;;2341:25:1;;;2329:2;2314:18;76615:38:0;2195:177:1;79944:91:0;;;;;;;;;;-1:-1:-1;80015:12:0;;79944:91;;76877:47;;;;;;;;;;-1:-1:-1;76877:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;80549:110;;;;;;;;;;-1:-1:-1;80549:110:0;;;;;:::i;:::-;;:::i;61289:335::-;;;;;;;;;;-1:-1:-1;61289:335:0;;;;;:::i;:::-;;:::i;40679:131::-;;;;;;;;;;-1:-1:-1;40679:131:0;;;;;:::i;:::-;40753:7;40780:12;;;:6;:12;;;;;:22;;;;40679:131;80418:123;;;;;;;;;;-1:-1:-1;80418:123:0;;;;;:::i;:::-;;:::i;47295:442::-;;;;;;;;;;-1:-1:-1;47295:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3713:32:1;;;3695:51;;3777:2;3762:18;;3755:34;;;;3668:18;47295:442:0;3521:274:1;79302::0;;;;;;;;;;-1:-1:-1;79302:274:0;;;;;:::i;:::-;;:::i;41120:147::-;;;;;;;;;;-1:-1:-1;41120:147:0;;;;;:::i;:::-;;:::i;76830:40::-;;;;;;;;;;;;;;;;42264:218;;;;;;;;;;-1:-1:-1;42264:218:0;;;;;:::i;:::-;;:::i;61695:185::-;;;;;;;;;;-1:-1:-1;61695:185:0;;;;;:::i;:::-;;:::i;76933:90::-;;;;;;;;;;-1:-1:-1;76992:28:0;;;;;;;;;;;;-1:-1:-1;;;76992:28:0;;;;76933:90;;58776:223;;;;;;;;;;-1:-1:-1;58776:223:0;;;;;:::i;:::-;;:::i;58507:207::-;;;;;;;;;;-1:-1:-1;58507:207:0;;;;;:::i;:::-;;:::i;80179:231::-;;;;;;;;;;-1:-1:-1;80179:231:0;;;;;:::i;:::-;;:::i;79089:205::-;;;;;;;;;;-1:-1:-1;79089:205:0;;;;;:::i;:::-;;:::i;39130:147::-;;;;;;;;;;-1:-1:-1;39130:147:0;;;;;:::i;:::-;;:::i;59235:104::-;;;;;;;;;;;;;:::i;82094:169::-;;;;;;;;;;-1:-1:-1;82094:169:0;;;;;:::i;:::-;;:::i;77094:1558::-;;;;;;;;;;-1:-1:-1;77094:1558:0;;;;;:::i;:::-;;:::i;38224:49::-;;;;;;;;;;-1:-1:-1;38224:49:0;38269:4;38224:49;;60832:155;;;;;;;;;;-1:-1:-1;60832:155:0;;;;;:::i;:::-;;:::i;61951:322::-;;;;;;;;;;-1:-1:-1;61951:322:0;;;;;:::i;:::-;;:::i;78660:247::-;;;;;;;;;;-1:-1:-1;78660:247:0;;;;;:::i;:::-;;:::i;80667:378::-;;;;;;:::i;:::-;;:::i;76766:21::-;;;;;;;;;;;;;;;;78915:166;;;;;;;;;;-1:-1:-1;78915:166:0;;;;;:::i;:::-;;:::i;76584:22::-;;;;;;;;;;-1:-1:-1;76584:22:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;11761:32:1;;;11743:51;;11842:6;11830:19;;;11825:2;11810:18;;11803:47;11716:18;76584:22:0;11571:285:1;76513:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;76513:62:0;;41560:149;;;;;;;;;;-1:-1:-1;41560:149:0;;;;;:::i;:::-;;:::i;79584:352::-;;;;;;;;;;-1:-1:-1;79584:352:0;;;;;:::i;:::-;;:::i;80043:128::-;;;;;;;;;;;;;:::i;61058:164::-;;;;;;;;;;-1:-1:-1;61058:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;61179:25:0;;;61155:4;61179:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;61058:164;76726:31;;;;;;;;;;-1:-1:-1;76726:31:0;;;;;;;;76796:25;;;;;;;;;;-1:-1:-1;76796:25:0;;;;;;;;82962:315;83116:4;83140:56;83183:12;83140:42;:56::i;:::-;:129;;;;83213:56;83256:12;83213:42;:56::i;:::-;83133:136;82962:315;-1:-1:-1;;82962:315:0:o;59066:100::-;59120:13;59153:5;59146:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59066:100;:::o;60589:171::-;60665:7;60685:23;60700:7;60685:14;:23::i;:::-;-1:-1:-1;60728:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;60728:24:0;;60589:171::o;60096:427::-;60177:13;60193:34;60219:7;60193:25;:34::i;:::-;60177:50;;60252:5;-1:-1:-1;;;;;60246:11:0;:2;-1:-1:-1;;;;;60246:11:0;;;60238:57;;;;-1:-1:-1;;;60238:57:0;;12713:2:1;60238:57:0;;;12695:21:1;12752:2;12732:18;;;12725:30;12791:34;12771:18;;;12764:62;-1:-1:-1;;;12842:18:1;;;12835:31;12883:19;;60238:57:0;;;;;;;;;18729:10;-1:-1:-1;;;;;60330:21:0;;;;:62;;-1:-1:-1;60355:37:0;60372:5;18729:10;61058:164;:::i;60355:37::-;60308:173;;;;-1:-1:-1;;;60308:173:0;;13115:2:1;60308:173:0;;;13097:21:1;13154:2;13134:18;;;13127:30;13193:34;13173:18;;;13166:62;13264:31;13244:18;;;13237:59;13313:19;;60308:173:0;12913:425:1;60308:173:0;60494:21;60503:2;60507:7;60494:8;:21::i;:::-;60166:357;60096:427;;:::o;76697:22::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;80549:110::-;80608:7;80645:6;;80635:7;:16;;;;:::i;61289:335::-;61484:41;18729:10;61517:7;61484:18;:41::i;:::-;61476:99;;;;-1:-1:-1;;;61476:99:0;;;;;;;:::i;:::-;61588:28;61598:4;61604:2;61608:7;61588:9;:28::i;80418:123::-;-1:-1:-1;;;;;;;;;;;38715:16:0;38726:4;38715:10;:16::i;:::-;80509:24:::1;80520:3;80525:7;80509:10;:24::i;47295:442::-:0;47392:7;47450:27;;;:17;:27;;;;;;;;47421:56;;;;;;;;;-1:-1:-1;;;;;47421:56:0;;;;;-1:-1:-1;;;47421:56:0;;;-1:-1:-1;;;;;47421:56:0;;;;;;;;47392:7;;47490:92;;-1:-1:-1;47541:29:0;;;;;;;;;47551:19;47541:29;-1:-1:-1;;;;;47541:29:0;;;;-1:-1:-1;;;47541:29:0;;-1:-1:-1;;;;;47541:29:0;;;;;47490:92;47632:23;;;;47594:21;;48103:5;;47619:36;;-1:-1:-1;;;;;47619:36:0;:10;:36;:::i;:::-;47618:58;;;;:::i;:::-;47697:16;;;;;-1:-1:-1;47295:442:0;;-1:-1:-1;;;;47295:442:0:o;79302:274::-;38269:4;38715:16;38269:4;38715:10;:16::i;:::-;79460:25:::1;79431;;:54;;79423:79;;;;-1:-1:-1::0;;;79423:79:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;79515:25:0::1;:53:::0;79302:274::o;41120:147::-;40753:7;40780:12;;;:6;:12;;;;;:22;;;38715:16;38726:4;38715:10;:16::i;:::-;41234:25:::1;41245:4;41251:7;41234:10;:25::i;42264:218::-:0;-1:-1:-1;;;;;42360:23:0;;18729:10;42360:23;42352:83;;;;-1:-1:-1;;;42352:83:0;;14862:2:1;42352:83:0;;;14844:21:1;14901:2;14881:18;;;14874:30;14940:34;14920:18;;;14913:62;-1:-1:-1;;;14991:18:1;;;14984:45;15046:19;;42352:83:0;14660:411:1;42352:83:0;42448:26;42460:4;42466:7;42448:11;:26::i;:::-;42264:218;;:::o;61695:185::-;61833:39;61850:4;61856:2;61860:7;61833:39;;;;;;;;;;;;:16;:39::i;58776:223::-;58848:7;63674:16;;;:7;:16;;;;;;-1:-1:-1;;;;;63674:16:0;;58912:56;;;;-1:-1:-1;;;58912:56:0;;15278:2:1;58912:56:0;;;15260:21:1;15317:2;15297:18;;;15290:30;-1:-1:-1;;;15336:18:1;;;15329:54;15400:18;;58912:56:0;15076:348:1;58507:207:0;58579:7;-1:-1:-1;;;;;58607:19:0;;58599:73;;;;-1:-1:-1;;;58599:73:0;;15631:2:1;58599:73:0;;;15613:21:1;15670:2;15650:18;;;15643:30;15709:34;15689:18;;;15682:62;-1:-1:-1;;;15760:18:1;;;15753:39;15809:19;;58599:73:0;15429:405:1;58599:73:0;-1:-1:-1;;;;;;58690:16:0;;;;;:9;:16;;;;;;;58507:207::o;80179:231::-;80249:7;80276:126;80295:24;:22;:24::i;:::-;80343:25;;-1:-1:-1;;;;;80370:20:0;;;;;;:12;:20;;;;;;80334:57;;80343:25;80334:8;:57::i;:::-;80276:4;:126::i;79089:205::-;38269:4;38715:16;38269:4;38715:10;:16::i;:::-;79180:11;79172:34:::1;;;::::0;-1:-1:-1;;;79172:34:0;;16041:2:1;79172:34:0::1;::::0;::::1;16023:21:1::0;16080:2;16060:18;;;16053:30;-1:-1:-1;;;16099:18:1;;;16092:40;16149:18;;79172:34:0::1;15839:334:1::0;79172:34:0::1;79235:6;79225;;:16;;79217:41;;;;-1:-1:-1::0;;;79217:41:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;79271:6:0::1;:15:::0;79089:205::o;39130:147::-;39216:4;39240:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;39240:29:0;;;;;;;;;;;;;;;39130:147::o;59235:104::-;59291:13;59324:7;59317:14;;;;;:::i;82094:169::-;38269:4;38715:16;38269:4;38715:10;:16::i;:::-;82213:42:::1;82225:8;82235:19;82213:11;:42::i;77094:1558::-:0;14491:19;14514:13;;;;;;14513:14;;14561:34;;;;-1:-1:-1;14579:12:0;;14594:1;14579:12;;;;:16;14561:34;14560:108;;;-1:-1:-1;14640:4:0;4344:19;:23;;;14601:66;;-1:-1:-1;14650:12:0;;;;;:17;14601:66;14538:204;;;;-1:-1:-1;;;14538:204:0;;16380:2:1;14538:204:0;;;16362:21:1;16419:2;16399:18;;;16392:30;16458:34;16438:18;;;16431:62;-1:-1:-1;;;16509:18:1;;;16502:44;16563:19;;14538:204:0;16178:410:1;14538:204:0;14753:12;:16;;-1:-1:-1;;14753:16:0;14768:1;14753:16;;;14780:67;;;;14815:13;:20;;-1:-1:-1;;14815:20:0;;;;;14780:67;77533:29:::1;77547:5;77554:7;77533:13;:29::i;:::-;77575:38;38269:4;77606:6:::0;77575:10:::1;:38::i;:::-;77624:31;-1:-1:-1::0;;;;;;;;;;;77648:6:0::1;77624:10;:31::i;:::-;77673:8;77668:108;77691:8;:15;77687:1;:19;;;77668:108;;;77728:36;-1:-1:-1::0;;;;;;;;;;;77752:8:0::1;77761:1;77752:11;;;;;;;;;;:::i;:::-;;;;;;;77728:10;:36::i;:::-;77708:3;::::0;::::1;:::i;:::-;;;77668:108;;;-1:-1:-1::0;77788:18:0::1;::::0;77817:280:::1;77841:7;:14;77837:1;:18;77817:280;;;77914:1;-1:-1:-1::0;;;;;77885:31:0::1;:7;77893:1;77885:10;;;;;;;;:::i;:::-;;;;;;;:17;;;-1:-1:-1::0;;;;;77885:31:0::1;;;77877:68;;;::::0;-1:-1:-1;;;77877:68:0;;17129:2:1;77877:68:0::1;::::0;::::1;17111:21:1::0;17168:2;17148:18;;;17141:30;17207:26;17187:18;;;17180:54;17251:18;;77877:68:0::1;16927:348:1::0;77877:68:0::1;77968:7;77976:1;77968:10;;;;;;;;:::i;:::-;;;;;;;:14;;;:19;;77986:1;77968:19;;77960:42;;;::::0;-1:-1:-1;;;77960:42:0;;17482:2:1;77960:42:0::1;::::0;::::1;17464:21:1::0;17521:2;17501:18;;;17494:30;-1:-1:-1;;;17540:18:1;;;17533:40;17590:18;;77960:42:0::1;17280:334:1::0;77960:42:0::1;78017:7;78030;78038:1;78030:10;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;78017:24;;::::1;::::0;::::1;::::0;;-1:-1:-1;78017:24:0;;;;;;;;;;::::1;::::0;;;;;::::1;::::0;::::1;;-1:-1:-1::0;;;78017:24:0::1;-1:-1:-1::0;;;;;;78017:24:0;;;-1:-1:-1;;;;;78017:24:0;;::::1;::::0;;;;;;;::::1;::::0;;78071:10;;:7;;78079:1;;78071:10;::::1;;;;;:::i;:::-;;;;;;;:14;;;78056:29;;;;;:::i;:::-;::::0;-1:-1:-1;77857:3:0;::::1;::::0;::::1;:::i;:::-;;;;77817:280;;;;78115:11;:21;;78130:6;78115:21;78107:54;;;::::0;-1:-1:-1;;;78107:54:0;;18190:2:1;78107:54:0::1;::::0;::::1;18172:21:1::0;18229:2;18209:18;;;18202:30;-1:-1:-1;;;18248:18:1;;;18241:50;18308:18;;78107:54:0::1;17988:344:1::0;78107:54:0::1;78182:28:::0;78174:71:::1;;;::::0;-1:-1:-1;;;78174:71:0;;18539:2:1;78174:71:0::1;::::0;::::1;18521:21:1::0;18578:2;18558:18;;;18551:30;18617:32;18597:18;;;18590:60;18667:18;;78174:71:0::1;18337:354:1::0;78174:71:0::1;78256:23;:49:::0;;;78318:25:::1;:53:::0;;;78396:24;;78422:35:::1;::::0;::::1;::::0;78384:74:::1;::::0;78396:24;78384:11:::1;:74::i;:::-;78479:11:::0;78471:34:::1;;;::::0;-1:-1:-1;;;78471:34:0;;16041:2:1;78471:34:0::1;::::0;::::1;16023:21:1::0;16080:2;16060:18;;;16053:30;-1:-1:-1;;;16099:18:1;;;16092:40;16149:18;;78471:34:0::1;15839:334:1::0;78471:34:0::1;78516:6;:15:::0;;;78563:17;;78582:19:::1;::::0;::::1;::::0;78544:58:::1;::::0;78563:17;78544:18:::1;:58::i;:::-;-1:-1:-1::0;78615:13:0::1;:29:::0;;-1:-1:-1;;78615:29:0::1;::::0;::::1;;;::::0;;14869:102;;;;14920:5;14904:21;;-1:-1:-1;;14904:21:0;;;14945:14;;-1:-1:-1;18848:36:1;;14945:14:0;;18836:2:1;18821:18;14945:14:0;;;;;;;14869:102;14480:498;77094:1558;;;;;;;;;;;:::o;60832:155::-;60927:52;18729:10;60960:8;60970;60927:18;:52::i;61951:322::-;62125:41;18729:10;62158:7;62125:18;:41::i;:::-;62117:99;;;;-1:-1:-1;;;62117:99:0;;;;;;;:::i;:::-;62227:38;62241:4;62247:2;62251:7;62260:4;62227:13;:38::i;:::-;61951:322;;;;:::o;78660:247::-;78734:13;78760:24;78775:8;78760:14;:24::i;:::-;78802:19;;;;:97;;78891:8;78802:97;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78848:8;78858:19;78868:8;78858:9;:19::i;:::-;78831:56;;;;;;;;;:::i;:::-;;;;;;;;;;;;;78795:104;78660:247;-1:-1:-1;;78660:247:0:o;80667:378::-;80746:13;;;;80738:37;;;;-1:-1:-1;;;80738:37:0;;20837:2:1;80738:37:0;;;20819:21:1;20876:2;20856:18;;;20849:30;-1:-1:-1;;;20895:18:1;;;20888:41;20946:18;;80738:37:0;20635:335:1;80738:37:0;80794:12;80786:41;;;;-1:-1:-1;;;80786:41:0;;21177:2:1;80786:41:0;;;21159:21:1;21216:2;21196:18;;;21189:30;-1:-1:-1;;;21235:18:1;;;21228:46;21291:18;;80786:41:0;20975:340:1;80786:41:0;80877:25;;-1:-1:-1;;;;;80846:17:0;;;;;;:12;:17;;;;;;:27;;80866:7;;80846:27;:::i;:::-;:56;;80838:89;;;;-1:-1:-1;;;80838:89:0;;21655:2:1;80838:89:0;;;21637:21:1;21694:2;21674:18;;;21667:30;-1:-1:-1;;;21713:18:1;;;21706:50;21773:18;;80838:89:0;21453:344:1;80838:89:0;-1:-1:-1;;;;;80940:17:0;;;;;;:12;:17;;;;;:28;;80961:7;;80940:17;:28;;80961:7;;80940:28;:::i;:::-;;;;-1:-1:-1;80981:21:0;;-1:-1:-1;80994:7:0;80981:12;:21::i;:::-;81013:24;81024:3;81029:7;81013:10;:24::i;78915:166::-;38269:4;38715:16;38269:4;38715:10;:16::i;:::-;79004:13:::1;::::0;::::1;;:20;;::::0;::::1;;;;78996:45;;;;-1:-1:-1::0;;;78996:45:0::1;;;;;;;:::i;:::-;-1:-1:-1::0;79054:13:0::1;:19:::0;;-1:-1:-1;;79054:19:0::1;::::0;::::1;;::::0;;;::::1;::::0;;78915:166::o;76584:22::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;76584:22:0;;;-1:-1:-1;;;;76584:22:0;;;;;:::o;41560:149::-;40753:7;40780:12;;;:6;:12;;;;;:22;;;38715:16;38726:4;38715:10;:16::i;:::-;41675:26:::1;41687:4;41693:7;41675:11;:26::i;79584:352::-:0;38269:4;38715:16;38269:4;38715:10;:16::i;:::-;79736:23:::1;79709;;:50;;79701:75;;;;-1:-1:-1::0;;;79701:75:0::1;;;;;;;:::i;:::-;80015:12:::0;;79795:23:::1;:40;;79787:79;;;::::0;-1:-1:-1;;;79787:79:0;;22004:2:1;79787:79:0::1;::::0;::::1;21986:21:1::0;22043:2;22023:18;;;22016:30;22082:28;22062:18;;;22055:56;22128:18;;79787:79:0::1;21802:350:1::0;79787:79:0::1;-1:-1:-1::0;79879:23:0::1;:49:::0;79584:352::o;80043:128::-;80098:7;80151:12;;80125:23;;:38;;;;:::i;:::-;80118:45;;80043:128;:::o;38823:215::-;38908:4;-1:-1:-1;;;;;;38932:58:0;;-1:-1:-1;;;38932:58:0;;:98;;-1:-1:-1;;;;;;;;;;20908:51:0;;;38994:36;20799:168;75451:192;75575:4;75599:36;75623:11;75599:23;:36::i;70474:135::-;64076:4;63674:16;;;:7;:16;;;;;;-1:-1:-1;;;;;63674:16:0;70548:53;;;;-1:-1:-1;;;70548:53:0;;15278:2:1;70548:53:0;;;15260:21:1;15317:2;15297:18;;;15290:30;-1:-1:-1;;;15336:18:1;;;15329:54;15400:18;;70548:53:0;15076:348:1;70548:53:0;70474:135;:::o;69742:185::-;69817:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;69817:29:0;-1:-1:-1;;;;;69817:29:0;;;;;;;;:24;;69871:34;69817:24;69871:25;:34::i;:::-;-1:-1:-1;;;;;69862:57:0;;;;;;;;;;;69742:185;;:::o;64306:275::-;64399:4;64416:13;64432:34;64458:7;64432:25;:34::i;:::-;64416:50;;64496:5;-1:-1:-1;;;;;64485:16:0;:7;-1:-1:-1;;;;;64485:16:0;;:52;;;-1:-1:-1;;;;;;61179:25:0;;;61155:4;61179:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;64505:32;64485:87;;;;64565:7;-1:-1:-1;;;;;64541:31:0;:20;64553:7;64541:11;:20::i;:::-;-1:-1:-1;;;;;64541:31:0;;64485:87;64477:96;64306:275;-1:-1:-1;;;;64306:275:0:o;68338:1285::-;68508:4;-1:-1:-1;;;;;68470:42:0;:34;68496:7;68470:25;:34::i;:::-;-1:-1:-1;;;;;68470:42:0;;68462:92;;;;-1:-1:-1;;;68462:92:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;68573:16:0;;68565:65;;;;-1:-1:-1;;;68565:65:0;;22895:2:1;68565:65:0;;;22877:21:1;22934:2;22914:18;;;22907:30;22973:34;22953:18;;;22946:62;-1:-1:-1;;;23024:18:1;;;23017:34;23068:19;;68565:65:0;22693:400:1;68565:65:0;68643:42;68664:4;68670:2;68674:7;68683:1;68643:20;:42::i;:::-;68826:4;-1:-1:-1;;;;;68788:42:0;:34;68814:7;68788:25;:34::i;:::-;-1:-1:-1;;;;;68788:42:0;;68780:92;;;;-1:-1:-1;;;68780:92:0;;;;;;;:::i;:::-;68944:24;;;;:15;:24;;;;;;;;68937:31;;-1:-1:-1;;;;;;68937:31:0;;;;;;-1:-1:-1;;;;;69420:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;69420:20:0;;;69455:13;;;;;;;;;:18;;68937:31;69455:18;;;69495:16;;;:7;:16;;;;;;:21;;;;;;;;;;69534:27;;68960:7;;69534:27;;;60166:357;60096:427;;:::o;39581:105::-;39648:30;39659:4;18729:10;39648;:30::i;81717:369::-;81804:12;;81871:23;;81850:17;81860:7;81804:12;81850:17;:::i;:::-;:44;;81842:91;;;;-1:-1:-1;;;81842:91:0;;23300:2:1;81842:91:0;;;23282:21:1;23339:2;23319:18;;;23312:30;23378:34;23358:18;;;23351:62;-1:-1:-1;;;23429:18:1;;;23422:32;23471:19;;81842:91:0;23098:398:1;81842:91:0;81959:17;81969:7;81959;:17;:::i;:::-;81944:12;:32;81994:9;81989:90;82013:7;82009:1;:11;81989:90;;;82042:25;82052:3;82057:9;;;:::i;:::-;;;;82042;:25::i;:::-;82022:3;;;:::i;:::-;;;81989:90;;82515:213;-1:-1:-1;;;;;82613:22:0;;82605:71;;;;-1:-1:-1;;;82605:71:0;;23703:2:1;82605:71:0;;;23685:21:1;23742:2;23722:18;;;23715:30;23781:34;23761:18;;;23754:62;-1:-1:-1;;;23832:18:1;;;23825:34;23876:19;;82605:71:0;23501:400:1;82605:71:0;82687:33;82704:5;82711:8;82687:16;:33::i;82736:218::-;-1:-1:-1;;;;;82835:22:0;;82827:74;;;;-1:-1:-1;;;82827:74:0;;24108:2:1;82827:74:0;;;24090:21:1;24147:2;24127:18;;;24120:30;24186:34;24166:18;;;24159:62;-1:-1:-1;;;24237:18:1;;;24230:37;24284:19;;82827:74:0;23906:403:1;82827:74:0;82912:34;82930:5;82937:8;82912:17;:34::i;84100:174::-;84170:7;84231:4;84222:6;:13;:33;;84254:1;84222:33;;;84247:4;84238:6;:13;84222:33;84215:40;84100:174;-1:-1:-1;;;84100:174:0:o;84282:113::-;84342:7;84375:2;84369;:8;;:18;;84385:2;84369:18;;;-1:-1:-1;84380:2:0;;84282:113;-1:-1:-1;84282:113:0:o;82271:236::-;82369:22;;82361:54;;;;-1:-1:-1;;;82361:54:0;;24516:2:1;82361:54:0;;;24498:21:1;24555:2;24535:18;;;24528:30;-1:-1:-1;;;24574:18:1;;;24567:44;24628:18;;82361:54:0;24314:338:1;82361:54:0;82428:19;;;;:8;;:19;;;;;:::i;:::-;-1:-1:-1;82458:19:0;:41;;-1:-1:-1;;82458:41:0;;;;;;;;;;-1:-1:-1;82271:236:0:o;57700:151::-;16634:13;;;;;;;16626:69;;;;-1:-1:-1;;;16626:69:0;;;;;;;:::i;:::-;57804:39:::1;57828:5;57835:7;57804:23;:39::i;48387:332::-:0;48103:5;-1:-1:-1;;;;;48490:33:0;;;;48482:88;;;;-1:-1:-1;;;48482:88:0;;25271:2:1;48482:88:0;;;25253:21:1;25310:2;25290:18;;;25283:30;25349:34;25329:18;;;25322:62;-1:-1:-1;;;25400:18:1;;;25393:40;25450:19;;48482:88:0;25069:406:1;48482:88:0;-1:-1:-1;;;;;48589:22:0;;48581:60;;;;-1:-1:-1;;;48581:60:0;;25682:2:1;48581:60:0;;;25664:21:1;25721:2;25701:18;;;25694:30;25760:27;25740:18;;;25733:55;25805:18;;48581:60:0;25480:349:1;48581:60:0;48676:35;;;;;;;;;-1:-1:-1;;;;;48676:35:0;;;;;;-1:-1:-1;;;;;48676:35:0;;;;;;;;;;-1:-1:-1;;;48654:57:0;;;;:19;:57;48387:332::o;70070:315::-;70225:8;-1:-1:-1;;;;;70216:17:0;:5;-1:-1:-1;;;;;70216:17:0;;;70208:55;;;;-1:-1:-1;;;70208:55:0;;26036:2:1;70208:55:0;;;26018:21:1;26075:2;26055:18;;;26048:30;26114:27;26094:18;;;26087:55;26159:18;;70208:55:0;25834:349:1;70208:55:0;-1:-1:-1;;;;;70274:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;70274:46:0;;;;;;;;;;70336:41;;540::1;;;70336::0;;513:18:1;70336:41:0;;;;;;;70070:315;;;:::o;63154:313::-;63310:28;63320:4;63326:2;63330:7;63310:9;:28::i;:::-;63357:47;63380:4;63386:2;63390:7;63399:4;63357:22;:47::i;:::-;63349:110;;;;-1:-1:-1;;;63349:110:0;;;;;;;:::i;83554:538::-;83611:13;83641:11;83637:54;;-1:-1:-1;;83669:10:0;;;;;;;;;;;;-1:-1:-1;;;83669:10:0;;;;;83554:538::o;83637:54::-;83716:6;83701:12;83758:78;83765:9;;83758:78;;83791:8;;;;:::i;:::-;;-1:-1:-1;83814:10:0;;-1:-1:-1;83822:2:0;83814:10;;:::i;:::-;;;83758:78;;;83846:19;83878:6;83868:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83868:17:0;;83846:39;;83896:157;83903:11;;83896:157;;83931:11;83941:1;83931:11;;:::i;:::-;;-1:-1:-1;84000:11:0;84009:2;84000:6;:11;:::i;:::-;83987:25;;:2;:25;:::i;:::-;83974:40;;83957:6;83964;83957:14;;;;;;;;:::i;:::-;;;;:57;-1:-1:-1;;;;;83957:57:0;;;;;;;;-1:-1:-1;84029:12:0;84039:2;84029:12;;:::i;:::-;;;83896:157;;81053:656;81120:18;81160:6;;81141:16;:25;;;;:::i;:::-;81120:46;;81198:10;81185:9;:23;81177:59;;;;-1:-1:-1;;;81177:59:0;;26926:2:1;81177:59:0;;;26908:21:1;26965:2;26945:18;;;26938:30;27004:25;26984:18;;;26977:53;27047:18;;81177:59:0;26724:347:1;81177:59:0;81272:7;:14;81249:20;;;81382:234;81405:16;81420:1;81405:12;:16;:::i;:::-;81401:1;:20;;;81382:234;;;81490:6;81473:7;81481:1;81473:10;;;;;;;;;;:::i;:::-;;;;;;;;;;:14;81460:27;;-1:-1:-1;;;81473:14:0;;;;81460:10;:27;:::i;:::-;:36;;;;:::i;:::-;81443:53;-1:-1:-1;81511:34:0;81443:53;81511:34;;:::i;:::-;;;81560:44;81570:7;81578:1;81570:10;;;;;;;;;;:::i;:::-;;;;;;;;;;:17;-1:-1:-1;;;;;81570:17:0;81589:14;81560:9;:44::i;:::-;81423:3;;;:::i;:::-;;;81382:234;;;-1:-1:-1;81627:74:0;81637:7;81645:16;81660:1;81645:12;:16;:::i;:::-;81637:25;;;;;;;;:::i;:::-;;;;;;;;;;:32;-1:-1:-1;;;;;81637:32:0;81671:29;81684:16;81671:10;:29;:::i;:::-;81627:9;:74::i;:::-;81109:600;;;;81053:656;:::o;58094:349::-;58218:4;-1:-1:-1;;;;;;58255:51:0;;-1:-1:-1;;;58255:51:0;;:127;;-1:-1:-1;;;;;;;58323:59:0;;-1:-1:-1;;;58323:59:0;58255:127;:180;;;;58399:36;58423:11;58399:23;:36::i;72780:410::-;72970:1;72958:9;:13;72954:229;;;-1:-1:-1;;;;;72992:18:0;;;72988:87;;-1:-1:-1;;;;;73031:15:0;;;;;;:9;:15;;;;;:28;;73050:9;;73031:15;:28;;73050:9;;73031:28;:::i;:::-;;;;-1:-1:-1;;72988:87:0;-1:-1:-1;;;;;73093:16:0;;;73089:83;;-1:-1:-1;;;;;73130:13:0;;;;;;:9;:13;;;;;:26;;73147:9;;73130:13;:26;;73147:9;;73130:26;:::i;:::-;;;;-1:-1:-1;;72780:410:0;;;;:::o;39976:514::-;40065:22;40073:4;40079:7;40065;:22::i;:::-;40060:423;;40253:39;40284:7;40253:30;:39::i;:::-;40365:49;40404:4;40411:2;40365:30;:49::i;:::-;40158:279;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;40158:279:0;;;;;;;;;;-1:-1:-1;;;40104:367:0;;;;;;;:::i;64923:110::-;64999:26;65009:2;65013:7;64999:26;;;;;;;;;;;;:9;:26::i;43861:238::-;43945:22;43953:4;43959:7;43945;:22::i;:::-;43940:152;;43984:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;43984:29:0;;;;;;;;;:36;;-1:-1:-1;;43984:36:0;44016:4;43984:36;;;44067:12;18729:10;;18649:98;44067:12;-1:-1:-1;;;;;44040:40:0;44058:7;-1:-1:-1;;;;;44040:40:0;44052:4;44040:40;;;;;;;;;;43861:238;;:::o;44279:239::-;44363:22;44371:4;44377:7;44363;:22::i;:::-;44359:152;;;44434:5;44402:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;44402:29:0;;;;;;;;;;:37;;-1:-1:-1;;44402:37:0;;;44459:40;18729:10;;44402:12;;44459:40;;44434:5;44459:40;44279:239;;:::o;57859:163::-;16634:13;;;;;;;16626:69;;;;-1:-1:-1;;;16626:69:0;;;;;;;:::i;:::-;57973:13;;::::1;::::0;:5:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;57997:17:0;;::::1;::::0;:7:::1;::::0;:17:::1;::::0;::::1;::::0;::::1;:::i;71173:875::-:0;71327:4;-1:-1:-1;;;;;71348:13:0;;4344:19;:23;71344:697;;71384:82;;-1:-1:-1;;;71384:82:0;;-1:-1:-1;;;;;71384:47:0;;;;;:82;;18729:10;;71446:4;;71452:7;;71461:4;;71384:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71384:82:0;;;;;;;;-1:-1:-1;;71384:82:0;;;;;;;;;;;;:::i;:::-;;;71380:606;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;71647:13:0;;71643:328;;71690:60;;-1:-1:-1;;;71690:60:0;;;;;;;:::i;71643:328::-;71921:6;71915:13;71906:6;71902:2;71898:15;71891:38;71380:606;-1:-1:-1;;;;;;71517:62:0;-1:-1:-1;;;71517:62:0;;-1:-1:-1;71510:69:0;;71344:697;-1:-1:-1;72025:4:0;71173:875;;;;;;:::o;83285:164::-;83354:9;83368:3;-1:-1:-1;;;;;83368:8:0;83385:7;83368:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83353:44;;;83416:4;83408:33;;;;-1:-1:-1;;;83408:33:0;;29038:2:1;83408:33:0;;;29020:21:1;29077:2;29057:18;;;29050:30;-1:-1:-1;;;29096:18:1;;;29089:46;29152:18;;83408:33:0;28836:340:1;46981:248:0;47105:4;-1:-1:-1;;;;;;47129:52:0;;-1:-1:-1;;;47129:52:0;;:92;;;47185:36;47209:11;47185:23;:36::i;36049:151::-;36107:13;36140:52;-1:-1:-1;;;;;36152:22:0;;34182:2;35445:447;35520:13;35546:19;35578:10;35582:6;35578:1;:10;:::i;:::-;:14;;35591:1;35578:14;:::i;:::-;35568:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35568:25:0;;35546:47;;-1:-1:-1;;;35604:6:0;35611:1;35604:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;35604:15:0;;;;;;;;;-1:-1:-1;;;35630:6:0;35637:1;35630:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;35630:15:0;;;;;;;;-1:-1:-1;35661:9:0;35673:10;35677:6;35673:1;:10;:::i;:::-;:14;;35686:1;35673:14;:::i;:::-;35661:26;;35656:131;35693:1;35689;:5;35656:131;;;-1:-1:-1;;;35737:5:0;35745:3;35737:11;35728:21;;;;;;;:::i;:::-;;;;35716:6;35723:1;35716:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;35716:33:0;;;;;;;;-1:-1:-1;35774:1:0;35764:11;;;;;35696:3;;;:::i;:::-;;;35656:131;;;-1:-1:-1;35805:10:0;;35797:55;;;;-1:-1:-1;;;35797:55:0;;29524:2:1;35797:55:0;;;29506:21:1;;;29543:18;;;29536:30;29602:34;29582:18;;;29575:62;29654:18;;35797:55:0;29322:356:1;65260:319:0;65389:18;65395:2;65399:7;65389:5;:18::i;:::-;65440:53;65471:1;65475:2;65479:7;65488:4;65440:22;:53::i;:::-;65418:153;;;;-1:-1:-1;;;65418:153:0;;;;;;;:::i;65915:942::-;-1:-1:-1;;;;;65995:16:0;;65987:61;;;;-1:-1:-1;;;65987:61:0;;29885:2:1;65987:61:0;;;29867:21:1;;;29904:18;;;29897:30;29963:34;29943:18;;;29936:62;30015:18;;65987:61:0;29683:356:1;65987:61:0;64076:4;63674:16;;;:7;:16;;;;;;-1:-1:-1;;;;;63674:16:0;64100:31;66059:58;;;;-1:-1:-1;;;66059:58:0;;30246:2:1;66059:58:0;;;30228:21:1;30285:2;30265:18;;;30258:30;30324;30304:18;;;30297:58;30372:18;;66059:58:0;30044:352:1;66059:58:0;66130:48;66159:1;66163:2;66167:7;66176:1;66130:20;:48::i;:::-;64076:4;63674:16;;;:7;:16;;;;;;-1:-1:-1;;;;;63674:16:0;64100:31;66268:58;;;;-1:-1:-1;;;66268:58:0;;30246:2:1;66268:58:0;;;30228:21:1;30285:2;30265:18;;;30258:30;30324;30304:18;;;30297:58;30372:18;;66268:58:0;30044:352:1;66268:58:0;-1:-1:-1;;;;;66675:13:0;;;;;;:9;:13;;;;;;;;:18;;66692:1;66675:18;;;66717:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;66717:21:0;;;;;66756:33;66725:7;;66675:13;;66756:33;;66675:13;;66756:33;42264:218;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:269::-;908:3;946:5;940:12;973:6;968:3;961:19;989:63;1045:6;1038:4;1033:3;1029:14;1022:4;1015:5;1011:16;989:63;:::i;:::-;1106:2;1085:15;-1:-1:-1;;1081:29:1;1072:39;;;;1113:4;1068:50;;855:269;-1:-1:-1;;855:269:1:o;1129:231::-;1278:2;1267:9;1260:21;1241:4;1298:56;1350:2;1339:9;1335:18;1327:6;1298:56;:::i;1365:180::-;1424:6;1477:2;1465:9;1456:7;1452:23;1448:32;1445:52;;;1493:1;1490;1483:12;1445:52;-1:-1:-1;1516:23:1;;1365:180;-1:-1:-1;1365:180:1:o;1758:173::-;1826:20;;-1:-1:-1;;;;;1875:31:1;;1865:42;;1855:70;;1921:1;1918;1911:12;1855:70;1758:173;;;:::o;1936:254::-;2004:6;2012;2065:2;2053:9;2044:7;2040:23;2036:32;2033:52;;;2081:1;2078;2071:12;2033:52;2104:29;2123:9;2104:29;:::i;:::-;2094:39;2180:2;2165:18;;;;2152:32;;-1:-1:-1;;;1936:254:1:o;2377:186::-;2436:6;2489:2;2477:9;2468:7;2464:23;2460:32;2457:52;;;2505:1;2502;2495:12;2457:52;2528:29;2547:9;2528:29;:::i;2568:328::-;2645:6;2653;2661;2714:2;2702:9;2693:7;2689:23;2685:32;2682:52;;;2730:1;2727;2720:12;2682:52;2753:29;2772:9;2753:29;:::i;:::-;2743:39;;2801:38;2835:2;2824:9;2820:18;2801:38;:::i;:::-;2791:48;;2886:2;2875:9;2871:18;2858:32;2848:42;;2568:328;;;;;:::o;3268:248::-;3336:6;3344;3397:2;3385:9;3376:7;3372:23;3368:32;3365:52;;;3413:1;3410;3403:12;3365:52;-1:-1:-1;;3436:23:1;;;3506:2;3491:18;;;3478:32;;-1:-1:-1;3268:248:1:o;3800:254::-;3868:6;3876;3929:2;3917:9;3908:7;3904:23;3900:32;3897:52;;;3945:1;3942;3935:12;3897:52;3981:9;3968:23;3958:33;;4010:38;4044:2;4033:9;4029:18;4010:38;:::i;:::-;4000:48;;3800:254;;;;;:::o;4059:127::-;4120:10;4115:3;4111:20;4108:1;4101:31;4151:4;4148:1;4141:15;4175:4;4172:1;4165:15;4191:257;4263:4;4257:11;;;4295:17;;4342:18;4327:34;;4363:22;;;4324:62;4321:88;;;4389:18;;:::i;:::-;4425:4;4418:24;4191:257;:::o;4453:275::-;4524:2;4518:9;4589:2;4570:13;;-1:-1:-1;;4566:27:1;4554:40;;4624:18;4609:34;;4645:22;;;4606:62;4603:88;;;4671:18;;:::i;:::-;4707:2;4700:22;4453:275;;-1:-1:-1;4453:275:1:o;4733:407::-;4798:5;4832:18;4824:6;4821:30;4818:56;;;4854:18;;:::i;:::-;4892:57;4937:2;4916:15;;-1:-1:-1;;4912:29:1;4943:4;4908:40;4892:57;:::i;:::-;4883:66;;4972:6;4965:5;4958:21;5012:3;5003:6;4998:3;4994:16;4991:25;4988:45;;;5029:1;5026;5019:12;4988:45;5078:6;5073:3;5066:4;5059:5;5055:16;5042:43;5132:1;5125:4;5116:6;5109:5;5105:18;5101:29;5094:40;4733:407;;;;;:::o;5145:222::-;5188:5;5241:3;5234:4;5226:6;5222:17;5218:27;5208:55;;5259:1;5256;5249:12;5208:55;5281:80;5357:3;5348:6;5335:20;5328:4;5320:6;5316:17;5281:80;:::i;5372:160::-;5437:20;;5493:13;;5486:21;5476:32;;5466:60;;5522:1;5519;5512:12;5537:390;5612:6;5620;5673:2;5661:9;5652:7;5648:23;5644:32;5641:52;;;5689:1;5686;5679:12;5641:52;5729:9;5716:23;5762:18;5754:6;5751:30;5748:50;;;5794:1;5791;5784:12;5748:50;5817;5859:7;5850:6;5839:9;5835:22;5817:50;:::i;:::-;5807:60;;;5886:35;5917:2;5906:9;5902:18;5886:35;:::i;5932:183::-;5992:4;6025:18;6017:6;6014:30;6011:56;;;6047:18;;:::i;:::-;-1:-1:-1;6092:1:1;6088:14;6104:4;6084:25;;5932:183::o;6120:668::-;6174:5;6227:3;6220:4;6212:6;6208:17;6204:27;6194:55;;6245:1;6242;6235:12;6194:55;6281:6;6268:20;6307:4;6331:60;6347:43;6387:2;6347:43;:::i;:::-;6331:60;:::i;:::-;6425:15;;;6511:1;6507:10;;;;6495:23;;6491:32;;;6456:12;;;;6535:15;;;6532:35;;;6563:1;6560;6553:12;6532:35;6599:2;6591:6;6587:15;6611:148;6627:6;6622:3;6619:15;6611:148;;;6693:23;6712:3;6693:23;:::i;:::-;6681:36;;6737:12;;;;6644;;6611:148;;;-1:-1:-1;6777:5:1;6120:668;-1:-1:-1;;;;;;6120:668:1:o;6793:1125::-;6852:5;6905:3;6898:4;6890:6;6886:17;6882:27;6872:55;;6923:1;6920;6913:12;6872:55;6959:6;6946:20;6985:4;7009:60;7025:43;7065:2;7025:43;:::i;7009:60::-;7103:15;;;7189:1;7185:10;;;;7173:23;;7169:32;;;7134:12;;;;7213:15;;;7210:35;;;7241:1;7238;7231:12;7210:35;7277:2;7269:6;7265:15;7289:600;7305:6;7300:3;7297:15;7289:600;;;7383:4;7377:3;7372;7368:13;7364:24;7361:114;;;7429:1;7458:2;7454;7447:14;7361:114;7501:22;;:::i;:::-;7550:23;7569:3;7550:23;:::i;:::-;7543:5;7536:38;7624:2;7619:3;7615:12;7602:26;7676:6;7667:7;7663:20;7654:7;7651:33;7641:131;;7726:1;7755:2;7751;7744:14;7641:131;7792:14;;;7785:31;7829:18;;7867:12;;;;7331:4;7322:14;7289:600;;7923:421;7985:5;8033:4;8021:9;8016:3;8012:19;8008:30;8005:50;;;8051:1;8048;8041:12;8005:50;8073:22;;:::i;:::-;8064:31;;8131:9;8118:23;8164:18;8156:6;8153:30;8150:50;;;8196:1;8193;8186:12;8150:50;8223:46;8265:3;8256:6;8245:9;8241:22;8223:46;:::i;:::-;8216:5;8209:61;;8302:35;8333:2;8322:9;8318:18;8302:35;:::i;:::-;8297:2;8290:5;8286:14;8279:59;7923:421;;;;:::o;8349:409::-;8403:5;8451:4;8439:9;8434:3;8430:19;8426:30;8423:50;;;8469:1;8466;8459:12;8423:50;8491:22;;:::i;:::-;8482:31;;8536:29;8555:9;8536:29;:::i;:::-;8529:5;8522:44;8618:2;8607:9;8603:18;8590:32;-1:-1:-1;;;;;8657:7:1;8653:40;8644:7;8641:53;8631:81;;8708:1;8705;8698:12;8763:1687;9060:6;9068;9076;9084;9092;9100;9108;9116;9124;9132;9140:7;9194:3;9182:9;9173:7;9169:23;9165:33;9162:53;;;9211:1;9208;9201:12;9162:53;9234:18;9292:2;9280:9;9267:23;9264:31;9261:51;;;9308:1;9305;9298:12;9261:51;9331:67;9390:7;9377:9;9364:23;9353:9;9349:39;9331:67;:::i;:::-;9321:77;;9447:2;9441;9430:9;9426:18;9413:32;9410:40;9407:60;;;9463:1;9460;9453:12;9407:60;9486:76;9554:7;9547:2;9536:9;9532:18;9519:32;9508:9;9504:48;9486:76;:::i;:::-;9476:86;;9581:38;9615:2;9604:9;9600:18;9581:38;:::i;:::-;9571:48;;9668:2;9662;9651:9;9647:18;9634:32;9631:40;9628:60;;;9684:1;9681;9674:12;9628:60;9707:87;9786:7;9779:2;9768:9;9764:18;9751:32;9740:9;9736:48;9707:87;:::i;:::-;9697:97;;9844:2;9837:3;9826:9;9822:19;9809:33;9806:41;9803:61;;;9860:1;9857;9850:12;9803:61;9883:93;9968:7;9960:3;9949:9;9945:19;9932:33;9921:9;9917:49;9883:93;:::i;:::-;9873:103;;10023:3;10012:9;10008:19;9995:33;9985:43;;10075:3;10064:9;10060:19;10047:33;10037:43;;10130:2;10123:3;10112:9;10108:19;10095:33;10092:41;10089:61;;;10146:1;10143;10136:12;10089:61;;10169:93;10254:7;10246:3;10235:9;10231:19;10218:33;10207:9;10203:49;10169:93;:::i;:::-;10159:103;;10309:3;10298:9;10294:19;10281:33;10271:43;;10333:55;10380:7;10374:3;10363:9;10359:19;10333:55;:::i;:::-;10323:65;;10408:36;10439:3;10428:9;10424:19;10408:36;:::i;:::-;10397:47;;8763:1687;;;;;;;;;;;;;;:::o;10455:254::-;10520:6;10528;10581:2;10569:9;10560:7;10556:23;10552:32;10549:52;;;10597:1;10594;10587:12;10549:52;10620:29;10639:9;10620:29;:::i;:::-;10610:39;;10668:35;10699:2;10688:9;10684:18;10668:35;:::i;10714:667::-;10809:6;10817;10825;10833;10886:3;10874:9;10865:7;10861:23;10857:33;10854:53;;;10903:1;10900;10893:12;10854:53;10926:29;10945:9;10926:29;:::i;:::-;10916:39;;10974:38;11008:2;10997:9;10993:18;10974:38;:::i;:::-;10964:48;;11059:2;11048:9;11044:18;11031:32;11021:42;;11114:2;11103:9;11099:18;11086:32;11141:18;11133:6;11130:30;11127:50;;;11173:1;11170;11163:12;11127:50;11196:22;;11249:4;11241:13;;11237:27;-1:-1:-1;11227:55:1;;11278:1;11275;11268:12;11227:55;11301:74;11367:7;11362:2;11349:16;11344:2;11340;11336:11;11301:74;:::i;:::-;11291:84;;;10714:667;;;;;;;:::o;11386:180::-;11442:6;11495:2;11483:9;11474:7;11470:23;11466:32;11463:52;;;11511:1;11508;11501:12;11463:52;11534:26;11550:9;11534:26;:::i;11861:260::-;11929:6;11937;11990:2;11978:9;11969:7;11965:23;11961:32;11958:52;;;12006:1;12003;11996:12;11958:52;12029:29;12048:9;12029:29;:::i;:::-;12019:39;;12077:38;12111:2;12100:9;12096:18;12077:38;:::i;12126:380::-;12205:1;12201:12;;;;12248;;;12269:61;;12323:4;12315:6;12311:17;12301:27;;12269:61;12376:2;12368:6;12365:14;12345:18;12342:38;12339:161;;;12422:10;12417:3;12413:20;12410:1;12403:31;12457:4;12454:1;12447:15;12485:4;12482:1;12475:15;12339:161;;12126:380;;;:::o;13343:127::-;13404:10;13399:3;13395:20;13392:1;13385:31;13435:4;13432:1;13425:15;13459:4;13456:1;13449:15;13475:168;13515:7;13581:1;13577;13573:6;13569:14;13566:1;13563:21;13558:1;13551:9;13544:17;13540:45;13537:71;;;13588:18;;:::i;:::-;-1:-1:-1;13628:9:1;;13475:168::o;13648:409::-;13850:2;13832:21;;;13889:2;13869:18;;;13862:30;13928:34;13923:2;13908:18;;13901:62;-1:-1:-1;;;13994:2:1;13979:18;;13972:43;14047:3;14032:19;;13648:409::o;14062:127::-;14123:10;14118:3;14114:20;14111:1;14104:31;14154:4;14151:1;14144:15;14178:4;14175:1;14168:15;14194:120;14234:1;14260;14250:35;;14265:18;;:::i;:::-;-1:-1:-1;14299:9:1;;14194:120::o;14319:336::-;14521:2;14503:21;;;14560:2;14540:18;;;14533:30;-1:-1:-1;;;14594:2:1;14579:18;;14572:42;14646:2;14631:18;;14319:336::o;16593:127::-;16654:10;16649:3;16645:20;16642:1;16635:31;16685:4;16682:1;16675:15;16709:4;16706:1;16699:15;16725:197;16763:3;16791:6;16832:2;16825:5;16821:14;16859:2;16850:7;16847:15;16844:41;;;16865:18;;:::i;:::-;16914:1;16901:15;;16725:197;-1:-1:-1;;;16725:197:1:o;17619:224::-;17658:3;17686:6;17719:2;17716:1;17712:10;17749:2;17746:1;17742:10;17780:3;17776:2;17772:12;17767:3;17764:21;17761:47;;;17788:18;;:::i;:::-;17824:13;;17619:224;-1:-1:-1;;;;17619:224:1:o;17848:135::-;17887:3;-1:-1:-1;;17908:17:1;;17905:43;;;17928:18;;:::i;:::-;-1:-1:-1;17975:1:1;17964:13;;17848:135::o;19021:185::-;19063:3;19101:5;19095:12;19116:52;19161:6;19156:3;19149:4;19142:5;19138:16;19116:52;:::i;:::-;19184:16;;;;;19021:185;-1:-1:-1;;19021:185:1:o;19329:1301::-;19606:3;19635:1;19668:6;19662:13;19698:3;19720:1;19748:9;19744:2;19740:18;19730:28;;19808:2;19797:9;19793:18;19830;19820:61;;19874:4;19866:6;19862:17;19852:27;;19820:61;19900:2;19948;19940:6;19937:14;19917:18;19914:38;19911:165;;;-1:-1:-1;;;19975:33:1;;20031:4;20028:1;20021:15;20061:4;19982:3;20049:17;19911:165;20092:18;20119:104;;;;20237:1;20232:320;;;;20085:467;;20119:104;-1:-1:-1;;20152:24:1;;20140:37;;20197:16;;;;-1:-1:-1;20119:104:1;;20232:320;18968:1;18961:14;;;19005:4;18992:18;;20327:1;20341:165;20355:6;20352:1;20349:13;20341:165;;;20433:14;;20420:11;;;20413:35;20476:16;;;;20370:10;;20341:165;;;20345:3;;20535:6;20530:3;20526:16;20519:23;;20085:467;;;;;;;20568:56;20593:30;20619:3;20611:6;20593:30;:::i;:::-;-1:-1:-1;;;19271:20:1;;19316:1;19307:11;;19211:113;20568:56;20561:63;19329:1301;-1:-1:-1;;;;;19329:1301:1:o;21320:128::-;21360:3;21391:1;21387:6;21384:1;21381:13;21378:39;;;21397:18;;:::i;:::-;-1:-1:-1;21433:9:1;;21320:128::o;22157:125::-;22197:4;22225:1;22222;22219:8;22216:34;;;22230:18;;:::i;:::-;-1:-1:-1;22267:9:1;;22157:125::o;22287:401::-;22489:2;22471:21;;;22528:2;22508:18;;;22501:30;22567:34;22562:2;22547:18;;22540:62;-1:-1:-1;;;22633:2:1;22618:18;;22611:35;22678:3;22663:19;;22287:401::o;24657:407::-;24859:2;24841:21;;;24898:2;24878:18;;;24871:30;24937:34;24932:2;24917:18;;24910:62;-1:-1:-1;;;25003:2:1;24988:18;;24981:41;25054:3;25039:19;;24657:407::o;26188:414::-;26390:2;26372:21;;;26429:2;26409:18;;;26402:30;26468:34;26463:2;26448:18;;26441:62;-1:-1:-1;;;26534:2:1;26519:18;;26512:48;26592:3;26577:19;;26188:414::o;26607:112::-;26639:1;26665;26655:35;;26670:18;;:::i;:::-;-1:-1:-1;26704:9:1;;26607:112::o;27076:786::-;27487:25;27482:3;27475:38;27457:3;27542:6;27536:13;27558:62;27613:6;27608:2;27603:3;27599:12;27592:4;27584:6;27580:17;27558:62;:::i;:::-;-1:-1:-1;;;27679:2:1;27639:16;;;27671:11;;;27664:40;27729:13;;27751:63;27729:13;27800:2;27792:11;;27785:4;27773:17;;27751:63;:::i;:::-;27834:17;27853:2;27830:26;;27076:786;-1:-1:-1;;;;27076:786:1:o;27867:500::-;-1:-1:-1;;;;;28136:15:1;;;28118:34;;28188:15;;28183:2;28168:18;;28161:43;28235:2;28220:18;;28213:34;;;28283:3;28278:2;28263:18;;28256:31;;;28061:4;;28304:57;;28341:19;;28333:6;28304:57;:::i;:::-;28296:65;27867:500;-1:-1:-1;;;;;;27867:500:1:o;28372:249::-;28441:6;28494:2;28482:9;28473:7;28469:23;28465:32;28462:52;;;28510:1;28507;28500:12;28462:52;28542:9;28536:16;28561:30;28585:5;28561:30;:::i;29181:136::-;29220:3;29248:5;29238:39;;29257:18;;:::i;:::-;-1:-1:-1;;;29293:18:1;;29181:136::o
Swarm Source
ipfs://3bc8b1e81cde592bb527cea4d92cee6b75e1866e124372179fa4fe4f7c947a71
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.