Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
0x60806040 | 16670205 | 766 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
AllianceBlockToken
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-02-20 */ // Sources flattened with hardhat v2.12.6 https://hardhat.org // File @openzeppelin/contracts-upgradeable/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControlUpgradeable { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // 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 AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // 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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = MathUpgradeable.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, MathUpgradeable.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File @openzeppelin/contracts-upgradeable/access/[email protected] // 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 AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable { function __AccessControl_init() internal onlyInitializing { } function __AccessControl_init_unchained() internal onlyInitializing { } struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", StringsUpgradeable.toHexString(account), " is missing role ", StringsUpgradeable.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerableUpgradeable is IAccessControlUpgradeable { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } // File @openzeppelin/contracts-upgradeable/utils/structs/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ library EnumerableSetUpgradeable { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values in the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } } // File @openzeppelin/contracts-upgradeable/access/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerableUpgradeable is Initializable, IAccessControlEnumerableUpgradeable, AccessControlUpgradeable { function __AccessControlEnumerable_init() internal onlyInitializing { } function __AccessControlEnumerable_init_unchained() internal onlyInitializing { } using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet; mapping(bytes32 => EnumerableSetUpgradeable.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/security/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[45] private __gap; } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20PermitUpgradeable { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library CountersUpgradeable { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File @openzeppelin/contracts-upgradeable/utils/cryptography/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSAUpgradeable { 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", StringsUpgradeable.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 @openzeppelin/contracts-upgradeable/utils/cryptography/[email protected] // 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._ * * @custom:storage-size 52 */ abstract contract EIP712Upgradeable is Initializable { /* solhint-disable var-name-mixedcase */ bytes32 private _HASHED_NAME; bytes32 private _HASHED_VERSION; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); /* 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]. */ function __EIP712_init(string memory name, string memory version) internal onlyInitializing { __EIP712_init_unchained(name, version); } function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash()); } 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 ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev The hash of the name parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712NameHash() internal virtual view returns (bytes32) { return _HASHED_NAME; } /** * @dev The hash of the version parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712VersionHash() internal virtual view returns (bytes32) { return _HASHED_VERSION; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/extensions/draft-ERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ * * @custom:storage-size 51 */ abstract contract ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IERC20PermitUpgradeable, EIP712Upgradeable { using CountersUpgradeable for CountersUpgradeable.Counter; mapping(address => CountersUpgradeable.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ function __ERC20Permit_init(string memory name) internal onlyInitializing { __EIP712_init_unchained(name, "1"); } function __ERC20Permit_init_unchained(string memory) internal onlyInitializing {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSAUpgradeable.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { CountersUpgradeable.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable { function __ERC20Burnable_init() internal onlyInitializing { } function __ERC20Burnable_init_unchained() internal onlyInitializing { } /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.0; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20PausableUpgradeable is Initializable, ERC20Upgradeable, PausableUpgradeable { function __ERC20Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __ERC20Pausable_init_unchained() internal onlyInitializing { } /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Arrays.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to array types. */ library ArraysUpgradeable { using StorageSlotUpgradeable for bytes32; /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = MathUpgradeable.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds down (it does integer division with truncation). if (unsafeAccess(array, mid).value > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && unsafeAccess(array, low - 1).value == element) { return low - 1; } else { return low; } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlotUpgradeable.AddressSlot storage) { bytes32 slot; /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getAddressSlot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlotUpgradeable.Bytes32Slot storage) { bytes32 slot; /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getBytes32Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlotUpgradeable.Uint256Slot storage) { bytes32 slot; /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getUint256Slot(); } } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/extensions/ERC20Snapshot.sol) pragma solidity ^0.8.0; /** * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and * total supply at the time are recorded for later access. * * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting. * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be * used to create an efficient ERC20 forking mechanism. * * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id * and the account address. * * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it * return `block.number` will trigger the creation of snapshot at the beginning of each new block. When overriding this * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract. * * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient * alternative consider {ERC20Votes}. * * ==== Gas Costs * * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much * smaller since identical balances in subsequent snapshots are stored as a single entry. * * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent * transfers will have normal cost until the next snapshot, and so on. */ abstract contract ERC20SnapshotUpgradeable is Initializable, ERC20Upgradeable { function __ERC20Snapshot_init() internal onlyInitializing { } function __ERC20Snapshot_init_unchained() internal onlyInitializing { } // Inspired by Jordi Baylina's MiniMeToken to record historical balances: // https://github.com/Giveth/minime/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol using ArraysUpgradeable for uint256[]; using CountersUpgradeable for CountersUpgradeable.Counter; // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a // Snapshot struct, but that would impede usage of functions that work on an array. struct Snapshots { uint256[] ids; uint256[] values; } mapping(address => Snapshots) private _accountBalanceSnapshots; Snapshots private _totalSupplySnapshots; // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid. CountersUpgradeable.Counter private _currentSnapshotId; /** * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created. */ event Snapshot(uint256 id); /** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to the public. * * [WARNING] * ==== * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking, * you must consider that it can potentially be used by attackers in two ways. * * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs * section above. * * We haven't measured the actual numbers; if this is something you're interested in please reach out to us. * ==== */ function _snapshot() internal virtual returns (uint256) { _currentSnapshotId.increment(); uint256 currentId = _getCurrentSnapshotId(); emit Snapshot(currentId); return currentId; } /** * @dev Get the current snapshotId */ function _getCurrentSnapshotId() internal view virtual returns (uint256) { return _currentSnapshotId.current(); } /** * @dev Retrieves the balance of `account` at the time `snapshotId` was created. */ function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]); return snapshotted ? value : balanceOf(account); } /** * @dev Retrieves the total supply at the time `snapshotId` was created. */ function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) { (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots); return snapshotted ? value : totalSupply(); } // Update balance and/or total supply snapshots before the values are modified. This is implemented // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations. function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); if (from == address(0)) { // mint _updateAccountSnapshot(to); _updateTotalSupplySnapshot(); } else if (to == address(0)) { // burn _updateAccountSnapshot(from); _updateTotalSupplySnapshot(); } else { // transfer _updateAccountSnapshot(from); _updateAccountSnapshot(to); } } function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) { require(snapshotId > 0, "ERC20Snapshot: id is 0"); require(snapshotId <= _getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id"); // When a valid snapshot is queried, there are three possibilities: // a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never // created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds // to this id is the current one. // b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the // requested id, and its value is the one to return. // c) More snapshots were created after the requested one, and the queried value was later modified. There will be // no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is // larger than the requested one. // // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does // exactly this. uint256 index = snapshots.ids.findUpperBound(snapshotId); if (index == snapshots.ids.length) { return (false, 0); } else { return (true, snapshots.values[index]); } } function _updateAccountSnapshot(address account) private { _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account)); } function _updateTotalSupplySnapshot() private { _updateSnapshot(_totalSupplySnapshots, totalSupply()); } function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private { uint256 currentId = _getCurrentSnapshotId(); if (_lastSnapshotId(snapshots.ids) < currentId) { snapshots.ids.push(currentId); snapshots.values.push(currentValue); } } function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) { if (ids.length == 0) { return 0; } else { return ids[ids.length - 1]; } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[46] private __gap; } // File @openzeppelin/contracts-upgradeable/token/ERC20/presets/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/presets/ERC20PresetMinterPauser.sol) pragma solidity ^0.8.0; /** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to other accounts. * * _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._ */ contract ERC20PresetMinterPauserUpgradeable is Initializable, ContextUpgradeable, AccessControlEnumerableUpgradeable, ERC20BurnableUpgradeable, ERC20PausableUpgradeable { function initialize(string memory name, string memory symbol) public virtual initializer { __ERC20PresetMinterPauser_init(name, symbol); } bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the * account that deploys the contract. * * See {ERC20-constructor}. */ function __ERC20PresetMinterPauser_init(string memory name, string memory symbol) internal onlyInitializing { __ERC20_init_unchained(name, symbol); __Pausable_init_unchained(); __ERC20PresetMinterPauser_init_unchained(name, symbol); } function __ERC20PresetMinterPauser_init_unchained(string memory, string memory) internal onlyInitializing { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); } /** * @dev Creates `amount` new tokens for `to`. * * See {ERC20-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to, uint256 amount) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint"); _mint(to, amount); } /** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause"); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC20Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause"); _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override(ERC20Upgradeable, ERC20PausableUpgradeable) { super._beforeTokenTransfer(from, to, amount); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File contracts/AllianceBlockToken.sol pragma solidity >=0.8.4; contract AllianceBlockToken is ERC20PresetMinterPauserUpgradeable, ERC20SnapshotUpgradeable, ERC20PermitUpgradeable { uint256 private constant VERSION = 1; // The cap or max total supply of the token. uint256 private _cap; event BatchMint(address indexed sender, uint256 recipientsLength, uint256 totalValue); constructor() initializer {} function init(string memory name, string memory symbol, address admin, uint256 cap_) public initializer { __ERC20_init_unchained(name, symbol); __ERC20Snapshot_init_unchained(); __ERC20Permit_init(name); __Pausable_init_unchained(); __AllianceBlockToken_init_unchained(cap_); // We don't use __ERC20PresetMinterPauser_init_unchained to avoid giving permisions to _msgSender require(admin != address(0), "NXRA: Admin can't be zero address"); _setupRole(DEFAULT_ADMIN_ROLE, admin); _setupRole(MINTER_ROLE, admin); _setupRole(PAUSER_ROLE, admin); } function __AllianceBlockToken_init_unchained(uint256 cap_) internal onlyInitializing { require(cap_ > 0, "NXRA: cap is 0"); _cap = cap_; } // Update balance and/or total supply snapshots before the values are modified. This is implemented // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations. // Avoid direct token transfers to this contract function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override(ERC20PresetMinterPauserUpgradeable, ERC20SnapshotUpgradeable, ERC20Upgradeable) { require(to != address(this), "NXRA: Token transfer to this contract"); super._beforeTokenTransfer(from, to, amount); } /** * @dev Get the current snapshotId */ function getCurrentSnapshotId() public view returns (uint256) { return _getCurrentSnapshotId(); } /** * @dev Creates a new snapshot and returns its snapshot id. * * Emits a {Snapshot} event that contains the same id. * * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a * set of accounts, for example using {AccessControl}, or it may be open to the public. */ function snapshot() public returns (uint256) { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "NXRA: Snapshot invalid role"); require(!paused(), "NXRA: Contract paused"); return _snapshot(); } /** * @dev Returns the cap on the token's total supply. */ function cap() external view virtual returns (uint256) { return _cap; } /** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public override { super.pause(); _snapshot(); } /// @dev Returns the version of the contract. function contractVersion() external pure returns (uint256) { return VERSION; } /** * @dev Mints multiple values for multiple receivers */ function batchMint(address[] calldata recipients, uint256[] calldata values) public returns (bool) { require(hasRole(MINTER_ROLE, _msgSender()), "NXRA: Batch mint invalid role"); uint256 recipientsLength = recipients.length; require(recipientsLength == values.length, "NXRA: Batch mint not same legth"); uint256 totalValue = 0; for (uint256 i = 0; i < recipientsLength;) { super._mint(recipients[i], values[i]); unchecked { // Overflow not possible: totalValue + amount is at most totalSupply + amount, which is checked above. totalValue += values[i]; } unchecked { i++; } } require(totalSupply() <= _cap, "NXRA: cap exceeded"); emit BatchMint(_msgSender(), recipientsLength, totalValue); return true; } /** * @dev See {ERC20-_mint}. * @dev Checks if cap is reached and calls normal _mint. */ function _mint(address account, uint256 amount) internal override { require(totalSupply() + amount <= _cap, "NXRA: cap exceeded"); super._mint(account, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"recipientsLength","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalValue","type":"uint256"}],"name":"BatchMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","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":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"batchMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCurrentSnapshotId","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"uint256","name":"cap_","type":"uint256"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","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":[],"name":"snapshot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b620012e31760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b6136b8806200015c6000396000f3fe608060405234801561001057600080fd5b50600436106102c85760003560e01c8063685731071161017b578063a0a8e460116100d8578063d505accf1161008c578063d547741f11610071578063d547741f146105ae578063dd62ed3e146105c1578063e63ab1e9146105fa57600080fd5b8063d505accf14610574578063d53913931461058757600080fd5b8063a457c2d7116100bd578063a457c2d71461053b578063a9059cbb1461054e578063ca15c8731461056157600080fd5b8063a0a8e4601461052c578063a217fddf1461053357600080fd5b80639010d07c1161012f57806395d89b411161011457806395d89b41146105095780639711715a14610511578063981b24d01461051957600080fd5b80639010d07c146104a557806391d14854146104d057600080fd5b806379cc67901161016057806379cc6790146104775780637ecebe001461048a5780638456cb591461049d57600080fd5b8063685731071461043b57806370a082311461044e57600080fd5b806336568abe116102295780634cd88b76116101dd5780635439ad86116101c25780635439ad86146104145780635c975abb1461041c5780635edc7c191461042857600080fd5b80634cd88b76146103ee5780634ee2cd7e1461040157600080fd5b80633f4ba83a1161020e5780633f4ba83a146103c057806340c10f19146103c857806342966c68146103db57600080fd5b806336568abe1461039a57806339509351146103ad57600080fd5b8063248a9ca311610280578063313ce56711610265578063313ce5671461037a578063355274ea146103895780633644e5151461039257600080fd5b8063248a9ca3146103425780632f2ff15d1461036557600080fd5b8063095ea7b3116102b1578063095ea7b31461030a57806318160ddd1461031d57806323b872dd1461032f57600080fd5b806301ffc9a7146102cd57806306fdde03146102f5575b600080fd5b6102e06102db366004612ed9565b610621565b60405190151581526020015b60405180910390f35b6102fd61067d565b6040516102ec9190612f3f565b6102e0610318366004612f89565b61070f565b60cb545b6040519081526020016102ec565b6102e061033d366004612fb3565b610727565b610321610350366004612fef565b60009081526065602052604090206001015490565b610378610373366004613008565b61074b565b005b604051601281526020016102ec565b61025c54610321565b610321610775565b6103786103a8366004613008565b610784565b6102e06103bb366004612f89565b610815565b610378610854565b6103786103d6366004612f89565b6108fa565b6103786103e9366004612fef565b6109a0565b6103786103fc3660046130f0565b6109ad565b61032161040f366004612f89565b610ad0565b610321610b2a565b61012d5460ff166102e0565b610378610436366004613154565b610b34565b6102e0610449366004613215565b610d57565b61032161045c366004613281565b6001600160a01b0316600090815260c9602052604090205490565b610378610485366004612f89565b610f39565b610321610498366004613281565b610f4e565b610378610f6d565b6104b86104b336600461329c565b610f7d565b6040516001600160a01b0390911681526020016102ec565b6102e06104de366004613008565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6102fd610f9c565b610321610fab565b610321610527366004612fef565b61105f565b6001610321565b610321600081565b6102e0610549366004612f89565b61108b565b6102e061055c366004612f89565b611135565b61032161056f366004612fef565b611143565b6103786105823660046132be565b61115a565b6103217f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103786105bc366004613008565b6112be565b6103216105cf366004613331565b6001600160a01b03918216600090815260ca6020908152604080832093909416825291909152205490565b6103217f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f0000000000000000000000000000000000000000000000000000000014806106775750610677826112f2565b92915050565b606060cc805461068c9061335b565b80601f01602080910402602001604051908101604052809291908181526020018280546106b89061335b565b80156107055780601f106106da57610100808354040283529160200191610705565b820191906000526020600020905b8154815290600101906020018083116106e857829003601f168201915b5050505050905090565b60003361071d818585611389565b5060019392505050565b6000336107358582856114e1565b610740858585611573565b506001949350505050565b60008281526065602052604090206001015461076681611772565b610770838361177c565b505050565b600061077f61179e565b905090565b6001600160a01b03811633146108075760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b610811828261181b565b5050565b33600081815260ca602090815260408083206001600160a01b038716845290915281205490919061071d908290869061084f9087906133d7565b611389565b61087e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336104de565b6108f05760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e70617573650000000000000060648201526084016107fe565b6108f861183d565b565b6109247f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336104de565b6109965760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f7665206d696e74657220726f6c6520746f206d696e740000000000000000000060648201526084016107fe565b6108118282611890565b6109aa3382611900565b50565b600054610100900460ff16158080156109cd5750600054600160ff909116105b806109e75750303b1580156109e7575060005460ff166001145b610a595760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016107fe565b6000805460ff191660011790558015610a7c576000805461ff0019166101001790555b610a868383611a77565b8015610770576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b6001600160a01b03821660009081526101c36020526040812081908190610af8908590611b10565b9150915081610b1f576001600160a01b038516600090815260c96020526040902054610b21565b805b95945050505050565b600061077f611c0d565b600054610100900460ff1615808015610b545750600054600160ff909116105b80610b6e5750303b158015610b6e575060005460ff166001145b610be05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016107fe565b6000805460ff191660011790558015610c03576000805461ff0019166101001790555b610c0d8585611c19565b610c15611caf565b610c1e85611d2c565b610c26611de8565b610c2f82611e72565b6001600160a01b038316610cab5760405162461bcd60e51b815260206004820152602160248201527f4e5852413a2041646d696e2063616e2774206265207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b610cb6600084611f45565b610ce07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a684611f45565b610d0a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a84611f45565b8015610d50576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6000610d837f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336104de565b610dcf5760405162461bcd60e51b815260206004820152601d60248201527f4e5852413a204261746368206d696e7420696e76616c696420726f6c6500000060448201526064016107fe565b83828114610e1f5760405162461bcd60e51b815260206004820152601f60248201527f4e5852413a204261746368206d696e74206e6f742073616d65206c656774680060448201526064016107fe565b6000805b82811015610e9b57610e73888883818110610e4057610e406133ea565b9050602002016020810190610e559190613281565b878784818110610e6757610e676133ea565b90506020020135611f4f565b858582818110610e8557610e856133ea565b6020029190910135929092019150600101610e23565b5061025c5460cb541115610ef15760405162461bcd60e51b815260206004820152601260248201527f4e5852413a20636170206578636565646564000000000000000000000000000060448201526064016107fe565b604080518381526020810183905233917f63232c37f2c1fdcb4fc657df1cef6cabc7181c5b604530242590ffe5fa91ab74910160405180910390a25060019695505050505050565b610f448233836114e1565b6108118282611900565b6001600160a01b03811660009081526102296020526040812054610677565b610f7561201c565b6109aa6120c0565b6000828152609760205260408120610f95908361211b565b9392505050565b606060cd805461068c9061335b565b6000610fb781336104de565b6110035760405162461bcd60e51b815260206004820152601b60248201527f4e5852413a20536e617073686f7420696e76616c696420726f6c65000000000060448201526064016107fe565b61012d5460ff16156110575760405162461bcd60e51b815260206004820152601560248201527f4e5852413a20436f6e747261637420706175736564000000000000000000000060448201526064016107fe565b61077f6120c0565b6000806000611070846101c4611b10565b91509150816110815760cb54611083565b805b949350505050565b33600081815260ca602090815260408083206001600160a01b0387168452909152812054909190838110156111285760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016107fe565b6107408286868403611389565b60003361071d818585611573565b600081815260976020526040812061067790612127565b834211156111aa5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016107fe565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886111d98c612131565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006112348261215a565b90506000611244828787876121c3565b9050896001600160a01b0316816001600160a01b0316146112a75760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016107fe565b6112b28a8a8a611389565b50505050505050505050565b6000828152606560205260409020600101546112d981611772565b610770838361181b565b6001600160a01b03163b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061067757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610677565b6001600160a01b0383166114045760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b0382166114805760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b03838116600081815260ca602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260ca6020908152604080832093861683529290522054600019811461156d57818110156115605760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107fe565b61156d8484848403611389565b50505050565b6001600160a01b0383166115ef5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b03821661166b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b6116768383836121eb565b6001600160a01b038316600090815260c96020526040902054818110156117055760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b03808516600081815260c9602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906117659086815260200190565b60405180910390a361156d565b6109aa8133612274565b61178682826122e9565b6000828152609760205260409020610770908261238b565b600061077f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6117ce6101f55490565b6101f6546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b61182582826123a0565b60008281526097602052604090206107709082612423565b611845612438565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61025c548161189e60cb5490565b6118a891906133d7565b11156118f65760405162461bcd60e51b815260206004820152601260248201527f4e5852413a20636170206578636565646564000000000000000000000000000060448201526064016107fe565b6108118282611f4f565b6001600160a01b03821661197c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b611988826000836121eb565b6001600160a01b038216600090815260c9602052604090205481811015611a175760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b038316600081815260c960209081526040808320868603905560cb80548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600054610100900460ff16611af45760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b611afe8282611c19565b611b06611de8565b610811828261248b565b60008060008411611b635760405162461bcd60e51b815260206004820152601660248201527f4552433230536e617073686f743a20696420697320300000000000000000000060448201526064016107fe565b611b6b611c0d565b841115611bba5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016107fe565b6000611bc68486612567565b84549091508103611bde576000809250925050611c06565b6001846001018281548110611bf557611bf56133ea565b906000526020600020015492509250505b9250929050565b600061077f6101c65490565b600054610100900460ff16611c965760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b60cc611ca28382613467565b5060cd6107708282613467565b600054610100900460ff166108f85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b600054610100900460ff16611da95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b6109aa816040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250612614565b600054610100900460ff16611e655760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b61012d805460ff19169055565b600054610100900460ff16611eef5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b60008111611f3f5760405162461bcd60e51b815260206004820152600e60248201527f4e5852413a20636170206973203000000000000000000000000000000000000060448201526064016107fe565b61025c55565b610811828261177c565b6001600160a01b038216611fa55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107fe565b611fb1600083836121eb565b8060cb6000828254611fc391906133d7565b90915550506001600160a01b038216600081815260c960209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6120467f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336104de565b6120b85760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20706175736500000000000000000060648201526084016107fe565b6108f86126ad565b60006120d16101c680546001019055565b60006120db611c0d565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161210e91815260200190565b60405180910390a1919050565b6000610f9583836126eb565b6000610677825490565b6001600160a01b0381166000908152610229602052604090208054600181018255905b50919050565b600061067761216761179e565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006121d487878787612715565b915091506121e1816127d9565b5095945050505050565b306001600160a01b038316036122695760405162461bcd60e51b815260206004820152602560248201527f4e5852413a20546f6b656e207472616e7366657220746f207468697320636f6e60448201527f747261637400000000000000000000000000000000000000000000000000000060648201526084016107fe565b61077083838361293e565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff16610811576122a781612991565b6122b28360206129a3565b6040516020016122c3929190613527565b60408051601f198184030181529082905262461bcd60e51b82526107fe91600401612f3f565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff166108115760008281526065602090815260408083206001600160a01b03851684529091529020805460ff191660011790556123473390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610f95836001600160a01b038416612bcc565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff16156108115760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610f95836001600160a01b038416612c1b565b61012d5460ff166108f85760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107fe565b600054610100900460ff166125085760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b612513600033611f45565b61253d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633611f45565b6108117f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33611f45565b8154600090810361257a57506000610677565b82546000905b808210156125c75760006125948383612d0e565b600087815260209020909150859082015411156125b3578091506125c1565b6125be8160016133d7565b92505b50612580565b6000821180156125f35750836125f0866125e26001866135a8565b600091825260209091200190565b54145b1561260c576126036001836135a8565b92505050610677565b509050610677565b600054610100900460ff166126915760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b8151602092830120815191909201206101f5919091556101f655565b6126b5612d29565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118733390565b6000826000018281548110612702576127026133ea565b9060005260206000200154905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561274c57506000905060036127d0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156127a0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166127c9576000600192509250506127d0565b9150600090505b94509492505050565b60008160048111156127ed576127ed6135bb565b036127f55750565b6001816004811115612809576128096135bb565b036128565760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107fe565b600281600481111561286a5761286a6135bb565b036128b75760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107fe565b60038160048111156128cb576128cb6135bb565b036109aa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b612949838383612d7d565b6001600160a01b0383166129685761296082612d88565b610770612dbc565b6001600160a01b03821661297f5761296083612d88565b61298883612d88565b61077082612d88565b60606106776001600160a01b03831660145b606060006129b28360026135ea565b6129bd9060026133d7565b67ffffffffffffffff8111156129d5576129d5613034565b6040519080825280601f01601f1916602001820160405280156129ff576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612a3657612a366133ea565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612a9957612a996133ea565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612ad58460026135ea565b612ae09060016133d7565b90505b6001811115612b7d577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612b2157612b216133ea565b1a60f81b828281518110612b3757612b376133ea565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612b7681613601565b9050612ae3565b508315610f955760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107fe565b6000818152600183016020526040812054612c1357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610677565b506000610677565b60008181526001830160205260408120548015612d04576000612c3f6001836135a8565b8554909150600090612c53906001906135a8565b9050818114612cb8576000866000018281548110612c7357612c736133ea565b9060005260206000200154905080876000018481548110612c9657612c966133ea565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612cc957612cc9613618565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610677565b6000915050610677565b6000612d1d6002848418613647565b610f95908484166133d7565b61012d5460ff16156108f85760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fe565b610770838383612dcb565b6001600160a01b03811660009081526101c36020908152604080832060c9909252909120546109aa9190612e45565b612e45565b6108f86101c4612db760cb5490565b61012d5460ff16156107705760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c65207061757365640000000000000000000000000000000000000000000060648201526084016107fe565b6000612e4f611c0d565b905080612e5b84612e8f565b1015610770578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103612ea257506000919050565b81548290612eb2906001906135a8565b81548110612ec257612ec26133ea565b90600052602060002001549050919050565b919050565b600060208284031215612eeb57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610f9557600080fd5b60005b83811015612f36578181015183820152602001612f1e565b50506000910152565b6020815260008251806020840152612f5e816040850160208701612f1b565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114612ed457600080fd5b60008060408385031215612f9c57600080fd5b612fa583612f72565b946020939093013593505050565b600080600060608486031215612fc857600080fd5b612fd184612f72565b9250612fdf60208501612f72565b9150604084013590509250925092565b60006020828403121561300157600080fd5b5035919050565b6000806040838503121561301b57600080fd5b8235915061302b60208401612f72565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261307457600080fd5b813567ffffffffffffffff8082111561308f5761308f613034565b604051601f8301601f19908116603f011681019082821181831017156130b7576130b7613034565b816040528381528660208588010111156130d057600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561310357600080fd5b823567ffffffffffffffff8082111561311b57600080fd5b61312786838701613063565b9350602085013591508082111561313d57600080fd5b5061314a85828601613063565b9150509250929050565b6000806000806080858703121561316a57600080fd5b843567ffffffffffffffff8082111561318257600080fd5b61318e88838901613063565b955060208701359150808211156131a457600080fd5b506131b187828801613063565b9350506131c060408601612f72565b9396929550929360600135925050565b60008083601f8401126131e257600080fd5b50813567ffffffffffffffff8111156131fa57600080fd5b6020830191508360208260051b8501011115611c0657600080fd5b6000806000806040858703121561322b57600080fd5b843567ffffffffffffffff8082111561324357600080fd5b61324f888389016131d0565b9096509450602087013591508082111561326857600080fd5b50613275878288016131d0565b95989497509550505050565b60006020828403121561329357600080fd5b610f9582612f72565b600080604083850312156132af57600080fd5b50508035926020909101359150565b600080600080600080600060e0888a0312156132d957600080fd5b6132e288612f72565b96506132f060208901612f72565b95506040880135945060608801359350608088013560ff8116811461331457600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561334457600080fd5b61334d83612f72565b915061302b60208401612f72565b600181811c9082168061336f57607f821691505b602082108103612154577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610677576106776133a8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601f82111561077057600081815260208120601f850160051c810160208610156134405750805b601f850160051c820191505b8181101561345f5782815560010161344c565b505050505050565b815167ffffffffffffffff81111561348157613481613034565b6134958161348f845461335b565b84613419565b602080601f8311600181146134ca57600084156134b25750858301515b600019600386901b1c1916600185901b17855561345f565b600085815260208120601f198616915b828110156134f9578886015182559484019460019091019084016134da565b50858210156135175787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161355f816017850160208801612f1b565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161359c816028840160208801612f1b565b01602801949350505050565b81810381811115610677576106776133a8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8082028115828204841417610677576106776133a8565b600081613610576136106133a8565b506000190190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60008261367d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea26469706673582212203d14218b1bdf7e3fc29c90c0584f908e8c28697097e96b5fdfc43e6f2ce4ca2c64736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102c85760003560e01c8063685731071161017b578063a0a8e460116100d8578063d505accf1161008c578063d547741f11610071578063d547741f146105ae578063dd62ed3e146105c1578063e63ab1e9146105fa57600080fd5b8063d505accf14610574578063d53913931461058757600080fd5b8063a457c2d7116100bd578063a457c2d71461053b578063a9059cbb1461054e578063ca15c8731461056157600080fd5b8063a0a8e4601461052c578063a217fddf1461053357600080fd5b80639010d07c1161012f57806395d89b411161011457806395d89b41146105095780639711715a14610511578063981b24d01461051957600080fd5b80639010d07c146104a557806391d14854146104d057600080fd5b806379cc67901161016057806379cc6790146104775780637ecebe001461048a5780638456cb591461049d57600080fd5b8063685731071461043b57806370a082311461044e57600080fd5b806336568abe116102295780634cd88b76116101dd5780635439ad86116101c25780635439ad86146104145780635c975abb1461041c5780635edc7c191461042857600080fd5b80634cd88b76146103ee5780634ee2cd7e1461040157600080fd5b80633f4ba83a1161020e5780633f4ba83a146103c057806340c10f19146103c857806342966c68146103db57600080fd5b806336568abe1461039a57806339509351146103ad57600080fd5b8063248a9ca311610280578063313ce56711610265578063313ce5671461037a578063355274ea146103895780633644e5151461039257600080fd5b8063248a9ca3146103425780632f2ff15d1461036557600080fd5b8063095ea7b3116102b1578063095ea7b31461030a57806318160ddd1461031d57806323b872dd1461032f57600080fd5b806301ffc9a7146102cd57806306fdde03146102f5575b600080fd5b6102e06102db366004612ed9565b610621565b60405190151581526020015b60405180910390f35b6102fd61067d565b6040516102ec9190612f3f565b6102e0610318366004612f89565b61070f565b60cb545b6040519081526020016102ec565b6102e061033d366004612fb3565b610727565b610321610350366004612fef565b60009081526065602052604090206001015490565b610378610373366004613008565b61074b565b005b604051601281526020016102ec565b61025c54610321565b610321610775565b6103786103a8366004613008565b610784565b6102e06103bb366004612f89565b610815565b610378610854565b6103786103d6366004612f89565b6108fa565b6103786103e9366004612fef565b6109a0565b6103786103fc3660046130f0565b6109ad565b61032161040f366004612f89565b610ad0565b610321610b2a565b61012d5460ff166102e0565b610378610436366004613154565b610b34565b6102e0610449366004613215565b610d57565b61032161045c366004613281565b6001600160a01b0316600090815260c9602052604090205490565b610378610485366004612f89565b610f39565b610321610498366004613281565b610f4e565b610378610f6d565b6104b86104b336600461329c565b610f7d565b6040516001600160a01b0390911681526020016102ec565b6102e06104de366004613008565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6102fd610f9c565b610321610fab565b610321610527366004612fef565b61105f565b6001610321565b610321600081565b6102e0610549366004612f89565b61108b565b6102e061055c366004612f89565b611135565b61032161056f366004612fef565b611143565b6103786105823660046132be565b61115a565b6103217f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103786105bc366004613008565b6112be565b6103216105cf366004613331565b6001600160a01b03918216600090815260ca6020908152604080832093909416825291909152205490565b6103217f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f0000000000000000000000000000000000000000000000000000000014806106775750610677826112f2565b92915050565b606060cc805461068c9061335b565b80601f01602080910402602001604051908101604052809291908181526020018280546106b89061335b565b80156107055780601f106106da57610100808354040283529160200191610705565b820191906000526020600020905b8154815290600101906020018083116106e857829003601f168201915b5050505050905090565b60003361071d818585611389565b5060019392505050565b6000336107358582856114e1565b610740858585611573565b506001949350505050565b60008281526065602052604090206001015461076681611772565b610770838361177c565b505050565b600061077f61179e565b905090565b6001600160a01b03811633146108075760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b610811828261181b565b5050565b33600081815260ca602090815260408083206001600160a01b038716845290915281205490919061071d908290869061084f9087906133d7565b611389565b61087e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336104de565b6108f05760405162461bcd60e51b815260206004820152603960248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20756e70617573650000000000000060648201526084016107fe565b6108f861183d565b565b6109247f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336104de565b6109965760405162461bcd60e51b815260206004820152603660248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f7665206d696e74657220726f6c6520746f206d696e740000000000000000000060648201526084016107fe565b6108118282611890565b6109aa3382611900565b50565b600054610100900460ff16158080156109cd5750600054600160ff909116105b806109e75750303b1580156109e7575060005460ff166001145b610a595760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016107fe565b6000805460ff191660011790558015610a7c576000805461ff0019166101001790555b610a868383611a77565b8015610770576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b6001600160a01b03821660009081526101c36020526040812081908190610af8908590611b10565b9150915081610b1f576001600160a01b038516600090815260c96020526040902054610b21565b805b95945050505050565b600061077f611c0d565b600054610100900460ff1615808015610b545750600054600160ff909116105b80610b6e5750303b158015610b6e575060005460ff166001145b610be05760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016107fe565b6000805460ff191660011790558015610c03576000805461ff0019166101001790555b610c0d8585611c19565b610c15611caf565b610c1e85611d2c565b610c26611de8565b610c2f82611e72565b6001600160a01b038316610cab5760405162461bcd60e51b815260206004820152602160248201527f4e5852413a2041646d696e2063616e2774206265207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b610cb6600084611f45565b610ce07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a684611f45565b610d0a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a84611f45565b8015610d50576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6000610d837f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336104de565b610dcf5760405162461bcd60e51b815260206004820152601d60248201527f4e5852413a204261746368206d696e7420696e76616c696420726f6c6500000060448201526064016107fe565b83828114610e1f5760405162461bcd60e51b815260206004820152601f60248201527f4e5852413a204261746368206d696e74206e6f742073616d65206c656774680060448201526064016107fe565b6000805b82811015610e9b57610e73888883818110610e4057610e406133ea565b9050602002016020810190610e559190613281565b878784818110610e6757610e676133ea565b90506020020135611f4f565b858582818110610e8557610e856133ea565b6020029190910135929092019150600101610e23565b5061025c5460cb541115610ef15760405162461bcd60e51b815260206004820152601260248201527f4e5852413a20636170206578636565646564000000000000000000000000000060448201526064016107fe565b604080518381526020810183905233917f63232c37f2c1fdcb4fc657df1cef6cabc7181c5b604530242590ffe5fa91ab74910160405180910390a25060019695505050505050565b610f448233836114e1565b6108118282611900565b6001600160a01b03811660009081526102296020526040812054610677565b610f7561201c565b6109aa6120c0565b6000828152609760205260408120610f95908361211b565b9392505050565b606060cd805461068c9061335b565b6000610fb781336104de565b6110035760405162461bcd60e51b815260206004820152601b60248201527f4e5852413a20536e617073686f7420696e76616c696420726f6c65000000000060448201526064016107fe565b61012d5460ff16156110575760405162461bcd60e51b815260206004820152601560248201527f4e5852413a20436f6e747261637420706175736564000000000000000000000060448201526064016107fe565b61077f6120c0565b6000806000611070846101c4611b10565b91509150816110815760cb54611083565b805b949350505050565b33600081815260ca602090815260408083206001600160a01b0387168452909152812054909190838110156111285760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016107fe565b6107408286868403611389565b60003361071d818585611573565b600081815260976020526040812061067790612127565b834211156111aa5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016107fe565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886111d98c612131565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006112348261215a565b90506000611244828787876121c3565b9050896001600160a01b0316816001600160a01b0316146112a75760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016107fe565b6112b28a8a8a611389565b50505050505050505050565b6000828152606560205260409020600101546112d981611772565b610770838361181b565b6001600160a01b03163b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061067757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610677565b6001600160a01b0383166114045760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b0382166114805760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b03838116600081815260ca602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03838116600090815260ca6020908152604080832093861683529290522054600019811461156d57818110156115605760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107fe565b61156d8484848403611389565b50505050565b6001600160a01b0383166115ef5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b03821661166b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b6116768383836121eb565b6001600160a01b038316600090815260c96020526040902054818110156117055760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b03808516600081815260c9602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906117659086815260200190565b60405180910390a361156d565b6109aa8133612274565b61178682826122e9565b6000828152609760205260409020610770908261238b565b600061077f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6117ce6101f55490565b6101f6546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b61182582826123a0565b60008281526097602052604090206107709082612423565b611845612438565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61025c548161189e60cb5490565b6118a891906133d7565b11156118f65760405162461bcd60e51b815260206004820152601260248201527f4e5852413a20636170206578636565646564000000000000000000000000000060448201526064016107fe565b6108118282611f4f565b6001600160a01b03821661197c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b611988826000836121eb565b6001600160a01b038216600090815260c9602052604090205481811015611a175760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b6001600160a01b038316600081815260c960209081526040808320868603905560cb80548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600054610100900460ff16611af45760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b611afe8282611c19565b611b06611de8565b610811828261248b565b60008060008411611b635760405162461bcd60e51b815260206004820152601660248201527f4552433230536e617073686f743a20696420697320300000000000000000000060448201526064016107fe565b611b6b611c0d565b841115611bba5760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e7420696400000060448201526064016107fe565b6000611bc68486612567565b84549091508103611bde576000809250925050611c06565b6001846001018281548110611bf557611bf56133ea565b906000526020600020015492509250505b9250929050565b600061077f6101c65490565b600054610100900460ff16611c965760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b60cc611ca28382613467565b5060cd6107708282613467565b600054610100900460ff166108f85760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b600054610100900460ff16611da95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b6109aa816040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250612614565b600054610100900460ff16611e655760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b61012d805460ff19169055565b600054610100900460ff16611eef5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b60008111611f3f5760405162461bcd60e51b815260206004820152600e60248201527f4e5852413a20636170206973203000000000000000000000000000000000000060448201526064016107fe565b61025c55565b610811828261177c565b6001600160a01b038216611fa55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107fe565b611fb1600083836121eb565b8060cb6000828254611fc391906133d7565b90915550506001600160a01b038216600081815260c960209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6120467f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336104de565b6120b85760405162461bcd60e51b815260206004820152603760248201527f45524332305072657365744d696e7465725061757365723a206d75737420686160448201527f76652070617573657220726f6c6520746f20706175736500000000000000000060648201526084016107fe565b6108f86126ad565b60006120d16101c680546001019055565b60006120db611c0d565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb678160405161210e91815260200190565b60405180910390a1919050565b6000610f9583836126eb565b6000610677825490565b6001600160a01b0381166000908152610229602052604090208054600181018255905b50919050565b600061067761216761179e565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008060006121d487878787612715565b915091506121e1816127d9565b5095945050505050565b306001600160a01b038316036122695760405162461bcd60e51b815260206004820152602560248201527f4e5852413a20546f6b656e207472616e7366657220746f207468697320636f6e60448201527f747261637400000000000000000000000000000000000000000000000000000060648201526084016107fe565b61077083838361293e565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff16610811576122a781612991565b6122b28360206129a3565b6040516020016122c3929190613527565b60408051601f198184030181529082905262461bcd60e51b82526107fe91600401612f3f565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff166108115760008281526065602090815260408083206001600160a01b03851684529091529020805460ff191660011790556123473390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610f95836001600160a01b038416612bcc565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff16156108115760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610f95836001600160a01b038416612c1b565b61012d5460ff166108f85760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107fe565b600054610100900460ff166125085760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b612513600033611f45565b61253d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633611f45565b6108117f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33611f45565b8154600090810361257a57506000610677565b82546000905b808210156125c75760006125948383612d0e565b600087815260209020909150859082015411156125b3578091506125c1565b6125be8160016133d7565b92505b50612580565b6000821180156125f35750836125f0866125e26001866135a8565b600091825260209091200190565b54145b1561260c576126036001836135a8565b92505050610677565b509050610677565b600054610100900460ff166126915760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016107fe565b8151602092830120815191909201206101f5919091556101f655565b6126b5612d29565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118733390565b6000826000018281548110612702576127026133ea565b9060005260206000200154905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561274c57506000905060036127d0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156127a0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166127c9576000600192509250506127d0565b9150600090505b94509492505050565b60008160048111156127ed576127ed6135bb565b036127f55750565b6001816004811115612809576128096135bb565b036128565760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107fe565b600281600481111561286a5761286a6135bb565b036128b75760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107fe565b60038160048111156128cb576128cb6135bb565b036109aa5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016107fe565b612949838383612d7d565b6001600160a01b0383166129685761296082612d88565b610770612dbc565b6001600160a01b03821661297f5761296083612d88565b61298883612d88565b61077082612d88565b60606106776001600160a01b03831660145b606060006129b28360026135ea565b6129bd9060026133d7565b67ffffffffffffffff8111156129d5576129d5613034565b6040519080825280601f01601f1916602001820160405280156129ff576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612a3657612a366133ea565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612a9957612a996133ea565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612ad58460026135ea565b612ae09060016133d7565b90505b6001811115612b7d577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612b2157612b216133ea565b1a60f81b828281518110612b3757612b376133ea565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612b7681613601565b9050612ae3565b508315610f955760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016107fe565b6000818152600183016020526040812054612c1357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610677565b506000610677565b60008181526001830160205260408120548015612d04576000612c3f6001836135a8565b8554909150600090612c53906001906135a8565b9050818114612cb8576000866000018281548110612c7357612c736133ea565b9060005260206000200154905080876000018481548110612c9657612c966133ea565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612cc957612cc9613618565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610677565b6000915050610677565b6000612d1d6002848418613647565b610f95908484166133d7565b61012d5460ff16156108f85760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fe565b610770838383612dcb565b6001600160a01b03811660009081526101c36020908152604080832060c9909252909120546109aa9190612e45565b612e45565b6108f86101c4612db760cb5490565b61012d5460ff16156107705760405162461bcd60e51b815260206004820152602a60248201527f45524332305061757361626c653a20746f6b656e207472616e7366657220776860448201527f696c65207061757365640000000000000000000000000000000000000000000060648201526084016107fe565b6000612e4f611c0d565b905080612e5b84612e8f565b1015610770578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000908103612ea257506000919050565b81548290612eb2906001906135a8565b81548110612ec257612ec26133ea565b90600052602060002001549050919050565b919050565b600060208284031215612eeb57600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610f9557600080fd5b60005b83811015612f36578181015183820152602001612f1e565b50506000910152565b6020815260008251806020840152612f5e816040850160208701612f1b565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114612ed457600080fd5b60008060408385031215612f9c57600080fd5b612fa583612f72565b946020939093013593505050565b600080600060608486031215612fc857600080fd5b612fd184612f72565b9250612fdf60208501612f72565b9150604084013590509250925092565b60006020828403121561300157600080fd5b5035919050565b6000806040838503121561301b57600080fd5b8235915061302b60208401612f72565b90509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261307457600080fd5b813567ffffffffffffffff8082111561308f5761308f613034565b604051601f8301601f19908116603f011681019082821181831017156130b7576130b7613034565b816040528381528660208588010111156130d057600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806040838503121561310357600080fd5b823567ffffffffffffffff8082111561311b57600080fd5b61312786838701613063565b9350602085013591508082111561313d57600080fd5b5061314a85828601613063565b9150509250929050565b6000806000806080858703121561316a57600080fd5b843567ffffffffffffffff8082111561318257600080fd5b61318e88838901613063565b955060208701359150808211156131a457600080fd5b506131b187828801613063565b9350506131c060408601612f72565b9396929550929360600135925050565b60008083601f8401126131e257600080fd5b50813567ffffffffffffffff8111156131fa57600080fd5b6020830191508360208260051b8501011115611c0657600080fd5b6000806000806040858703121561322b57600080fd5b843567ffffffffffffffff8082111561324357600080fd5b61324f888389016131d0565b9096509450602087013591508082111561326857600080fd5b50613275878288016131d0565b95989497509550505050565b60006020828403121561329357600080fd5b610f9582612f72565b600080604083850312156132af57600080fd5b50508035926020909101359150565b600080600080600080600060e0888a0312156132d957600080fd5b6132e288612f72565b96506132f060208901612f72565b95506040880135945060608801359350608088013560ff8116811461331457600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561334457600080fd5b61334d83612f72565b915061302b60208401612f72565b600181811c9082168061336f57607f821691505b602082108103612154577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115610677576106776133a8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601f82111561077057600081815260208120601f850160051c810160208610156134405750805b601f850160051c820191505b8181101561345f5782815560010161344c565b505050505050565b815167ffffffffffffffff81111561348157613481613034565b6134958161348f845461335b565b84613419565b602080601f8311600181146134ca57600084156134b25750858301515b600019600386901b1c1916600185901b17855561345f565b600085815260208120601f198616915b828110156134f9578886015182559484019460019091019084016134da565b50858210156135175787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161355f816017850160208801612f1b565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161359c816028840160208801612f1b565b01602801949350505050565b81810381811115610677576106776133a8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8082028115828204841417610677576106776133a8565b600081613610576136106133a8565b506000190190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60008261367d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea26469706673582212203d14218b1bdf7e3fc29c90c0584f908e8c28697097e96b5fdfc43e6f2ce4ca2c64736f6c63430008110033
Deployed Bytecode Sourcemap
129775:4492:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62141:225;;;;;;:::i;:::-;;:::i;:::-;;;516:14:1;;509:22;491:41;;479:2;464:18;62141:225:0;;;;;;;;73582:100;;;:::i;:::-;;;;;;;:::i;75933:201::-;;;;;;:::i;:::-;;:::i;74702:108::-;74790:12;;74702:108;;;1864:25:1;;;1852:2;1837:18;74702:108:0;1718:177:1;76714:295:0;;;;;;:::i;:::-;;:::i;42404:131::-;;;;;;:::i;:::-;42478:7;42505:12;;;:6;:12;;;;;:22;;;;42404:131;42845:147;;;;;;:::i;:::-;;:::i;:::-;;74544:93;;;74627:2;3001:36:1;;2989:2;2974:18;74544:93:0;2859:184:1;132455:85:0;132528:4;;132455:85;;106097:115;;;:::i;43989:218::-;;;;;;:::i;:::-;;:::i;77418:238::-;;;;;;:::i;:::-;;:::i;128967:178::-;;;:::i;128158:205::-;;;;;;:::i;:::-;;:::i;107689:91::-;;;;;;:::i;:::-;;:::i;126936:152::-;;;;;;:::i;:::-;;:::i;121648:266::-;;;;;;:::i;:::-;;:::i;131653:111::-;;;:::i;66164:86::-;66235:7;;;;66164:86;;130152:640;;;;;;:::i;:::-;;:::i;133076:881::-;;;;;;:::i;:::-;;:::i;74873:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;74974:18:0;74947:7;74974:18;;;:9;:18;;;;;;;74873:127;108099:164;;;;;;:::i;:::-;;:::i;105839:128::-;;;;;;:::i;:::-;;:::i;132754:87::-;;;:::i;62965:153::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7202:55:1;;;7184:74;;7172:2;7157:18;62965:153:0;7038:226:1;40855:147:0;;;;;;:::i;:::-;40941:4;40965:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;40965:29:0;;;;;;;;;;;;;;;40855:147;73801:104;;;:::i;132143:228::-;;;:::i;122018:234::-;;;;;;:::i;:::-;;:::i;132900:92::-;129933:1;132900:92;;39949:49;;39994:4;39949:49;;78159:436;;;;;;:::i;:::-;;:::i;75206:193::-;;;;;;:::i;:::-;;:::i;63292:142::-;;;;;;:::i;:::-;;:::i;105117:656::-;;;;;;:::i;:::-;;:::i;127094:62::-;;127132:24;127094:62;;43285:149;;;;;;:::i;:::-;;:::i;75462:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;75578:18:0;;;75551:7;75578:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;75462:151;127163:62;;127201:24;127163:62;;62141:225;62226:4;62250:68;;;62265:53;62250:68;;:108;;;62322:36;62346:11;62322:23;:36::i;:::-;62243:115;62141:225;-1:-1:-1;;62141:225:0:o;73582:100::-;73636:13;73669:5;73662:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73582:100;:::o;75933:201::-;76016:4;19493:10;76072:32;19493:10;76088:7;76097:6;76072:8;:32::i;:::-;-1:-1:-1;76122:4:0;;75933:201;-1:-1:-1;;;75933:201:0:o;76714:295::-;76845:4;19493:10;76903:38;76919:4;19493:10;76934:6;76903:15;:38::i;:::-;76952:27;76962:4;76968:2;76972:6;76952:9;:27::i;:::-;-1:-1:-1;76997:4:0;;76714:295;-1:-1:-1;;;;76714:295:0:o;42845:147::-;42478:7;42505:12;;;:6;:12;;;;;:22;;;40440:16;40451:4;40440:10;:16::i;:::-;42959:25:::1;42970:4;42976:7;42959:10;:25::i;:::-;42845:147:::0;;;:::o;106097:115::-;106157:7;106184:20;:18;:20::i;:::-;106177:27;;106097:115;:::o;43989:218::-;-1:-1:-1;;;;;44085:23:0;;19493:10;44085:23;44077:83;;;;-1:-1:-1;;;44077:83:0;;8876:2:1;44077:83:0;;;8858:21:1;8915:2;8895:18;;;8888:30;8954:34;8934:18;;;8927:62;9025:17;9005:18;;;8998:45;9060:19;;44077:83:0;;;;;;;;;44173:26;44185:4;44191:7;44173:11;:26::i;:::-;43989:218;;:::o;77418:238::-;19493:10;77506:4;75578:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;75578:27:0;;;;;;;;;;77506:4;;19493:10;77562:64;;19493:10;;75578:27;;77587:38;;77615:10;;77587:38;:::i;:::-;77562:8;:64::i;128967:178::-;129020:34;127201:24;19493:10;40855:147;:::i;129020:34::-;129012:104;;;;-1:-1:-1;;;129012:104:0;;9611:2:1;129012:104:0;;;9593:21:1;9650:2;9630:18;;;9623:30;9689:34;9669:18;;;9662:62;9760:27;9740:18;;;9733:55;9805:19;;129012:104:0;9409:421:1;129012:104:0;129127:10;:8;:10::i;:::-;128967:178::o;128158:205::-;128234:34;127132:24;19493:10;40855:147;:::i;128234:34::-;128226:101;;;;-1:-1:-1;;;128226:101:0;;10037:2:1;128226:101:0;;;10019:21:1;10076:2;10056:18;;;10049:30;10115:34;10095:18;;;10088:62;10186:24;10166:18;;;10159:52;10228:19;;128226:101:0;9835:418:1;128226:101:0;128338:17;128344:2;128348:6;128338:5;:17::i;107689:91::-;107745:27;19493:10;107765:6;107745:5;:27::i;:::-;107689:91;:::o;126936:152::-;15088:19;15111:13;;;;;;15110:14;;15158:34;;;;-1:-1:-1;15176:12:0;;15191:1;15176:12;;;;:16;15158:34;15157:108;;;-1:-1:-1;15237:4:0;4745:19;:23;;;15198:66;;-1:-1:-1;15247:12:0;;;;;:17;15198:66;15135:204;;;;-1:-1:-1;;;15135:204:0;;10460:2:1;15135:204:0;;;10442:21:1;10499:2;10479:18;;;10472:30;10538:34;10518:18;;;10511:62;10609:16;10589:18;;;10582:44;10643:19;;15135:204:0;10258:410:1;15135:204:0;15350:12;:16;;-1:-1:-1;;15350:16:0;15365:1;15350:16;;;15377:67;;;;15412:13;:20;;-1:-1:-1;;15412:20:0;;;;;15377:67;127036:44:::1;127067:4;127073:6;127036:30;:44::i;:::-;15470:14:::0;15466:102;;;15517:5;15501:21;;-1:-1:-1;;15501:21:0;;;15542:14;;-1:-1:-1;3001:36:1;;15542:14:0;;2989:2:1;2974:18;15542:14:0;;;;;;;15077:498;126936:152;;:::o;121648:266::-;-1:-1:-1;;;;;121812:33:0;;121735:7;121812:33;;;:24;:33;;;;;121735:7;;;;121791:55;;121800:10;;121791:8;:55::i;:::-;121755:91;;;;121866:11;:40;;-1:-1:-1;;;;;74974:18:0;;74947:7;74974:18;;;:9;:18;;;;;;121866:40;;;121880:5;121866:40;121859:47;121648:266;-1:-1:-1;;;;;121648:266:0:o;131653:111::-;131706:7;131733:23;:21;:23::i;130152:640::-;15088:19;15111:13;;;;;;15110:14;;15158:34;;;;-1:-1:-1;15176:12:0;;15191:1;15176:12;;;;:16;15158:34;15157:108;;;-1:-1:-1;15237:4:0;4745:19;:23;;;15198:66;;-1:-1:-1;15247:12:0;;;;;:17;15198:66;15135:204;;;;-1:-1:-1;;;15135:204:0;;10460:2:1;15135:204:0;;;10442:21:1;10499:2;10479:18;;;10472:30;10538:34;10518:18;;;10511:62;10609:16;10589:18;;;10582:44;10643:19;;15135:204:0;10258:410:1;15135:204:0;15350:12;:16;;-1:-1:-1;;15350:16:0;15365:1;15350:16;;;15377:67;;;;15412:13;:20;;-1:-1:-1;;15412:20:0;;;;;15377:67;130267:36:::1;130290:4;130296:6;130267:22;:36::i;:::-;130314:32;:30;:32::i;:::-;130357:24;130376:4;130357:18;:24::i;:::-;130392:27;:25;:27::i;:::-;130430:41;130466:4;130430:35;:41::i;:::-;-1:-1:-1::0;;;;;130597:19:0;::::1;130589:65;;;::::0;-1:-1:-1;;;130589:65:0;;11074:2:1;130589:65:0::1;::::0;::::1;11056:21:1::0;11113:2;11093:18;;;11086:30;11152:34;11132:18;;;11125:62;11223:3;11203:18;;;11196:31;11244:19;;130589:65:0::1;10872:397:1::0;130589:65:0::1;130665:37;39994:4;130696:5:::0;130665:10:::1;:37::i;:::-;130713:30;127132:24;130737:5;130713:10;:30::i;:::-;130754;127201:24;130778:5;130754:10;:30::i;:::-;15470:14:::0;15466:102;;;15517:5;15501:21;;-1:-1:-1;;15501:21:0;;;15542:14;;-1:-1:-1;3001:36:1;;15542:14:0;;2989:2:1;2974:18;15542:14:0;;;;;;;15466:102;15077:498;130152:640;;;;:::o;133076:881::-;133169:4;133194:34;127132:24;19493:10;40855:147;:::i;133194:34::-;133186:76;;;;-1:-1:-1;;;133186:76:0;;11476:2:1;133186:76:0;;;11458:21:1;11515:2;11495:18;;;11488:30;11554:31;11534:18;;;11527:59;11603:18;;133186:76:0;11274:353:1;133186:76:0;133302:10;133338:33;;;133330:77;;;;-1:-1:-1;;;133330:77:0;;11834:2:1;133330:77:0;;;11816:21:1;11873:2;11853:18;;;11846:30;11912:33;11892:18;;;11885:61;11963:18;;133330:77:0;11632:355:1;133330:77:0;133420:18;133458:9;133453:341;133477:16;133473:1;:20;133453:341;;;133511:37;133523:10;;133534:1;133523:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;133538:6;;133545:1;133538:9;;;;;;;:::i;:::-;;;;;;;133511:11;:37::i;:::-;133726:6;;133733:1;133726:9;;;;;;;:::i;:::-;;;;;;;;133712:23;;;;;-1:-1:-1;133777:3:0;;133453:341;;;-1:-1:-1;133831:4:0;;74790:12;;133814:21;;133806:52;;;;-1:-1:-1;;;133806:52:0;;12383:2:1;133806:52:0;;;12365:21:1;12422:2;12402:18;;;12395:30;12461:20;12441:18;;;12434:48;12499:18;;133806:52:0;12181:342:1;133806:52:0;133874:53;;;12702:25:1;;;12758:2;12743:18;;12736:34;;;19493:10:0;;133874:53;;12675:18:1;133874:53:0;;;;;;;-1:-1:-1;133945:4:0;;133076:881;-1:-1:-1;;;;;;133076:881:0:o;108099:164::-;108176:46;108192:7;19493:10;108215:6;108176:15;:46::i;:::-;108233:22;108239:7;108248:6;108233:5;:22::i;105839:128::-;-1:-1:-1;;;;;105935:14:0;;105908:7;105935:14;;;:7;:14;;;;;88477;105935:24;88385:114;132754:87;132798:13;:11;:13::i;:::-;132822:11;:9;:11::i;62965:153::-;63055:7;63082:18;;;:12;:18;;;;;:28;;63104:5;63082:21;:28::i;:::-;63075:35;62965:153;-1:-1:-1;;;62965:153:0:o;73801:104::-;73857:13;73890:7;73883:14;;;;;:::i;132143:228::-;132179:7;132207:41;132179:7;19493:10;40855:147;:::i;132207:41::-;132199:81;;;;-1:-1:-1;;;132199:81:0;;12983:2:1;132199:81:0;;;12965:21:1;13022:2;13002:18;;;12995:30;13061:29;13041:18;;;13034:57;13108:18;;132199:81:0;12781:351:1;132199:81:0;66235:7;;;;132299:9;132291:43;;;;-1:-1:-1;;;132291:43:0;;13339:2:1;132291:43:0;;;13321:21:1;13378:2;13358:18;;;13351:30;13417:23;13397:18;;;13390:51;13458:18;;132291:43:0;13137:345:1;132291:43:0;132352:11;:9;:11::i;122018:234::-;122090:7;122111:16;122129:13;122146:43;122155:10;122167:21;122146:8;:43::i;:::-;122110:79;;;;122209:11;:35;;74790:12;;122209:35;;;122223:5;122209:35;122202:42;122018:234;-1:-1:-1;;;;122018:234:0:o;78159:436::-;19493:10;78252:4;75578:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;75578:27:0;;;;;;;;;;78252:4;;19493:10;78399:15;78379:16;:35;;78371:85;;;;-1:-1:-1;;;78371:85:0;;13689:2:1;78371:85:0;;;13671:21:1;13728:2;13708:18;;;13701:30;13767:34;13747:18;;;13740:62;13838:7;13818:18;;;13811:35;13863:19;;78371:85:0;13487:401:1;78371:85:0;78492:60;78501:5;78508:7;78536:15;78517:16;:34;78492:8;:60::i;75206:193::-;75285:4;19493:10;75341:28;19493:10;75358:2;75362:6;75341:9;:28::i;63292:142::-;63372:7;63399:18;;;:12;:18;;;;;:27;;:25;:27::i;105117:656::-;105361:8;105342:15;:27;;105334:69;;;;-1:-1:-1;;;105334:69:0;;14095:2:1;105334:69:0;;;14077:21:1;14134:2;14114:18;;;14107:30;14173:31;14153:18;;;14146:59;14222:18;;105334:69:0;13893:353:1;105334:69:0;105416:18;104128:95;105476:5;105483:7;105492:5;105499:16;105509:5;105499:9;:16::i;:::-;105447:79;;;;;;14538:25:1;;;;-1:-1:-1;;;;;14660:15:1;;;14640:18;;;14633:43;14712:15;;;;14692:18;;;14685:43;14744:18;;;14737:34;14787:19;;;14780:35;14831:19;;;14824:35;;;14510:19;;105447:79:0;;;;;;;;;;;;105437:90;;;;;;105416:111;;105540:12;105555:28;105572:10;105555:16;:28::i;:::-;105540:43;;105596:14;105613:39;105638:4;105644:1;105647;105650;105613:24;:39::i;:::-;105596:56;;105681:5;-1:-1:-1;;;;;105671:15:0;:6;-1:-1:-1;;;;;105671:15:0;;105663:58;;;;-1:-1:-1;;;105663:58:0;;15072:2:1;105663:58:0;;;15054:21:1;15111:2;15091:18;;;15084:30;15150:32;15130:18;;;15123:60;15200:18;;105663:58:0;14870:354:1;105663:58:0;105734:31;105743:5;105750:7;105759:5;105734:8;:31::i;:::-;105323:450;;;105117:656;;;;;;;:::o;43285:149::-;42478:7;42505:12;;;:6;:12;;;;;:22;;;40440:16;40451:4;40440:10;:16::i;:::-;43400:26:::1;43412:4;43418:7;43400:11;:26::i;4450:326::-:0;-1:-1:-1;;;;;4745:19:0;;:23;;;4450:326::o;40548:215::-;40633:4;40657:58;;;40672:43;40657:58;;:98;;-1:-1:-1;22079:36:0;22064:51;;;;40719:36;21955:168;82186:380;-1:-1:-1;;;;;82322:19:0;;82314:68;;;;-1:-1:-1;;;82314:68:0;;15431:2:1;82314:68:0;;;15413:21:1;15470:2;15450:18;;;15443:30;15509:34;15489:18;;;15482:62;15580:6;15560:18;;;15553:34;15604:19;;82314:68:0;15229:400:1;82314:68:0;-1:-1:-1;;;;;82401:21:0;;82393:68;;;;-1:-1:-1;;;82393:68:0;;15836:2:1;82393:68:0;;;15818:21:1;15875:2;15855:18;;;15848:30;15914:34;15894:18;;;15887:62;15985:4;15965:18;;;15958:32;16007:19;;82393:68:0;15634:398:1;82393:68:0;-1:-1:-1;;;;;82474:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;82526:32;;1864:25:1;;;82526:32:0;;1837:18:1;82526:32:0;;;;;;;82186:380;;;:::o;82857:453::-;-1:-1:-1;;;;;75578:18:0;;;82992:24;75578:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;83059:37:0;;83055:248;;83141:6;83121:16;:26;;83113:68;;;;-1:-1:-1;;;83113:68:0;;16239:2:1;83113:68:0;;;16221:21:1;16278:2;16258:18;;;16251:30;16317:31;16297:18;;;16290:59;16366:18;;83113:68:0;16037:353:1;83113:68:0;83225:51;83234:5;83241:7;83269:6;83250:16;:25;83225:8;:51::i;:::-;82981:329;82857:453;;;:::o;79065:840::-;-1:-1:-1;;;;;79196:18:0;;79188:68;;;;-1:-1:-1;;;79188:68:0;;16597:2:1;79188:68:0;;;16579:21:1;16636:2;16616:18;;;16609:30;16675:34;16655:18;;;16648:62;16746:7;16726:18;;;16719:35;16771:19;;79188:68:0;16395:401:1;79188:68:0;-1:-1:-1;;;;;79275:16:0;;79267:64;;;;-1:-1:-1;;;79267:64:0;;17003:2:1;79267:64:0;;;16985:21:1;17042:2;17022:18;;;17015:30;17081:34;17061:18;;;17054:62;17152:5;17132:18;;;17125:33;17175:19;;79267:64:0;16801:399:1;79267:64:0;79344:38;79365:4;79371:2;79375:6;79344:20;:38::i;:::-;-1:-1:-1;;;;;79417:15:0;;79395:19;79417:15;;;:9;:15;;;;;;79451:21;;;;79443:72;;;;-1:-1:-1;;;79443:72:0;;17407:2:1;79443:72:0;;;17389:21:1;17446:2;17426:18;;;17419:30;17485:34;17465:18;;;17458:62;17556:8;17536:18;;;17529:36;17582:19;;79443:72:0;17205:402:1;79443:72:0;-1:-1:-1;;;;;79551:15:0;;;;;;;:9;:15;;;;;;79569:20;;;79551:38;;79769:13;;;;;;;;;;:23;;;;;;79821:26;;;;;;79583:6;1864:25:1;;1852:2;1837:18;;1718:177;79821:26:0;;;;;;;;79860:37;42845:147;41306:105;41373:30;41384:4;19493:10;41373;:30::i;63527:169::-;63615:31;63632:4;63638:7;63615:16;:31::i;:::-;63657:18;;;;:12;:18;;;;;:31;;63680:7;63657:22;:31::i;100685:162::-;100738:7;100765:74;99408:95;100799:17;102267:12;;;102182:105;100799:17;102622:15;;101036:73;;;;;;24530:25:1;;;24571:18;;;24564:34;;;24614:18;;;24607:34;;;101080:13:0;24657:18:1;;;24650:34;101103:4:0;24700:19:1;;;24693:84;100999:7:0;;24502:19:1;;101036:73:0;;;;;;;;;;;;101026:84;;;;;;101019:91;;100855:263;;;;;;63790:174;63879:32;63897:4;63903:7;63879:17;:32::i;:::-;63922:18;;;;:12;:18;;;;;:34;;63948:7;63922:25;:34::i;67019:120::-;66028:16;:14;:16::i;:::-;67078:7:::1;:15:::0;;-1:-1:-1;;67078:15:0::1;::::0;;67109:22:::1;19493:10:::0;67118:12:::1;67109:22;::::0;-1:-1:-1;;;;;7202:55:1;;;7184:74;;7172:2;7157:18;67109:22:0::1;;;;;;;67019:120::o:0;134077:185::-;134188:4;;134178:6;134162:13;74790:12;;;74702:108;134162:13;:22;;;;:::i;:::-;:30;;134154:61;;;;-1:-1:-1;;;134154:61:0;;12383:2:1;134154:61:0;;;12365:21:1;12422:2;12402:18;;;12395:30;12461:20;12441:18;;;12434:48;12499:18;;134154:61:0;12181:342:1;134154:61:0;134226:28;134238:7;134247:6;134226:11;:28::i;81073:675::-;-1:-1:-1;;;;;81157:21:0;;81149:67;;;;-1:-1:-1;;;81149:67:0;;17814:2:1;81149:67:0;;;17796:21:1;17853:2;17833:18;;;17826:30;17892:34;17872:18;;;17865:62;17963:3;17943:18;;;17936:31;17984:19;;81149:67:0;17612:397:1;81149:67:0;81229:49;81250:7;81267:1;81271:6;81229:20;:49::i;:::-;-1:-1:-1;;;;;81316:18:0;;81291:22;81316:18;;;:9;:18;;;;;;81353:24;;;;81345:71;;;;-1:-1:-1;;;81345:71:0;;18216:2:1;81345:71:0;;;18198:21:1;18255:2;18235:18;;;18228:30;18294:34;18274:18;;;18267:62;18365:4;18345:18;;;18338:32;18387:19;;81345:71:0;18014:398:1;81345:71:0;-1:-1:-1;;;;;81452:18:0;;;;;;:9;:18;;;;;;;;81473:23;;;81452:44;;81591:12;:22;;;;;;;81642:37;1864:25:1;;;81452:18:0;;;81642:37;;1837:18:1;81642:37:0;;;;;;;42845:147;;;:::o;127417:266::-;17231:13;;;;;;;17223:69;;;;-1:-1:-1;;;17223:69:0;;18619:2:1;17223:69:0;;;18601:21:1;18658:2;18638:18;;;18631:30;18697:34;18677:18;;;18670:62;18768:13;18748:18;;;18741:41;18799:19;;17223:69:0;18417:407:1;17223:69:0;127536:36:::1;127559:4;127565:6;127536:22;:36::i;:::-;127583:27;:25;:27::i;:::-;127621:54;127662:4;127668:6;127621:40;:54::i;123099:1619::-:0;123188:4;123194:7;123235:1;123222:10;:14;123214:49;;;;-1:-1:-1;;;123214:49:0;;19031:2:1;123214:49:0;;;19013:21:1;19070:2;19050:18;;;19043:30;19109:24;19089:18;;;19082:52;19151:18;;123214:49:0;18829:346:1;123214:49:0;123296:23;:21;:23::i;:::-;123282:10;:37;;123274:79;;;;-1:-1:-1;;;123274:79:0;;19382:2:1;123274:79:0;;;19364:21:1;19421:2;19401:18;;;19394:30;19460:31;19440:18;;;19433:59;19509:18;;123274:79:0;19180:353:1;123274:79:0;124492:13;124508:40;:9;124537:10;124508:28;:40::i;:::-;124574:20;;124492:56;;-1:-1:-1;124565:29:0;;124561:150;;124619:5;124626:1;124611:17;;;;;;;124561:150;124669:4;124675:9;:16;;124692:5;124675:23;;;;;;;;:::i;:::-;;;;;;;;;124661:38;;;;;123099:1619;;;;;;:::o;121409:127::-;121473:7;121500:28;:18;88477:14;;88385:114;73350:162;17231:13;;;;;;;17223:69;;;;-1:-1:-1;;;17223:69:0;;18619:2:1;17223:69:0;;;18601:21:1;18658:2;18638:18;;;18631:30;18697:34;18677:18;;;18670:62;18768:13;18748:18;;;18741:41;18799:19;;17223:69:0;18417:407:1;17223:69:0;73463:5:::1;:13;73471:5:::0;73463;:13:::1;:::i;:::-;-1:-1:-1::0;73487:7:0::1;:17;73497:7:::0;73487;:17:::1;:::i;118910:76::-:0;17231:13;;;;;;;17223:69;;;;-1:-1:-1;;;17223:69:0;;18619:2:1;17223:69:0;;;18601:21:1;18658:2;18638:18;;;18631:30;18697:34;18677:18;;;18670:62;18768:13;18748:18;;;18741:41;18799:19;;17223:69:0;18417:407:1;104835:127:0;17231:13;;;;;;;17223:69;;;;-1:-1:-1;;;17223:69:0;;18619:2:1;17223:69:0;;;18601:21:1;18658:2;18638:18;;;18631:30;18697:34;18677:18;;;18670:62;18768:13;18748:18;;;18741:41;18799:19;;17223:69:0;18417:407:1;17223:69:0;104920:34:::1;104944:4;104920:34;;;;;;;;;;;;;;;;::::0;:23:::1;:34::i;65441:97::-:0;17231:13;;;;;;;17223:69;;;;-1:-1:-1;;;17223:69:0;;18619:2:1;17223:69:0;;;18601:21:1;18658:2;18638:18;;;18631:30;18697:34;18677:18;;;18670:62;18768:13;18748:18;;;18741:41;18799:19;;17223:69:0;18417:407:1;17223:69:0;65515:7:::1;:15:::0;;-1:-1:-1;;65515:15:0::1;::::0;;65441:97::o;130800:161::-;17231:13;;;;;;;17223:69;;;;-1:-1:-1;;;17223:69:0;;18619:2:1;17223:69:0;;;18601:21:1;18658:2;18638:18;;;18631:30;18697:34;18677:18;;;18670:62;18768:13;18748:18;;;18741:41;18799:19;;17223:69:0;18417:407:1;17223:69:0;130911:1:::1;130904:4;:8;130896:35;;;::::0;-1:-1:-1;;;130896:35:0;;22123:2:1;130896:35:0::1;::::0;::::1;22105:21:1::0;22162:2;22142:18;;;22135:30;22201:16;22181:18;;;22174:44;22235:18;;130896:35:0::1;21921:338:1::0;130896:35:0::1;130942:4;:11:::0;130800:161::o;44914:112::-;44993:25;45004:4;45010:7;44993:10;:25::i;80192:548::-;-1:-1:-1;;;;;80276:21:0;;80268:65;;;;-1:-1:-1;;;80268:65:0;;22466:2:1;80268:65:0;;;22448:21:1;22505:2;22485:18;;;22478:30;22544:33;22524:18;;;22517:61;22595:18;;80268:65:0;22264:355:1;80268:65:0;80346:49;80375:1;80379:7;80388:6;80346:20;:49::i;:::-;80424:6;80408:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;80579:18:0;;;;;;:9;:18;;;;;;;;:28;;;;;;80634:37;1864:25:1;;;80634:37:0;;1837:18:1;80634:37:0;;;;;;;43989:218;;:::o;128577:172::-;128628:34;127201:24;19493:10;40855:147;:::i;128628:34::-;128620:102;;;;-1:-1:-1;;;128620:102:0;;22826:2:1;128620:102:0;;;22808:21:1;22865:2;22845:18;;;22838:30;22904:34;22884:18;;;22877:62;22975:25;22955:18;;;22948:53;23018:19;;128620:102:0;22624:419:1;128620:102:0;128733:8;:6;:8::i;121120:223::-;121167:7;121187:30;:18;88596:19;;88614:1;88596:19;;;88507:127;121187:30;121230:17;121250:23;:21;:23::i;:::-;121230:43;;121289:19;121298:9;121289:19;;;;1864:25:1;;1852:2;1837:18;;1718:177;121289:19:0;;;;;;;;121326:9;121120:223;-1:-1:-1;121120:223:0:o;57779:158::-;57853:7;57904:22;57908:3;57920:5;57904:3;:22::i;57308:117::-;57371:7;57398:19;57406:3;52608:18;;52525:109;106350:218;-1:-1:-1;;;;;106482:14:0;;106410:15;106482:14;;;:7;:14;;;;;88477;;88614:1;88596:19;;;;88477:14;106543:17;106427:141;106350:218;;;:::o;101760:178::-;101837:7;101864:66;101897:20;:18;:20::i;:::-;101919:10;97715:57;;25540:66:1;97715:57:0;;;25528:79:1;25623:11;;;25616:27;;;25659:12;;;25652:28;;;97678:7:0;;25696:12:1;;97715:57:0;;;;;;;;;;;;97705:68;;;;;;97698:75;;97585:196;;;;;95883:279;96011:7;96032:17;96051:18;96073:25;96084:4;96090:1;96093;96096;96073:10;:25::i;:::-;96031:67;;;;96109:18;96121:5;96109:11;:18::i;:::-;-1:-1:-1;96145:9:0;95883:279;-1:-1:-1;;;;;95883:279:0:o;131232:355::-;131477:4;-1:-1:-1;;;;;131463:19:0;;;131455:69;;;;-1:-1:-1;;;131455:69:0;;23250:2:1;131455:69:0;;;23232:21:1;23289:2;23269:18;;;23262:30;23328:34;23308:18;;;23301:62;23399:7;23379:18;;;23372:35;23424:19;;131455:69:0;23048:401:1;131455:69:0;131535:44;131562:4;131568:2;131572:6;131535:26;:44::i;41701:514::-;40941:4;40965:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;40965:29:0;;;;;;;;;;;;41785:423;;41978:39;42009:7;41978:30;:39::i;:::-;42090:49;42129:4;42136:2;42090:30;:49::i;:::-;41883:279;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;41883:279:0;;;;;;;;;;-1:-1:-1;;;41829:367:0;;;;;;;:::i;45586:238::-;40941:4;40965:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;40965:29:0;;;;;;;;;;;;45665:152;;45709:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;45709:29:0;;;;;;;;;:36;;-1:-1:-1;;45709:36:0;45741:4;45709:36;;;45792:12;19493:10;;19413:98;45792:12;-1:-1:-1;;;;;45765:40:0;45783:7;-1:-1:-1;;;;;45765:40:0;45777:4;45765:40;;;;;;;;;;45586:238;;:::o;56483:152::-;56553:4;56577:50;56582:3;-1:-1:-1;;;;;56602:23:0;;56577:4;:50::i;46004:239::-;40941:4;40965:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;40965:29:0;;;;;;;;;;;;46084:152;;;46159:5;46127:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;46127:29:0;;;;;;;;;;:37;;-1:-1:-1;;46127:37:0;;;46184:40;19493:10;;46127:12;;46184:40;;46159:5;46184:40;46004:239;;:::o;56811:158::-;56884:4;56908:53;56916:3;-1:-1:-1;;;;;56936:23:0;;56908:7;:53::i;66508:108::-;66235:7;;;;66567:41;;;;-1:-1:-1;;;66567:41:0;;24990:2:1;66567:41:0;;;24972:21:1;25029:2;25009:18;;;25002:30;25068:22;25048:18;;;25041:50;25108:18;;66567:41:0;24788:344:1;127691:267:0;17231:13;;;;;;;17223:69;;;;-1:-1:-1;;;17223:69:0;;18619:2:1;17223:69:0;;;18601:21:1;18658:2;18638:18;;;18631:30;18697:34;18677:18;;;18670:62;18768:13;18748:18;;;18741:41;18799:19;;17223:69:0;18417:407:1;17223:69:0;127808:44:::1;39994:4;19493:10:::0;127808::::1;:44::i;:::-;127865:37;127132:24;19493:10:::0;127808::::1;:44::i;127865:37::-;127913;127201:24;19493:10:::0;127808::::1;:44::i;113667:969::-:0;113780:12;;113756:7;;113780:17;;113776:58;;-1:-1:-1;113821:1:0;113814:8;;113776:58;113887:12;;113846:11;;113912:455;113925:4;113919:3;:10;113912:455;;;113946:11;113960:34;113984:3;113989:4;113960:23;:34::i;:::-;116050:42;116196:19;;;116254:4;116241:18;;113946:48;;-1:-1:-1;114248:7:0;;116237:28;;114215:30;:40;114211:145;;;114283:3;114276:10;;114211:145;;;114333:7;:3;114339:1;114333:7;:::i;:::-;114327:13;;114211:145;113931:436;113912:455;;;114493:1;114487:3;:7;:56;;;;-1:-1:-1;114536:7:0;114498:28;114511:5;114518:7;114524:1;114518:3;:7;:::i;:::-;116050:42;116196:19;;;116254:4;116241:18;;;116237:28;;115969:353;114498:28;:34;:45;114487:56;114483:146;;;114567:7;114573:1;114567:3;:7;:::i;:::-;114560:14;;;;;;114483:146;-1:-1:-1;114614:3:0;-1:-1:-1;114607:10:0;;100292:302;17231:13;;;;;;;17223:69;;;;-1:-1:-1;;;17223:69:0;;18619:2:1;17223:69:0;;;18601:21:1;18658:2;18638:18;;;18631:30;18697:34;18677:18;;;18670:62;18768:13;18748:18;;;18741:41;18799:19;;17223:69:0;18417:407:1;17223:69:0;100426:22;;::::1;::::0;;::::1;::::0;100483:25;;;;;::::1;::::0;100519:12:::1;:25:::0;;;;100555:15:::1;:31:::0;100292:302::o;66760:118::-;65769:19;:17;:19::i;:::-;66820:7:::1;:14:::0;;-1:-1:-1;;66820:14:0::1;66830:4;66820:14;::::0;;66850:20:::1;66857:12;19493:10:::0;;19413:98;52988:120;53055:7;53082:3;:11;;53094:5;53082:18;;;;;;;;:::i;:::-;;;;;;;;;53075:25;;52988:120;;;;:::o;94224:1520::-;94355:7;;95289:66;95276:79;;95272:163;;;-1:-1:-1;95388:1:0;;-1:-1:-1;95392:30:0;95372:51;;95272:163;95549:24;;;95532:14;95549:24;;;;;;;;;25946:25:1;;;26019:4;26007:17;;25987:18;;;25980:45;;;;26041:18;;;26034:34;;;26084:18;;;26077:34;;;95549:24:0;;25918:19:1;;95549:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;95549:24:0;;-1:-1:-1;;95549:24:0;;;-1:-1:-1;;;;;;;95588:20:0;;95584:103;;95641:1;95645:29;95625:50;;;;;;;95584:103;95707:6;-1:-1:-1;95715:20:0;;-1:-1:-1;94224:1520:0;;;;;;;;:::o;89616:521::-;89694:20;89685:5;:29;;;;;;;;:::i;:::-;;89681:449;;89616:521;:::o;89681:449::-;89792:29;89783:5;:38;;;;;;;;:::i;:::-;;89779:351;;89838:34;;-1:-1:-1;;;89838:34:0;;26513:2:1;89838:34:0;;;26495:21:1;26552:2;26532:18;;;26525:30;26591:26;26571:18;;;26564:54;26635:18;;89838:34:0;26311:348:1;89779:351:0;89903:35;89894:5;:44;;;;;;;;:::i;:::-;;89890:240;;89955:41;;-1:-1:-1;;;89955:41:0;;26866:2:1;89955:41:0;;;26848:21:1;26905:2;26885:18;;;26878:30;26944:33;26924:18;;;26917:61;26995:18;;89955:41:0;26664:355:1;89890:240:0;90027:30;90018:5;:39;;;;;;;;:::i;:::-;;90014:116;;90074:44;;-1:-1:-1;;;90074:44:0;;27226:2:1;90074:44:0;;;27208:21:1;27265:2;27245:18;;;27238:30;27304:34;27284:18;;;27277:62;27375:4;27355:18;;;27348:32;27397:19;;90074:44:0;27024:398:1;122469:622:0;122612:44;122639:4;122645:2;122649:6;122612:26;:44::i;:::-;-1:-1:-1;;;;;122673:18:0;;122669:415;;122729:26;122752:2;122729:22;:26::i;:::-;122770:28;:26;:28::i;122669:415::-;-1:-1:-1;;;;;122820:16:0;;122816:268;;122874:28;122897:4;122874:22;:28::i;122816:268::-;123003:28;123026:4;123003:22;:28::i;:::-;123046:26;123069:2;123046:22;:26::i;37569:151::-;37627:13;37660:52;-1:-1:-1;;;;;37672:22:0;;35702:2;36965:447;37040:13;37066:19;37098:10;37102:6;37098:1;:10;:::i;:::-;:14;;37111:1;37098:14;:::i;:::-;37088:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37088:25:0;;37066:47;;37124:15;:6;37131:1;37124:9;;;;;;;;:::i;:::-;;;;:15;;;;;;;;;;;37150;:6;37157:1;37150:9;;;;;;;;:::i;:::-;;;;:15;;;;;;;;;;-1:-1:-1;37181:9:0;37193:10;37197:6;37193:1;:10;:::i;:::-;:14;;37206:1;37193:14;:::i;:::-;37181:26;;37176:131;37213:1;37209;:5;37176:131;;;37248:8;37257:5;37265:3;37257:11;37248:21;;;;;;;:::i;:::-;;;;37236:6;37243:1;37236:9;;;;;;;;:::i;:::-;;;;:33;;;;;;;;;;-1:-1:-1;37294:1:0;37284:11;;;;;37216:3;;;:::i;:::-;;;37176:131;;;-1:-1:-1;37325:10:0;;37317:55;;;;-1:-1:-1;;;37317:55:0;;28003:2:1;37317:55:0;;;27985:21:1;;;28022:18;;;28015:30;28081:34;28061:18;;;28054:62;28133:18;;37317:55:0;27801:356:1;50214:414:0;50277:4;52407:19;;;:12;;;:19;;;;;;50294:327;;-1:-1:-1;50337:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;50520:18;;50498:19;;;:12;;;:19;;;;;;:40;;;;50553:11;;50294:327;-1:-1:-1;50604:5:0;50597:12;;50804:1420;50870:4;51009:19;;;:12;;;:19;;;;;;51045:15;;51041:1176;;51420:21;51444:14;51457:1;51444:10;:14;:::i;:::-;51493:18;;51420:38;;-1:-1:-1;51473:17:0;;51493:22;;51514:1;;51493:22;:::i;:::-;51473:42;;51549:13;51536:9;:26;51532:405;;51583:17;51603:3;:11;;51615:9;51603:22;;;;;;;;:::i;:::-;;;;;;;;;51583:42;;51757:9;51728:3;:11;;51740:13;51728:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;51842:23;;;:12;;;:23;;;;;:36;;;51532:405;52018:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;52113:3;:12;;:19;52126:5;52113:19;;;;;;;;;;;52106:26;;;52156:4;52149:11;;;;;;;51041:1176;52200:5;52193:12;;;;;23331:156;23393:7;23468:11;23478:1;23469:5;;;23468:11;:::i;:::-;23458:21;;23459:5;;;23458:21;:::i;66323:108::-;66235:7;;;;66393:9;66385:38;;;;-1:-1:-1;;;66385:38:0;;28832:2:1;66385:38:0;;;28814:21:1;28871:2;28851:18;;;28844:30;28910:18;28890;;;28883:46;28946:18;;66385:38:0;28630:340:1;129153:239:0;129340:44;129367:4;129373:2;129377:6;129340:26;:44::i;124726:146::-;-1:-1:-1;;;;;124810:33:0;;;;;;:24;:33;;;;;;;;74974:9;:18;;;;;;;124794:70;;124810:33;124794:15;:70::i;124845:18::-;124794:15;:70::i;124880:118::-;124937:53;124953:21;124976:13;74790:12;;;74702:108;109509:272;66235:7;;;;109717:9;109709:64;;;;-1:-1:-1;;;109709:64:0;;29177:2:1;109709:64:0;;;29159:21:1;29216:2;29196:18;;;29189:30;29255:34;29235:18;;;29228:62;29326:12;29306:18;;;29299:40;29356:19;;109709:64:0;28975:406:1;125006:310:0;125101:17;125121:23;:21;:23::i;:::-;125101:43;-1:-1:-1;125101:43:0;125159:30;125175:9;125159:15;:30::i;:::-;:42;125155:154;;;125218:29;;;;;;;;-1:-1:-1;125218:29:0;;;;;;;;;;;;;;125262:16;;;:35;;;;;;;;;;;;;;;125006:310::o;125324:212::-;125418:10;;125394:7;;125418:15;;125414:115;;-1:-1:-1;125457:1:0;;125324:212;-1:-1:-1;125324:212:0:o;125414:115::-;125502:10;;125498:3;;125502:14;;125515:1;;125502:14;:::i;:::-;125498:19;;;;;;;;:::i;:::-;;;;;;;;;125491:26;;125324:212;;;:::o;125414:115::-;125324:212;;;:::o;14:332:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;180:9;167:23;230:66;223:5;219:78;212:5;209:89;199:117;;312:1;309;302:12;543:250;628:1;638:113;652:6;649:1;646:13;638:113;;;728:11;;;722:18;709:11;;;702:39;674:2;667:10;638:113;;;-1:-1:-1;;785:1:1;767:16;;760:27;543:250::o;798:455::-;947:2;936:9;929:21;910:4;979:6;973:13;1022:6;1017:2;1006:9;1002:18;995:34;1038:79;1110:6;1105:2;1094:9;1090:18;1085:2;1077:6;1073:15;1038:79;:::i;:::-;1169:2;1157:15;-1:-1:-1;;1153:88:1;1138:104;;;;1244:2;1134:113;;798:455;-1:-1:-1;;798:455:1:o;1258:196::-;1326:20;;-1:-1:-1;;;;;1375:54:1;;1365:65;;1355:93;;1444:1;1441;1434:12;1459:254;1527:6;1535;1588:2;1576:9;1567:7;1563:23;1559:32;1556:52;;;1604:1;1601;1594:12;1556:52;1627:29;1646:9;1627:29;:::i;:::-;1617:39;1703:2;1688:18;;;;1675:32;;-1:-1:-1;;;1459:254:1:o;1900:328::-;1977:6;1985;1993;2046:2;2034:9;2025:7;2021:23;2017:32;2014:52;;;2062:1;2059;2052:12;2014:52;2085:29;2104:9;2085:29;:::i;:::-;2075:39;;2133:38;2167:2;2156:9;2152:18;2133:38;:::i;:::-;2123:48;;2218:2;2207:9;2203:18;2190:32;2180:42;;1900:328;;;;;:::o;2233:180::-;2292:6;2345:2;2333:9;2324:7;2320:23;2316:32;2313:52;;;2361:1;2358;2351:12;2313:52;-1:-1:-1;2384:23:1;;2233:180;-1:-1:-1;2233:180:1:o;2600:254::-;2668:6;2676;2729:2;2717:9;2708:7;2704:23;2700:32;2697:52;;;2745:1;2742;2735:12;2697:52;2781:9;2768:23;2758:33;;2810:38;2844:2;2833:9;2829:18;2810:38;:::i;:::-;2800:48;;2600:254;;;;;:::o;3233:184::-;3285:77;3282:1;3275:88;3382:4;3379:1;3372:15;3406:4;3403:1;3396:15;3422:778;3465:5;3518:3;3511:4;3503:6;3499:17;3495:27;3485:55;;3536:1;3533;3526:12;3485:55;3572:6;3559:20;3598:18;3635:2;3631;3628:10;3625:36;;;3641:18;;:::i;:::-;3775:2;3769:9;3837:4;3829:13;;-1:-1:-1;;3825:22:1;;;3849:2;3821:31;3817:40;3805:53;;;3873:18;;;3893:22;;;3870:46;3867:72;;;3919:18;;:::i;:::-;3959:10;3955:2;3948:22;3994:2;3986:6;3979:18;4040:3;4033:4;4028:2;4020:6;4016:15;4012:26;4009:35;4006:55;;;4057:1;4054;4047:12;4006:55;4121:2;4114:4;4106:6;4102:17;4095:4;4087:6;4083:17;4070:54;4168:1;4161:4;4156:2;4148:6;4144:15;4140:26;4133:37;4188:6;4179:15;;;;;;3422:778;;;;:::o;4205:543::-;4293:6;4301;4354:2;4342:9;4333:7;4329:23;4325:32;4322:52;;;4370:1;4367;4360:12;4322:52;4410:9;4397:23;4439:18;4480:2;4472:6;4469:14;4466:34;;;4496:1;4493;4486:12;4466:34;4519:50;4561:7;4552:6;4541:9;4537:22;4519:50;:::i;:::-;4509:60;;4622:2;4611:9;4607:18;4594:32;4578:48;;4651:2;4641:8;4638:16;4635:36;;;4667:1;4664;4657:12;4635:36;;4690:52;4734:7;4723:8;4712:9;4708:24;4690:52;:::i;:::-;4680:62;;;4205:543;;;;;:::o;4753:686::-;4859:6;4867;4875;4883;4936:3;4924:9;4915:7;4911:23;4907:33;4904:53;;;4953:1;4950;4943:12;4904:53;4993:9;4980:23;5022:18;5063:2;5055:6;5052:14;5049:34;;;5079:1;5076;5069:12;5049:34;5102:50;5144:7;5135:6;5124:9;5120:22;5102:50;:::i;:::-;5092:60;;5205:2;5194:9;5190:18;5177:32;5161:48;;5234:2;5224:8;5221:16;5218:36;;;5250:1;5247;5240:12;5218:36;;5273:52;5317:7;5306:8;5295:9;5291:24;5273:52;:::i;:::-;5263:62;;;5344:38;5378:2;5367:9;5363:18;5344:38;:::i;:::-;4753:686;;;;-1:-1:-1;5334:48:1;;5429:2;5414:18;5401:32;;-1:-1:-1;;4753:686:1:o;5444:367::-;5507:8;5517:6;5571:3;5564:4;5556:6;5552:17;5548:27;5538:55;;5589:1;5586;5579:12;5538:55;-1:-1:-1;5612:20:1;;5655:18;5644:30;;5641:50;;;5687:1;5684;5677:12;5641:50;5724:4;5716:6;5712:17;5700:29;;5784:3;5777:4;5767:6;5764:1;5760:14;5752:6;5748:27;5744:38;5741:47;5738:67;;;5801:1;5798;5791:12;5816:773;5938:6;5946;5954;5962;6015:2;6003:9;5994:7;5990:23;5986:32;5983:52;;;6031:1;6028;6021:12;5983:52;6071:9;6058:23;6100:18;6141:2;6133:6;6130:14;6127:34;;;6157:1;6154;6147:12;6127:34;6196:70;6258:7;6249:6;6238:9;6234:22;6196:70;:::i;:::-;6285:8;;-1:-1:-1;6170:96:1;-1:-1:-1;6373:2:1;6358:18;;6345:32;;-1:-1:-1;6389:16:1;;;6386:36;;;6418:1;6415;6408:12;6386:36;;6457:72;6521:7;6510:8;6499:9;6495:24;6457:72;:::i;:::-;5816:773;;;;-1:-1:-1;6548:8:1;-1:-1:-1;;;;5816:773:1:o;6594:186::-;6653:6;6706:2;6694:9;6685:7;6681:23;6677:32;6674:52;;;6722:1;6719;6712:12;6674:52;6745:29;6764:9;6745:29;:::i;6785:248::-;6853:6;6861;6914:2;6902:9;6893:7;6889:23;6885:32;6882:52;;;6930:1;6927;6920:12;6882:52;-1:-1:-1;;6953:23:1;;;7023:2;7008:18;;;6995:32;;-1:-1:-1;6785:248:1:o;7269:693::-;7380:6;7388;7396;7404;7412;7420;7428;7481:3;7469:9;7460:7;7456:23;7452:33;7449:53;;;7498:1;7495;7488:12;7449:53;7521:29;7540:9;7521:29;:::i;:::-;7511:39;;7569:38;7603:2;7592:9;7588:18;7569:38;:::i;:::-;7559:48;;7654:2;7643:9;7639:18;7626:32;7616:42;;7705:2;7694:9;7690:18;7677:32;7667:42;;7759:3;7748:9;7744:19;7731:33;7804:4;7797:5;7793:16;7786:5;7783:27;7773:55;;7824:1;7821;7814:12;7773:55;7269:693;;;;-1:-1:-1;7269:693:1;;;;7847:5;7899:3;7884:19;;7871:33;;-1:-1:-1;7951:3:1;7936:19;;;7923:33;;7269:693;-1:-1:-1;;7269:693:1:o;7967:260::-;8035:6;8043;8096:2;8084:9;8075:7;8071:23;8067:32;8064:52;;;8112:1;8109;8102:12;8064:52;8135:29;8154:9;8135:29;:::i;:::-;8125:39;;8183:38;8217:2;8206:9;8202:18;8183:38;:::i;8232:437::-;8311:1;8307:12;;;;8354;;;8375:61;;8429:4;8421:6;8417:17;8407:27;;8375:61;8482:2;8474:6;8471:14;8451:18;8448:38;8445:218;;8519:77;8516:1;8509:88;8620:4;8617:1;8610:15;8648:4;8645:1;8638:15;9090:184;9142:77;9139:1;9132:88;9239:4;9236:1;9229:15;9263:4;9260:1;9253:15;9279:125;9344:9;;;9365:10;;;9362:36;;;9378:18;;:::i;11992:184::-;12044:77;12041:1;12034:88;12141:4;12138:1;12131:15;12165:4;12162:1;12155:15;19664:545;19766:2;19761:3;19758:11;19755:448;;;19802:1;19827:5;19823:2;19816:17;19872:4;19868:2;19858:19;19942:2;19930:10;19926:19;19923:1;19919:27;19913:4;19909:38;19978:4;19966:10;19963:20;19960:47;;;-1:-1:-1;20001:4:1;19960:47;20056:2;20051:3;20047:12;20044:1;20040:20;20034:4;20030:31;20020:41;;20111:82;20129:2;20122:5;20119:13;20111:82;;;20174:17;;;20155:1;20144:13;20111:82;;;20115:3;;;19664:545;;;:::o;20445:1471::-;20571:3;20565:10;20598:18;20590:6;20587:30;20584:56;;;20620:18;;:::i;:::-;20649:97;20739:6;20699:38;20731:4;20725:11;20699:38;:::i;:::-;20693:4;20649:97;:::i;:::-;20801:4;;20865:2;20854:14;;20882:1;20877:782;;;;21703:1;21720:6;21717:89;;;-1:-1:-1;21772:19:1;;;21766:26;21717:89;-1:-1:-1;;20342:1:1;20338:11;;;20334:84;20330:89;20320:100;20426:1;20422:11;;;20317:117;21819:81;;20847:1063;;20877:782;19611:1;19604:14;;;19648:4;19635:18;;-1:-1:-1;;20913:79:1;;;21090:236;21104:7;21101:1;21098:14;21090:236;;;21193:19;;;21187:26;21172:42;;21285:27;;;;21253:1;21241:14;;;;21120:19;;21090:236;;;21094:3;21354:6;21345:7;21342:19;21339:261;;;21415:19;;;21409:26;-1:-1:-1;;21498:1:1;21494:14;;;21510:3;21490:24;21486:97;21482:102;21467:118;21452:134;;21339:261;-1:-1:-1;;;;;21646:1:1;21630:14;;;21626:22;21613:36;;-1:-1:-1;20445:1471:1:o;23454:812::-;23865:25;23860:3;23853:38;23835:3;23920:6;23914:13;23936:75;24004:6;23999:2;23994:3;23990:12;23983:4;23975:6;23971:17;23936:75;:::i;:::-;24075:19;24070:2;24030:16;;;24062:11;;;24055:40;24120:13;;24142:76;24120:13;24204:2;24196:11;;24189:4;24177:17;;24142:76;:::i;:::-;24238:17;24257:2;24234:26;;23454:812;-1:-1:-1;;;;23454:812:1:o;25137:128::-;25204:9;;;25225:11;;;25222:37;;;25239:18;;:::i;26122:184::-;26174:77;26171:1;26164:88;26271:4;26268:1;26261:15;26295:4;26292:1;26285:15;27427:168;27500:9;;;27531;;27548:15;;;27542:22;;27528:37;27518:71;;27569:18;;:::i;27600:196::-;27639:3;27667:5;27657:39;;27676:18;;:::i;:::-;-1:-1:-1;;;27712:78:1;;27600:196::o;28162:184::-;28214:77;28211:1;28204:88;28311:4;28308:1;28301:15;28335:4;28332:1;28325:15;28351:274;28391:1;28417;28407:189;;28452:77;28449:1;28442:88;28553:4;28550:1;28543:15;28581:4;28578:1;28571:15;28407:189;-1:-1:-1;28610:9:1;;28351:274::o
Swarm Source
ipfs://3d14218b1bdf7e3fc29c90c0584f908e8c28697097e96b5fdfc43e6f2ce4ca2c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.