Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 11 from a total of 11 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Distribute Rewar... | 18821069 | 343 days ago | IN | 0 ETH | 0.00996175 | ||||
Buy NFT | 17865368 | 477 days ago | IN | 0 ETH | 0.00574151 | ||||
Buy NFT | 17843987 | 480 days ago | IN | 0 ETH | 0.00420951 | ||||
Buy NFT | 17843534 | 480 days ago | IN | 0 ETH | 0.00499049 | ||||
Buy NFT | 17843518 | 480 days ago | IN | 0 ETH | 0.0054164 | ||||
Buy NFT | 17823516 | 483 days ago | IN | 0 ETH | 0.00584865 | ||||
Buy NFT | 17801891 | 486 days ago | IN | 0 ETH | 0.00521358 | ||||
Buy NFT | 17797251 | 486 days ago | IN | 0 ETH | 0.00378568 | ||||
Buy NFT | 17794019 | 487 days ago | IN | 0 ETH | 0.00615644 | ||||
Create Tasks And... | 17787921 | 488 days ago | IN | 0 ETH | 0.01605471 | ||||
0x60806040 | 17787880 | 488 days ago | IN | 0 ETH | 0.08464746 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x53b14507...Ff80aC936 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
CrowdmuseProduct
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-27 */ // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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 IERC20Permit { /** * @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/utils/Counters.sol // 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 Counters { 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/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, 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 << 3) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/interfaces/IERC165.sol // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/interfaces/IERC721.sol // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; // File: @openzeppelin/contracts/interfaces/IERC4906.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC4906.sol) pragma solidity ^0.8.0; /// @title EIP-721 Metadata Update Extension interface IERC4906 is IERC165, IERC721 { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is IERC4906, ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC165-supportsInterface} */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) { return interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Emits {MetadataUpdate}. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; emit MetadataUpdate(tokenId); } /** * @dev See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); } // File: @openzeppelin/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // File: CrowdmuseProduct.sol pragma solidity ^0.8.10; contract CrowdmuseProduct is ERC721, ERC721URIStorage, ERC721Enumerable, ERC2981, ReentrancyGuard, Ownable { using SafeMath for uint256; using Counters for Counters.Counter; using SafeERC20 for IERC20; Counters.Counter internal taskId; Counters.Counter internal contributionId; Counters.Counter public tokenId; ProductStatus public productStatus; // whether product is complete uint256 public buyNFTPrice; // nft price uint256 public contributorTotalSupply; // total supply of tokens for this project uint256 public contributorPointsAllocated; // used to ensure that the maximum supply of tokens is not exceeded uint256 public contributorPointsComplete; // used to distribute profits uint256 public garmentsAvailable; // remaining NFTs IERC20 public paymentToken; // ERC20 token address used for payment string public baseURI; enum ProductStatus { InProgress, Complete } enum NFTTypes { Default, Product, Contributor, Investor } enum TaskStatus { Open, Assigned, Complete } struct TaskInformation { uint256 taskId; uint256 contributionValue; address taskOwnerAddress; address taskContributor; uint256[] licensedProjects; uint24 feedbackScore; string submissionUri; string taskMetadataUri; TaskStatus taskStatus; uint256 taskType; } struct Task { uint256[] contributionValues; address[] taskContributors; TaskStatus[] taskStatus; uint256[] taskContributorTypes; } struct Inventory { string keyName; uint96 garmentsRemaining; } mapping(uint256 => TaskInformation) public taskByTaskId; mapping(uint256 => uint8) public NFTByType; // mapping that keeps the NFT type for each NFT id mapping(address => bool) public contributors; // Variables for managing inventory // string public inventoryKey; string[] public garmentTypes; // This is the format of the garmentTypes '{inventoryKey}:Green,size:large' uint96 public numberGarmentTypes; mapping(bytes32 => uint96) public inventoryGarmentsRemaining; mapping(bytes32 => uint96) public inventoryGarmentsOrdered; bool public madeToOrder; constructor( uint96 _feeNumerator, uint256 _contributorTotalSupply, uint256 _garmentsAvailable, Task memory _task, string memory _productName, string memory _productSymbol, string memory _baseUri, address _paymentTokenAddress, string memory _inventoryKey, Inventory[] memory _inventory, bool _madeToOrder ) ERC721(_productName, _productSymbol) { _setDefaultRoyalty(address(this), _feeNumerator); paymentToken = IERC20(_paymentTokenAddress); productStatus = ProductStatus.InProgress; contributorTotalSupply = _contributorTotalSupply; garmentsAvailable = _garmentsAvailable; createTasks(_task.contributionValues, _task.taskContributors, _task.taskStatus, _task.taskContributorTypes); if (!_madeToOrder) { uint96 totalGarmentsMatches; inventoryKey = _inventoryKey; for (uint256 i = 0; i < _inventory.length; i++) { totalGarmentsMatches += _inventory[i].garmentsRemaining; garmentTypes.push(_inventory[i].keyName); inventoryGarmentsRemaining[keccak256(abi.encodePacked(_inventory[i].keyName))] = _inventory[i].garmentsRemaining; numberGarmentTypes = uint96(_inventory.length); } require(totalGarmentsMatches == uint96(_garmentsAvailable), "garment numbers not matching"); } else { madeToOrder = true; } if (bytes(_baseUri).length > 0) baseURI = _baseUri; } fallback() external payable {} receive() external payable {} function createTasks( uint256[] memory _contributionValues, address[] memory _taskContributors, TaskStatus[] memory _taskStatus, uint256[] memory _taskType ) public onlyOwner { for (uint256 i = 0; i < _contributionValues.length; i++) { require( _contributionValues[i] + contributorPointsAllocated <= contributorTotalSupply, "Contribution value exceeds limit" ); taskId.increment(); uint256 _taskId = taskId.current(); TaskInformation storage _taskByTaskId = taskByTaskId[_taskId]; _taskByTaskId.taskId = _taskId; _taskByTaskId.taskOwnerAddress = msg.sender; _taskByTaskId.contributionValue = _contributionValues[i]; _taskByTaskId.taskStatus = _taskStatus[i]; _taskByTaskId.taskContributor = _taskContributors[i]; _taskByTaskId.taskType = _taskType[i]; contributorPointsAllocated += _contributionValues[i]; if (_taskStatus[i] == TaskStatus.Complete) { contributorPointsComplete += _contributionValues[i]; addContributor(_taskContributors[i]); } } } function submitProduct(uint256 _buyNFTPrice) public onlyOwner { require(productStatus != ProductStatus.Complete, "already submitted"); productStatus = ProductStatus.Complete; buyNFTPrice = _buyNFTPrice; } function createTasksAndSubmitProduct( uint256[] memory _contributionValues, address[] memory _taskContributors, TaskStatus[] memory _taskStatus, uint256[] memory _taskType, uint256 _buyNFTPrice ) public onlyOwner { createTasks(_contributionValues, _taskContributors, _taskStatus, _taskType); submitProduct(_buyNFTPrice); } function buyNFT(address _to, bytes32 garmentType) public nonReentrant returns (uint256 _tokenId) { require(productStatus == ProductStatus.Complete, "Product not complete"); require(paymentToken.balanceOf(msg.sender) >= buyNFTPrice, "Not enough balance"); require(garmentsAvailable > 0, "No garments left"); require(inventoryGarmentsRemaining[garmentType] > 0, "None of this type remaining"); require(_to != address(0), "Address must not be zero"); if (buyNFTPrice > 0) { paymentToken.safeTransferFrom(msg.sender, address(this), buyNFTPrice); } tokenId.increment(); _tokenId = tokenId.current(); _safeMint(_to, _tokenId); if (madeToOrder) { inventoryGarmentsOrdered[garmentType] += 1; } else { inventoryGarmentsRemaining[garmentType] -= 1; } garmentsAvailable -= 1; uint8 productTypeAsUint = uint8(NFTTypes.Product); NFTByType[_tokenId] = productTypeAsUint; } function distributeRewards() public nonReentrant { uint256 currentBalance = paymentToken.balanceOf(address(this)); require(currentBalance > 0, "No funds available"); for (uint256 i = 1; i <= taskId.current(); i++) { if (taskByTaskId[i].taskStatus == TaskStatus.Complete) { uint256 amountToSend = currentBalance .mul(taskByTaskId[i].contributionValue) .mul(10000) .div(contributorPointsComplete) .div(10000); //This means that if the person has less than 0.01% of the total tokens, they wont be eligible for a return paymentToken.safeTransfer(taskByTaskId[i].taskContributor, amountToSend); } } } function distributeRewardsNative() public nonReentrant { uint256 currentBalance = address(this).balance; require(currentBalance > 0, "No funds available"); for (uint256 i = 1; i <= taskId.current(); i++) { if (taskByTaskId[i].taskStatus == TaskStatus.Complete) { uint256 amountToSend = currentBalance .mul(taskByTaskId[i].contributionValue) .mul(10000) .div(contributorPointsComplete) .div(10000); //This means that if the person has less than 0.01% of the total tokens, they wont be eligible for a return (bool success, ) = taskByTaskId[i].taskContributor.call{ value: amountToSend }(""); require(success, "Did not send"); // Make sure this reverts all the sends if one of them fails/ Make sure this reverts all the sends if one of them fails } } } function addContributor(address to) private { contributors[to] = true; } function _baseURI() internal view override returns (string memory) { return baseURI; } function changeBaseUri(string memory _newBaseUri) external onlyOwner { // In case the gateway breaks baseURI = _newBaseUri; } function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 batchSize ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId, batchSize); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return baseURI; } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721, ERC721Enumerable, ERC721URIStorage, ERC2981) returns (bool) { return (interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId)); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint96","name":"_feeNumerator","type":"uint96"},{"internalType":"uint256","name":"_contributorTotalSupply","type":"uint256"},{"internalType":"uint256","name":"_garmentsAvailable","type":"uint256"},{"components":[{"internalType":"uint256[]","name":"contributionValues","type":"uint256[]"},{"internalType":"address[]","name":"taskContributors","type":"address[]"},{"internalType":"enum CrowdmuseProduct.TaskStatus[]","name":"taskStatus","type":"uint8[]"},{"internalType":"uint256[]","name":"taskContributorTypes","type":"uint256[]"}],"internalType":"struct CrowdmuseProduct.Task","name":"_task","type":"tuple"},{"internalType":"string","name":"_productName","type":"string"},{"internalType":"string","name":"_productSymbol","type":"string"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"address","name":"_paymentTokenAddress","type":"address"},{"internalType":"string","name":"_inventoryKey","type":"string"},{"components":[{"internalType":"string","name":"keyName","type":"string"},{"internalType":"uint96","name":"garmentsRemaining","type":"uint96"}],"internalType":"struct CrowdmuseProduct.Inventory[]","name":"_inventory","type":"tuple[]"},{"internalType":"bool","name":"_madeToOrder","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"NFTByType","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bytes32","name":"garmentType","type":"bytes32"}],"name":"buyNFT","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyNFTPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseUri","type":"string"}],"name":"changeBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contributorPointsAllocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contributorPointsComplete","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contributorTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"contributors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_contributionValues","type":"uint256[]"},{"internalType":"address[]","name":"_taskContributors","type":"address[]"},{"internalType":"enum CrowdmuseProduct.TaskStatus[]","name":"_taskStatus","type":"uint8[]"},{"internalType":"uint256[]","name":"_taskType","type":"uint256[]"}],"name":"createTasks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_contributionValues","type":"uint256[]"},{"internalType":"address[]","name":"_taskContributors","type":"address[]"},{"internalType":"enum CrowdmuseProduct.TaskStatus[]","name":"_taskStatus","type":"uint8[]"},{"internalType":"uint256[]","name":"_taskType","type":"uint256[]"},{"internalType":"uint256","name":"_buyNFTPrice","type":"uint256"}],"name":"createTasksAndSubmitProduct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeRewardsNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"garmentTypes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"garmentsAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"inventoryGarmentsOrdered","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"inventoryGarmentsRemaining","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inventoryKey","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"madeToOrder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberGarmentTypes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"productStatus","outputs":[{"internalType":"enum CrowdmuseProduct.ProductStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyNFTPrice","type":"uint256"}],"name":"submitProduct","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taskByTaskId","outputs":[{"internalType":"uint256","name":"taskId","type":"uint256"},{"internalType":"uint256","name":"contributionValue","type":"uint256"},{"internalType":"address","name":"taskOwnerAddress","type":"address"},{"internalType":"address","name":"taskContributor","type":"address"},{"internalType":"uint24","name":"feedbackScore","type":"uint24"},{"internalType":"string","name":"submissionUri","type":"string"},{"internalType":"string","name":"taskMetadataUri","type":"string"},{"internalType":"enum CrowdmuseProduct.TaskStatus","name":"taskStatus","type":"uint8"},{"internalType":"uint256","name":"taskType","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenId","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106102c65760003560e01c80636c0360eb11610177578063b88d4fde116100d5578063d92cb69a11610084578063f2fde38b11610061578063f2fde38b146108a5578063f90be237146108c5578063f99a4ffb146108df57005b8063d92cb69a14610820578063e8d1296b14610847578063e985e9c51461085c57005b8063c7119e37116100b2578063c7119e37146107ab578063c87b56dd146107e0578063cad11ec61461080057005b8063b88d4fde1461074b578063c443665c1461076b578063c67a83911461078b57005b80638da5cb5b11610131578063a22cb4651161010e578063a22cb46514610700578063ac6b0dcc14610720578063b115406a1461073657005b80638da5cb5b146106ad57806395d89b41146106cb578063a1fe4d51146106e057005b806370a082311161015f57806370a0823114610658578063715018a614610678578063817776421461068d57005b80636c0360eb1461062e5780636f4a2cd01461064357005b80632a55205a1161022457806344c6ca9e116101de5780635197c1ca116101bb5780635197c1ca146105e257806358a09cfd146105f85780636352211e1461060e57005b806344c6ca9e14610560578063492d306b146105a25780634f6ccce7146105c257005b80633013ce291161020c5780633013ce29146105005780633719743e1461052057806342842e0e1461054057005b80632a55205a146104a15780632f745c59146104e057005b80630b4b2c7b1161028057806318160ddd1161025d57806318160ddd1461043c5780631f6d49421461045157806323b872dd1461048157005b80630b4b2c7b146103cb5780630f4dbdc01461040157806317d70f7c1461042557005b806306fdde03116102ae57806306fdde0314610351578063081812fc14610373578063095ea7b3146103ab57005b806301ffc9a7146102cf57806306c8286d1461030457005b366102cd57005b005b3480156102db57600080fd5b506102ef6102ea366004612de8565b6108f5565b60405190151581526020015b60405180910390f35b34801561031057600080fd5b5061033961031f366004612e05565b60208052600090815260409020546001600160601b031681565b6040516001600160601b0390911681526020016102fb565b34801561035d57600080fd5b50610366610920565b6040516102fb9190612e76565b34801561037f57600080fd5b5061039361038e366004612e05565b6109b2565b6040516001600160a01b0390911681526020016102fb565b3480156103b757600080fd5b506102cd6103c6366004612ea5565b6109d9565b3480156103d757600080fd5b506103396103e6366004612e05565b6021602052600090815260409020546001600160601b031681565b34801561040d57600080fd5b5061041760155481565b6040519081526020016102fb565b34801561043157600080fd5b506011546104179081565b34801561044857600080fd5b50600954610417565b34801561045d57600080fd5b506102ef61046c366004612ecf565b601c6020526000908152604090205460ff1681565b34801561048d57600080fd5b506102cd61049c366004612eea565b610b10565b3480156104ad57600080fd5b506104c16104bc366004612f26565b610b87565b604080516001600160a01b0390931683526020830191909152016102fb565b3480156104ec57600080fd5b506104176104fb366004612ea5565b610c33565b34801561050c57600080fd5b50601854610393906001600160a01b031681565b34801561052c57600080fd5b506102cd61053b3660046130e9565b610cdb565b34801561054c57600080fd5b506102cd61055b366004612eea565b610cff565b34801561056c57600080fd5b5061059061057b366004612e05565b601b6020526000908152604090205460ff1681565b60405160ff90911681526020016102fb565b3480156105ae57600080fd5b506102cd6105bd3660046131f6565b610d1a565b3480156105ce57600080fd5b506104176105dd366004612e05565b610d39565b3480156105ee57600080fd5b5061041760175481565b34801561060457600080fd5b5061041760165481565b34801561061a57600080fd5b50610393610629366004612e05565b610ddd565b34801561063a57600080fd5b50610366610e42565b34801561064f57600080fd5b506102cd610ed0565b34801561066457600080fd5b50610417610673366004612ecf565b61106b565b34801561068457600080fd5b506102cd611105565b34801561069957600080fd5b506102cd6106a836600461323f565b611117565b3480156106b957600080fd5b50600e546001600160a01b0316610393565b3480156106d757600080fd5b50610366611399565b3480156106ec57600080fd5b506102cd6106fb366004612e05565b6113a8565b34801561070c57600080fd5b506102cd61071b3660046132fa565b611429565b34801561072c57600080fd5b5061041760145481565b34801561074257600080fd5b506102cd611434565b34801561075757600080fd5b506102cd610766366004613331565b6115cc565b34801561077757600080fd5b50601f54610339906001600160601b031681565b34801561079757600080fd5b506104176107a6366004612ea5565b61164a565b3480156107b757600080fd5b506107cb6107c6366004612e05565b6119a9565b6040516102fb999897969594939291906133b7565b3480156107ec57600080fd5b506103666107fb366004612e05565b611b1a565b34801561080c57600080fd5b5061036661081b366004612e05565b611bae565b34801561082c57600080fd5b5060125461083a9060ff1681565b6040516102fb919061343a565b34801561085357600080fd5b50610366611bd9565b34801561086857600080fd5b506102ef610877366004613454565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108b157600080fd5b506102cd6108c0366004612ecf565b611be6565b3480156108d157600080fd5b506022546102ef9060ff1681565b3480156108eb57600080fd5b5061041760135481565b60006001600160e01b0319821663152a902d60e11b148061091a575061091a82611c83565b92915050565b60606000805461092f90613487565b80601f016020809104026020016040519081016040528092919081815260200182805461095b90613487565b80156109a85780601f1061097d576101008083540402835291602001916109a8565b820191906000526020600020905b81548152906001019060200180831161098b57829003601f168201915b5050505050905090565b60006109bd82611ca8565b506000908152600460205260409020546001600160a01b031690565b60006109e482610ddd565b9050806001600160a01b0316836001600160a01b03161415610a735760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610a8f5750610a8f8133610877565b610b015760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610a6a565b610b0b8383611d0c565b505050565b610b1a3382611d7a565b610b7c5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610a6a565b610b0b838383611df9565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610bfc575060408051808201909152600b546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610c1b906001600160601b0316876134d8565b610c2591906134f7565b915196919550909350505050565b6000610c3e8361106b565b8210610cb25760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610a6a565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610ce3611fff565b610cef85858585611117565b610cf8816113a8565b5050505050565b610b0b838383604051806020016040528060008152506115cc565b610d22611fff565b8051610d35906019906020840190612d39565b5050565b6000610d4460095490565b8210610db85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610a6a565b60098281548110610dcb57610dcb613519565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061091a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a6a565b60198054610e4f90613487565b80601f0160208091040260200160405190810160405280929190818152602001828054610e7b90613487565b8015610ec85780601f10610e9d57610100808354040283529160200191610ec8565b820191906000526020600020905b815481529060010190602001808311610eab57829003601f168201915b505050505081565b610ed8612059565b6018546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610f21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f45919061352f565b905060008111610f975760405162461bcd60e51b815260206004820152601260248201527f4e6f2066756e647320617661696c61626c6500000000000000000000000000006044820152606401610a6a565b60015b600f54811161105d5760026000828152601a602052604090206008015460ff166002811115610fcb57610fcb6133a1565b141561104b57600061101a61271061101460165461101461271061100e601a60008a8152602001908152602001600020600101548a6120b390919063ffffffff16565b906120b3565b906120c6565b6000838152601a6020526040902060030154601854919250611049916001600160a01b039081169116836120d2565b505b8061105581613548565b915050610f9a565b50506110696001600d55565b565b60006001600160a01b0382166110e95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610a6a565b506001600160a01b031660009081526003602052604090205490565b61110d611fff565b6110696000612163565b61111f611fff565b60005b8451811015610cf85760145460155486838151811061114357611143613519565b60200260200101516111559190613563565b11156111a35760405162461bcd60e51b815260206004820181905260248201527f436f6e747269627574696f6e2076616c75652065786365656473206c696d69746044820152606401610a6a565b6111b1600f80546001019055565b60006111bc600f5490565b6000818152601a602052604090208181556002810180546001600160a01b031916331790558751919250908790849081106111f9576111f9613519565b6020026020010151816001018190555084838151811061121b5761121b613519565b602090810291909101015160088201805460ff19166001836002811115611244576112446133a1565b021790555085838151811061125b5761125b613519565b60200260200101518160030160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555083838151811061129d5761129d613519565b602002602001015181600901819055508683815181106112bf576112bf613519565b6020026020010151601560008282546112d89190613563565b90915550600290508584815181106112f2576112f2613519565b6020026020010151600281111561130b5761130b6133a1565b14156113845786838151811061132357611323613519565b60200260200101516016600082825461133c9190613563565b9250508190555061138486848151811061135857611358613519565b60200260200101516001600160a01b03166000908152601c60205260409020805460ff19166001179055565b5050808061139190613548565b915050611122565b60606001805461092f90613487565b6113b0611fff565b600160125460ff1660018111156113c9576113c96133a1565b14156114175760405162461bcd60e51b815260206004820152601160248201527f616c7265616479207375626d69747465640000000000000000000000000000006044820152606401610a6a565b6012805460ff19166001179055601355565b610d353383836121b5565b61143c612059565b478061148a5760405162461bcd60e51b815260206004820152601260248201527f4e6f2066756e647320617661696c61626c6500000000000000000000000000006044820152606401610a6a565b60015b600f54811161105d5760026000828152601a602052604090206008015460ff1660028111156114be576114be6133a1565b14156115ba57600061150161271061101460165461101461271061100e601a60008a8152602001908152602001600020600101548a6120b390919063ffffffff16565b6000838152601a602052604080822060030154905192935090916001600160a01b039091169083908381818185875af1925050503d8060008114611561576040519150601f19603f3d011682016040523d82523d6000602084013e611566565b606091505b50509050806115b75760405162461bcd60e51b815260206004820152600c60248201527f446964206e6f742073656e6400000000000000000000000000000000000000006044820152606401610a6a565b50505b806115c481613548565b91505061148d565b6115d63383611d7a565b6116385760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610a6a565b61164484848484612284565b50505050565b6000611654612059565b600160125460ff16600181111561166d5761166d6133a1565b146116ba5760405162461bcd60e51b815260206004820152601460248201527f50726f64756374206e6f7420636f6d706c6574650000000000000000000000006044820152606401610a6a565b6013546018546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611705573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611729919061352f565b10156117775760405162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f7567682062616c616e636500000000000000000000000000006044820152606401610a6a565b6000601754116117c95760405162461bcd60e51b815260206004820152601060248201527f4e6f206761726d656e7473206c656674000000000000000000000000000000006044820152606401610a6a565b60008281526020805260409020546001600160601b031661182c5760405162461bcd60e51b815260206004820152601b60248201527f4e6f6e65206f66207468697320747970652072656d61696e696e6700000000006044820152606401610a6a565b6001600160a01b0383166118825760405162461bcd60e51b815260206004820152601860248201527f41646472657373206d757374206e6f74206265207a65726f00000000000000006044820152606401610a6a565b601354156118a9576013546018546118a9916001600160a01b039091169033903090612302565b6118b7601180546001019055565b506011546118c58382612353565b60225460ff16156119215760008281526021602052604081208054600192906118f89084906001600160601b031661357b565b92506101000a8154816001600160601b0302191690836001600160601b0316021790555061196d565b600082815260208052604081208054600192906119489084906001600160601b03166135a6565b92506101000a8154816001600160601b0302191690836001600160601b031602179055505b60016017600082825461198091906135ce565b90915550506000818152601b60205260409020805460ff19166001908117909155600d5561091a565b601a60205260009081526040902080546001820154600283015460038401546005850154600686018054959694956001600160a01b0394851695949093169362ffffff909216926119f990613487565b80601f0160208091040260200160405190810160405280929190818152602001828054611a2590613487565b8015611a725780601f10611a4757610100808354040283529160200191611a72565b820191906000526020600020905b815481529060010190602001808311611a5557829003601f168201915b505050505090806007018054611a8790613487565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab390613487565b8015611b005780601f10611ad557610100808354040283529160200191611b00565b820191906000526020600020905b815481529060010190602001808311611ae357829003601f168201915b505050506008830154600990930154919260ff1691905089565b606060198054611b2990613487565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5590613487565b8015611ba25780601f10611b7757610100808354040283529160200191611ba2565b820191906000526020600020905b815481529060010190602001808311611b8557829003601f168201915b50505050509050919050565b601e8181548110611bbe57600080fd5b906000526020600020016000915090508054610e4f90613487565b601d8054610e4f90613487565b611bee611fff565b6001600160a01b038116611c6a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a6a565b611c7381612163565b50565b80546001019055565b5490565b60006001600160e01b0319821663152a902d60e11b148061091a575061091a8261236d565b6000818152600260205260409020546001600160a01b0316611c735760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a6a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d4182610ddd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611d8683610ddd565b9050806001600160a01b0316846001600160a01b03161480611dcd57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611df15750836001600160a01b0316611de6846109b2565b6001600160a01b0316145b949350505050565b826001600160a01b0316611e0c82610ddd565b6001600160a01b031614611e705760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a6a565b6001600160a01b038216611eeb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a6a565b611ef883838360016123ab565b826001600160a01b0316611f0b82610ddd565b6001600160a01b031614611f6f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a6a565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e546001600160a01b031633146110695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a6a565b6002600d5414156120ac5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a6a565b6002600d55565b60006120bf82846134d8565b9392505050565b60006120bf82846134f7565b6040516001600160a01b038316602482015260448101829052610b0b9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091526123b7565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156122175760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a6a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61228f848484611df9565b61229b8484848461249f565b6116445760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a6a565b6040516001600160a01b03808516602483015283166044820152606481018290526116449085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401612117565b610d358282604051806020016040528060008152506125e8565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061091a575061091a82612666565b611644848484846126a4565b600061240c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127d99092919063ffffffff16565b905080516000148061242d57508080602001905181019061242d91906135e5565b610b0b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a6a565b60006001600160a01b0384163b156125dd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124e3903390899088908890600401613602565b6020604051808303816000875af192505050801561251e575060408051601f3d908101601f1916820190925261251b9181019061363e565b60015b6125c3573d80801561254c576040519150601f19603f3d011682016040523d82523d6000602084013e612551565b606091505b5080516125bb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a6a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611df1565b506001949350505050565b6125f283836127e8565b6125ff600084848461249f565b610b0b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a6a565b60006001600160e01b031982167f4906490600000000000000000000000000000000000000000000000000000000148061091a575061091a82612981565b600181111561271b5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f7274656400000000000000000000006064820152608401610a6a565b816001600160a01b0385166127775761277281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61279a565b836001600160a01b0316856001600160a01b03161461279a5761279a8582612a1c565b6001600160a01b0384166127b6576127b181612ab9565b610cf8565b846001600160a01b0316846001600160a01b031614610cf857610cf88482612b68565b6060611df18484600085612bac565b6001600160a01b03821661283e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a6a565b6000818152600260205260409020546001600160a01b0316156128a35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a6a565b6128b16000838360016123ab565b6000818152600260205260409020546001600160a01b0316156129165760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a6a565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806129e457506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061091a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461091a565b60006001612a298461106b565b612a3391906135ce565b600083815260086020526040902054909150808214612a86576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090612acb906001906135ce565b6000838152600a602052604081205460098054939450909284908110612af357612af3613519565b906000526020600020015490508060098381548110612b1457612b14613519565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612b4c57612b4c61365b565b6001900381819060005260206000200160009055905550505050565b6000612b738361106b565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b606082471015612c245760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a6a565b600080866001600160a01b03168587604051612c409190613671565b60006040518083038185875af1925050503d8060008114612c7d576040519150601f19603f3d011682016040523d82523d6000602084013e612c82565b606091505b5091509150612c9387838387612c9e565b979650505050505050565b60608315612d0a578251612d03576001600160a01b0385163b612d035760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a6a565b5081611df1565b611df18383815115612d1f5781518083602001fd5b8060405162461bcd60e51b8152600401610a6a9190612e76565b828054612d4590613487565b90600052602060002090601f016020900481019282612d675760008555612dad565b82601f10612d8057805160ff1916838001178555612dad565b82800160010185558215612dad579182015b82811115612dad578251825591602001919060010190612d92565b50612db9929150612dbd565b5090565b5b80821115612db95760008155600101612dbe565b6001600160e01b031981168114611c7357600080fd5b600060208284031215612dfa57600080fd5b81356120bf81612dd2565b600060208284031215612e1757600080fd5b5035919050565b60005b83811015612e39578181015183820152602001612e21565b838111156116445750506000910152565b60008151808452612e62816020860160208601612e1e565b601f01601f19169290920160200192915050565b6020815260006120bf6020830184612e4a565b80356001600160a01b0381168114612ea057600080fd5b919050565b60008060408385031215612eb857600080fd5b612ec183612e89565b946020939093013593505050565b600060208284031215612ee157600080fd5b6120bf82612e89565b600080600060608486031215612eff57600080fd5b612f0884612e89565b9250612f1660208501612e89565b9150604084013590509250925092565b60008060408385031215612f3957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612f8757612f87612f48565b604052919050565b600067ffffffffffffffff821115612fa957612fa9612f48565b5060051b60200190565b600082601f830112612fc457600080fd5b81356020612fd9612fd483612f8f565b612f5e565b82815260059290921b84018101918181019086841115612ff857600080fd5b8286015b848110156130135780358352918301918301612ffc565b509695505050505050565b600082601f83011261302f57600080fd5b8135602061303f612fd483612f8f565b82815260059290921b8401810191818101908684111561305e57600080fd5b8286015b848110156130135761307381612e89565b8352918301918301613062565b600082601f83011261309157600080fd5b813560206130a1612fd483612f8f565b82815260059290921b840181019181810190868411156130c057600080fd5b8286015b84811015613013578035600381106130dc5760008081fd5b83529183019183016130c4565b600080600080600060a0868803121561310157600080fd5b853567ffffffffffffffff8082111561311957600080fd5b61312589838a01612fb3565b9650602088013591508082111561313b57600080fd5b61314789838a0161301e565b9550604088013591508082111561315d57600080fd5b61316989838a01613080565b9450606088013591508082111561317f57600080fd5b5061318c88828901612fb3565b95989497509295608001359392505050565b600067ffffffffffffffff8311156131b8576131b8612f48565b6131cb601f8401601f1916602001612f5e565b90508281528383830111156131df57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561320857600080fd5b813567ffffffffffffffff81111561321f57600080fd5b8201601f8101841361323057600080fd5b611df18482356020840161319e565b6000806000806080858703121561325557600080fd5b843567ffffffffffffffff8082111561326d57600080fd5b61327988838901612fb3565b9550602087013591508082111561328f57600080fd5b61329b8883890161301e565b945060408701359150808211156132b157600080fd5b6132bd88838901613080565b935060608701359150808211156132d357600080fd5b506132e087828801612fb3565b91505092959194509250565b8015158114611c7357600080fd5b6000806040838503121561330d57600080fd5b61331683612e89565b91506020830135613326816132ec565b809150509250929050565b6000806000806080858703121561334757600080fd5b61335085612e89565b935061335e60208601612e89565b925060408501359150606085013567ffffffffffffffff81111561338157600080fd5b8501601f8101871361339257600080fd5b6132e08782356020840161319e565b634e487b7160e01b600052602160045260246000fd5b60006101208b83528a60208401526001600160a01b03808b166040850152808a1660608501525062ffffff881660808401528060a08401526133fb81840188612e4a565b905082810360c084015261340f8187612e4a565b91505060038410613422576134226133a1565b60e08201939093526101000152979650505050505050565b602081016002831061344e5761344e6133a1565b91905290565b6000806040838503121561346757600080fd5b61347083612e89565b915061347e60208401612e89565b90509250929050565b600181811c9082168061349b57607f821691505b602082108114156134bc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156134f2576134f26134c2565b500290565b60008261351457634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561354157600080fd5b5051919050565b600060001982141561355c5761355c6134c2565b5060010190565b60008219821115613576576135766134c2565b500190565b60006001600160601b0380831681851680830382111561359d5761359d6134c2565b01949350505050565b60006001600160601b03838116908316818110156135c6576135c66134c2565b039392505050565b6000828210156135e0576135e06134c2565b500390565b6000602082840312156135f757600080fd5b81516120bf816132ec565b60006001600160a01b038087168352808616602084015250836040830152608060608301526136346080830184612e4a565b9695505050505050565b60006020828403121561365057600080fd5b81516120bf81612dd2565b634e487b7160e01b600052603160045260246000fd5b60008251613683818460208701612e1e565b919091019291505056fea2646970667358221220cd668404cd8098543823c21c42e6f92458665a4182814d21a6342259b66c1ae564736f6c634300080a0033
Deployed Bytecode Sourcemap
97041:9114:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;105895:257;;;;;;;;;;-1:-1:-1;105895:257:0;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;105895:257:0;;;;;;;;99126:60;;;;;;;;;;-1:-1:-1;99126:60:0;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;99126:60:0;;;;;;-1:-1:-1;;;;;985:39:1;;;967:58;;955:2;940:18;99126:60:0;823:208:1;67727:100:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;69239:171::-;;;;;;;;;;-1:-1:-1;69239:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2136:55:1;;;2118:74;;2106:2;2091:18;69239:171:0;1972:226:1;68757:416:0;;;;;;;;;;-1:-1:-1;68757:416:0;;;;;:::i;:::-;;:::i;99191:58::-;;;;;;;;;;-1:-1:-1;99191:58:0;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;99191:58:0;;;97578:41;;;;;;;;;;;;;;;;;;;2809:25:1;;;2797:2;2782:18;97578:41:0;2663:177:1;97341:31:0;;;;;;;;;;-1:-1:-1;97341:31:0;;;;;;84318:113;;;;;;;;;;-1:-1:-1;84406:10:0;:17;84318:113;;98852:44;;;;;;;;;;-1:-1:-1;98852:44:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;69939:301;;;;;;;;;;-1:-1:-1;69939:301:0;;;;;:::i;:::-;;:::i;94497:438::-;;;;;;;;;;-1:-1:-1;94497:438:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3814:55:1;;;3796:74;;3901:2;3886:18;;3879:34;;;;3769:18;94497:438:0;3622:297:1;83986:256:0;;;;;;;;;;-1:-1:-1;83986:256:0;;;;;:::i;:::-;;:::i;97822:26::-;;;;;;;;;;-1:-1:-1;97822:26:0;;;;-1:-1:-1;;;;;97822:26:0;;;102164:363;;;;;;;;;;-1:-1:-1;102164:363:0;;;;;:::i;:::-;;:::i;70311:151::-;;;;;;;;;;-1:-1:-1;70311:151:0;;;;;:::i;:::-;;:::i;98753:42::-;;;;;;;;;;-1:-1:-1;98753:42:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8312:4:1;8300:17;;;8282:36;;8270:2;8255:18;98753:42:0;8140:184:1;105261:138:0;;;;;;;;;;-1:-1:-1;105261:138:0;;;;;:::i;:::-;;:::i;84508:233::-;;;;;;;;;;-1:-1:-1;84508:233:0;;;;;:::i;:::-;;:::i;97767:32::-;;;;;;;;;;;;;;;;97692:40;;;;;;;;;;;;;;;;67437:223;;;;;;;;;;-1:-1:-1;67437:223:0;;;;;:::i;:::-;;:::i;97893:21::-;;;;;;;;;;;;;:::i;103506:697::-;;;;;;;;;;;;;:::i;67168:207::-;;;;;;;;;;-1:-1:-1;67168:207:0;;;;;:::i;:::-;;:::i;36948:103::-;;;;;;;;;;;;;:::i;100813:1117::-;;;;;;;;;;-1:-1:-1;100813:1117:0;;;;;:::i;:::-;;:::i;36307:87::-;;;;;;;;;;-1:-1:-1;36380:6:0;;-1:-1:-1;;;;;36380:6:0;36307:87;;67896:104;;;;;;;;;;;;;:::i;101936:222::-;;;;;;;;;;-1:-1:-1;101936:222:0;;;;;:::i;:::-;;:::i;69482:155::-;;;;;;;;;;-1:-1:-1;69482:155:0;;;;;:::i;:::-;;:::i;97493:37::-;;;;;;;;;;;;;;;;104209:860;;;;;;;;;;;;;:::i;70533:279::-;;;;;;;;;;-1:-1:-1;70533:279:0;;;;;:::i;:::-;;:::i;99089:32::-;;;;;;;;;;-1:-1:-1;99089:32:0;;;;-1:-1:-1;;;;;99089:32:0;;;102535:963;;;;;;;;;;-1:-1:-1;102535:963:0;;;;;:::i;:::-;;:::i;98693:55::-;;;;;;;;;;-1:-1:-1;98693:55:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;;:::i;105756:133::-;;;;;;;;;;-1:-1:-1;105756:133:0;;;;;:::i;:::-;;:::i;98978:28::-;;;;;;;;;;-1:-1:-1;98978:28:0;;;;;:::i;:::-;;:::i;97379:34::-;;;;;;;;;;-1:-1:-1;97379:34:0;;;;;;;;;;;;;;;:::i;98947:26::-;;;;;;;;;;;;;:::i;69708:164::-;;;;;;;;;;-1:-1:-1;69708:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;69829:25:0;;;69805:4;69829:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;69708:164;37206:201;;;;;;;;;;-1:-1:-1;37206:201:0;;;;;:::i;:::-;;:::i;99254:23::-;;;;;;;;;;-1:-1:-1;99254:23:0;;;;;;;;97449:26;;;;;;;;;;;;;;;;105895:257;106043:4;-1:-1:-1;;;;;;106064:41:0;;-1:-1:-1;;;106064:41:0;;:81;;;106109:36;106133:11;106109:23;:36::i;:::-;106056:90;105895:257;-1:-1:-1;;105895:257:0:o;67727:100::-;67781:13;67814:5;67807:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67727:100;:::o;69239:171::-;69315:7;69335:23;69350:7;69335:14;:23::i;:::-;-1:-1:-1;69378:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;69378:24:0;;69239:171::o;68757:416::-;68838:13;68854:23;68869:7;68854:14;:23::i;:::-;68838:39;;68902:5;-1:-1:-1;;;;;68896:11:0;:2;-1:-1:-1;;;;;68896:11:0;;;68888:57;;;;-1:-1:-1;;;68888:57:0;;14072:2:1;68888:57:0;;;14054:21:1;14111:2;14091:18;;;14084:30;14150:34;14130:18;;;14123:62;14221:3;14201:18;;;14194:31;14242:19;;68888:57:0;;;;;;;;;34938:10;-1:-1:-1;;;;;68980:21:0;;;;:62;;-1:-1:-1;69005:37:0;69022:5;34938:10;69708:164;:::i;69005:37::-;68958:173;;;;-1:-1:-1;;;68958:173:0;;14474:2:1;68958:173:0;;;14456:21:1;14513:2;14493:18;;;14486:30;14552:34;14532:18;;;14525:62;14623:31;14603:18;;;14596:59;14672:19;;68958:173:0;14272:425:1;68958:173:0;69144:21;69153:2;69157:7;69144:8;:21::i;:::-;68827:346;68757:416;;:::o;69939:301::-;70100:41;34938:10;70133:7;70100:18;:41::i;:::-;70092:99;;;;-1:-1:-1;;;70092:99:0;;14904:2:1;70092:99:0;;;14886:21:1;14943:2;14923:18;;;14916:30;14982:34;14962:18;;;14955:62;-1:-1:-1;;;15033:18:1;;;15026:43;15086:19;;70092:99:0;14702:409:1;70092:99:0;70204:28;70214:4;70220:2;70224:7;70204:9;:28::i;94497:438::-;94592:7;94650:26;;;:17;:26;;;;;;;;94621:55;;;;;;;;;-1:-1:-1;;;;;94621:55:0;;;;;-1:-1:-1;;;94621:55:0;;;-1:-1:-1;;;;;94621:55:0;;;;;;;;94592:7;;94689:92;;-1:-1:-1;94740:29:0;;;;;;;;;94750:19;94740:29;-1:-1:-1;;;;;94740:29:0;;;;-1:-1:-1;;;94740:29:0;;-1:-1:-1;;;;;94740:29:0;;;;;94689:92;94830:23;;;;94793:21;;95301:5;;94818:35;;-1:-1:-1;;;;;94818:35:0;:9;:35;:::i;:::-;94817:57;;;;:::i;:::-;94895:16;;;;;-1:-1:-1;94497:438:0;;-1:-1:-1;;;;94497:438:0:o;83986:256::-;84083:7;84119:23;84136:5;84119:16;:23::i;:::-;84111:5;:31;84103:87;;;;-1:-1:-1;;;84103:87:0;;15959:2:1;84103:87:0;;;15941:21:1;15998:2;15978:18;;;15971:30;16037:34;16017:18;;;16010:62;16108:13;16088:18;;;16081:41;16139:19;;84103:87:0;15757:407:1;84103:87:0;-1:-1:-1;;;;;;84208:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;83986:256::o;102164:363::-;36193:13;:11;:13::i;:::-;102412:75:::1;102424:19;102445:17;102464:11;102477:9;102412:11;:75::i;:::-;102494:27;102508:12;102494:13;:27::i;:::-;102164:363:::0;;;;;:::o;70311:151::-;70415:39;70432:4;70438:2;70442:7;70415:39;;;;;;;;;;;;:16;:39::i;105261:138::-;36193:13;:11;:13::i;:::-;105372:21;;::::1;::::0;:7:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;:::-;;105261:138:::0;:::o;84508:233::-;84583:7;84619:30;84406:10;:17;;84318:113;84619:30;84611:5;:38;84603:95;;;;-1:-1:-1;;;84603:95:0;;16371:2:1;84603:95:0;;;16353:21:1;16410:2;16390:18;;;16383:30;16449:34;16429:18;;;16422:62;16520:14;16500:18;;;16493:42;16552:19;;84603:95:0;16169:408:1;84603:95:0;84716:10;84727:5;84716:17;;;;;;;;:::i;:::-;;;;;;;;;84709:24;;84508:233;;;:::o;67437:223::-;67509:7;72170:16;;;:7;:16;;;;;;-1:-1:-1;;;;;72170:16:0;;67573:56;;;;-1:-1:-1;;;67573:56:0;;16973:2:1;67573:56:0;;;16955:21:1;17012:2;16992:18;;;16985:30;17051:26;17031:18;;;17024:54;17095:18;;67573:56:0;16771:348:1;97893:21:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;103506:697::-;9023:21;:19;:21::i;:::-;103587:12:::1;::::0;:37:::1;::::0;-1:-1:-1;;;103587:37:0;;103618:4:::1;103587:37;::::0;::::1;2118:74:1::0;103562:22:0::1;::::0;-1:-1:-1;;;;;103587:12:0::1;::::0;:22:::1;::::0;2091:18:1;;103587:37:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;103562:62;;103656:1;103639:14;:18;103631:49;;;::::0;-1:-1:-1;;;103631:49:0;;17515:2:1;103631:49:0::1;::::0;::::1;17497:21:1::0;17554:2;17534:18;;;17527:30;17593:20;17573:18;;;17566:48;17631:18;;103631:49:0::1;17313:342:1::0;103631:49:0::1;103706:1;103689:509;103714:6;3332:14:::0;103709:1:::1;:21;103689:509;;103780:19;103750:15;::::0;;;:12:::1;:15;::::0;;;;:26:::1;;::::0;::::1;;:49;::::0;::::1;;;;;;:::i;:::-;;103746:445;;;103812:20;103835:154;103983:5;103835:131;103940:25;;103835:88;103917:5;103835:65;103866:12;:15;103879:1;103866:15;;;;;;;;;;;:33;;;103835:14;:30;;:65;;;;:::i;:::-;:81:::0;::::1;:88::i;:::-;:104:::0;::::1;:131::i;:154::-;104135:15;::::0;;;:12:::1;:15;::::0;;;;:31:::1;;::::0;104109:12:::1;::::0;103812:177;;-1:-1:-1;104109:72:0::1;::::0;-1:-1:-1;;;;;104109:12:0;;::::1;::::0;104135:31:::1;103812:177:::0;104109:25:::1;:72::i;:::-;103801:390;103746:445;103732:3:::0;::::1;::::0;::::1;:::i;:::-;;;;103689:509;;;;103555:648;9067:20:::0;8461:1;9587:7;:22;9404:213;9067:20;103506:697::o;67168:207::-;67240:7;-1:-1:-1;;;;;67268:19:0;;67260:73;;;;-1:-1:-1;;;67260:73:0;;18002:2:1;67260:73:0;;;17984:21:1;18041:2;18021:18;;;18014:30;18080:34;18060:18;;;18053:62;18151:11;18131:18;;;18124:39;18180:19;;67260:73:0;17800:405:1;67260:73:0;-1:-1:-1;;;;;;67351:16:0;;;;;:9;:16;;;;;;;67168:207::o;36948:103::-;36193:13;:11;:13::i;:::-;37013:30:::1;37040:1;37013:18;:30::i;100813:1117::-:0;36193:13;:11;:13::i;:::-;101023:9:::1;101018:907;101042:19;:26;101038:1;:30;101018:907;;;101157:22;;101127:26;;101102:19;101122:1;101102:22;;;;;;;;:::i;:::-;;;;;;;:51;;;;:::i;:::-;:77;;101084:149;;;::::0;-1:-1:-1;;;101084:149:0;;18545:2:1;101084:149:0::1;::::0;::::1;18527:21:1::0;;;18564:18;;;18557:30;18623:34;18603:18;;;18596:62;18675:18;;101084:149:0::1;18343:356:1::0;101084:149:0::1;101242:18;:6;3451:19:::0;;3469:1;3451:19;;;3362:127;101242:18:::1;101269:15;101287:16;:6;3332:14:::0;;3240:114;101287:16:::1;101312:37;101352:21:::0;;;:12:::1;:21;::::0;;;;101382:30;;;101421::::1;::::0;::::1;:43:::0;;-1:-1:-1;;;;;;101421:43:0::1;101454:10;101421:43;::::0;;101507:22;;101269:34;;-1:-1:-1;101352:21:0;101507:19;;101527:1;;101507:22;::::1;;;;;:::i;:::-;;;;;;;101473:13;:31;;:56;;;;101565:11;101577:1;101565:14;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;101538:24:::1;::::0;::::1;:41:::0;;-1:-1:-1;;101538:41:0::1;::::0;101565:14;101538:41:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;101620:17;101638:1;101620:20;;;;;;;;:::i;:::-;;;;;;;101588:13;:29;;;:52;;;;;-1:-1:-1::0;;;;;101588:52:0::1;;;;;-1:-1:-1::0;;;;;101588:52:0::1;;;;;;101674:9;101684:1;101674:12;;;;;;;;:::i;:::-;;;;;;;101649:13;:22;;:37;;;;101725:19;101745:1;101725:22;;;;;;;;:::i;:::-;;;;;;;101695:26;;:52;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;101778:19:0::1;::::0;-1:-1:-1;101760:11:0::1;101772:1;101760:14;;;;;;;;:::i;:::-;;;;;;;:37;;;;;;;;:::i;:::-;;101756:162;;;101839:19;101859:1;101839:22;;;;;;;;:::i;:::-;;;;;;;101810:25;;:51;;;;;;;:::i;:::-;;;;;;;;101872:36;101887:17;101905:1;101887:20;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;105126:16:0;;;;;:12;:16;;;;;:23;;-1:-1:-1;;105126:23:0;105145:4;105126:23;;;105075:80;101872:36:::1;101075:850;;101070:3;;;;;:::i;:::-;;;;101018:907;;67896:104:::0;67952:13;67985:7;67978:14;;;;;:::i;101936:222::-;36193:13;:11;:13::i;:::-;102030:22:::1;102013:13;::::0;::::1;;::::0;:39;::::1;;;;;;:::i;:::-;;;102005:69;;;::::0;-1:-1:-1;;;102005:69:0;;18906:2:1;102005:69:0::1;::::0;::::1;18888:21:1::0;18945:2;18925:18;;;18918:30;18984:19;18964:18;;;18957:47;19021:18;;102005:69:0::1;18704:341:1::0;102005:69:0::1;102081:13;:38:::0;;-1:-1:-1;;102081:38:0::1;102097:22;102081:38;::::0;;102126:11:::1;:26:::0;101936:222::o;69482:155::-;69577:52;34938:10;69610:8;69620;69577:18;:52::i;104209:860::-;9023:21;:19;:21::i;:::-;104296::::1;104332:18:::0;104324:49:::1;;;::::0;-1:-1:-1;;;104324:49:0;;17515:2:1;104324:49:0::1;::::0;::::1;17497:21:1::0;17554:2;17534:18;;;17527:30;17593:20;17573:18;;;17566:48;17631:18;;104324:49:0::1;17313:342:1::0;104324:49:0::1;104399:1;104382:682;104407:6;3332:14:::0;104402:1:::1;:21;104382:682;;104473:19;104443:15;::::0;;;:12:::1;:15;::::0;;;;:26:::1;;::::0;::::1;;:49;::::0;::::1;;;;;;:::i;:::-;;104439:618;;;104505:20;104528:154;104676:5;104528:131;104633:25;;104528:88;104610:5;104528:65;104559:12;:15;104572:1;104559:15;;;;;;;;;;;:33;;;104528:14;:30;;:65;;;;:::i;:154::-;104803:12;104821:15:::0;;;:12:::1;:15;::::0;;;;;:31:::1;;::::0;:63;;104505:177;;-1:-1:-1;104803:12:0;;-1:-1:-1;;;;;104821:31:0;;::::1;::::0;104505:177;;104803:12;104821:63;104803:12;104821:63;104505:177;104821:31;:63:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104802:82;;;104903:7;104895:32;;;::::0;-1:-1:-1;;;104895:32:0;;19462:2:1;104895:32:0::1;::::0;::::1;19444:21:1::0;19501:2;19481:18;;;19474:30;19540:14;19520:18;;;19513:42;19572:18;;104895:32:0::1;19260:336:1::0;104895:32:0::1;104494:563;;104439:618;104425:3:::0;::::1;::::0;::::1;:::i;:::-;;;;104382:682;;70533:279:::0;70664:41;34938:10;70697:7;70664:18;:41::i;:::-;70656:99;;;;-1:-1:-1;;;70656:99:0;;14904:2:1;70656:99:0;;;14886:21:1;14943:2;14923:18;;;14916:30;14982:34;14962:18;;;14955:62;-1:-1:-1;;;15033:18:1;;;15026:43;15086:19;;70656:99:0;14702:409:1;70656:99:0;70766:38;70780:4;70786:2;70790:7;70799:4;70766:13;:38::i;:::-;70533:279;;;;:::o;102535:963::-;102614:16;9023:21;:19;:21::i;:::-;102664:22:::1;102647:13;::::0;::::1;;::::0;:39;::::1;;;;;;:::i;:::-;;102639:72;;;::::0;-1:-1:-1;;;102639:72:0;;19803:2:1;102639:72:0::1;::::0;::::1;19785:21:1::0;19842:2;19822:18;;;19815:30;19881:22;19861:18;;;19854:50;19921:18;;102639:72:0::1;19601:344:1::0;102639:72:0::1;102764:11;::::0;102726:12:::1;::::0;:34:::1;::::0;-1:-1:-1;;;102726:34:0;;102749:10:::1;102726:34;::::0;::::1;2118:74:1::0;-1:-1:-1;;;;;102726:12:0;;::::1;::::0;:22:::1;::::0;2091:18:1;;102726:34:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:49;;102718:80;;;::::0;-1:-1:-1;;;102718:80:0;;20152:2:1;102718:80:0::1;::::0;::::1;20134:21:1::0;20191:2;20171:18;;;20164:30;20230:20;20210:18;;;20203:48;20268:18;;102718:80:0::1;19950:342:1::0;102718:80:0::1;102833:1;102813:17;;:21;102805:50;;;::::0;-1:-1:-1;;;102805:50:0;;20499:2:1;102805:50:0::1;::::0;::::1;20481:21:1::0;20538:2;20518:18;;;20511:30;20577:18;20557;;;20550:46;20613:18;;102805:50:0::1;20297:340:1::0;102805:50:0::1;102912:1;102870:39:::0;;;:26:::1;:39:::0;;;;;;-1:-1:-1;;;;;102870:39:0::1;102862:83;;;::::0;-1:-1:-1;;;102862:83:0;;20844:2:1;102862:83:0::1;::::0;::::1;20826:21:1::0;20883:2;20863:18;;;20856:30;20922:29;20902:18;;;20895:57;20969:18;;102862:83:0::1;20642:351:1::0;102862:83:0::1;-1:-1:-1::0;;;;;102960:17:0;::::1;102952:54;;;::::0;-1:-1:-1;;;102952:54:0;;21200:2:1;102952:54:0::1;::::0;::::1;21182:21:1::0;21239:2;21219:18;;;21212:30;21278:26;21258:18;;;21251:54;21322:18;;102952:54:0::1;20998:348:1::0;102952:54:0::1;103017:11;::::0;:15;103013:108:::1;;103101:11;::::0;103044:12:::1;::::0;:69:::1;::::0;-1:-1:-1;;;;;103044:12:0;;::::1;::::0;103074:10:::1;::::0;103094:4:::1;::::0;103044:29:::1;:69::i;:::-;103127:19;:7;3451:19:::0;;3469:1;3451:19;;;3362:127;103127:19:::1;-1:-1:-1::0;103164:7:0::1;3332:14:::0;103188:24:::1;103198:3:::0;3332:14;103188:9:::1;:24::i;:::-;103223:11;::::0;::::1;;103219:143;;;103245:37;::::0;;;:24:::1;:37;::::0;;;;:42;;103286:1:::1;::::0;103245:37;:42:::1;::::0;103286:1;;-1:-1:-1;;;;;103245:42:0::1;;:::i;:::-;;;;;;;;-1:-1:-1::0;;;;;103245:42:0::1;;;;;-1:-1:-1::0;;;;;103245:42:0::1;;;;;;103219:143;;;103310:39;::::0;;;:26:::1;:39:::0;;;;;:44;;103353:1:::1;::::0;103310:39;:44:::1;::::0;103353:1;;-1:-1:-1;;;;;103310:44:0::1;;:::i;:::-;;;;;;;;-1:-1:-1::0;;;;;103310:44:0::1;;;;;-1:-1:-1::0;;;;;103310:44:0::1;;;;;;103219:143;103389:1;103368:17;;:22;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;103397:23:0::1;103453:19:::0;;;:9:::1;:19;::::0;;;;:39;;-1:-1:-1;;103453:39:0::1;103429:16;103453:39:::0;;::::1;::::0;;;9587:7;:22;9067:20;9404:213;98693:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;98693:55:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;98693:55:0;;;;;;;;;;;;;;;-1:-1:-1;98693:55:0;:::o;105756:133::-;105847:13;105876:7;105869:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;105756:133;;;:::o;98978:28::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;98947:26::-;;;;;;;:::i;37206:201::-;36193:13;:11;:13::i;:::-;-1:-1:-1;;;;;37295:22:0;::::1;37287:73;;;::::0;-1:-1:-1;;;37287:73:0;;22174:2:1;37287:73:0::1;::::0;::::1;22156:21:1::0;22213:2;22193:18;;;22186:30;22252:34;22232:18;;;22225:62;22323:8;22303:18;;;22296:36;22349:19;;37287:73:0::1;21972:402:1::0;37287:73:0::1;37371:28;37390:8;37371:18;:28::i;:::-;37206:201:::0;:::o;3362:127::-;3451:19;;3469:1;3451:19;;;3362:127::o;3240:114::-;3332:14;;3240:114::o;94227:215::-;94329:4;-1:-1:-1;;;;;;94353:41:0;;-1:-1:-1;;;94353:41:0;;:81;;;94398:36;94422:11;94398:23;:36::i;78802:135::-;72572:4;72170:16;;;:7;:16;;;;;;-1:-1:-1;;;;;72170:16:0;78876:53;;;;-1:-1:-1;;;78876:53:0;;16973:2:1;78876:53:0;;;16955:21:1;17012:2;16992:18;;;16985:30;17051:26;17031:18;;;17024:54;17095:18;;78876:53:0;16771:348:1;78115:174:0;78190:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;78190:29:0;-1:-1:-1;;;;;78190:29:0;;;;;;;;:24;;78244:23;78190:24;78244:14;:23::i;:::-;-1:-1:-1;;;;;78235:46:0;;;;;;;;;;;78115:174;;:::o;72802:264::-;72895:4;72912:13;72928:23;72943:7;72928:14;:23::i;:::-;72912:39;;72981:5;-1:-1:-1;;;;;72970:16:0;:7;-1:-1:-1;;;;;72970:16:0;;:52;;;-1:-1:-1;;;;;;69829:25:0;;;69805:4;69829:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;72990:32;72970:87;;;;73050:7;-1:-1:-1;;;;;73026:31:0;:20;73038:7;73026:11;:20::i;:::-;-1:-1:-1;;;;;73026:31:0;;72970:87;72962:96;72802:264;-1:-1:-1;;;;72802:264:0:o;76767:1229::-;76892:4;-1:-1:-1;;;;;76865:31:0;:23;76880:7;76865:14;:23::i;:::-;-1:-1:-1;;;;;76865:31:0;;76857:81;;;;-1:-1:-1;;;76857:81:0;;22581:2:1;76857:81:0;;;22563:21:1;22620:2;22600:18;;;22593:30;22659:34;22639:18;;;22632:62;-1:-1:-1;;;22710:18:1;;;22703:35;22755:19;;76857:81:0;22379:401:1;76857:81:0;-1:-1:-1;;;;;76957:16:0;;76949:65;;;;-1:-1:-1;;;76949:65:0;;22987:2:1;76949:65:0;;;22969:21:1;23026:2;23006:18;;;22999:30;23065:34;23045:18;;;23038:62;23136:6;23116:18;;;23109:34;23160:19;;76949:65:0;22785:400:1;76949:65:0;77027:42;77048:4;77054:2;77058:7;77067:1;77027:20;:42::i;:::-;77199:4;-1:-1:-1;;;;;77172:31:0;:23;77187:7;77172:14;:23::i;:::-;-1:-1:-1;;;;;77172:31:0;;77164:81;;;;-1:-1:-1;;;77164:81:0;;22581:2:1;77164:81:0;;;22563:21:1;22620:2;22600:18;;;22593:30;22659:34;22639:18;;;22632:62;-1:-1:-1;;;22710:18:1;;;22703:35;22755:19;;77164:81:0;22379:401:1;77164:81:0;77317:24;;;;:15;:24;;;;;;;;77310:31;;-1:-1:-1;;;;;;77310:31:0;;;;;;-1:-1:-1;;;;;77793:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;77793:20:0;;;77828:13;;;;;;;;;:18;;77310:31;77828:18;;;77868:16;;;:7;:16;;;;;;:21;;;;;;;;;;77907:27;;77333:7;;77907:27;;;68827:346;68757:416;;:::o;36472:132::-;36380:6;;-1:-1:-1;;;;;36380:6:0;34938:10;36536:23;36528:68;;;;-1:-1:-1;;;36528:68:0;;23392:2:1;36528:68:0;;;23374:21:1;;;23411:18;;;23404:30;23470:34;23450:18;;;23443:62;23522:18;;36528:68:0;23190:356:1;9103:293:0;8505:1;9237:7;;:19;;9229:63;;;;-1:-1:-1;;;9229:63:0;;23753:2:1;9229:63:0;;;23735:21:1;23792:2;23772:18;;;23765:30;23831:33;23811:18;;;23804:61;23882:18;;9229:63:0;23551:355:1;9229:63:0;8505:1;9370:7;:18;9103:293::o;13532:98::-;13590:7;13617:5;13621:1;13617;:5;:::i;:::-;13610:12;13532:98;-1:-1:-1;;;13532:98:0:o;13931:::-;13989:7;14016:5;14020:1;14016;:5;:::i;48300:177::-;48410:58;;-1:-1:-1;;;;;3814:55:1;;48410:58:0;;;3796:74:1;3886:18;;;3879:34;;;48383:86:0;;48403:5;;48433:23;;3769:18:1;;48410:58:0;;;;-1:-1:-1;;48410:58:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48410:58:0;;;;;;;;;;48383:19;:86::i;37567:191::-;37660:6;;;-1:-1:-1;;;;;37677:17:0;;;-1:-1:-1;;;;;;37677:17:0;;;;;;;37710:40;;37660:6;;;37677:17;37660:6;;37710:40;;37641:16;;37710:40;37630:128;37567:191;:::o;78432:281::-;78553:8;-1:-1:-1;;;;;78544:17:0;:5;-1:-1:-1;;;;;78544:17:0;;;78536:55;;;;-1:-1:-1;;;78536:55:0;;24113:2:1;78536:55:0;;;24095:21:1;24152:2;24132:18;;;24125:30;24191:27;24171:18;;;24164:55;24236:18;;78536:55:0;23911:349:1;78536:55:0;-1:-1:-1;;;;;78602:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;78602:46:0;;;;;;;;;;78664:41;;586::1;;;78664::0;;559:18:1;78664:41:0;;;;;;;78432:281;;;:::o;71693:270::-;71806:28;71816:4;71822:2;71826:7;71806:9;:28::i;:::-;71853:47;71876:4;71882:2;71886:7;71895:4;71853:22;:47::i;:::-;71845:110;;;;-1:-1:-1;;;71845:110:0;;24467:2:1;71845:110:0;;;24449:21:1;24506:2;24486:18;;;24479:30;24545:34;24525:18;;;24518:62;-1:-1:-1;;;24596:18:1;;;24589:48;24654:19;;71845:110:0;24265:414:1;48722:205:0;48850:68;;-1:-1:-1;;;;;24965:15:1;;;48850:68:0;;;24947:34:1;25017:15;;24997:18;;;24990:43;25049:18;;;25042:34;;;48823:96:0;;48843:5;;48873:27;;24859:18:1;;48850:68:0;24684:398:1;73408:110:0;73484:26;73494:2;73498:7;73484:26;;;;;;;;;;;;:9;:26::i;83678:224::-;83780:4;-1:-1:-1;;;;;;83804:50:0;;83819:35;83804:50;;:90;;;83858:36;83882:11;83858:23;:36::i;105405:230::-;105573:56;105600:4;105606:2;105610:7;105619:9;105573:26;:56::i;52623:649::-;53047:23;53073:69;53101:4;53073:69;;;;;;;;;;;;;;;;;53081:5;-1:-1:-1;;;;;53073:27:0;;;:69;;;;;:::i;:::-;53047:95;;53161:10;:17;53182:1;53161:22;:56;;;;53198:10;53187:30;;;;;;;;;;;;:::i;:::-;53153:111;;;;-1:-1:-1;;;53153:111:0;;25539:2:1;53153:111:0;;;25521:21:1;25578:2;25558:18;;;25551:30;25617:34;25597:18;;;25590:62;25688:12;25668:18;;;25661:40;25718:19;;53153:111:0;25337:406:1;79501:853:0;79655:4;-1:-1:-1;;;;;79676:13:0;;39534:19;:23;79672:675;;79712:71;;-1:-1:-1;;;79712:71:0;;-1:-1:-1;;;;;79712:36:0;;;;;:71;;34938:10;;79763:4;;79769:7;;79778:4;;79712:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79712:71:0;;;;;;;;-1:-1:-1;;79712:71:0;;;;;;;;;;;;:::i;:::-;;;79708:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79953:13:0;;79949:328;;79996:60;;-1:-1:-1;;;79996:60:0;;24467:2:1;79996:60:0;;;24449:21:1;24506:2;24486:18;;;24479:30;24545:34;24525:18;;;24518:62;-1:-1:-1;;;24596:18:1;;;24589:48;24654:19;;79996:60:0;24265:414:1;79949:328:0;80227:6;80221:13;80212:6;80208:2;80204:15;80197:38;79708:584;-1:-1:-1;;;;;;79834:51:0;-1:-1:-1;;;79834:51:0;;-1:-1:-1;79827:58:0;;79672:675;-1:-1:-1;80331:4:0;79501:853;;;;;;:::o;73745:285::-;73840:18;73846:2;73850:7;73840:5;:18::i;:::-;73891:53;73922:1;73926:2;73930:7;73939:4;73891:22;:53::i;:::-;73869:153;;;;-1:-1:-1;;;73869:153:0;;24467:2:1;73869:153:0;;;24449:21:1;24506:2;24486:18;;;24479:30;24545:34;24525:18;;;24518:62;-1:-1:-1;;;24596:18:1;;;24589:48;24654:19;;73869:153:0;24265:414:1;90151:207:0;90253:4;-1:-1:-1;;;;;;90277:33:0;;90292:18;90277:33;;:73;;;90314:36;90338:11;90314:23;:36::i;84815:915::-;85082:1;85070:9;:13;85066:222;;;85213:63;;-1:-1:-1;;;85213:63:0;;26721:2:1;85213:63:0;;;26703:21:1;26760:2;26740:18;;;26733:30;26799:34;26779:18;;;26772:62;26870:23;26850:18;;;26843:51;26911:19;;85213:63:0;26519:417:1;85066:222:0;85318:12;-1:-1:-1;;;;;85347:18:0;;85343:187;;85382:40;85414:7;86557:10;:17;;86530:24;;;;:15;:24;;;;;:44;;;86585:24;;;;;;;;;;;;86453:164;85382:40;85343:187;;;85452:2;-1:-1:-1;;;;;85444:10:0;:4;-1:-1:-1;;;;;85444:10:0;;85440:90;;85471:47;85504:4;85510:7;85471:32;:47::i;:::-;-1:-1:-1;;;;;85544:16:0;;85540:183;;85577:45;85614:7;85577:36;:45::i;:::-;85540:183;;;85650:4;-1:-1:-1;;;;;85644:10:0;:2;-1:-1:-1;;;;;85644:10:0;;85640:83;;85671:40;85699:2;85703:7;85671:27;:40::i;41994:229::-;42131:12;42163:52;42185:6;42193:4;42199:1;42202:12;42163:21;:52::i;74366:942::-;-1:-1:-1;;;;;74446:16:0;;74438:61;;;;-1:-1:-1;;;74438:61:0;;27143:2:1;74438:61:0;;;27125:21:1;;;27162:18;;;27155:30;27221:34;27201:18;;;27194:62;27273:18;;74438:61:0;26941:356:1;74438:61:0;72572:4;72170:16;;;:7;:16;;;;;;-1:-1:-1;;;;;72170:16:0;72596:31;74510:58;;;;-1:-1:-1;;;74510:58:0;;27504:2:1;74510:58:0;;;27486:21:1;27543:2;27523:18;;;27516:30;27582;27562:18;;;27555:58;27630:18;;74510:58:0;27302:352:1;74510:58:0;74581:48;74610:1;74614:2;74618:7;74627:1;74581:20;:48::i;:::-;72572:4;72170:16;;;:7;:16;;;;;;-1:-1:-1;;;;;72170:16:0;72596:31;74719:58;;;;-1:-1:-1;;;74719:58:0;;27504:2:1;74719:58:0;;;27486:21:1;27543:2;27523:18;;;27516:30;27582;27562:18;;;27555:58;27630:18;;74719:58:0;27302:352:1;74719:58:0;-1:-1:-1;;;;;75126:13:0;;;;;;:9;:13;;;;;;;;:18;;75143:1;75126:18;;;75168:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;75168:21:0;;;;;75207:33;75176:7;;75126:13;;75207:33;;75126:13;;75207:33;105372:21:::1;105261:138:::0;:::o;66799:305::-;66901:4;-1:-1:-1;;;;;;66938:40:0;;66953:25;66938:40;;:105;;-1:-1:-1;;;;;;;66995:48:0;;67010:33;66995:48;66938:105;:158;;;-1:-1:-1;65352:25:0;-1:-1:-1;;;;;;65337:40:0;;;67060:36;65228:157;87244:988;87510:22;87560:1;87535:22;87552:4;87535:16;:22::i;:::-;:26;;;;:::i;:::-;87572:18;87593:26;;;:17;:26;;;;;;87510:51;;-1:-1:-1;87726:28:0;;;87722:328;;-1:-1:-1;;;;;87793:18:0;;87771:19;87793:18;;;:12;:18;;;;;;;;:34;;;;;;;;;87844:30;;;;;;:44;;;87961:30;;:17;:30;;;;;:43;;;87722:328;-1:-1:-1;88146:26:0;;;;:17;:26;;;;;;;;88139:33;;;-1:-1:-1;;;;;88190:18:0;;;;;:12;:18;;;;;:34;;;;;;;88183:41;87244:988::o;88527:1079::-;88805:10;:17;88780:22;;88805:21;;88825:1;;88805:21;:::i;:::-;88837:18;88858:24;;;:15;:24;;;;;;89231:10;:26;;88780:46;;-1:-1:-1;88858:24:0;;88780:46;;89231:26;;;;;;:::i;:::-;;;;;;;;;89209:48;;89295:11;89270:10;89281;89270:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;89375:28;;;:15;:28;;;;;;;:41;;;89547:24;;;;;89540:31;89582:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;88598:1008;;;88527:1079;:::o;86031:221::-;86116:14;86133:20;86150:2;86133:16;:20::i;:::-;-1:-1:-1;;;;;86164:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;86209:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;86031:221:0:o;43080:455::-;43250:12;43308:5;43283:21;:30;;43275:81;;;;-1:-1:-1;;;43275:81:0;;28050:2:1;43275:81:0;;;28032:21:1;28089:2;28069:18;;;28062:30;28128:34;28108:18;;;28101:62;28199:8;28179:18;;;28172:36;28225:19;;43275:81:0;27848:402:1;43275:81:0;43368:12;43382:23;43409:6;-1:-1:-1;;;;;43409:11:0;43428:5;43435:4;43409:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43367:73;;;;43458:69;43485:6;43493:7;43502:10;43514:12;43458:26;:69::i;:::-;43451:76;43080:455;-1:-1:-1;;;;;;;43080:455:0:o;45653:644::-;45838:12;45867:7;45863:427;;;45895:17;;45891:290;;-1:-1:-1;;;;;39534:19:0;;;46105:60;;;;-1:-1:-1;;;46105:60:0;;28736:2:1;46105:60:0;;;28718:21:1;28775:2;28755:18;;;28748:30;28814:31;28794:18;;;28787:59;28863:18;;46105:60:0;28534:353:1;46105:60:0;-1:-1:-1;46202:10:0;46195:17;;45863:427;46245:33;46253:10;46265:12;47000:17;;:21;46996:388;;47232:10;47226:17;47289:15;47276:10;47272:2;47268:19;47261:44;46996:388;47359:12;47352:20;;-1:-1:-1;;;47352:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:177:1;-1:-1:-1;;;;;;92:5:1;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:180::-;697:6;750:2;738:9;729:7;725:23;721:32;718:52;;;766:1;763;756:12;718:52;-1:-1:-1;789:23:1;;638:180;-1:-1:-1;638:180:1:o;1036:258::-;1108:1;1118:113;1132:6;1129:1;1126:13;1118:113;;;1208:11;;;1202:18;1189:11;;;1182:39;1154:2;1147:10;1118:113;;;1249:6;1246:1;1243:13;1240:48;;;-1:-1:-1;;1284:1:1;1266:16;;1259:27;1036:258::o;1299:::-;1341:3;1379:5;1373:12;1406:6;1401:3;1394:19;1422:63;1478:6;1471:4;1466:3;1462:14;1455:4;1448:5;1444:16;1422:63;:::i;:::-;1539:2;1518:15;-1:-1:-1;;1514:29:1;1505:39;;;;1546:4;1501:50;;1299:258;-1:-1:-1;;1299:258:1:o;1562:220::-;1711:2;1700:9;1693:21;1674:4;1731:45;1772:2;1761:9;1757:18;1749:6;1731:45;:::i;2203:196::-;2271:20;;-1:-1:-1;;;;;2320:54:1;;2310:65;;2300:93;;2389:1;2386;2379:12;2300:93;2203:196;;;:::o;2404:254::-;2472:6;2480;2533:2;2521:9;2512:7;2508:23;2504:32;2501:52;;;2549:1;2546;2539:12;2501:52;2572:29;2591:9;2572:29;:::i;:::-;2562:39;2648:2;2633:18;;;;2620:32;;-1:-1:-1;;;2404:254:1:o;2845:186::-;2904:6;2957:2;2945:9;2936:7;2932:23;2928:32;2925:52;;;2973:1;2970;2963:12;2925:52;2996:29;3015:9;2996:29;:::i;3036:328::-;3113:6;3121;3129;3182:2;3170:9;3161:7;3157:23;3153:32;3150:52;;;3198:1;3195;3188:12;3150:52;3221:29;3240:9;3221:29;:::i;:::-;3211:39;;3269:38;3303:2;3292:9;3288:18;3269:38;:::i;:::-;3259:48;;3354:2;3343:9;3339:18;3326:32;3316:42;;3036:328;;;;;:::o;3369:248::-;3437:6;3445;3498:2;3486:9;3477:7;3473:23;3469:32;3466:52;;;3514:1;3511;3504:12;3466:52;-1:-1:-1;;3537:23:1;;;3607:2;3592:18;;;3579:32;;-1:-1:-1;3369:248:1:o;4169:184::-;-1:-1:-1;;;4218:1:1;4211:88;4318:4;4315:1;4308:15;4342:4;4339:1;4332:15;4358:275;4429:2;4423:9;4494:2;4475:13;;-1:-1:-1;;4471:27:1;4459:40;;4529:18;4514:34;;4550:22;;;4511:62;4508:88;;;4576:18;;:::i;:::-;4612:2;4605:22;4358:275;;-1:-1:-1;4358:275:1:o;4638:183::-;4698:4;4731:18;4723:6;4720:30;4717:56;;;4753:18;;:::i;:::-;-1:-1:-1;4798:1:1;4794:14;4810:4;4790:25;;4638:183::o;4826:662::-;4880:5;4933:3;4926:4;4918:6;4914:17;4910:27;4900:55;;4951:1;4948;4941:12;4900:55;4987:6;4974:20;5013:4;5037:60;5053:43;5093:2;5053:43;:::i;:::-;5037:60;:::i;:::-;5131:15;;;5217:1;5213:10;;;;5201:23;;5197:32;;;5162:12;;;;5241:15;;;5238:35;;;5269:1;5266;5259:12;5238:35;5305:2;5297:6;5293:15;5317:142;5333:6;5328:3;5325:15;5317:142;;;5399:17;;5387:30;;5437:12;;;;5350;;5317:142;;;-1:-1:-1;5477:5:1;4826:662;-1:-1:-1;;;;;;4826:662:1:o;5493:668::-;5547:5;5600:3;5593:4;5585:6;5581:17;5577:27;5567:55;;5618:1;5615;5608:12;5567:55;5654:6;5641:20;5680:4;5704:60;5720:43;5760:2;5720:43;:::i;5704:60::-;5798:15;;;5884:1;5880:10;;;;5868:23;;5864:32;;;5829:12;;;;5908:15;;;5905:35;;;5936:1;5933;5926:12;5905:35;5972:2;5964:6;5960:15;5984:148;6000:6;5995:3;5992:15;5984:148;;;6066:23;6085:3;6066:23;:::i;:::-;6054:36;;6110:12;;;;6017;;5984:148;;6166:824;6228:5;6281:3;6274:4;6266:6;6262:17;6258:27;6248:55;;6299:1;6296;6289:12;6248:55;6335:6;6322:20;6361:4;6385:60;6401:43;6441:2;6401:43;:::i;6385:60::-;6479:15;;;6565:1;6561:10;;;;6549:23;;6545:32;;;6510:12;;;;6589:15;;;6586:35;;;6617:1;6614;6607:12;6586:35;6653:2;6645:6;6641:15;6665:296;6681:6;6676:3;6673:15;6665:296;;;6761:3;6748:17;6798:1;6791:5;6788:12;6778:110;;6842:1;6871:2;6867;6860:14;6778:110;6901:18;;6939:12;;;;6698;;6665:296;;6995:1140;7205:6;7213;7221;7229;7237;7290:3;7278:9;7269:7;7265:23;7261:33;7258:53;;;7307:1;7304;7297:12;7258:53;7347:9;7334:23;7376:18;7417:2;7409:6;7406:14;7403:34;;;7433:1;7430;7423:12;7403:34;7456:61;7509:7;7500:6;7489:9;7485:22;7456:61;:::i;:::-;7446:71;;7570:2;7559:9;7555:18;7542:32;7526:48;;7599:2;7589:8;7586:16;7583:36;;;7615:1;7612;7605:12;7583:36;7638:63;7693:7;7682:8;7671:9;7667:24;7638:63;:::i;:::-;7628:73;;7754:2;7743:9;7739:18;7726:32;7710:48;;7783:2;7773:8;7770:16;7767:36;;;7799:1;7796;7789:12;7767:36;7822:71;7885:7;7874:8;7863:9;7859:24;7822:71;:::i;:::-;7812:81;;7946:2;7935:9;7931:18;7918:32;7902:48;;7975:2;7965:8;7962:16;7959:36;;;7991:1;7988;7981:12;7959:36;;8014:63;8069:7;8058:8;8047:9;8043:24;8014:63;:::i;:::-;6995:1140;;;;-1:-1:-1;6995:1140:1;;8124:3;8109:19;8096:33;;6995:1140;-1:-1:-1;;;6995:1140:1:o;8329:407::-;8394:5;8428:18;8420:6;8417:30;8414:56;;;8450:18;;:::i;:::-;8488:57;8533:2;8512:15;;-1:-1:-1;;8508:29:1;8539:4;8504:40;8488:57;:::i;:::-;8479:66;;8568:6;8561:5;8554:21;8608:3;8599:6;8594:3;8590:16;8587:25;8584:45;;;8625:1;8622;8615:12;8584:45;8674:6;8669:3;8662:4;8655:5;8651:16;8638:43;8728:1;8721:4;8712:6;8705:5;8701:18;8697:29;8690:40;8329:407;;;;;:::o;8741:451::-;8810:6;8863:2;8851:9;8842:7;8838:23;8834:32;8831:52;;;8879:1;8876;8869:12;8831:52;8919:9;8906:23;8952:18;8944:6;8941:30;8938:50;;;8984:1;8981;8974:12;8938:50;9007:22;;9060:4;9052:13;;9048:27;-1:-1:-1;9038:55:1;;9089:1;9086;9079:12;9038:55;9112:74;9178:7;9173:2;9160:16;9155:2;9151;9147:11;9112:74;:::i;9197:1071::-;9398:6;9406;9414;9422;9475:3;9463:9;9454:7;9450:23;9446:33;9443:53;;;9492:1;9489;9482:12;9443:53;9532:9;9519:23;9561:18;9602:2;9594:6;9591:14;9588:34;;;9618:1;9615;9608:12;9588:34;9641:61;9694:7;9685:6;9674:9;9670:22;9641:61;:::i;:::-;9631:71;;9755:2;9744:9;9740:18;9727:32;9711:48;;9784:2;9774:8;9771:16;9768:36;;;9800:1;9797;9790:12;9768:36;9823:63;9878:7;9867:8;9856:9;9852:24;9823:63;:::i;:::-;9813:73;;9939:2;9928:9;9924:18;9911:32;9895:48;;9968:2;9958:8;9955:16;9952:36;;;9984:1;9981;9974:12;9952:36;10007:71;10070:7;10059:8;10048:9;10044:24;10007:71;:::i;:::-;9997:81;;10131:2;10120:9;10116:18;10103:32;10087:48;;10160:2;10150:8;10147:16;10144:36;;;10176:1;10173;10166:12;10144:36;;10199:63;10254:7;10243:8;10232:9;10228:24;10199:63;:::i;:::-;10189:73;;;9197:1071;;;;;;;:::o;10273:118::-;10359:5;10352:13;10345:21;10338:5;10335:32;10325:60;;10381:1;10378;10371:12;10396:315;10461:6;10469;10522:2;10510:9;10501:7;10497:23;10493:32;10490:52;;;10538:1;10535;10528:12;10490:52;10561:29;10580:9;10561:29;:::i;:::-;10551:39;;10640:2;10629:9;10625:18;10612:32;10653:28;10675:5;10653:28;:::i;:::-;10700:5;10690:15;;;10396:315;;;;;:::o;10716:667::-;10811:6;10819;10827;10835;10888:3;10876:9;10867:7;10863:23;10859:33;10856:53;;;10905:1;10902;10895:12;10856:53;10928:29;10947:9;10928:29;:::i;:::-;10918:39;;10976:38;11010:2;10999:9;10995:18;10976:38;:::i;:::-;10966:48;;11061:2;11050:9;11046:18;11033:32;11023:42;;11116:2;11105:9;11101:18;11088:32;11143:18;11135:6;11132:30;11129:50;;;11175:1;11172;11165:12;11129:50;11198:22;;11251:4;11243:13;;11239:27;-1:-1:-1;11229:55:1;;11280:1;11277;11270:12;11229:55;11303:74;11369:7;11364:2;11351:16;11346:2;11342;11338:11;11303:74;:::i;11647:184::-;-1:-1:-1;;;11696:1:1;11689:88;11796:4;11793:1;11786:15;11820:4;11817:1;11810:15;11836:1068;12203:4;12232:3;12262:6;12251:9;12244:25;12305:6;12300:2;12289:9;12285:18;12278:34;-1:-1:-1;;;;;12421:2:1;12413:6;12409:15;12404:2;12393:9;12389:18;12382:43;12473:2;12465:6;12461:15;12456:2;12445:9;12441:18;12434:43;;12526:8;12518:6;12514:21;12508:3;12497:9;12493:19;12486:50;12573:2;12567:3;12556:9;12552:19;12545:31;12599:45;12640:2;12629:9;12625:18;12617:6;12599:45;:::i;:::-;12585:59;;12693:9;12685:6;12681:22;12675:3;12664:9;12660:19;12653:51;12721:33;12747:6;12739;12721:33;:::i;:::-;12713:41;;;12784:1;12776:6;12773:13;12763:47;;12790:18;;:::i;:::-;12841:3;12826:19;;12819:35;;;;12885:3;12870:19;12863:35;11836:1068;;-1:-1:-1;;;;;;;11836:1068:1:o;12909:249::-;13059:2;13044:18;;13092:1;13081:13;;13071:47;;13098:18;;:::i;:::-;13127:25;;;12909:249;:::o;13163:260::-;13231:6;13239;13292:2;13280:9;13271:7;13267:23;13263:32;13260:52;;;13308:1;13305;13298:12;13260:52;13331:29;13350:9;13331:29;:::i;:::-;13321:39;;13379:38;13413:2;13402:9;13398:18;13379:38;:::i;:::-;13369:48;;13163:260;;;;;:::o;13428:437::-;13507:1;13503:12;;;;13550;;;13571:61;;13625:4;13617:6;13613:17;13603:27;;13571:61;13678:2;13670:6;13667:14;13647:18;13644:38;13641:218;;;-1:-1:-1;;;13712:1:1;13705:88;13816:4;13813:1;13806:15;13844:4;13841:1;13834:15;13641:218;;13428:437;;;:::o;15116:184::-;-1:-1:-1;;;15165:1:1;15158:88;15265:4;15262:1;15255:15;15289:4;15286:1;15279:15;15305:168;15345:7;15411:1;15407;15403:6;15399:14;15396:1;15393:21;15388:1;15381:9;15374:17;15370:45;15367:71;;;15418:18;;:::i;:::-;-1:-1:-1;15458:9:1;;15305:168::o;15478:274::-;15518:1;15544;15534:189;;-1:-1:-1;;;15576:1:1;15569:88;15680:4;15677:1;15670:15;15708:4;15705:1;15698:15;15534:189;-1:-1:-1;15737:9:1;;15478:274::o;16582:184::-;-1:-1:-1;;;16631:1:1;16624:88;16731:4;16728:1;16721:15;16755:4;16752:1;16745:15;17124:184;17194:6;17247:2;17235:9;17226:7;17222:23;17218:32;17215:52;;;17263:1;17260;17253:12;17215:52;-1:-1:-1;17286:16:1;;17124:184;-1:-1:-1;17124:184:1:o;17660:135::-;17699:3;-1:-1:-1;;17720:17:1;;17717:43;;;17740:18;;:::i;:::-;-1:-1:-1;17787:1:1;17776:13;;17660:135::o;18210:128::-;18250:3;18281:1;18277:6;18274:1;18271:13;18268:39;;;18287:18;;:::i;:::-;-1:-1:-1;18323:9:1;;18210:128::o;21351:244::-;21390:3;-1:-1:-1;;;;;21471:2:1;21468:1;21464:10;21501:2;21498:1;21494:10;21532:3;21528:2;21524:12;21519:3;21516:21;21513:47;;;21540:18;;:::i;:::-;21576:13;;21351:244;-1:-1:-1;;;;21351:244:1:o;21600:237::-;21639:4;-1:-1:-1;;;;;21744:10:1;;;;21714;;21766:12;;;21763:38;;;21781:18;;:::i;:::-;21818:13;;21600:237;-1:-1:-1;;;21600:237:1:o;21842:125::-;21882:4;21910:1;21907;21904:8;21901:34;;;21915:18;;:::i;:::-;-1:-1:-1;21952:9:1;;21842:125::o;25087:245::-;25154:6;25207:2;25195:9;25186:7;25182:23;25178:32;25175:52;;;25223:1;25220;25213:12;25175:52;25255:9;25249:16;25274:28;25296:5;25274:28;:::i;25748:512::-;25942:4;-1:-1:-1;;;;;26052:2:1;26044:6;26040:15;26029:9;26022:34;26104:2;26096:6;26092:15;26087:2;26076:9;26072:18;26065:43;;26144:6;26139:2;26128:9;26124:18;26117:34;26187:3;26182:2;26171:9;26167:18;26160:31;26208:46;26249:3;26238:9;26234:19;26226:6;26208:46;:::i;:::-;26200:54;25748:512;-1:-1:-1;;;;;;25748:512:1:o;26265:249::-;26334:6;26387:2;26375:9;26366:7;26362:23;26358:32;26355:52;;;26403:1;26400;26393:12;26355:52;26435:9;26429:16;26454:30;26478:5;26454:30;:::i;27659:184::-;-1:-1:-1;;;27708:1:1;27701:88;27808:4;27805:1;27798:15;27832:4;27829:1;27822:15;28255:274;28384:3;28422:6;28416:13;28438:53;28484:6;28479:3;28472:4;28464:6;28460:17;28438:53;:::i;:::-;28507:16;;;;;28255:274;-1:-1:-1;;28255:274:1:o
Swarm Source
ipfs://cd668404cd8098543823c21c42e6f92458665a4182814d21a6342259b66c1ae5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
POL | 100.00% | $1 | 13 | $13 |
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.