Overview
TokenID
7
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Rubyscore_Achievement
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at zkevm.polygonscan.com on 2024-01-31 */ // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/access/IAccessControl.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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; } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/cryptography/ECDSA.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/cryptography/EIP712.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/access/AccessControl.sol // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @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 AccessControl is Context, IAccessControl, ERC165 { 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(IAccessControl).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 ", Strings.toHexString(account), " is missing role ", Strings.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()); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/token/ERC1155/IERC1155Receiver.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/token/ERC1155/IERC1155.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/token/ERC1155/ERC1155.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner or approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner or approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @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, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non-ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/token/ERC1155/extensions/ERC1155Supply.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 supply = _totalSupply[id]; require(supply >= amount, "ERC1155: burn amount exceeds totalSupply"); unchecked { _totalSupply[id] = supply - amount; } } } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/token/ERC1155/extensions/ERC1155URIStorage.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155URIStorage.sol) pragma solidity ^0.8.0; /** * @dev ERC1155 token with storage based token URI management. * Inspired by the ERC721URIStorage extension * * _Available since v4.6._ */ abstract contract ERC1155URIStorage is ERC1155 { using Strings for uint256; // Optional base URI string private _baseURI = ""; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the concatenation of the `_baseURI` * and the token-specific uri if the latter is set * * This enables the following behaviors: * * - if `_tokenURIs[tokenId]` is set, then the result is the concatenation * of `_baseURI` and `_tokenURIs[tokenId]` (keep in mind that `_baseURI` * is empty per default); * * - if `_tokenURIs[tokenId]` is NOT set then we fallback to `super.uri()` * which in most cases will contain `ERC1155._uri`; * * - if `_tokenURIs[tokenId]` is NOT set, and if the parents do not have a * uri value set, then the result is empty. */ function uri(uint256 tokenId) public view virtual override returns (string memory) { string memory tokenURI = _tokenURIs[tokenId]; // If token URI is set, concatenate base URI and tokenURI (via abi.encodePacked). return bytes(tokenURI).length > 0 ? string(abi.encodePacked(_baseURI, tokenURI)) : super.uri(tokenId); } /** * @dev Sets `tokenURI` as the tokenURI of `tokenId`. */ function _setURI(uint256 tokenId, string memory tokenURI) internal virtual { _tokenURIs[tokenId] = tokenURI; emit URI(uri(tokenId), tokenId); } /** * @dev Sets `baseURI` as the `_baseURI` for all tokens */ function _setBaseURI(string memory baseURI) internal virtual { _baseURI = baseURI; } } // File: IRubyscore_Achievement.sol pragma solidity 0.8.19; /** * @title IRubyscore_Achievement * @dev IRubyscore_Achievement is an interface for Rubyscore_Achievement contract */ interface IRubyscore_Achievement is IERC1155 { struct MintParams { address userAddress; // Address of the buyer. uint256 userNonce; // Nonce associated with the user's address for preventing replay attacks. uint256[] nftIds; // ids of NFTs to mint } /** * @notice Emitted when the base URI for token metadata is updated. * @param newBaseURI The new base URI that will be used to construct token metadata URIs. * @dev This event is triggered when the contract operator updates the base URI * for retrieving metadata associated with tokens. The 'newBaseURI' parameter represents * the updated base URI. */ event BaseURISet(string indexed newBaseURI); /** * @notice Emitted when NFTs are minted for a user. * @param userAddress The address of the user receiving the NFTs. * @param userNonce The user's nonce used to prevent replay attacks. * @param nftIds An array of NFT IDs that were minted. * @dev This event is emitted when new NFTs are created and assigned to a user. * @dev It includes the user's address, nonce, and the IDs of the minted NFTs for transparency. */ event Minted(address indexed userAddress, uint256 indexed userNonce, uint256[] nftIds); /** * @notice Emitted when the URI for a specific token is updated. * @param tokenId The ID of the token for which the URI is updated. * @param newTokenURI The new URI assigned to the token. * @dev This event is emitted when the URI for a token is modified, providing transparency * when metadata URIs are changed for specific tokens. */ event TokenURISet(uint256 indexed tokenId, string indexed newTokenURI); /** * @notice Emitted when the transfer lock status for a token is updated. * @param tokenId The ID of the token for which the transfer lock status changes. * @param lock The new transfer lock status (true for locked, false for unlocked). * @dev This event is emitted when the transfer lock status of a specific token is modified. * @dev It provides transparency regarding whether a token can be transferred or not. */ event TokenUnlockSet(uint256 indexed tokenId, bool indexed lock); /** * @notice Emitted when the price for a token mint is updated. * @param newPrice The new price for mint. * @dev This event is emitted when the price for mint a token is modified. */ event PriceUpdated(uint256 newPrice); /** * @notice Get token name. * @return Token name. */ function name() external view returns (string memory); /** * @notice Get token symbol. * @return Token symbol. */ function symbol() external view returns (string memory); /** * @notice Get the URI of a token. * @param tokenId The ID of the token. * @return The URI of the token. */ function uri(uint256 tokenId) external view returns (string memory); /** * @notice Get the transfer status of a token. * @param tokenId The ID of the token. * @return Whether the token's transfer is unlocked (true) or restricted (false). */ function getTransferStatus(uint256 tokenId) external view returns (bool); /** * @notice Get the user's nonce associated with their address. * @param userAddress The address of the user. * @return The user's nonce. */ function getUserNonce(address userAddress) external view returns (uint256); /** * @notice Get the token URI for a given tokenId. * @param tokenId The ID of the token. * @return The URI of the token. * @dev Diblicate for uri() method */ function tokenURI(uint256 tokenId) external view returns (string memory); /** * @notice Set the URI for a token. * @param tokenId The ID of the token. * @param newTokenURI The new URI to set for the token. * @dev Requires the MINTER_ROLE. */ function setTokenURI(uint256 tokenId, string memory newTokenURI) external; /** * @notice Set the URIs for multiple tokens in a batch. * @param tokenIds An array of token IDs to set URIs for. * @param newTokenURIs An array of new URIs to set for the tokens. * @dev Requires the MINTER_ROLE. * @dev Requires that the tokenIds and newTokenURIs arrays have the same length. */ function setBatchTokenURI(uint256[] calldata tokenIds, string[] calldata newTokenURIs) external; /** * @notice Set the base URI for all tokens. * @param newBaseURI The new base URI to set. * @dev Requires the OPERATOR_ROLE. */ function setBaseURI(string memory newBaseURI) external; /** * @notice Safely mints NFTs for a user based on provided parameters and a valid minter signature. * @param mintParams The struct containing user address, user nonce, and NFT IDs to mint. * @param operatorSignature The ECDSA signature of the data, validating the operator's role. * @dev This function safely mints NFTs for a user while ensuring the validity of the operator's signature. * @dev It requires that the provided NFT IDs are valid and that the operator has the MINTER_ROLE. * @dev User nonces are used to prevent replay attacks. * @dev Multiple NFTs can be minted in a batch or a single NFT can be minted based on the number of NFT IDs provided. * @dev Emits the 'Minted' event to indicate the successful minting of NFTs. */ function safeMint(MintParams memory mintParams, bytes calldata operatorSignature) external payable; event Withdrawed(uint256 amount); /** * @notice Sets the transfer lock status for a specific token ID. * @param tokenId The ID of the token to set the transfer lock status for. * @param lock The boolean value to determine whether transfers of this token are locked or unlocked. * @dev This function can only be called by an operator with the OPERATOR_ROLE. * @dev It allows operators to control the transferability of specific tokens. * @dev Emits the 'tokenUnlockSet' event to indicate the change in transfer lock status. */ function setTransferUnlock(uint256 tokenId, bool lock) external; /** * @notice Check if a given interface is supported by this contract. * @param interfaceId The interface identifier to check for support. * @return Whether the contract supports the specified interface. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: Rubyscore_Achievement.sol pragma solidity 0.8.19; /** * @title Rubyscore_Achievement * @dev An ERC1155 token contract for minting and managing achievements with URI support. * @dev Rubyscore_Achievement can be minted by users with the MINTER_ROLE after proper authorization. * @dev Rubyscore_Achievement can have their URIs set by operators with the MINTER_ROLE. * @dev Rubyscore_Achievement can be safely transferred with restrictions on certain tokens. */ contract Rubyscore_Achievement is ERC1155, EIP712, AccessControl, ERC1155Supply, ERC1155URIStorage, ReentrancyGuard, IRubyscore_Achievement { bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE"); bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); string public constant NAME = "Rubyscore_Achievement"; string public constant VERSION = "0.0.1"; uint256 private price; string public name; string public symbol; mapping(uint256 => bool) private transferUnlock; mapping(address => uint256) private userNonce; /** * @dev See {IRubyscore_Achievement} */ function supportsInterface( bytes4 interfaceId ) public view override(ERC1155, AccessControl, IRubyscore_Achievement) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {IRubyscore_Achievement} */ function uri( uint256 tokenId ) public view override(ERC1155, ERC1155URIStorage, IRubyscore_Achievement) returns (string memory) { return super.uri(tokenId); } /** * @dev See {IRubyscore_Achievement} */ function getTransferStatus(uint256 tokenId) external view returns (bool) { return transferUnlock[tokenId]; } /** * @dev See {IRubyscore_Achievement} */ function getPrice() external view returns (uint256) { return price; } /** * @dev See {IRubyscore_Achievement} */ function getUserNonce(address userAddress) external view returns (uint256) { return userNonce[userAddress]; } /** * @dev See {IRubyscore_Achievement} */ function tokenURI(uint256 tokenId) public view returns (string memory) { return uri(tokenId); } //TODO: use ERC1155("https://xproject.api/achivments/") like error URI and set new for ERC1155URIStorage /** * @notice Constructor for the Rubyscore_Achievement contract. * @dev Initializes the contract with roles and settings. * @param admin The address of the admin role, which has overall control. * @param operator The address of the operator role, responsible for unlock tokens and set base URI. * @param minter The address of the minter role, authorized to mint achievements and responsible for setting token URIs. * @param baseURI The base URI for token metadata. * @dev It sets the base URI for token metadata to the provided `baseURI`. * @dev It grants the DEFAULT_ADMIN_ROLE, OPERATOR_ROLE, and MINTER_ROLE to the specified addresses. * @dev It also initializes the contract with EIP712 support and ERC1155 functionality. */ constructor( address admin, address operator, address minter, string memory baseURI, string memory _name, string memory _symbol ) ERC1155("ipfs://") EIP712(NAME, VERSION) { require(admin != address(0), "Zero address check"); require(operator != address(0), "Zero address check"); require(minter != address(0), "Zero address check"); name = _name; symbol = _symbol; _grantRole(DEFAULT_ADMIN_ROLE, admin); _grantRole(OPERATOR_ROLE, msg.sender); _grantRole(OPERATOR_ROLE, operator); _grantRole(MINTER_ROLE, minter); _setBaseURI(baseURI); } /** * @dev See {IRubyscore_Achievement} */ function setTokenURI(uint256 tokenId, string memory newTokenURI) public onlyRole(MINTER_ROLE) { super._setURI(tokenId, newTokenURI); emit TokenURISet(tokenId, newTokenURI); } /** * @dev See {IRubyscore_Achievement} */ function setBatchTokenURI( uint256[] calldata tokenIds, string[] calldata newTokenURIs ) external onlyRole(MINTER_ROLE) { require(tokenIds.length == newTokenURIs.length, "Invalid params"); for (uint256 i = 0; i < tokenIds.length; i++) { setTokenURI(tokenIds[i], newTokenURIs[i]); } } /** * @dev See {IRubyscore_Achievement} */ function setBaseURI(string memory newBaseURI) external onlyRole(OPERATOR_ROLE) { super._setBaseURI(newBaseURI); emit BaseURISet(newBaseURI); } /** * @dev See {IRubyscore_Achievement} */ function setPrice(uint256 newPrice) external onlyRole(OPERATOR_ROLE) { price = newPrice; emit PriceUpdated(newPrice); } /** * @dev See {IRubyscore_Achievement} */ function safeMint(MintParams memory mintParams, bytes calldata operatorSignature) external payable nonReentrant { require(mintParams.nftIds.length >= 1, "Invalid NFT ids"); require(msg.value == price, "Wrong payment amount"); bytes32 digest = _hashTypedDataV4( keccak256( abi.encode( keccak256("MintParams(address userAddress,uint256 userNonce,uint256[] nftIds)"), msg.sender, userNonce[msg.sender], keccak256(abi.encodePacked(mintParams.nftIds)) ) ) ); _checkRole(MINTER_ROLE, ECDSA.recover(digest, operatorSignature)); userNonce[mintParams.userAddress] += 1; if (mintParams.nftIds.length > 1) _mintBatch(mintParams.userAddress, mintParams.nftIds, ""); else _mint(mintParams.userAddress, mintParams.nftIds[0], ""); emit Minted(mintParams.userAddress, mintParams.userNonce, mintParams.nftIds); } /** * @dev See {IRubyscore_Achievement} */ function setTransferUnlock(uint256 tokenId, bool lock) external onlyRole(OPERATOR_ROLE) { transferUnlock[tokenId] = lock; emit TokenUnlockSet(tokenId, lock); } /** * @dev See {IRubyscore_Achievement} */ function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 amount = address(this).balance; require(amount > 0, "Zero amount to withdraw"); (bool sent, ) = payable(msg.sender).call{value: amount}(""); require(sent, "Failed to send Ether"); emit Withdrawed(amount); } /** * @dev See {IRubyscore_Achievement} */ function _mint(address to, uint256 id, bytes memory data) internal { require(balanceOf(to, id) == 0, "You already have this achievement"); super._mint(to, id, 1, data); } /** * @notice Internal function to safely mint multiple NFTs in a batch for a specified recipient. * @param to The address of the recipient to mint the NFTs for. * @param ids An array of NFT IDs to mint. * @param data Additional data to include in the minting transaction. * @dev This function checks if the recipient already owns any of the specified NFTs to prevent duplicates. * @dev It is intended for batch minting operations where multiple NFTs can be minted at once. */ function _mintBatch(address to, uint256[] memory ids, bytes memory data) internal { uint256[] memory amounts = new uint256[](ids.length); for (uint8 i = 0; i < ids.length; i++) { require(balanceOf(to, ids[i]) == 0, "You already have this achievement"); // TODO: custom error with problem token id amounts[i] = 1; } super._mintBatch(to, ids, amounts, data); } /** * @notice Internal function that is called before the transfer of tokens. * @param operator The address that initiates or approves the transfer. * @param from The address from which the tokens are being transferred. * @param to The address to which the tokens are being transferred. * @param ids An array of token IDs to be transferred. * @param amounts An array of token amounts corresponding to the IDs to be transferred. * @param data Additional data to include in the transfer. * @dev This function enforces transfer restrictions based on the 'transferUnlock' status of individual tokens. * @dev If a token has its transfer locked and the 'from' address is not zero (indicating a user-to-contract transfer), * it will revert to prevent unauthorized transfers. * @dev It then delegates the transfer logic to the parent contracts 'ERC1155' and 'ERC1155Supply'. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal override(ERC1155, ERC1155Supply) { for (uint256 i = 0; i < ids.length; i++) { if (!transferUnlock[ids[i]] && from != address(0)) revert("This token only for you"); } super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"BaseURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"userNonce","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"nftIds","type":"uint256[]"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"PriceUpdated","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"string","name":"newTokenURI","type":"string"}],"name":"TokenURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"lock","type":"bool"}],"name":"TokenUnlockSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawed","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":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"getTransferStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"getUserNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"uint256","name":"userNonce","type":"uint256"},{"internalType":"uint256[]","name":"nftIds","type":"uint256[]"}],"internalType":"struct IRubyscore_Achievement.MintParams","name":"mintParams","type":"tuple"},{"internalType":"bytes","name":"operatorSignature","type":"bytes"}],"name":"safeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"newTokenURIs","type":"string[]"}],"name":"setBatchTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newTokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"lock","type":"bool"}],"name":"setTransferUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61016060405260006101409081526005906200001c908262000461565b503480156200002a57600080fd5b5060405162003c7638038062003c768339810160408190526200004d91620005f9565b6040518060400160405280601581526020017f5275627973636f72655f416368696576656d656e74000000000000000000000081525060405180604001604052806005815260200164302e302e3160d81b81525060405180604001604052806007815260200166697066733a2f2f60c81b815250620000d281620002f860201b60201c565b50815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c052610120525050600160075550506001600160a01b038616620001ba5760405162461bcd60e51b81526020600482015260126024820152715a65726f206164647265737320636865636b60701b60448201526064015b60405180910390fd5b6001600160a01b038516620002075760405162461bcd60e51b81526020600482015260126024820152715a65726f206164647265737320636865636b60701b6044820152606401620001b1565b6001600160a01b038416620002545760405162461bcd60e51b81526020600482015260126024820152715a65726f206164647265737320636865636b60701b6044820152606401620001b1565b600962000262838262000461565b50600a62000271828262000461565b506200027f6000876200030a565b6200029a60008051602062003c56833981519152336200030a565b620002b560008051602062003c56833981519152866200030a565b620002e17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6856200030a565b620002ec83620003ae565b505050505050620006c2565b600262000306828262000461565b5050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff16620003065760008281526003602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200036a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600562000306828262000461565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003e757607f821691505b6020821081036200040857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200045c57600081815260208120601f850160051c81016020861015620004375750805b601f850160051c820191505b81811015620004585782815560010162000443565b5050505b505050565b81516001600160401b038111156200047d576200047d620003bc565b62000495816200048e8454620003d2565b846200040e565b602080601f831160018114620004cd5760008415620004b45750858301515b600019600386901b1c1916600185901b17855562000458565b600085815260208120601f198616915b82811015620004fe57888601518255948401946001909101908401620004dd565b50858210156200051d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b03811681146200054557600080fd5b919050565b600082601f8301126200055c57600080fd5b81516001600160401b0380821115620005795762000579620003bc565b604051601f8301601f19908116603f01168101908282118183101715620005a457620005a4620003bc565b81604052838152602092508683858801011115620005c157600080fd5b600091505b83821015620005e55785820183015181830184015290820190620005c6565b600093810190920192909252949350505050565b60008060008060008060c087890312156200061357600080fd5b6200061e876200052d565b95506200062e602088016200052d565b94506200063e604088016200052d565b60608801519094506001600160401b03808211156200065c57600080fd5b6200066a8a838b016200054a565b945060808901519150808211156200068157600080fd5b6200068f8a838b016200054a565b935060a0890151915080821115620006a657600080fd5b50620006b589828a016200054a565b9150509295509295509295565b60805160a05160c05160e0516101005161012051613544620007126000396000611cf301526000611d4201526000611d1d01526000611c7601526000611ca001526000611cca01526135446000f3fe6080604052600436106101ed5760003560e01c806391d148541161010d578063ba772d8b116100a0578063d547741f1161006f578063d547741f146105e2578063e985e9c514610602578063f242432a1461064b578063f5b541a61461066b578063ffa1ad741461068d57600080fd5b8063ba772d8b14610553578063bd85b03914610573578063c87b56dd146105a0578063d5391393146105c057600080fd5b8063a217fddf116100dc578063a217fddf146104ad578063a22cb465146104c2578063a3f4df7e146104e2578063b93c37701461052357600080fd5b806391d148541461044357806395d89b411461046357806398d5fdca146104785780639b3e55731461048d57600080fd5b806336568abe1161018557806355f804b31161015457806355f804b3146103ba5780636834e3a8146103da5780637c2ccc451461041057806391b7f5ed1461042357600080fd5b806336568abe146103295780633ccfd60b146103495780634e1273f41461035e5780634f558e791461038b57600080fd5b8063162094c4116101c1578063162094c414610297578063248a9ca3146102b95780632eb2c2d6146102e95780632f2ff15d1461030957600080fd5b8062fdd58e146101f257806301ffc9a71461022557806306fdde03146102555780630e89341c14610277575b600080fd5b3480156101fe57600080fd5b5061021261020d366004612668565b6106be565b6040519081526020015b60405180910390f35b34801561023157600080fd5b506102456102403660046126a8565b610757565b604051901515815260200161021c565b34801561026157600080fd5b5061026a610762565b60405161021c9190612715565b34801561028357600080fd5b5061026a610292366004612728565b6107f0565b3480156102a357600080fd5b506102b76102b236600461281b565b6107fb565b005b3480156102c557600080fd5b506102126102d4366004612728565b60009081526003602052604090206001015490565b3480156102f557600080fd5b506102b76103043660046128f5565b610862565b34801561031557600080fd5b506102b761032436600461299e565b6108ae565b34801561033557600080fd5b506102b761034436600461299e565b6108d8565b34801561035557600080fd5b506102b7610956565b34801561036a57600080fd5b5061037e6103793660046129ca565b610a76565b60405161021c9190612ac5565b34801561039757600080fd5b506102456103a6366004612728565b600090815260046020526040902054151590565b3480156103c657600080fd5b506102b76103d5366004612ad8565b610b9f565b3480156103e657600080fd5b506102126103f5366004612b14565b6001600160a01b03166000908152600c602052604090205490565b6102b761041e366004612b70565b610c02565b34801561042f57600080fd5b506102b761043e366004612728565b610eb1565b34801561044f57600080fd5b5061024561045e36600461299e565b610f05565b34801561046f57600080fd5b5061026a610f30565b34801561048457600080fd5b50600854610212565b34801561049957600080fd5b506102b76104a8366004612c35565b610f3d565b3480156104b957600080fd5b50610212600081565b3480156104ce57600080fd5b506102b76104dd366004612c58565b610fa2565b3480156104ee57600080fd5b5061026a60405180604001604052806015815260200174149d589e5cd8dbdc9957d058da1a595d995b595b9d605a1b81525081565b34801561052f57600080fd5b5061024561053e366004612728565b6000908152600b602052604090205460ff1690565b34801561055f57600080fd5b506102b761056e366004612cc6565b610fad565b34801561057f57600080fd5b5061021261058e366004612728565b60009081526004602052604090205490565b3480156105ac57600080fd5b5061026a6105bb366004612728565b6110a4565b3480156105cc57600080fd5b506102126000805160206134ef83398151915281565b3480156105ee57600080fd5b506102b76105fd36600461299e565b6110af565b34801561060e57600080fd5b5061024561061d366004612d31565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561065757600080fd5b506102b7610666366004612d5b565b6110d4565b34801561067757600080fd5b506102126000805160206134cf83398151915281565b34801561069957600080fd5b5061026a60405180604001604052806005815260200164302e302e3160d81b81525081565b60006001600160a01b03831661072e5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061075182611119565b6009805461076f90612dbf565b80601f016020809104026020016040519081016040528092919081815260200182805461079b90612dbf565b80156107e85780601f106107bd576101008083540402835291602001916107e8565b820191906000526020600020905b8154815290600101906020018083116107cb57829003601f168201915b505050505081565b60606107518261113e565b6000805160206134ef8339815191526108138161121e565b61081d838361122b565b8160405161082b9190612df9565b6040519081900381209084907fda84ca2183491f179a603e877b2cb058e42195041c2b9c53d746427e519a34df90600090a3505050565b6001600160a01b03851633148061087e575061087e853361061d565b61089a5760405162461bcd60e51b815260040161072590612e15565b6108a78585858585611288565b5050505050565b6000828152600360205260409020600101546108c98161121e565b6108d3838361142a565b505050565b6001600160a01b03811633146109485760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610725565b61095282826114b0565b5050565b60006109618161121e565b47806109af5760405162461bcd60e51b815260206004820152601760248201527f5a65726f20616d6f756e7420746f2077697468647261770000000000000000006044820152606401610725565b604051600090339083908381818185875af1925050503d80600081146109f1576040519150601f19603f3d011682016040523d82523d6000602084013e6109f6565b606091505b5050905080610a3e5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610725565b6040518281527f11e9d9f7a772129e26cb0560945658c96b41c42ac6712d233e20c894bfcd00fd9060200160405180910390a1505050565b60608151835114610adb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610725565b600083516001600160401b03811115610af657610af6612741565b604051908082528060200260200182016040528015610b1f578160200160208202803683370190505b50905060005b8451811015610b9757610b6a858281518110610b4357610b43612e63565b6020026020010151858381518110610b5d57610b5d612e63565b60200260200101516106be565b828281518110610b7c57610b7c612e63565b6020908102919091010152610b9081612e8f565b9050610b25565b509392505050565b6000805160206134cf833981519152610bb78161121e565b610bc082611517565b81604051610bce9190612df9565b604051908190038120907ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f690600090a25050565b610c0a611523565b60018360400151511015610c525760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964204e46542069647360881b6044820152606401610725565b6008543414610c9a5760405162461bcd60e51b815260206004820152601460248201527315dc9bdb99c81c185e5b595b9d08185b5bdd5b9d60621b6044820152606401610725565b6000610d5f7f66fe4d8b6c8e0542c70e2a244bf04681bb936b001f1be0f079a80e77158a847433600c6000336001600160a01b03166001600160a01b03168152602001908152602001600020548760400151604051602001610cfc9190612ea8565b60405160208183030381529060405280519060200120604051602001610d4494939291909384526001600160a01b039290921660208401526040830152606082015260800190565b6040516020818303038152906040528051906020012061157c565b9050610db86000805160206134ef833981519152610db38386868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115ca92505050565b6115e6565b83516001600160a01b03166000908152600c60205260408120805460019290610de2908490612ede565b909155505060408401515160011015610e1c57610e17846000015185604001516040518060200160405280600081525061163f565b610e58565b610e5884600001518560400151600081518110610e3b57610e3b612e63565b602002602001015160405180602001604052806000815250611712565b836020015184600001516001600160a01b03167fff0a1dc048ef1a5e9e2845c6bb6cafd8b8531f3cb15368f4a708dec7d7bc789f8660400151604051610e9e9190612ac5565b60405180910390a3506108d36001600755565b6000805160206134cf833981519152610ec98161121e565b60088290556040518281527f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe09060200160405180910390a15050565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600a805461076f90612dbf565b6000805160206134cf833981519152610f558161121e565b6000838152600b6020526040808220805460ff19168515159081179091559051909185917f784afb92b74f2c9ccd3cb1b9697580a90fadab59d6640bbb915d1637bfbbf0089190a3505050565b610952338383611746565b6000805160206134ef833981519152610fc58161121e565b8382146110055760405162461bcd60e51b815260206004820152600e60248201526d496e76616c696420706172616d7360901b6044820152606401610725565b60005b8481101561109c5761108a86868381811061102557611025612e63565b9050602002013585858481811061103e5761103e612e63565b90506020028101906110509190612ef1565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107fb92505050565b8061109481612e8f565b915050611008565b505050505050565b6060610751826107f0565b6000828152600360205260409020600101546110ca8161121e565b6108d383836114b0565b6001600160a01b0385163314806110f057506110f0853361061d565b61110c5760405162461bcd60e51b815260040161072590612e15565b6108a78585858585611826565b60006001600160e01b03198216637965db0b60e01b148061075157506107518261195e565b60008181526006602052604081208054606092919061115c90612dbf565b80601f016020809104026020016040519081016040528092919081815260200182805461118890612dbf565b80156111d55780601f106111aa576101008083540402835291602001916111d5565b820191906000526020600020905b8154815290600101906020018083116111b857829003601f168201915b5050505050905060008151116111f3576111ee836119ae565b611217565b600581604051602001611207929190612f37565b6040516020818303038152906040525b9392505050565b61122881336115e6565b50565b60008281526006602052604090206112438282613004565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61126f846107f0565b60405161127c9190612715565b60405180910390a25050565b81518351146112a95760405162461bcd60e51b8152600401610725906130c3565b6001600160a01b0384166112cf5760405162461bcd60e51b81526004016107259061310b565b336112de818787878787611a42565b60005b84518110156113c45760008582815181106112fe576112fe612e63565b60200260200101519050600085838151811061131c5761131c612e63565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561136c5760405162461bcd60e51b815260040161072590613150565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906113a9908490612ede565b92505081905550505050806113bd90612e8f565b90506112e1565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161141492919061319a565b60405180910390a461109c818787878787611b05565b6114348282610f05565b6109525760008281526003602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561146c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6114ba8282610f05565b156109525760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60056109528282613004565b6002600754036115755760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610725565b6002600755565b6000610751611589611c69565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006115d98585611d93565b91509150610b9781611dd8565b6115f08282610f05565b610952576115fd81611f22565b611608836020611f34565b6040516020016116199291906131c8565b60408051601f198184030181529082905262461bcd60e51b825261072591600401612715565b600082516001600160401b0381111561165a5761165a612741565b604051908082528060200260200182016040528015611683578160200160208202803683370190505b50905060005b83518160ff1610156116ff576116ae85858360ff1681518110610b5d57610b5d612e63565b156116cb5760405162461bcd60e51b81526004016107259061323d565b6001828260ff16815181106116e2576116e2612e63565b6020908102919091010152806116f78161327e565b915050611689565b5061170c848483856120cf565b50505050565b61171c83836106be565b156117395760405162461bcd60e51b81526004016107259061323d565b6108d38383600184612229565b816001600160a01b0316836001600160a01b0316036117b95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610725565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661184c5760405162461bcd60e51b81526004016107259061310b565b33600061185885612309565b9050600061186585612309565b9050611875838989858589611a42565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156118b65760405162461bcd60e51b815260040161072590613150565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906118f3908490612ede565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611953848a8a8a8a8a612354565b505050505050505050565b60006001600160e01b03198216636cdb3d1360e11b148061198f57506001600160e01b031982166303a24d0760e21b145b8061075157506301ffc9a760e01b6001600160e01b0319831614610751565b6060600280546119bd90612dbf565b80601f01602080910402602001604051908101604052809291908181526020018280546119e990612dbf565b8015611a365780601f10611a0b57610100808354040283529160200191611a36565b820191906000526020600020905b815481529060010190602001808311611a1957829003601f168201915b50505050509050919050565b60005b8351811015611af657600b6000858381518110611a6457611a64612e63565b60209081029190910181015182528101919091526040016000205460ff16158015611a9757506001600160a01b03861615155b15611ae45760405162461bcd60e51b815260206004820152601760248201527f5468697320746f6b656e206f6e6c7920666f7220796f750000000000000000006044820152606401610725565b80611aee81612e8f565b915050611a45565b5061109c86868686868661240f565b6001600160a01b0384163b1561109c5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611b49908990899088908890889060040161329d565b6020604051808303816000875af1925050508015611b84575060408051601f3d908101601f19168201909252611b81918101906132fb565b60015b611c3057611b90613318565b806308c379a003611bc95750611ba4613333565b80611baf5750611bcb565b8060405162461bcd60e51b81526004016107259190612715565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610725565b6001600160e01b0319811663bc197c8160e01b14611c605760405162461bcd60e51b8152600401610725906133bc565b50505050505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611cc257507f000000000000000000000000000000000000000000000000000000000000000046145b15611cec57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b90565b6000808251604103611dc95760208301516040840151606085015160001a611dbd87828585612588565b94509450505050611dd1565b506000905060025b9250929050565b6000816004811115611dec57611dec613404565b03611df45750565b6001816004811115611e0857611e08613404565b03611e555760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610725565b6002816004811115611e6957611e69613404565b03611eb65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610725565b6003816004811115611eca57611eca613404565b036112285760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610725565b60606107516001600160a01b03831660145b60606000611f4383600261341a565b611f4e906002612ede565b6001600160401b03811115611f6557611f65612741565b6040519080825280601f01601f191660200182016040528015611f8f576020820181803683370190505b509050600360fc1b81600081518110611faa57611faa612e63565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611fd957611fd9612e63565b60200101906001600160f81b031916908160001a9053506000611ffd84600261341a565b612008906001612ede565b90505b6001811115612080576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061203c5761203c612e63565b1a60f81b82828151811061205257612052612e63565b60200101906001600160f81b031916908160001a90535060049490941c9361207981613431565b905061200b565b5083156112175760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610725565b6001600160a01b0384166120f55760405162461bcd60e51b815260040161072590613448565b81518351146121165760405162461bcd60e51b8152600401610725906130c3565b3361212681600087878787611a42565b60005b84518110156121c15783818151811061214457612144612e63565b602002602001015160008087848151811061216157612161612e63565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546121a99190612ede565b909155508190506121b981612e8f565b915050612129565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161221292919061319a565b60405180910390a46108a781600087878787611b05565b6001600160a01b03841661224f5760405162461bcd60e51b815260040161072590613448565b33600061225b85612309565b9050600061226885612309565b905061227983600089858589611a42565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906122a9908490612ede565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611c6083600089898989612354565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061234357612343612e63565b602090810291909101015292915050565b6001600160a01b0384163b1561109c5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906123989089908990889088908890600401613489565b6020604051808303816000875af19250505080156123d3575060408051601f3d908101601f191682019092526123d0918101906132fb565b60015b6123df57611b90613318565b6001600160e01b0319811663f23a6e6160e01b14611c605760405162461bcd60e51b8152600401610725906133bc565b6001600160a01b0385166124965760005b83518110156124945782818151811061243b5761243b612e63565b60200260200101516004600086848151811061245957612459612e63565b60200260200101518152602001908152602001600020600082825461247e9190612ede565b9091555061248d905081612e8f565b9050612420565b505b6001600160a01b03841661109c5760005b8351811015611c605760008482815181106124c4576124c4612e63565b6020026020010151905060008483815181106124e2576124e2612e63565b60200260200101519050600060046000848152602001908152602001600020549050818110156125655760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610725565b6000928352600460205260409092209103905561258181612e8f565b90506124a7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156125bf5750600090506003612643565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612613573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661263c57600060019250925050612643565b9150600090505b94509492505050565b80356001600160a01b038116811461266357600080fd5b919050565b6000806040838503121561267b57600080fd5b6126848361264c565b946020939093013593505050565b6001600160e01b03198116811461122857600080fd5b6000602082840312156126ba57600080fd5b813561121781612692565b60005b838110156126e05781810151838201526020016126c8565b50506000910152565b600081518084526127018160208601602086016126c5565b601f01601f19169290920160200192915050565b60208152600061121760208301846126e9565b60006020828403121561273a57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b606081018181106001600160401b038211171561277657612776612741565b60405250565b601f8201601f191681016001600160401b03811182821017156127a1576127a1612741565b6040525050565b600082601f8301126127b957600080fd5b81356001600160401b038111156127d2576127d2612741565b6040516127e9601f8301601f19166020018261277c565b8181528460208386010111156127fe57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561282e57600080fd5b8235915060208301356001600160401b0381111561284b57600080fd5b612857858286016127a8565b9150509250929050565b60006001600160401b0382111561287a5761287a612741565b5060051b60200190565b600082601f83011261289557600080fd5b813560206128a282612861565b6040516128af828261277c565b83815260059390931b85018201928281019150868411156128cf57600080fd5b8286015b848110156128ea57803583529183019183016128d3565b509695505050505050565b600080600080600060a0868803121561290d57600080fd5b6129168661264c565b94506129246020870161264c565b935060408601356001600160401b038082111561294057600080fd5b61294c89838a01612884565b9450606088013591508082111561296257600080fd5b61296e89838a01612884565b9350608088013591508082111561298457600080fd5b50612991888289016127a8565b9150509295509295909350565b600080604083850312156129b157600080fd5b823591506129c16020840161264c565b90509250929050565b600080604083850312156129dd57600080fd5b82356001600160401b03808211156129f457600080fd5b818501915085601f830112612a0857600080fd5b81356020612a1582612861565b604051612a22828261277c565b83815260059390931b8501820192828101915089841115612a4257600080fd5b948201945b83861015612a6757612a588661264c565b82529482019490820190612a47565b96505086013592505080821115612a7d57600080fd5b5061285785828601612884565b600081518084526020808501945080840160005b83811015612aba57815187529582019590820190600101612a9e565b509495945050505050565b6020815260006112176020830184612a8a565b600060208284031215612aea57600080fd5b81356001600160401b03811115612b0057600080fd5b612b0c848285016127a8565b949350505050565b600060208284031215612b2657600080fd5b6112178261264c565b60008083601f840112612b4157600080fd5b5081356001600160401b03811115612b5857600080fd5b602083019150836020828501011115611dd157600080fd5b600080600060408486031215612b8557600080fd5b83356001600160401b0380821115612b9c57600080fd5b9085019060608288031215612bb057600080fd5b604051612bbc81612757565b612bc58361264c565b815260208301356020820152604083013582811115612be357600080fd5b612bef89828601612884565b60408301525094506020860135915080821115612c0b57600080fd5b50612c1886828701612b2f565b9497909650939450505050565b8035801515811461266357600080fd5b60008060408385031215612c4857600080fd5b823591506129c160208401612c25565b60008060408385031215612c6b57600080fd5b612c748361264c565b91506129c160208401612c25565b60008083601f840112612c9457600080fd5b5081356001600160401b03811115612cab57600080fd5b6020830191508360208260051b8501011115611dd157600080fd5b60008060008060408587031215612cdc57600080fd5b84356001600160401b0380821115612cf357600080fd5b612cff88838901612c82565b90965094506020870135915080821115612d1857600080fd5b50612d2587828801612c82565b95989497509550505050565b60008060408385031215612d4457600080fd5b612d4d8361264c565b91506129c16020840161264c565b600080600080600060a08688031215612d7357600080fd5b612d7c8661264c565b9450612d8a6020870161264c565b9350604086013592506060860135915060808601356001600160401b03811115612db357600080fd5b612991888289016127a8565b600181811c90821680612dd357607f821691505b602082108103612df357634e487b7160e01b600052602260045260246000fd5b50919050565b60008251612e0b8184602087016126c5565b9190910192915050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612ea157612ea1612e79565b5060010190565b815160009082906020808601845b83811015612ed257815185529382019390820190600101612eb6565b50929695505050505050565b8082018082111561075157610751612e79565b6000808335601e19843603018112612f0857600080fd5b8301803591506001600160401b03821115612f2257600080fd5b602001915036819003821315611dd157600080fd5b6000808454612f4581612dbf565b60018281168015612f5d5760018114612f7257612fa1565b60ff1984168752821515830287019450612fa1565b8860005260208060002060005b85811015612f985781548a820152908401908201612f7f565b50505082870194505b505050508351612fb58183602088016126c5565b01949350505050565b601f8211156108d357600081815260208120601f850160051c81016020861015612fe55750805b601f850160051c820191505b8181101561109c57828155600101612ff1565b81516001600160401b0381111561301d5761301d612741565b6130318161302b8454612dbf565b84612fbe565b602080601f831160018114613066576000841561304e5750858301515b600019600386901b1c1916600185901b17855561109c565b600085815260208120601f198616915b8281101561309557888601518255948401946001909101908401613076565b50858210156130b35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006131ad6040830185612a8a565b82810360208401526131bf8185612a8a565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516132008160178501602088016126c5565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516132318160288401602088016126c5565b01602801949350505050565b60208082526021908201527f596f7520616c72656164792068617665207468697320616368696576656d656e6040820152601d60fa1b606082015260800190565b600060ff821660ff810361329457613294612e79565b60010192915050565b6001600160a01b0386811682528516602082015260a0604082018190526000906132c990830186612a8a565b82810360608401526132db8186612a8a565b905082810360808401526132ef81856126e9565b98975050505050505050565b60006020828403121561330d57600080fd5b815161121781612692565b600060033d1115611d905760046000803e5060005160e01c90565b600060443d10156133415790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561337057505050505090565b82850191508151818111156133885750505050505090565b843d87010160208285010111156133a25750505050505090565b6133b16020828601018761277c565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b808202811582820484141761075157610751612e79565b60008161344057613440612e79565b506000190190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906134c3908301846126e9565b97965050505050505056fe97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9299f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212209dcc7eb8c585457186cb96e31e25414c52ec99a8d94a96adcffb6763fff4ff2d64736f6c6343000813003397667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9290000000000000000000000000d0d5ff3cfef8b7b2b1cac6b6c27fd0846c09361000000000000000000000000381c031baa5995d0cc52386508050ac947780815000000000000000000000000381c031baa5995d0cc52386508050ac94778081500000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f5275627973636f72655f7a6b45564d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f5275627973636f72655f7a6b45564d0000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101ed5760003560e01c806391d148541161010d578063ba772d8b116100a0578063d547741f1161006f578063d547741f146105e2578063e985e9c514610602578063f242432a1461064b578063f5b541a61461066b578063ffa1ad741461068d57600080fd5b8063ba772d8b14610553578063bd85b03914610573578063c87b56dd146105a0578063d5391393146105c057600080fd5b8063a217fddf116100dc578063a217fddf146104ad578063a22cb465146104c2578063a3f4df7e146104e2578063b93c37701461052357600080fd5b806391d148541461044357806395d89b411461046357806398d5fdca146104785780639b3e55731461048d57600080fd5b806336568abe1161018557806355f804b31161015457806355f804b3146103ba5780636834e3a8146103da5780637c2ccc451461041057806391b7f5ed1461042357600080fd5b806336568abe146103295780633ccfd60b146103495780634e1273f41461035e5780634f558e791461038b57600080fd5b8063162094c4116101c1578063162094c414610297578063248a9ca3146102b95780632eb2c2d6146102e95780632f2ff15d1461030957600080fd5b8062fdd58e146101f257806301ffc9a71461022557806306fdde03146102555780630e89341c14610277575b600080fd5b3480156101fe57600080fd5b5061021261020d366004612668565b6106be565b6040519081526020015b60405180910390f35b34801561023157600080fd5b506102456102403660046126a8565b610757565b604051901515815260200161021c565b34801561026157600080fd5b5061026a610762565b60405161021c9190612715565b34801561028357600080fd5b5061026a610292366004612728565b6107f0565b3480156102a357600080fd5b506102b76102b236600461281b565b6107fb565b005b3480156102c557600080fd5b506102126102d4366004612728565b60009081526003602052604090206001015490565b3480156102f557600080fd5b506102b76103043660046128f5565b610862565b34801561031557600080fd5b506102b761032436600461299e565b6108ae565b34801561033557600080fd5b506102b761034436600461299e565b6108d8565b34801561035557600080fd5b506102b7610956565b34801561036a57600080fd5b5061037e6103793660046129ca565b610a76565b60405161021c9190612ac5565b34801561039757600080fd5b506102456103a6366004612728565b600090815260046020526040902054151590565b3480156103c657600080fd5b506102b76103d5366004612ad8565b610b9f565b3480156103e657600080fd5b506102126103f5366004612b14565b6001600160a01b03166000908152600c602052604090205490565b6102b761041e366004612b70565b610c02565b34801561042f57600080fd5b506102b761043e366004612728565b610eb1565b34801561044f57600080fd5b5061024561045e36600461299e565b610f05565b34801561046f57600080fd5b5061026a610f30565b34801561048457600080fd5b50600854610212565b34801561049957600080fd5b506102b76104a8366004612c35565b610f3d565b3480156104b957600080fd5b50610212600081565b3480156104ce57600080fd5b506102b76104dd366004612c58565b610fa2565b3480156104ee57600080fd5b5061026a60405180604001604052806015815260200174149d589e5cd8dbdc9957d058da1a595d995b595b9d605a1b81525081565b34801561052f57600080fd5b5061024561053e366004612728565b6000908152600b602052604090205460ff1690565b34801561055f57600080fd5b506102b761056e366004612cc6565b610fad565b34801561057f57600080fd5b5061021261058e366004612728565b60009081526004602052604090205490565b3480156105ac57600080fd5b5061026a6105bb366004612728565b6110a4565b3480156105cc57600080fd5b506102126000805160206134ef83398151915281565b3480156105ee57600080fd5b506102b76105fd36600461299e565b6110af565b34801561060e57600080fd5b5061024561061d366004612d31565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561065757600080fd5b506102b7610666366004612d5b565b6110d4565b34801561067757600080fd5b506102126000805160206134cf83398151915281565b34801561069957600080fd5b5061026a60405180604001604052806005815260200164302e302e3160d81b81525081565b60006001600160a01b03831661072e5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061075182611119565b6009805461076f90612dbf565b80601f016020809104026020016040519081016040528092919081815260200182805461079b90612dbf565b80156107e85780601f106107bd576101008083540402835291602001916107e8565b820191906000526020600020905b8154815290600101906020018083116107cb57829003601f168201915b505050505081565b60606107518261113e565b6000805160206134ef8339815191526108138161121e565b61081d838361122b565b8160405161082b9190612df9565b6040519081900381209084907fda84ca2183491f179a603e877b2cb058e42195041c2b9c53d746427e519a34df90600090a3505050565b6001600160a01b03851633148061087e575061087e853361061d565b61089a5760405162461bcd60e51b815260040161072590612e15565b6108a78585858585611288565b5050505050565b6000828152600360205260409020600101546108c98161121e565b6108d3838361142a565b505050565b6001600160a01b03811633146109485760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610725565b61095282826114b0565b5050565b60006109618161121e565b47806109af5760405162461bcd60e51b815260206004820152601760248201527f5a65726f20616d6f756e7420746f2077697468647261770000000000000000006044820152606401610725565b604051600090339083908381818185875af1925050503d80600081146109f1576040519150601f19603f3d011682016040523d82523d6000602084013e6109f6565b606091505b5050905080610a3e5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610725565b6040518281527f11e9d9f7a772129e26cb0560945658c96b41c42ac6712d233e20c894bfcd00fd9060200160405180910390a1505050565b60608151835114610adb5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610725565b600083516001600160401b03811115610af657610af6612741565b604051908082528060200260200182016040528015610b1f578160200160208202803683370190505b50905060005b8451811015610b9757610b6a858281518110610b4357610b43612e63565b6020026020010151858381518110610b5d57610b5d612e63565b60200260200101516106be565b828281518110610b7c57610b7c612e63565b6020908102919091010152610b9081612e8f565b9050610b25565b509392505050565b6000805160206134cf833981519152610bb78161121e565b610bc082611517565b81604051610bce9190612df9565b604051908190038120907ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f690600090a25050565b610c0a611523565b60018360400151511015610c525760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964204e46542069647360881b6044820152606401610725565b6008543414610c9a5760405162461bcd60e51b815260206004820152601460248201527315dc9bdb99c81c185e5b595b9d08185b5bdd5b9d60621b6044820152606401610725565b6000610d5f7f66fe4d8b6c8e0542c70e2a244bf04681bb936b001f1be0f079a80e77158a847433600c6000336001600160a01b03166001600160a01b03168152602001908152602001600020548760400151604051602001610cfc9190612ea8565b60405160208183030381529060405280519060200120604051602001610d4494939291909384526001600160a01b039290921660208401526040830152606082015260800190565b6040516020818303038152906040528051906020012061157c565b9050610db86000805160206134ef833981519152610db38386868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115ca92505050565b6115e6565b83516001600160a01b03166000908152600c60205260408120805460019290610de2908490612ede565b909155505060408401515160011015610e1c57610e17846000015185604001516040518060200160405280600081525061163f565b610e58565b610e5884600001518560400151600081518110610e3b57610e3b612e63565b602002602001015160405180602001604052806000815250611712565b836020015184600001516001600160a01b03167fff0a1dc048ef1a5e9e2845c6bb6cafd8b8531f3cb15368f4a708dec7d7bc789f8660400151604051610e9e9190612ac5565b60405180910390a3506108d36001600755565b6000805160206134cf833981519152610ec98161121e565b60088290556040518281527f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe09060200160405180910390a15050565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600a805461076f90612dbf565b6000805160206134cf833981519152610f558161121e565b6000838152600b6020526040808220805460ff19168515159081179091559051909185917f784afb92b74f2c9ccd3cb1b9697580a90fadab59d6640bbb915d1637bfbbf0089190a3505050565b610952338383611746565b6000805160206134ef833981519152610fc58161121e565b8382146110055760405162461bcd60e51b815260206004820152600e60248201526d496e76616c696420706172616d7360901b6044820152606401610725565b60005b8481101561109c5761108a86868381811061102557611025612e63565b9050602002013585858481811061103e5761103e612e63565b90506020028101906110509190612ef1565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107fb92505050565b8061109481612e8f565b915050611008565b505050505050565b6060610751826107f0565b6000828152600360205260409020600101546110ca8161121e565b6108d383836114b0565b6001600160a01b0385163314806110f057506110f0853361061d565b61110c5760405162461bcd60e51b815260040161072590612e15565b6108a78585858585611826565b60006001600160e01b03198216637965db0b60e01b148061075157506107518261195e565b60008181526006602052604081208054606092919061115c90612dbf565b80601f016020809104026020016040519081016040528092919081815260200182805461118890612dbf565b80156111d55780601f106111aa576101008083540402835291602001916111d5565b820191906000526020600020905b8154815290600101906020018083116111b857829003601f168201915b5050505050905060008151116111f3576111ee836119ae565b611217565b600581604051602001611207929190612f37565b6040516020818303038152906040525b9392505050565b61122881336115e6565b50565b60008281526006602052604090206112438282613004565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61126f846107f0565b60405161127c9190612715565b60405180910390a25050565b81518351146112a95760405162461bcd60e51b8152600401610725906130c3565b6001600160a01b0384166112cf5760405162461bcd60e51b81526004016107259061310b565b336112de818787878787611a42565b60005b84518110156113c45760008582815181106112fe576112fe612e63565b60200260200101519050600085838151811061131c5761131c612e63565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561136c5760405162461bcd60e51b815260040161072590613150565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906113a9908490612ede565b92505081905550505050806113bd90612e8f565b90506112e1565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161141492919061319a565b60405180910390a461109c818787878787611b05565b6114348282610f05565b6109525760008281526003602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561146c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6114ba8282610f05565b156109525760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60056109528282613004565b6002600754036115755760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610725565b6002600755565b6000610751611589611c69565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006115d98585611d93565b91509150610b9781611dd8565b6115f08282610f05565b610952576115fd81611f22565b611608836020611f34565b6040516020016116199291906131c8565b60408051601f198184030181529082905262461bcd60e51b825261072591600401612715565b600082516001600160401b0381111561165a5761165a612741565b604051908082528060200260200182016040528015611683578160200160208202803683370190505b50905060005b83518160ff1610156116ff576116ae85858360ff1681518110610b5d57610b5d612e63565b156116cb5760405162461bcd60e51b81526004016107259061323d565b6001828260ff16815181106116e2576116e2612e63565b6020908102919091010152806116f78161327e565b915050611689565b5061170c848483856120cf565b50505050565b61171c83836106be565b156117395760405162461bcd60e51b81526004016107259061323d565b6108d38383600184612229565b816001600160a01b0316836001600160a01b0316036117b95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610725565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661184c5760405162461bcd60e51b81526004016107259061310b565b33600061185885612309565b9050600061186585612309565b9050611875838989858589611a42565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156118b65760405162461bcd60e51b815260040161072590613150565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906118f3908490612ede565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611953848a8a8a8a8a612354565b505050505050505050565b60006001600160e01b03198216636cdb3d1360e11b148061198f57506001600160e01b031982166303a24d0760e21b145b8061075157506301ffc9a760e01b6001600160e01b0319831614610751565b6060600280546119bd90612dbf565b80601f01602080910402602001604051908101604052809291908181526020018280546119e990612dbf565b8015611a365780601f10611a0b57610100808354040283529160200191611a36565b820191906000526020600020905b815481529060010190602001808311611a1957829003601f168201915b50505050509050919050565b60005b8351811015611af657600b6000858381518110611a6457611a64612e63565b60209081029190910181015182528101919091526040016000205460ff16158015611a9757506001600160a01b03861615155b15611ae45760405162461bcd60e51b815260206004820152601760248201527f5468697320746f6b656e206f6e6c7920666f7220796f750000000000000000006044820152606401610725565b80611aee81612e8f565b915050611a45565b5061109c86868686868661240f565b6001600160a01b0384163b1561109c5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611b49908990899088908890889060040161329d565b6020604051808303816000875af1925050508015611b84575060408051601f3d908101601f19168201909252611b81918101906132fb565b60015b611c3057611b90613318565b806308c379a003611bc95750611ba4613333565b80611baf5750611bcb565b8060405162461bcd60e51b81526004016107259190612715565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610725565b6001600160e01b0319811663bc197c8160e01b14611c605760405162461bcd60e51b8152600401610725906133bc565b50505050505050565b6000306001600160a01b037f000000000000000000000000f57cb671d50535126694ce5cc3cebe3f3279489616148015611cc257507f000000000000000000000000000000000000000000000000000000000000044d46145b15611cec57507f4b9a5ad49a0713f659b64dcd929aa14b4cf6e797d8414f46f9a90db3414415e590565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f2d2ade98d6bb8fe401ca155fda7789f3500abdfa8c04ae14de3ff34b1cd8bb25828401527fae209a0b48f21c054280f2455d32cf309387644879d9acbd8ffc19916381188560608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b90565b6000808251604103611dc95760208301516040840151606085015160001a611dbd87828585612588565b94509450505050611dd1565b506000905060025b9250929050565b6000816004811115611dec57611dec613404565b03611df45750565b6001816004811115611e0857611e08613404565b03611e555760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610725565b6002816004811115611e6957611e69613404565b03611eb65760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610725565b6003816004811115611eca57611eca613404565b036112285760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610725565b60606107516001600160a01b03831660145b60606000611f4383600261341a565b611f4e906002612ede565b6001600160401b03811115611f6557611f65612741565b6040519080825280601f01601f191660200182016040528015611f8f576020820181803683370190505b509050600360fc1b81600081518110611faa57611faa612e63565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611fd957611fd9612e63565b60200101906001600160f81b031916908160001a9053506000611ffd84600261341a565b612008906001612ede565b90505b6001811115612080576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061203c5761203c612e63565b1a60f81b82828151811061205257612052612e63565b60200101906001600160f81b031916908160001a90535060049490941c9361207981613431565b905061200b565b5083156112175760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610725565b6001600160a01b0384166120f55760405162461bcd60e51b815260040161072590613448565b81518351146121165760405162461bcd60e51b8152600401610725906130c3565b3361212681600087878787611a42565b60005b84518110156121c15783818151811061214457612144612e63565b602002602001015160008087848151811061216157612161612e63565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546121a99190612ede565b909155508190506121b981612e8f565b915050612129565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161221292919061319a565b60405180910390a46108a781600087878787611b05565b6001600160a01b03841661224f5760405162461bcd60e51b815260040161072590613448565b33600061225b85612309565b9050600061226885612309565b905061227983600089858589611a42565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906122a9908490612ede565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611c6083600089898989612354565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061234357612343612e63565b602090810291909101015292915050565b6001600160a01b0384163b1561109c5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906123989089908990889088908890600401613489565b6020604051808303816000875af19250505080156123d3575060408051601f3d908101601f191682019092526123d0918101906132fb565b60015b6123df57611b90613318565b6001600160e01b0319811663f23a6e6160e01b14611c605760405162461bcd60e51b8152600401610725906133bc565b6001600160a01b0385166124965760005b83518110156124945782818151811061243b5761243b612e63565b60200260200101516004600086848151811061245957612459612e63565b60200260200101518152602001908152602001600020600082825461247e9190612ede565b9091555061248d905081612e8f565b9050612420565b505b6001600160a01b03841661109c5760005b8351811015611c605760008482815181106124c4576124c4612e63565b6020026020010151905060008483815181106124e2576124e2612e63565b60200260200101519050600060046000848152602001908152602001600020549050818110156125655760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610725565b6000928352600460205260409092209103905561258181612e8f565b90506124a7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156125bf5750600090506003612643565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612613573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661263c57600060019250925050612643565b9150600090505b94509492505050565b80356001600160a01b038116811461266357600080fd5b919050565b6000806040838503121561267b57600080fd5b6126848361264c565b946020939093013593505050565b6001600160e01b03198116811461122857600080fd5b6000602082840312156126ba57600080fd5b813561121781612692565b60005b838110156126e05781810151838201526020016126c8565b50506000910152565b600081518084526127018160208601602086016126c5565b601f01601f19169290920160200192915050565b60208152600061121760208301846126e9565b60006020828403121561273a57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b606081018181106001600160401b038211171561277657612776612741565b60405250565b601f8201601f191681016001600160401b03811182821017156127a1576127a1612741565b6040525050565b600082601f8301126127b957600080fd5b81356001600160401b038111156127d2576127d2612741565b6040516127e9601f8301601f19166020018261277c565b8181528460208386010111156127fe57600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561282e57600080fd5b8235915060208301356001600160401b0381111561284b57600080fd5b612857858286016127a8565b9150509250929050565b60006001600160401b0382111561287a5761287a612741565b5060051b60200190565b600082601f83011261289557600080fd5b813560206128a282612861565b6040516128af828261277c565b83815260059390931b85018201928281019150868411156128cf57600080fd5b8286015b848110156128ea57803583529183019183016128d3565b509695505050505050565b600080600080600060a0868803121561290d57600080fd5b6129168661264c565b94506129246020870161264c565b935060408601356001600160401b038082111561294057600080fd5b61294c89838a01612884565b9450606088013591508082111561296257600080fd5b61296e89838a01612884565b9350608088013591508082111561298457600080fd5b50612991888289016127a8565b9150509295509295909350565b600080604083850312156129b157600080fd5b823591506129c16020840161264c565b90509250929050565b600080604083850312156129dd57600080fd5b82356001600160401b03808211156129f457600080fd5b818501915085601f830112612a0857600080fd5b81356020612a1582612861565b604051612a22828261277c565b83815260059390931b8501820192828101915089841115612a4257600080fd5b948201945b83861015612a6757612a588661264c565b82529482019490820190612a47565b96505086013592505080821115612a7d57600080fd5b5061285785828601612884565b600081518084526020808501945080840160005b83811015612aba57815187529582019590820190600101612a9e565b509495945050505050565b6020815260006112176020830184612a8a565b600060208284031215612aea57600080fd5b81356001600160401b03811115612b0057600080fd5b612b0c848285016127a8565b949350505050565b600060208284031215612b2657600080fd5b6112178261264c565b60008083601f840112612b4157600080fd5b5081356001600160401b03811115612b5857600080fd5b602083019150836020828501011115611dd157600080fd5b600080600060408486031215612b8557600080fd5b83356001600160401b0380821115612b9c57600080fd5b9085019060608288031215612bb057600080fd5b604051612bbc81612757565b612bc58361264c565b815260208301356020820152604083013582811115612be357600080fd5b612bef89828601612884565b60408301525094506020860135915080821115612c0b57600080fd5b50612c1886828701612b2f565b9497909650939450505050565b8035801515811461266357600080fd5b60008060408385031215612c4857600080fd5b823591506129c160208401612c25565b60008060408385031215612c6b57600080fd5b612c748361264c565b91506129c160208401612c25565b60008083601f840112612c9457600080fd5b5081356001600160401b03811115612cab57600080fd5b6020830191508360208260051b8501011115611dd157600080fd5b60008060008060408587031215612cdc57600080fd5b84356001600160401b0380821115612cf357600080fd5b612cff88838901612c82565b90965094506020870135915080821115612d1857600080fd5b50612d2587828801612c82565b95989497509550505050565b60008060408385031215612d4457600080fd5b612d4d8361264c565b91506129c16020840161264c565b600080600080600060a08688031215612d7357600080fd5b612d7c8661264c565b9450612d8a6020870161264c565b9350604086013592506060860135915060808601356001600160401b03811115612db357600080fd5b612991888289016127a8565b600181811c90821680612dd357607f821691505b602082108103612df357634e487b7160e01b600052602260045260246000fd5b50919050565b60008251612e0b8184602087016126c5565b9190910192915050565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612ea157612ea1612e79565b5060010190565b815160009082906020808601845b83811015612ed257815185529382019390820190600101612eb6565b50929695505050505050565b8082018082111561075157610751612e79565b6000808335601e19843603018112612f0857600080fd5b8301803591506001600160401b03821115612f2257600080fd5b602001915036819003821315611dd157600080fd5b6000808454612f4581612dbf565b60018281168015612f5d5760018114612f7257612fa1565b60ff1984168752821515830287019450612fa1565b8860005260208060002060005b85811015612f985781548a820152908401908201612f7f565b50505082870194505b505050508351612fb58183602088016126c5565b01949350505050565b601f8211156108d357600081815260208120601f850160051c81016020861015612fe55750805b601f850160051c820191505b8181101561109c57828155600101612ff1565b81516001600160401b0381111561301d5761301d612741565b6130318161302b8454612dbf565b84612fbe565b602080601f831160018114613066576000841561304e5750858301515b600019600386901b1c1916600185901b17855561109c565b600085815260208120601f198616915b8281101561309557888601518255948401946001909101908401613076565b50858210156130b35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006131ad6040830185612a8a565b82810360208401526131bf8185612a8a565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516132008160178501602088016126c5565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516132318160288401602088016126c5565b01602801949350505050565b60208082526021908201527f596f7520616c72656164792068617665207468697320616368696576656d656e6040820152601d60fa1b606082015260800190565b600060ff821660ff810361329457613294612e79565b60010192915050565b6001600160a01b0386811682528516602082015260a0604082018190526000906132c990830186612a8a565b82810360608401526132db8186612a8a565b905082810360808401526132ef81856126e9565b98975050505050505050565b60006020828403121561330d57600080fd5b815161121781612692565b600060033d1115611d905760046000803e5060005160e01c90565b600060443d10156133415790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561337057505050505090565b82850191508151818111156133885750505050505090565b843d87010160208285010111156133a25750505050505090565b6133b16020828601018761277c565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b808202811582820484141761075157610751612e79565b60008161344057613440612e79565b506000190190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906134c3908301846126e9565b97965050505050505056fe97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b9299f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a26469706673582212209dcc7eb8c585457186cb96e31e25414c52ec99a8d94a96adcffb6763fff4ff2d64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000d0d5ff3cfef8b7b2b1cac6b6c27fd0846c09361000000000000000000000000381c031baa5995d0cc52386508050ac947780815000000000000000000000000381c031baa5995d0cc52386508050ac94778081500000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f5275627973636f72655f7a6b45564d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f5275627973636f72655f7a6b45564d0000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : admin (address): 0x0d0D5Ff3cFeF8B7B2b1cAC6B6C27Fd0846c09361
Arg [1] : operator (address): 0x381c031bAA5995D0Cc52386508050Ac947780815
Arg [2] : minter (address): 0x381c031bAA5995D0Cc52386508050Ac947780815
Arg [3] : baseURI (string): ipfs://
Arg [4] : _name (string): Rubyscore_zkEVM
Arg [5] : _symbol (string): Rubyscore_zkEVM
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000d0d5ff3cfef8b7b2b1cac6b6c27fd0846c09361
Arg [1] : 000000000000000000000000381c031baa5995d0cc52386508050ac947780815
Arg [2] : 000000000000000000000000381c031baa5995d0cc52386508050ac947780815
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [7] : 697066733a2f2f00000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [9] : 5275627973636f72655f7a6b45564d0000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [11] : 5275627973636f72655f7a6b45564d0000000000000000000000000000000000
Deployed Bytecode Sourcemap
92680:8993:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65421:230;;;;;;;;;;-1:-1:-1;65421:230:0;;;;;:::i;:::-;;:::i;:::-;;;597:25:1;;;585:2;570:18;65421:230:0;;;;;;;;93366:209;;;;;;;;;;-1:-1:-1;93366:209:0;;;;;:::i;:::-;;:::i;:::-;;;1184:14:1;;1177:22;1159:41;;1147:2;1132:18;93366:209:0;1019:187:1;93144:18:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;93643:187::-;;;;;;;;;;-1:-1:-1;93643:187:0;;;;;:::i;:::-;;:::i;96212:197::-;;;;;;;;;;-1:-1:-1;96212:197:0;;;;;:::i;:::-;;:::i;:::-;;51831:131;;;;;;;;;;-1:-1:-1;51831:131:0;;;;;:::i;:::-;51905:7;51932:12;;;:6;:12;;;;;:22;;;;51831:131;67364:438;;;;;;;;;;-1:-1:-1;67364:438:0;;;;;:::i;:::-;;:::i;52272:147::-;;;;;;;;;;-1:-1:-1;52272:147:0;;;;;:::i;:::-;;:::i;53416:218::-;;;;;;;;;;-1:-1:-1;53416:218:0;;;;;:::i;:::-;;:::i;98682:324::-;;;;;;;;;;;;;:::i;65817:524::-;;;;;;;;;;-1:-1:-1;65817:524:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;81950:122::-;;;;;;;;;;-1:-1:-1;81950:122:0;;;;;:::i;:::-;82007:4;81828:16;;;:12;:16;;;;;;-1:-1:-1;;;81950:122:0;96896:165;;;;;;;;;;-1:-1:-1;96896:165:0;;;;;:::i;:::-;;:::i;94239:123::-;;;;;;;;;;-1:-1:-1;94239:123:0;;;;;:::i;:::-;-1:-1:-1;;;;;94332:22:0;94305:7;94332:22;;;:9;:22;;;;;;;94239:123;97339:1025;;;;;;:::i;:::-;;:::i;97129:142::-;;;;;;;;;;-1:-1:-1;97129:142:0;;;;;:::i;:::-;;:::i;50304:147::-;;;;;;;;;;-1:-1:-1;50304:147:0;;;;;:::i;:::-;;:::i;93169:20::-;;;;;;;;;;;;;:::i;94088:83::-;;;;;;;;;;-1:-1:-1;94158:5:0;;94088:83;;98432:182;;;;;;;;;;-1:-1:-1;98432:182:0;;;;;:::i;:::-;;:::i;49409:49::-;;;;;;;;;;-1:-1:-1;49409:49:0;49454:4;49409:49;;66414:155;;;;;;;;;;-1:-1:-1;66414:155:0;;;;;:::i;:::-;;:::i;93005:53::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;93005:53:0;;;;;93898:122;;;;;;;;;;-1:-1:-1;93898:122:0;;;;;:::i;:::-;93965:4;93989:23;;;:14;:23;;;;;;;;;93898:122;96477:351;;;;;;;;;;-1:-1:-1;96477:351:0;;;;;:::i;:::-;;:::i;81739:113::-;;;;;;;;;;-1:-1:-1;81739:113:0;;;;;:::i;:::-;81801:7;81828:16;;;:12;:16;;;;;;;81739:113;94430:109;;;;;;;;;;-1:-1:-1;94430:109:0;;;;;:::i;:::-;;:::i;92936:62::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;92936:62:0;;52712:149;;;;;;;;;;-1:-1:-1;52712:149:0;;;;;:::i;:::-;;:::i;66641:168::-;;;;;;;;;;-1:-1:-1;66641:168:0;;;;;:::i;:::-;-1:-1:-1;;;;;66764:27:0;;;66740:4;66764:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;66641:168;66881:406;;;;;;;;;;-1:-1:-1;66881:406:0;;;;;:::i;:::-;;:::i;92863:66::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;92863:66:0;;93065:40;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;93065:40:0;;;;;65421:230;65507:7;-1:-1:-1;;;;;65535:21:0;;65527:76;;;;-1:-1:-1;;;65527:76:0;;12993:2:1;65527:76:0;;;12975:21:1;13032:2;13012:18;;;13005:30;13071:34;13051:18;;;13044:62;-1:-1:-1;;;13122:18:1;;;13115:40;13172:19;;65527:76:0;;;;;;;;;-1:-1:-1;65621:9:0;:13;;;;;;;;;;;-1:-1:-1;;;;;65621:22:0;;;;;;;;;;65421:230;;;;;:::o;93366:209::-;93507:4;93531:36;93555:11;93531:23;:36::i;93144:18::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;93643:187::-;93771:13;93804:18;93814:7;93804:9;:18::i;96212:197::-;-1:-1:-1;;;;;;;;;;;49900:16:0;49911:4;49900:10;:16::i;:::-;96317:35:::1;96331:7;96340:11;96317:13;:35::i;:::-;96389:11;96368:33;;;;;;:::i;:::-;;::::0;;;;::::1;::::0;;;96380:7;;96368:33:::1;::::0;;;::::1;96212:197:::0;;;:::o;67364:438::-;-1:-1:-1;;;;;67597:20:0;;3906:10;67597:20;;:60;;-1:-1:-1;67621:36:0;67638:4;3906:10;66641:168;:::i;67621:36::-;67575:156;;;;-1:-1:-1;;;67575:156:0;;;;;;;:::i;:::-;67742:52;67765:4;67771:2;67775:3;67780:7;67789:4;67742:22;:52::i;:::-;67364:438;;;;;:::o;52272:147::-;51905:7;51932:12;;;:6;:12;;;;;:22;;;49900:16;49911:4;49900:10;:16::i;:::-;52386:25:::1;52397:4;52403:7;52386:10;:25::i;:::-;52272:147:::0;;;:::o;53416:218::-;-1:-1:-1;;;;;53512:23:0;;3906:10;53512:23;53504:83;;;;-1:-1:-1;;;53504:83:0;;14498:2:1;53504:83:0;;;14480:21:1;14537:2;14517:18;;;14510:30;14576:34;14556:18;;;14549:62;-1:-1:-1;;;14627:18:1;;;14620:45;14682:19;;53504:83:0;14296:411:1;53504:83:0;53600:26;53612:4;53618:7;53600:11;:26::i;:::-;53416:218;;:::o;98682:324::-;49454:4;49900:16;49454:4;49900:10;:16::i;:::-;98768:21:::1;98808:10:::0;98800:46:::1;;;::::0;-1:-1:-1;;;98800:46:0;;14914:2:1;98800:46:0::1;::::0;::::1;14896:21:1::0;14953:2;14933:18;;;14926:30;14992:25;14972:18;;;14965:53;15035:18;;98800:46:0::1;14712:347:1::0;98800:46:0::1;98873:43;::::0;98858:9:::1;::::0;98881:10:::1;::::0;98905:6;;98858:9;98873:43;98858:9;98873:43;98905:6;98881:10;98873:43:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98857:59;;;98935:4;98927:37;;;::::0;-1:-1:-1;;;98927:37:0;;15476:2:1;98927:37:0::1;::::0;::::1;15458:21:1::0;15515:2;15495:18;;;15488:30;-1:-1:-1;;;15534:18:1;;;15527:50;15594:18;;98927:37:0::1;15274:344:1::0;98927:37:0::1;98980:18;::::0;597:25:1;;;98980:18:0::1;::::0;585:2:1;570:18;98980::0::1;;;;;;;98740:266;;98682:324:::0;:::o;65817:524::-;65973:16;66034:3;:10;66015:8;:15;:29;66007:83;;;;-1:-1:-1;;;66007:83:0;;15825:2:1;66007:83:0;;;15807:21:1;15864:2;15844:18;;;15837:30;15903:34;15883:18;;;15876:62;-1:-1:-1;;;15954:18:1;;;15947:39;16003:19;;66007:83:0;15623:405:1;66007:83:0;66103:30;66150:8;:15;-1:-1:-1;;;;;66136:30:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66136:30:0;;66103:63;;66184:9;66179:122;66203:8;:15;66199:1;:19;66179:122;;;66259:30;66269:8;66278:1;66269:11;;;;;;;;:::i;:::-;;;;;;;66282:3;66286:1;66282:6;;;;;;;;:::i;:::-;;;;;;;66259:9;:30::i;:::-;66240:13;66254:1;66240:16;;;;;;;;:::i;:::-;;;;;;;;;;:49;66220:3;;;:::i;:::-;;;66179:122;;;-1:-1:-1;66320:13:0;65817:524;-1:-1:-1;;;65817:524:0:o;96896:165::-;-1:-1:-1;;;;;;;;;;;49900:16:0;49911:4;49900:10;:16::i;:::-;96986:29:::1;97004:10;96986:17;:29::i;:::-;97042:10;97031:22;;;;;;:::i;:::-;;::::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;96896:165:::0;;:::o;97339:1025::-;15919:21;:19;:21::i;:::-;97498:1:::1;97470:10;:17;;;:24;:29;;97462:57;;;::::0;-1:-1:-1;;;97462:57:0;;16639:2:1;97462:57:0::1;::::0;::::1;16621:21:1::0;16678:2;16658:18;;;16651:30;-1:-1:-1;;;16697:18:1;;;16690:45;16752:18;;97462:57:0::1;16437:339:1::0;97462:57:0::1;97551:5;;97538:9;:18;97530:51;;;::::0;-1:-1:-1;;;97530:51:0;;16983:2:1;97530:51:0::1;::::0;::::1;16965:21:1::0;17022:2;17002:18;;;16995:30;-1:-1:-1;;;17041:18:1;;;17034:50;17101:18;;97530:51:0::1;16781:344:1::0;97530:51:0::1;97592:14;97609:362;97701:79;97803:10;97836:9;:21;97846:10;-1:-1:-1::0;;;;;97836:21:0::1;-1:-1:-1::0;;;;;97836:21:0::1;;;;;;;;;;;;;97907:10;:17;;;97890:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;97880:46;;;;;;97668:277;;;;;;;;;;17909:25:1::0;;;-1:-1:-1;;;;;17970:32:1;;;;17965:2;17950:18;;17943:60;18034:2;18019:18;;18012:34;18077:2;18062:18;;18055:34;17896:3;17881:19;;17678:417;97668:277:0::1;;;;;;;;;;;;;97640:320;;;;;;97609:16;:362::i;:::-;97592:379;;97982:65;-1:-1:-1::0;;;;;;;;;;;98006:40:0::1;98020:6;98028:17;;98006:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;98006:13:0::1;::::0;-1:-1:-1;;;98006:40:0:i:1;:::-;97982:10;:65::i;:::-;98068:22:::0;;-1:-1:-1;;;;;98058:33:0::1;;::::0;;;:9:::1;:33;::::0;;;;:38;;98095:1:::1;::::0;98058:33;:38:::1;::::0;98095:1;;98058:38:::1;:::i;:::-;::::0;;;-1:-1:-1;;98111:17:0::1;::::0;::::1;::::0;:24;98138:1:::1;-1:-1:-1::0;98107:162:0::1;;;98141:57;98152:10;:22;;;98176:10;:17;;;98141:57;;;;;;;;;;;::::0;:10:::1;:57::i;:::-;98107:162;;;98214:55;98220:10;:22;;;98244:10;:17;;;98262:1;98244:20;;;;;;;;:::i;:::-;;;;;;;98214:55;;;;;;;;;;;::::0;:5:::1;:55::i;:::-;98316:10;:20;;;98292:10;:22;;;-1:-1:-1::0;;;;;98285:71:0::1;;98338:10;:17;;;98285:71;;;;;;:::i;:::-;;;;;;;;97451:913;15963:20:::0;15357:1;16483:7;:22;16300:213;97129:142;-1:-1:-1;;;;;;;;;;;49900:16:0;49911:4;49900:10;:16::i;:::-;97209:5:::1;:16:::0;;;97241:22:::1;::::0;597:25:1;;;97241:22:0::1;::::0;585:2:1;570:18;97241:22:0::1;;;;;;;97129:142:::0;;:::o;50304:147::-;50390:4;50414:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;50414:29:0;;;;;;;;;;;;;;;50304:147::o;93169:20::-;;;;;;;:::i;98432:182::-;-1:-1:-1;;;;;;;;;;;49900:16:0;49911:4;49900:10;:16::i;:::-;98531:23:::1;::::0;;;:14:::1;:23;::::0;;;;;:30;;-1:-1:-1;;98531:30:0::1;::::0;::::1;;::::0;;::::1;::::0;;;98577:29;;98531:30;;:23;;98577:29:::1;::::0;98531:23;98577:29:::1;98432:182:::0;;;:::o;66414:155::-;66509:52;3906:10;66542:8;66552;66509:18;:52::i;96477:351::-;-1:-1:-1;;;;;;;;;;;49900:16:0;49911:4;49900:10;:16::i;:::-;96639:38;;::::1;96631:65;;;::::0;-1:-1:-1;;;96631:65:0;;18432:2:1;96631:65:0::1;::::0;::::1;18414:21:1::0;18471:2;18451:18;;;18444:30;-1:-1:-1;;;18490:18:1;;;18483:44;18544:18;;96631:65:0::1;18230:338:1::0;96631:65:0::1;96712:9;96707:114;96727:19:::0;;::::1;96707:114;;;96768:41;96780:8;;96789:1;96780:11;;;;;;;:::i;:::-;;;;;;;96793:12;;96806:1;96793:15;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;96768:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;96768:11:0::1;::::0;-1:-1:-1;;;96768:41:0:i:1;:::-;96748:3:::0;::::1;::::0;::::1;:::i;:::-;;;;96707:114;;;;96477:351:::0;;;;;:::o;94430:109::-;94486:13;94519:12;94523:7;94519:3;:12::i;52712:149::-;51905:7;51932:12;;;:6;:12;;;;;:22;;;49900:16;49911:4;49900:10;:16::i;:::-;52827:26:::1;52839:4;52845:7;52827:11;:26::i;66881:406::-:0;-1:-1:-1;;;;;67089:20:0;;3906:10;67089:20;;:60;;-1:-1:-1;67113:36:0;67130:4;3906:10;66641:168;:::i;67113:36::-;67067:156;;;;-1:-1:-1;;;67067:156:0;;;;;;;:::i;:::-;67234:45;67252:4;67258:2;67262;67266:6;67274:4;67234:17;:45::i;50008:204::-;50093:4;-1:-1:-1;;;;;;50117:47:0;;-1:-1:-1;;;50117:47:0;;:87;;;50168:36;50192:11;50168:23;:36::i;84491:351::-;84585:22;84610:19;;;:10;:19;;;;;84585:44;;84559:13;;84585:22;84610:19;84585:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84765:1;84746:8;84740:22;:26;:94;;84816:18;84826:7;84816:9;:18::i;:::-;84740:94;;;84793:8;84803;84776:36;;;;;;;;;:::i;:::-;;;;;;;;;;;;;84740:94;84733:101;84491:351;-1:-1:-1;;;84491:351:0:o;50755:105::-;50822:30;50833:4;3906:10;97982::::1;:65::i;50822:30::-:0;50755:105;:::o;84927:166::-;85013:19;;;;:10;:19;;;;;:30;85035:8;85013:19;:30;:::i;:::-;;85077:7;85059:26;85063:12;85067:7;85063:3;:12::i;:::-;85059:26;;;;;;:::i;:::-;;;;;;;;84927:166;;:::o;69598:1146::-;69825:7;:14;69811:3;:10;:28;69803:81;;;;-1:-1:-1;;;69803:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;69903:16:0;;69895:66;;;;-1:-1:-1;;;69895:66:0;;;;;;;:::i;:::-;3906:10;70018:60;3906:10;70049:4;70055:2;70059:3;70064:7;70073:4;70018:20;:60::i;:::-;70096:9;70091:421;70115:3;:10;70111:1;:14;70091:421;;;70147:10;70160:3;70164:1;70160:6;;;;;;;;:::i;:::-;;;;;;;70147:19;;70181:14;70198:7;70206:1;70198:10;;;;;;;;:::i;:::-;;;;;;;;;;;;70225:19;70247:13;;;;;;;;;;-1:-1:-1;;;;;70247:19:0;;;;;;;;;;;;70198:10;;-1:-1:-1;70289:21:0;;;;70281:76;;;;-1:-1:-1;;;70281:76:0;;;;;;;:::i;:::-;70401:9;:13;;;;;;;;;;;-1:-1:-1;;;;;70401:19:0;;;;;;;;;;70423:20;;;70401:42;;70473:17;;;;;;;:27;;70423:20;;70401:9;70473:27;;70423:20;;70473:27;:::i;:::-;;;;;;;;70132:380;;;70127:3;;;;:::i;:::-;;;70091:421;;;;70559:2;-1:-1:-1;;;;;70529:47:0;70553:4;-1:-1:-1;;;;;70529:47:0;70543:8;-1:-1:-1;;;;;70529:47:0;;70563:3;70568:7;70529:47;;;;;;;:::i;:::-;;;;;;;;70661:75;70697:8;70707:4;70713:2;70717:3;70722:7;70731:4;70661:35;:75::i;55013:238::-;55097:22;55105:4;55111:7;55097;:22::i;:::-;55092:152;;55136:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;55136:29:0;;;;;;;;;:36;;-1:-1:-1;;55136:36:0;55168:4;55136:36;;;55219:12;3906:10;;3826:98;55219:12;-1:-1:-1;;;;;55192:40:0;55210:7;-1:-1:-1;;;;;55192:40:0;55204:4;55192:40;;;;;;;;;;55013:238;;:::o;55431:239::-;55515:22;55523:4;55529:7;55515;:22::i;:::-;55511:152;;;55586:5;55554:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;55554:29:0;;;;;;;;;;:37;;-1:-1:-1;;55554:37:0;;;55611:40;3906:10;;55554:12;;55611:40;;55586:5;55611:40;55431:239;;:::o;85180:98::-;85252:8;:18;85263:7;85252:8;:18;:::i;15999:293::-;15401:1;16133:7;;:19;16125:63;;;;-1:-1:-1;;;16125:63:0;;24227:2:1;16125:63:0;;;24209:21:1;24266:2;24246:18;;;24239:30;24305:33;24285:18;;;24278:61;24356:18;;16125:63:0;24025:355:1;16125:63:0;15401:1;16266:7;:18;15999:293::o;45152:167::-;45229:7;45256:55;45278:20;:18;:20::i;:::-;45300:10;40566:57;;-1:-1:-1;;;40566:57:0;;;29833:27:1;29876:11;;;29869:27;;;29912:12;;;29905:28;;;40529:7:0;;29949:12:1;;40566:57:0;;;;;;;;;;;;40556:68;;;;;;40549:75;;40436:196;;;;;35634:231;35712:7;35733:17;35752:18;35774:27;35785:4;35791:9;35774:10;:27::i;:::-;35732:69;;;;35812:18;35824:5;35812:11;:18::i;51150:492::-;51239:22;51247:4;51253:7;51239;:22::i;:::-;51234:401;;51427:28;51447:7;51427:19;:28::i;:::-;51528:38;51556:4;51563:2;51528:19;:38::i;:::-;51332:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;51332:257:0;;;;;;;;;;-1:-1:-1;;;51278:345:0;;;;;;;:::i;99799:425::-;99892:24;99933:3;:10;-1:-1:-1;;;;;99919:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;99919:25:0;;99892:52;;99960:7;99955:211;99977:3;:10;99973:1;:14;;;99955:211;;;100017:21;100027:2;100031:3;100035:1;100031:6;;;;;;;;;;:::i;100017:21::-;:26;100009:72;;;;-1:-1:-1;;;100009:72:0;;;;;;;:::i;:::-;100153:1;100140:7;100148:1;100140:10;;;;;;;;;;:::i;:::-;;;;;;;;;;:14;99989:3;;;;:::i;:::-;;;;99955:211;;;;100176:40;100193:2;100197:3;100202:7;100211:4;100176:16;:40::i;:::-;99881:343;99799:425;;;:::o;99074:193::-;99160:17;99170:2;99174;99160:9;:17::i;:::-;:22;99152:68;;;;-1:-1:-1;;;99152:68:0;;;;;;;:::i;:::-;99231:28;99243:2;99247;99251:1;99254:4;99231:11;:28::i;76475:331::-;76630:8;-1:-1:-1;;;;;76621:17:0;:5;-1:-1:-1;;;;;76621:17:0;;76613:71;;;;-1:-1:-1;;;76613:71:0;;25986:2:1;76613:71:0;;;25968:21:1;26025:2;26005:18;;;25998:30;26064:34;26044:18;;;26037:62;-1:-1:-1;;;26115:18:1;;;26108:39;26164:19;;76613:71:0;25784:405:1;76613:71:0;-1:-1:-1;;;;;76695:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;76695:46:0;;;;;;;;;;76757:41;;1159::1;;;76757::0;;1132:18:1;76757:41:0;;;;;;;76475:331;;;:::o;68266:974::-;-1:-1:-1;;;;;68454:16:0;;68446:66;;;;-1:-1:-1;;;68446:66:0;;;;;;;:::i;:::-;3906:10;68525:16;68590:21;68608:2;68590:17;:21::i;:::-;68567:44;;68622:24;68649:25;68667:6;68649:17;:25::i;:::-;68622:52;;68687:60;68708:8;68718:4;68724:2;68728:3;68733:7;68742:4;68687:20;:60::i;:::-;68760:19;68782:13;;;;;;;;;;;-1:-1:-1;;;;;68782:19:0;;;;;;;;;;68820:21;;;;68812:76;;;;-1:-1:-1;;;68812:76:0;;;;;;;:::i;:::-;68924:9;:13;;;;;;;;;;;-1:-1:-1;;;;;68924:19:0;;;;;;;;;;68946:20;;;68924:42;;68988:17;;;;;;;:27;;68946:20;;68924:9;68988:27;;68946:20;;68988:27;:::i;:::-;;;;-1:-1:-1;;69033:46:0;;;26368:25:1;;;26424:2;26409:18;;26402:34;;;-1:-1:-1;;;;;69033:46:0;;;;;;;;;;;;;;26341:18:1;69033:46:0;;;;;;;69164:68;69195:8;69205:4;69211:2;69215;69219:6;69227:4;69164:30;:68::i;:::-;68435:805;;;;68266:974;;;;;:::o;64444:310::-;64546:4;-1:-1:-1;;;;;;64583:41:0;;-1:-1:-1;;;64583:41:0;;:110;;-1:-1:-1;;;;;;;64641:52:0;;-1:-1:-1;;;64641:52:0;64583:110;:163;;;-1:-1:-1;;;;;;;;;;47323:40:0;;;64710:36;47214:157;65165:105;65225:13;65258:4;65251:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65165:105;;;:::o;101179:491::-;101439:9;101434:152;101458:3;:10;101454:1;:14;101434:152;;;101495:14;:22;101510:3;101514:1;101510:6;;;;;;;;:::i;:::-;;;;;;;;;;;;101495:22;;;;;;;;;;-1:-1:-1;101495:22:0;;;;101494:23;:45;;;;-1:-1:-1;;;;;;101521:18:0;;;;101494:45;101490:84;;;101541:33;;-1:-1:-1;;;101541:33:0;;26649:2:1;101541:33:0;;;26631:21:1;26688:2;26668:18;;;26661:30;26727:25;26707:18;;;26700:53;26770:18;;101541:33:0;26447:347:1;101490:84:0;101470:3;;;;:::i;:::-;;;;101434:152;;;;101596:66;101623:8;101633:4;101639:2;101643:3;101648:7;101657:4;101596:26;:66::i;79920:813::-;-1:-1:-1;;;;;80160:13:0;;5621:19;:23;80156:570;;80196:79;;-1:-1:-1;;;80196:79:0;;-1:-1:-1;;;;;80196:43:0;;;;;:79;;80240:8;;80250:4;;80256:3;;80261:7;;80270:4;;80196:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80196:79:0;;;;;;;;-1:-1:-1;;80196:79:0;;;;;;;;;;;;:::i;:::-;;;80192:523;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;80588:6;80581:14;;-1:-1:-1;;;80581:14:0;;;;;;;;:::i;80192:523::-;;;80637:62;;-1:-1:-1;;;80637:62:0;;28947:2:1;80637:62:0;;;28929:21:1;28986:2;28966:18;;;28959:30;29025:34;29005:18;;;28998:62;-1:-1:-1;;;29076:18:1;;;29069:50;29136:19;;80637:62:0;28745:416:1;80192:523:0;-1:-1:-1;;;;;;80357:60:0;;-1:-1:-1;;;80357:60:0;80353:159;;80442:50;;-1:-1:-1;;;80442:50:0;;;;;;;:::i;80353:159::-;80276:251;79920:813;;;;;;:::o;43925:314::-;43978:7;44010:4;-1:-1:-1;;;;;44019:12:0;44002:29;;:66;;;;;44052:16;44035:13;:33;44002:66;43998:234;;;-1:-1:-1;44092:24:0;;43925:314::o;43998:234::-;-1:-1:-1;44428:73:0;;;44178:10;44428:73;;;;33531:25:1;;;;44190:12:0;33572:18:1;;;33565:34;44204:15:0;33615:18:1;;;33608:34;44472:13:0;33658:18:1;;;33651:34;44495:4:0;33701:19:1;;;;33694:61;;;;44428:73:0;;;;;;;;;;33503:19:1;;;;44428:73:0;;;44418:84;;;;;;43925:314::o;43998:234::-;43925:314;:::o;34085:747::-;34166:7;34175:12;34204:9;:16;34224:2;34204:22;34200:625;;34548:4;34533:20;;34527:27;34598:4;34583:20;;34577:27;34656:4;34641:20;;34635:27;34243:9;34627:36;34699:25;34710:4;34627:36;34527:27;34577;34699:10;:25::i;:::-;34692:32;;;;;;;;;34200:625;-1:-1:-1;34773:1:0;;-1:-1:-1;34777:35:0;34200:625;34085:747;;;;;:::o;32478:521::-;32556:20;32547:5;:29;;;;;;;;:::i;:::-;;32543:449;;32478:521;:::o;32543:449::-;32654:29;32645:5;:38;;;;;;;;:::i;:::-;;32641:351;;32700:34;;-1:-1:-1;;;32700:34:0;;30306:2:1;32700:34:0;;;30288:21:1;30345:2;30325:18;;;30318:30;30384:26;30364:18;;;30357:54;30428:18;;32700:34:0;30104:348:1;32641:351:0;32765:35;32756:5;:44;;;;;;;;:::i;:::-;;32752:240;;32817:41;;-1:-1:-1;;;32817:41:0;;30659:2:1;32817:41:0;;;30641:21:1;30698:2;30678:18;;;30671:30;30737:33;30717:18;;;30710:61;30788:18;;32817:41:0;30457:355:1;32752:240:0;32889:30;32880:5;:39;;;;;;;;:::i;:::-;;32876:116;;32936:44;;-1:-1:-1;;;32936:44:0;;31019:2:1;32936:44:0;;;31001:21:1;31058:2;31038:18;;;31031:30;31097:34;31077:18;;;31070:62;-1:-1:-1;;;31148:18:1;;;31141:32;31190:19;;32936:44:0;30817:398:1;31667:151:0;31725:13;31758:52;-1:-1:-1;;;;;31770:22:0;;29822:2;31063:447;31138:13;31164:19;31196:10;31200:6;31196:1;:10;:::i;:::-;:14;;31209:1;31196:14;:::i;:::-;-1:-1:-1;;;;;31186:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31186:25:0;;31164:47;;-1:-1:-1;;;31222:6:0;31229:1;31222:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;31222:15:0;;;;;;;;;-1:-1:-1;;;31248:6:0;31255:1;31248:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;31248:15:0;;;;;;;;-1:-1:-1;31279:9:0;31291:10;31295:6;31291:1;:10;:::i;:::-;:14;;31304:1;31291:14;:::i;:::-;31279:26;;31274:131;31311:1;31307;:5;31274:131;;;-1:-1:-1;;;31355:5:0;31363:3;31355:11;31346:21;;;;;;;:::i;:::-;;;;31334:6;31341:1;31334:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;31334:33:0;;;;;;;;-1:-1:-1;31392:1:0;31382:11;;;;;31314:3;;;:::i;:::-;;;31274:131;;;-1:-1:-1;31423:10:0;;31415:55;;;;-1:-1:-1;;;31415:55:0;;31736:2:1;31415:55:0;;;31718:21:1;;;31755:18;;;31748:30;31814:34;31794:18;;;31787:62;31866:18;;31415:55:0;31534:356:1;73194:813:0;-1:-1:-1;;;;;73372:16:0;;73364:62;;;;-1:-1:-1;;;73364:62:0;;;;;;;:::i;:::-;73459:7;:14;73445:3;:10;:28;73437:81;;;;-1:-1:-1;;;73437:81:0;;;;;;;:::i;:::-;3906:10;73575:66;3906:10;73531:16;73618:2;73622:3;73627:7;73636:4;73575:20;:66::i;:::-;73659:9;73654:103;73678:3;:10;73674:1;:14;73654:103;;;73735:7;73743:1;73735:10;;;;;;;;:::i;:::-;;;;;;;73710:9;:17;73720:3;73724:1;73720:6;;;;;;;;:::i;:::-;;;;;;;73710:17;;;;;;;;;;;:21;73728:2;-1:-1:-1;;;;;73710:21:0;-1:-1:-1;;;;;73710:21:0;;;;;;;;;;;;;:35;;;;;;;:::i;:::-;;;;-1:-1:-1;73690:3:0;;-1:-1:-1;73690:3:0;;;:::i;:::-;;;;73654:103;;;;73810:2;-1:-1:-1;;;;;73774:53:0;73806:1;-1:-1:-1;;;;;73774:53:0;73788:8;-1:-1:-1;;;;;73774:53:0;;73814:3;73819:7;73774:53;;;;;;;:::i;:::-;;;;;;;;73918:81;73954:8;73972:1;73976:2;73980:3;73985:7;73994:4;73918:35;:81::i;72062:729::-;-1:-1:-1;;;;;72215:16:0;;72207:62;;;;-1:-1:-1;;;72207:62:0;;;;;;;:::i;:::-;3906:10;72282:16;72347:21;72365:2;72347:17;:21::i;:::-;72324:44;;72379:24;72406:25;72424:6;72406:17;:25::i;:::-;72379:52;;72444:66;72465:8;72483:1;72487:2;72491:3;72496:7;72505:4;72444:20;:66::i;:::-;72523:9;:13;;;;;;;;;;;-1:-1:-1;;;;;72523:17:0;;;;;;;;;:27;;72544:6;;72523:9;:27;;72544:6;;72523:27;:::i;:::-;;;;-1:-1:-1;;72566:52:0;;;26368:25:1;;;26424:2;26409:18;;26402:34;;;-1:-1:-1;;;;;72566:52:0;;;;72599:1;;72566:52;;;;;;26341:18:1;72566:52:0;;;;;;;72709:74;72740:8;72758:1;72762:2;72766;72770:6;72778:4;72709:30;:74::i;80741:198::-;80861:16;;;80875:1;80861:16;;;;;;;;;80807;;80836:22;;80861:16;;;;;;;;;;;;-1:-1:-1;80861:16:0;80836:41;;80899:7;80888:5;80894:1;80888:8;;;;;;;;:::i;:::-;;;;;;;;;;:18;80926:5;80741:198;-1:-1:-1;;80741:198:0:o;79168:744::-;-1:-1:-1;;;;;79383:13:0;;5621:19;:23;79379:526;;79419:72;;-1:-1:-1;;;79419:72:0;;-1:-1:-1;;;;;79419:38:0;;;;;:72;;79458:8;;79468:4;;79474:2;;79478:6;;79486:4;;79419:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79419:72:0;;;;;;;;-1:-1:-1;;79419:72:0;;;;;;;;;;;;:::i;:::-;;;79415:479;;;;:::i;:::-;-1:-1:-1;;;;;;79541:55:0;;-1:-1:-1;;;79541:55:0;79537:154;;79621:50;;-1:-1:-1;;;79621:50:0;;;;;;;:::i;82147:931::-;-1:-1:-1;;;;;82469:18:0;;82465:160;;82509:9;82504:110;82528:3;:10;82524:1;:14;82504:110;;;82588:7;82596:1;82588:10;;;;;;;;:::i;:::-;;;;;;;82564:12;:20;82577:3;82581:1;82577:6;;;;;;;;:::i;:::-;;;;;;;82564:20;;;;;;;;;;;;:34;;;;;;;:::i;:::-;;;;-1:-1:-1;82540:3:0;;-1:-1:-1;82540:3:0;;:::i;:::-;;;82504:110;;;;82465:160;-1:-1:-1;;;;;82641:16:0;;82637:434;;82679:9;82674:386;82698:3;:10;82694:1;:14;82674:386;;;82734:10;82747:3;82751:1;82747:6;;;;;;;;:::i;:::-;;;;;;;82734:19;;82772:14;82789:7;82797:1;82789:10;;;;;;;;:::i;:::-;;;;;;;82772:27;;82818:14;82835:12;:16;82848:2;82835:16;;;;;;;;;;;;82818:33;;82888:6;82878;:16;;82870:69;;;;-1:-1:-1;;;82870:69:0;;33065:2:1;82870:69:0;;;33047:21:1;33104:2;33084:18;;;33077:30;33143:34;33123:18;;;33116:62;-1:-1:-1;;;33194:18:1;;;33187:38;33242:19;;82870:69:0;32863:404:1;82870:69:0;82991:16;;;;:12;:16;;;;;;83010:15;;82991:34;;82710:3;;;:::i;:::-;;;82674:386;;37086:1520;37217:7;;38151:66;38138:79;;38134:163;;;-1:-1:-1;38250:1:0;;-1:-1:-1;38254:30:0;38234:51;;38134:163;38411:24;;;38394:14;38411:24;;;;;;;;;33993:25:1;;;34066:4;34054:17;;34034:18;;;34027:45;;;;34088:18;;;34081:34;;;34131:18;;;34124:34;;;38411:24:0;;33965:19:1;;38411:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;38411:24:0;;-1:-1:-1;;38411:24:0;;;-1:-1:-1;;;;;;;38450:20:0;;38446:103;;38503:1;38507:29;38487:50;;;;;;;38446:103;38569:6;-1:-1:-1;38577:20:0;;-1:-1:-1;37086:1520:0;;;;;;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:254::-;260:6;268;321:2;309:9;300:7;296:23;292:32;289:52;;;337:1;334;327:12;289:52;360:29;379:9;360:29;:::i;:::-;350:39;436:2;421:18;;;;408:32;;-1:-1:-1;;;192:254:1:o;633:131::-;-1:-1:-1;;;;;;707:32:1;;697:43;;687:71;;754:1;751;744:12;769:245;827:6;880:2;868:9;859:7;855:23;851:32;848:52;;;896:1;893;886:12;848:52;935:9;922:23;954:30;978:5;954:30;:::i;1211:250::-;1296:1;1306:113;1320:6;1317:1;1314:13;1306:113;;;1396:11;;;1390:18;1377:11;;;1370:39;1342:2;1335:10;1306:113;;;-1:-1:-1;;1453:1:1;1435:16;;1428:27;1211:250::o;1466:271::-;1508:3;1546:5;1540:12;1573:6;1568:3;1561:19;1589:76;1658:6;1651:4;1646:3;1642:14;1635:4;1628:5;1624:16;1589:76;:::i;:::-;1719:2;1698:15;-1:-1:-1;;1694:29:1;1685:39;;;;1726:4;1681:50;;1466:271;-1:-1:-1;;1466:271:1:o;1742:220::-;1891:2;1880:9;1873:21;1854:4;1911:45;1952:2;1941:9;1937:18;1929:6;1911:45;:::i;1967:180::-;2026:6;2079:2;2067:9;2058:7;2054:23;2050:32;2047:52;;;2095:1;2092;2085:12;2047:52;-1:-1:-1;2118:23:1;;1967:180;-1:-1:-1;1967:180:1:o;2152:127::-;2213:10;2208:3;2204:20;2201:1;2194:31;2244:4;2241:1;2234:15;2268:4;2265:1;2258:15;2284:225;2370:4;2362:6;2358:17;2441:6;2429:10;2426:22;-1:-1:-1;;;;;2393:10:1;2390:34;2387:62;2384:88;;;2452:18;;:::i;:::-;2488:2;2481:22;-1:-1:-1;2284:225:1:o;2514:249::-;2624:2;2605:13;;-1:-1:-1;;2601:27:1;2589:40;;-1:-1:-1;;;;;2644:34:1;;2680:22;;;2641:62;2638:88;;;2706:18;;:::i;:::-;2742:2;2735:22;-1:-1:-1;;2514:249:1:o;2768:556::-;2811:5;2864:3;2857:4;2849:6;2845:17;2841:27;2831:55;;2882:1;2879;2872:12;2831:55;2918:6;2905:20;-1:-1:-1;;;;;2940:2:1;2937:26;2934:52;;;2966:18;;:::i;:::-;3015:2;3009:9;3027:67;3082:2;3063:13;;-1:-1:-1;;3059:27:1;3088:4;3055:38;3009:9;3027:67;:::i;:::-;3118:2;3110:6;3103:18;3164:3;3157:4;3152:2;3144:6;3140:15;3136:26;3133:35;3130:55;;;3181:1;3178;3171:12;3130:55;3245:2;3238:4;3230:6;3226:17;3219:4;3211:6;3207:17;3194:54;3292:1;3268:15;;;3285:4;3264:26;3257:37;;;;3272:6;2768:556;-1:-1:-1;;;2768:556:1:o;3329:390::-;3407:6;3415;3468:2;3456:9;3447:7;3443:23;3439:32;3436:52;;;3484:1;3481;3474:12;3436:52;3520:9;3507:23;3497:33;;3581:2;3570:9;3566:18;3553:32;-1:-1:-1;;;;;3600:6:1;3597:30;3594:50;;;3640:1;3637;3630:12;3594:50;3663;3705:7;3696:6;3685:9;3681:22;3663:50;:::i;:::-;3653:60;;;3329:390;;;;;:::o;4091:183::-;4151:4;-1:-1:-1;;;;;4176:6:1;4173:30;4170:56;;;4206:18;;:::i;:::-;-1:-1:-1;4251:1:1;4247:14;4263:4;4243:25;;4091:183::o;4279:724::-;4333:5;4386:3;4379:4;4371:6;4367:17;4363:27;4353:55;;4404:1;4401;4394:12;4353:55;4440:6;4427:20;4466:4;4489:43;4529:2;4489:43;:::i;:::-;4561:2;4555:9;4573:31;4601:2;4593:6;4573:31;:::i;:::-;4639:18;;;4731:1;4727:10;;;;4715:23;;4711:32;;;4673:15;;;;-1:-1:-1;4755:15:1;;;4752:35;;;4783:1;4780;4773:12;4752:35;4819:2;4811:6;4807:15;4831:142;4847:6;4842:3;4839:15;4831:142;;;4913:17;;4901:30;;4951:12;;;;4864;;4831:142;;;-1:-1:-1;4991:6:1;4279:724;-1:-1:-1;;;;;;4279:724:1:o;5008:944::-;5162:6;5170;5178;5186;5194;5247:3;5235:9;5226:7;5222:23;5218:33;5215:53;;;5264:1;5261;5254:12;5215:53;5287:29;5306:9;5287:29;:::i;:::-;5277:39;;5335:38;5369:2;5358:9;5354:18;5335:38;:::i;:::-;5325:48;;5424:2;5413:9;5409:18;5396:32;-1:-1:-1;;;;;5488:2:1;5480:6;5477:14;5474:34;;;5504:1;5501;5494:12;5474:34;5527:61;5580:7;5571:6;5560:9;5556:22;5527:61;:::i;:::-;5517:71;;5641:2;5630:9;5626:18;5613:32;5597:48;;5670:2;5660:8;5657:16;5654:36;;;5686:1;5683;5676:12;5654:36;5709:63;5764:7;5753:8;5742:9;5738:24;5709:63;:::i;:::-;5699:73;;5825:3;5814:9;5810:19;5797:33;5781:49;;5855:2;5845:8;5842:16;5839:36;;;5871:1;5868;5861:12;5839:36;;5894:52;5938:7;5927:8;5916:9;5912:24;5894:52;:::i;:::-;5884:62;;;5008:944;;;;;;;;:::o;5957:254::-;6025:6;6033;6086:2;6074:9;6065:7;6061:23;6057:32;6054:52;;;6102:1;6099;6092:12;6054:52;6138:9;6125:23;6115:33;;6167:38;6201:2;6190:9;6186:18;6167:38;:::i;:::-;6157:48;;5957:254;;;;;:::o;6216:1208::-;6334:6;6342;6395:2;6383:9;6374:7;6370:23;6366:32;6363:52;;;6411:1;6408;6401:12;6363:52;6451:9;6438:23;-1:-1:-1;;;;;6521:2:1;6513:6;6510:14;6507:34;;;6537:1;6534;6527:12;6507:34;6575:6;6564:9;6560:22;6550:32;;6620:7;6613:4;6609:2;6605:13;6601:27;6591:55;;6642:1;6639;6632:12;6591:55;6678:2;6665:16;6700:4;6723:43;6763:2;6723:43;:::i;:::-;6795:2;6789:9;6807:31;6835:2;6827:6;6807:31;:::i;:::-;6873:18;;;6961:1;6957:10;;;;6949:19;;6945:28;;;6907:15;;;;-1:-1:-1;6985:19:1;;;6982:39;;;7017:1;7014;7007:12;6982:39;7041:11;;;;7061:148;7077:6;7072:3;7069:15;7061:148;;;7143:23;7162:3;7143:23;:::i;:::-;7131:36;;7094:12;;;;7187;;;;7061:148;;;7228:6;-1:-1:-1;;7272:18:1;;7259:32;;-1:-1:-1;;7303:16:1;;;7300:36;;;7332:1;7329;7322:12;7300:36;;7355:63;7410:7;7399:8;7388:9;7384:24;7355:63;:::i;7429:435::-;7482:3;7520:5;7514:12;7547:6;7542:3;7535:19;7573:4;7602:2;7597:3;7593:12;7586:19;;7639:2;7632:5;7628:14;7660:1;7670:169;7684:6;7681:1;7678:13;7670:169;;;7745:13;;7733:26;;7779:12;;;;7814:15;;;;7706:1;7699:9;7670:169;;;-1:-1:-1;7855:3:1;;7429:435;-1:-1:-1;;;;;7429:435:1:o;7869:261::-;8048:2;8037:9;8030:21;8011:4;8068:56;8120:2;8109:9;8105:18;8097:6;8068:56;:::i;8135:322::-;8204:6;8257:2;8245:9;8236:7;8232:23;8228:32;8225:52;;;8273:1;8270;8263:12;8225:52;8313:9;8300:23;-1:-1:-1;;;;;8338:6:1;8335:30;8332:50;;;8378:1;8375;8368:12;8332:50;8401;8443:7;8434:6;8423:9;8419:22;8401:50;:::i;:::-;8391:60;8135:322;-1:-1:-1;;;;8135:322:1:o;8462:186::-;8521:6;8574:2;8562:9;8553:7;8549:23;8545:32;8542:52;;;8590:1;8587;8580:12;8542:52;8613:29;8632:9;8613:29;:::i;8653:347::-;8704:8;8714:6;8768:3;8761:4;8753:6;8749:17;8745:27;8735:55;;8786:1;8783;8776:12;8735:55;-1:-1:-1;8809:20:1;;-1:-1:-1;;;;;8841:30:1;;8838:50;;;8884:1;8881;8874:12;8838:50;8921:4;8913:6;8909:17;8897:29;;8973:3;8966:4;8957:6;8949;8945:19;8941:30;8938:39;8935:59;;;8990:1;8987;8980:12;9005:1065;9112:6;9120;9128;9181:2;9169:9;9160:7;9156:23;9152:32;9149:52;;;9197:1;9194;9187:12;9149:52;9237:9;9224:23;-1:-1:-1;;;;;9307:2:1;9299:6;9296:14;9293:34;;;9323:1;9320;9313:12;9293:34;9346:22;;;;9402:4;9384:16;;;9380:27;9377:47;;;9420:1;9417;9410:12;9377:47;9453:2;9447:9;9465:32;9490:6;9465:32;:::i;:::-;9521:22;9540:2;9521:22;:::i;:::-;9513:6;9506:38;9598:2;9594;9590:11;9577:25;9572:2;9564:6;9560:15;9553:50;9649:2;9645;9641:11;9628:25;9678:2;9668:8;9665:16;9662:36;;;9694:1;9691;9684:12;9662:36;9731:56;9779:7;9768:8;9764:2;9760:17;9731:56;:::i;:::-;9726:2;9714:15;;9707:81;-1:-1:-1;9718:6:1;-1:-1:-1;9866:2:1;9851:18;;9838:32;;-1:-1:-1;9882:16:1;;;9879:36;;;9911:1;9908;9901:12;9879:36;;9950:60;10002:7;9991:8;9980:9;9976:24;9950:60;:::i;:::-;9005:1065;;10029:8;;-1:-1:-1;9924:86:1;;-1:-1:-1;;;;9005:1065:1:o;10075:160::-;10140:20;;10196:13;;10189:21;10179:32;;10169:60;;10225:1;10222;10215:12;10240:248;10305:6;10313;10366:2;10354:9;10345:7;10341:23;10337:32;10334:52;;;10382:1;10379;10372:12;10334:52;10418:9;10405:23;10395:33;;10447:35;10478:2;10467:9;10463:18;10447:35;:::i;10493:254::-;10558:6;10566;10619:2;10607:9;10598:7;10594:23;10590:32;10587:52;;;10635:1;10632;10625:12;10587:52;10658:29;10677:9;10658:29;:::i;:::-;10648:39;;10706:35;10737:2;10726:9;10722:18;10706:35;:::i;10752:367::-;10815:8;10825:6;10879:3;10872:4;10864:6;10860:17;10856:27;10846:55;;10897:1;10894;10887:12;10846:55;-1:-1:-1;10920:20:1;;-1:-1:-1;;;;;10952:30:1;;10949:50;;;10995:1;10992;10985:12;10949:50;11032:4;11024:6;11020:17;11008:29;;11092:3;11085:4;11075:6;11072:1;11068:14;11060:6;11056:27;11052:38;11049:47;11046:67;;;11109:1;11106;11099:12;11124:785;11258:6;11266;11274;11282;11335:2;11323:9;11314:7;11310:23;11306:32;11303:52;;;11351:1;11348;11341:12;11303:52;11391:9;11378:23;-1:-1:-1;;;;;11461:2:1;11453:6;11450:14;11447:34;;;11477:1;11474;11467:12;11447:34;11516:70;11578:7;11569:6;11558:9;11554:22;11516:70;:::i;:::-;11605:8;;-1:-1:-1;11490:96:1;-1:-1:-1;11693:2:1;11678:18;;11665:32;;-1:-1:-1;11709:16:1;;;11706:36;;;11738:1;11735;11728:12;11706:36;;11777:72;11841:7;11830:8;11819:9;11815:24;11777:72;:::i;:::-;11124:785;;;;-1:-1:-1;11868:8:1;-1:-1:-1;;;;11124:785:1:o;11914:260::-;11982:6;11990;12043:2;12031:9;12022:7;12018:23;12014:32;12011:52;;;12059:1;12056;12049:12;12011:52;12082:29;12101:9;12082:29;:::i;:::-;12072:39;;12130:38;12164:2;12153:9;12149:18;12130:38;:::i;12179:607::-;12283:6;12291;12299;12307;12315;12368:3;12356:9;12347:7;12343:23;12339:33;12336:53;;;12385:1;12382;12375:12;12336:53;12408:29;12427:9;12408:29;:::i;:::-;12398:39;;12456:38;12490:2;12479:9;12475:18;12456:38;:::i;:::-;12446:48;;12541:2;12530:9;12526:18;12513:32;12503:42;;12592:2;12581:9;12577:18;12564:32;12554:42;;12647:3;12636:9;12632:19;12619:33;-1:-1:-1;;;;;12667:6:1;12664:30;12661:50;;;12707:1;12704;12697:12;12661:50;12730;12772:7;12763:6;12752:9;12748:22;12730:50;:::i;13202:380::-;13281:1;13277:12;;;;13324;;;13345:61;;13399:4;13391:6;13387:17;13377:27;;13345:61;13452:2;13444:6;13441:14;13421:18;13418:38;13415:161;;13498:10;13493:3;13489:20;13486:1;13479:31;13533:4;13530:1;13523:15;13561:4;13558:1;13551:15;13415:161;;13202:380;;;:::o;13587:289::-;13718:3;13756:6;13750:13;13772:66;13831:6;13826:3;13819:4;13811:6;13807:17;13772:66;:::i;:::-;13854:16;;;;;13587:289;-1:-1:-1;;13587:289:1:o;13881:410::-;14083:2;14065:21;;;14122:2;14102:18;;;14095:30;14161:34;14156:2;14141:18;;14134:62;-1:-1:-1;;;14227:2:1;14212:18;;14205:44;14281:3;14266:19;;13881:410::o;16033:127::-;16094:10;16089:3;16085:20;16082:1;16075:31;16125:4;16122:1;16115:15;16149:4;16146:1;16139:15;16165:127;16226:10;16221:3;16217:20;16214:1;16207:31;16257:4;16254:1;16247:15;16281:4;16278:1;16271:15;16297:135;16336:3;16357:17;;;16354:43;;16377:18;;:::i;:::-;-1:-1:-1;16424:1:1;16413:13;;16297:135::o;17130:543::-;17348:13;;17291:3;;17322;;17401:4;17428:15;;;17291:3;17471:175;17485:6;17482:1;17479:13;17471:175;;;17548:13;;17534:28;;17584:14;;;;17621:15;;;;17507:1;17500:9;17471:175;;;-1:-1:-1;17662:5:1;;17130:543;-1:-1:-1;;;;;;17130:543:1:o;18100:125::-;18165:9;;;18186:10;;;18183:36;;;18199:18;;:::i;18573:522::-;18651:4;18657:6;18717:11;18704:25;18811:2;18807:7;18796:8;18780:14;18776:29;18772:43;18752:18;18748:68;18738:96;;18830:1;18827;18820:12;18738:96;18857:33;;18909:20;;;-1:-1:-1;;;;;;18941:30:1;;18938:50;;;18984:1;18981;18974:12;18938:50;19017:4;19005:17;;-1:-1:-1;19048:14:1;19044:27;;;19034:38;;19031:58;;;19085:1;19082;19075:12;19226:1020;19402:3;19431:1;19464:6;19458:13;19494:36;19520:9;19494:36;:::i;:::-;19549:1;19566:18;;;19593:133;;;;19740:1;19735:356;;;;19559:532;;19593:133;-1:-1:-1;;19626:24:1;;19614:37;;19699:14;;19692:22;19680:35;;19671:45;;;-1:-1:-1;19593:133:1;;19735:356;19766:6;19763:1;19756:17;19796:4;19841:2;19838:1;19828:16;19866:1;19880:165;19894:6;19891:1;19888:13;19880:165;;;19972:14;;19959:11;;;19952:35;20015:16;;;;19909:10;;19880:165;;;19884:3;;;20074:6;20069:3;20065:16;20058:23;;19559:532;;;;;20122:6;20116:13;20138:68;20197:8;20192:3;20185:4;20177:6;20173:17;20138:68;:::i;:::-;20222:18;;19226:1020;-1:-1:-1;;;;19226:1020:1:o;20251:545::-;20353:2;20348:3;20345:11;20342:448;;;20389:1;20414:5;20410:2;20403:17;20459:4;20455:2;20445:19;20529:2;20517:10;20513:19;20510:1;20506:27;20500:4;20496:38;20565:4;20553:10;20550:20;20547:47;;;-1:-1:-1;20588:4:1;20547:47;20643:2;20638:3;20634:12;20631:1;20627:20;20621:4;20617:31;20607:41;;20698:82;20716:2;20709:5;20706:13;20698:82;;;20761:17;;;20742:1;20731:13;20698:82;;20972:1352;21098:3;21092:10;-1:-1:-1;;;;;21117:6:1;21114:30;21111:56;;;21147:18;;:::i;:::-;21176:97;21266:6;21226:38;21258:4;21252:11;21226:38;:::i;:::-;21220:4;21176:97;:::i;:::-;21328:4;;21392:2;21381:14;;21409:1;21404:663;;;;22111:1;22128:6;22125:89;;;-1:-1:-1;22180:19:1;;;22174:26;22125:89;-1:-1:-1;;20929:1:1;20925:11;;;20921:24;20917:29;20907:40;20953:1;20949:11;;;20904:57;22227:81;;21374:944;;21404:663;19173:1;19166:14;;;19210:4;19197:18;;-1:-1:-1;;21440:20:1;;;21558:236;21572:7;21569:1;21566:14;21558:236;;;21661:19;;;21655:26;21640:42;;21753:27;;;;21721:1;21709:14;;;;21588:19;;21558:236;;;21562:3;21822:6;21813:7;21810:19;21807:201;;;21883:19;;;21877:26;-1:-1:-1;;21966:1:1;21962:14;;;21978:3;21958:24;21954:37;21950:42;21935:58;21920:74;;21807:201;-1:-1:-1;;;;;22054:1:1;22038:14;;;22034:22;22021:36;;-1:-1:-1;20972:1352:1:o;22329:404::-;22531:2;22513:21;;;22570:2;22550:18;;;22543:30;22609:34;22604:2;22589:18;;22582:62;-1:-1:-1;;;22675:2:1;22660:18;;22653:38;22723:3;22708:19;;22329:404::o;22738:401::-;22940:2;22922:21;;;22979:2;22959:18;;;22952:30;23018:34;23013:2;22998:18;;22991:62;-1:-1:-1;;;23084:2:1;23069:18;;23062:35;23129:3;23114:19;;22738:401::o;23144:406::-;23346:2;23328:21;;;23385:2;23365:18;;;23358:30;23424:34;23419:2;23404:18;;23397:62;-1:-1:-1;;;23490:2:1;23475:18;;23468:40;23540:3;23525:19;;23144:406::o;23555:465::-;23812:2;23801:9;23794:21;23775:4;23838:56;23890:2;23879:9;23875:18;23867:6;23838:56;:::i;:::-;23942:9;23934:6;23930:22;23925:2;23914:9;23910:18;23903:50;23970:44;24007:6;23999;23970:44;:::i;:::-;23962:52;23555:465;-1:-1:-1;;;;;23555:465:1:o;24385:812::-;24796:25;24791:3;24784:38;24766:3;24851:6;24845:13;24867:75;24935:6;24930:2;24925:3;24921:12;24914:4;24906:6;24902:17;24867:75;:::i;:::-;-1:-1:-1;;;25001:2:1;24961:16;;;24993:11;;;24986:40;25051:13;;25073:76;25051:13;25135:2;25127:11;;25120:4;25108:17;;25073:76;:::i;:::-;25169:17;25188:2;25165:26;;24385:812;-1:-1:-1;;;;24385:812:1:o;25202:397::-;25404:2;25386:21;;;25443:2;25423:18;;;25416:30;25482:34;25477:2;25462:18;;25455:62;-1:-1:-1;;;25548:2:1;25533:18;;25526:31;25589:3;25574:19;;25202:397::o;25604:175::-;25641:3;25685:4;25678:5;25674:16;25714:4;25705:7;25702:17;25699:43;;25722:18;;:::i;:::-;25771:1;25758:15;;25604:175;-1:-1:-1;;25604:175:1:o;26799:827::-;-1:-1:-1;;;;;27196:15:1;;;27178:34;;27248:15;;27243:2;27228:18;;27221:43;27158:3;27295:2;27280:18;;27273:31;;;27121:4;;27327:57;;27364:19;;27356:6;27327:57;:::i;:::-;27432:9;27424:6;27420:22;27415:2;27404:9;27400:18;27393:50;27466:44;27503:6;27495;27466:44;:::i;:::-;27452:58;;27559:9;27551:6;27547:22;27541:3;27530:9;27526:19;27519:51;27587:33;27613:6;27605;27587:33;:::i;:::-;27579:41;26799:827;-1:-1:-1;;;;;;;;26799:827:1:o;27631:249::-;27700:6;27753:2;27741:9;27732:7;27728:23;27724:32;27721:52;;;27769:1;27766;27759:12;27721:52;27801:9;27795:16;27820:30;27844:5;27820:30;:::i;27885:179::-;27920:3;27962:1;27944:16;27941:23;27938:120;;;28008:1;28005;28002;27987:23;-1:-1:-1;28045:1:1;28039:8;28034:3;28030:18;27885:179;:::o;28069:671::-;28108:3;28150:4;28132:16;28129:26;28126:39;;;28069:671;:::o;28126:39::-;28192:2;28186:9;-1:-1:-1;;28257:16:1;28253:25;;28250:1;28186:9;28229:50;28308:4;28302:11;28332:16;-1:-1:-1;;;;;28438:2:1;28431:4;28423:6;28419:17;28416:25;28411:2;28403:6;28400:14;28397:45;28394:58;;;28445:5;;;;;28069:671;:::o;28394:58::-;28482:6;28476:4;28472:17;28461:28;;28518:3;28512:10;28545:2;28537:6;28534:14;28531:27;;;28551:5;;;;;;28069:671;:::o;28531:27::-;28635:2;28616:16;28610:4;28606:27;28602:36;28595:4;28586:6;28581:3;28577:16;28573:27;28570:69;28567:82;;;28642:5;;;;;;28069:671;:::o;28567:82::-;28658:57;28709:4;28700:6;28692;28688:19;28684:30;28678:4;28658:57;:::i;:::-;-1:-1:-1;28731:3:1;;28069:671;-1:-1:-1;;;;;28069:671:1:o;29166:404::-;29368:2;29350:21;;;29407:2;29387:18;;;29380:30;29446:34;29441:2;29426:18;;29419:62;-1:-1:-1;;;29512:2:1;29497:18;;29490:38;29560:3;29545:19;;29166:404::o;29972:127::-;30033:10;30028:3;30024:20;30021:1;30014:31;30064:4;30061:1;30054:15;30088:4;30085:1;30078:15;31220:168;31293:9;;;31324;;31341:15;;;31335:22;;31321:37;31311:71;;31362:18;;:::i;31393:136::-;31432:3;31460:5;31450:39;;31469:18;;:::i;:::-;-1:-1:-1;;;31505:18:1;;31393:136::o;31895:397::-;32097:2;32079:21;;;32136:2;32116:18;;;32109:30;32175:34;32170:2;32155:18;;32148:62;-1:-1:-1;;;32241:2:1;32226:18;;32219:31;32282:3;32267:19;;31895:397::o;32297:561::-;-1:-1:-1;;;;;32594:15:1;;;32576:34;;32646:15;;32641:2;32626:18;;32619:43;32693:2;32678:18;;32671:34;;;32736:2;32721:18;;32714:34;;;32556:3;32779;32764:19;;32757:32;;;32519:4;;32806:46;;32832:19;;32824:6;32806:46;:::i;:::-;32798:54;32297:561;-1:-1:-1;;;;;;;32297:561:1:o
Swarm Source
ipfs://9dcc7eb8c585457186cb96e31e25414c52ec99a8d94a96adcffb6763fff4ff2d
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.