Overview
ETH Balance
0.08 ETH
Eth Value
$215.54 (@ $2,694.21/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 57 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 16568793 | 567 days ago | IN | 0 ETH | 0.00076512 | ||||
Safe Transfer Fr... | 16425988 | 587 days ago | IN | 0 ETH | 0.00119053 | ||||
Safe Transfer Fr... | 16425988 | 587 days ago | IN | 0 ETH | 0.00119053 | ||||
Public_mint | 16390066 | 592 days ago | IN | 0 ETH | 0.00509238 | ||||
Public_mint | 16390031 | 592 days ago | IN | 0 ETH | 0.0029552 | ||||
Public_mint | 16389952 | 592 days ago | IN | 0 ETH | 0.00484962 | ||||
Public_mint | 16389907 | 592 days ago | IN | 0 ETH | 0.00470536 | ||||
Public_mint | 16389894 | 592 days ago | IN | 0.001 ETH | 0.00507604 | ||||
Public_mint | 16389792 | 592 days ago | IN | 0 ETH | 0.00474294 | ||||
Public_mint | 16389729 | 592 days ago | IN | 0 ETH | 0.01912877 | ||||
Public_mint | 16389709 | 592 days ago | IN | 0 ETH | 0.00247866 | ||||
Public_mint | 16389655 | 592 days ago | IN | 0.002 ETH | 0.00233403 | ||||
Set Approval For... | 16389626 | 592 days ago | IN | 0 ETH | 0.00079584 | ||||
Public_mint | 16389604 | 592 days ago | IN | 0 ETH | 0.0029208 | ||||
Public_mint | 16389601 | 592 days ago | IN | 0 ETH | 0.00297762 | ||||
Public_mint | 16389597 | 592 days ago | IN | 0 ETH | 0.00300391 | ||||
Public_mint | 16389594 | 592 days ago | IN | 0 ETH | 0.00286843 | ||||
Public_mint | 16389592 | 592 days ago | IN | 0 ETH | 0.00305528 | ||||
Public_mint | 16389574 | 592 days ago | IN | 0.01 ETH | 0.00906631 | ||||
Public_mint | 16389568 | 592 days ago | IN | 0.01 ETH | 0.0101754 | ||||
Public_mint | 16389563 | 592 days ago | IN | 0.01 ETH | 0.00933767 | ||||
Public_mint | 16389550 | 592 days ago | IN | 0.008 ETH | 0.00876016 | ||||
Public_mint | 16389519 | 592 days ago | IN | 0 ETH | 0.00247866 | ||||
Public_mint | 16389506 | 592 days ago | IN | 0.002 ETH | 0.00233403 | ||||
Public_mint | 16389502 | 592 days ago | IN | 0.002 ETH | 0.00237309 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Escher
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-01-12 */ // File: IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } // File: OperatorFilterer.sol pragma solidity ^0.8.13; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @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/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @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/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/IERC721.sol // OpenZeppelin Contracts (last updated v4.8.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/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/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.8.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 { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} } // 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: TERC721.sol pragma solidity ^0.8.17; contract Escher is ERC721Enumerable, DefaultOperatorFilterer { address public owner = msg.sender; uint256 public supply = 1898; uint256 public free_supply = 400; uint256 public price = 2000000000000000; string public base_uri = "https://jordenrijke.s3.amazonaws.com/"; uint256 public max_free_tokens_per_wallet = 10; uint256 public latest_token_id = 0; mapping(address => uint256) free_tokens_per_wallet; modifier only_owner() { require(msg.sender == owner, "This function is restricted to the owner"); _; } constructor() ERC721("Escher by Jorden Rijke", "ESC") { owner = msg.sender; } function set_price(uint256 _price) external only_owner { price = _price; } function set_free_supply(uint256 _free_supply) external only_owner { free_supply = _free_supply; } function set_max_free_tokens_per_wallet(uint256 _max_free_tokens_per_wallet) external only_owner { max_free_tokens_per_wallet = _max_free_tokens_per_wallet; } function set_base_uri(string memory _base_uri) external only_owner { base_uri = _base_uri; } function mint(address wallet, uint256 n_items) internal { require(latest_token_id + n_items <= supply, "Can't mint requested amount!"); for (uint256 i = 0; i < n_items; i++) { latest_token_id++; _mint(wallet, latest_token_id); } } function public_mint(uint256 n_items) external payable { bool intended_free_mint = (msg.value < price * n_items); if (intended_free_mint) { require(latest_token_id + n_items <= free_supply, "Not enough free mints left!"); require(free_tokens_per_wallet[msg.sender] + n_items <= max_free_tokens_per_wallet, "Too many free mints for this wallet!"); free_tokens_per_wallet[msg.sender] += n_items; } else { require(msg.value >= price * n_items, "Not enough eth sent!"); } mint(msg.sender, n_items); } function admin_mint(uint256 n_items) external only_owner { mint(msg.sender, n_items); } function _baseURI() internal view override returns (string memory) { return base_uri; } function contractURI() public pure returns (string memory) { return "https://jordenrijke.s3.amazonaws.com/"; } function withdraw(address payable wallet) public only_owner { uint256 amount = address(this).balance; wallet.transfer(amount); emit Transfer(address(this), wallet, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n_items","type":"uint256"}],"name":"admin_mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"base_uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"free_supply","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":"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":"latest_token_id","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max_free_tokens_per_wallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n_items","type":"uint256"}],"name":"public_mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_base_uri","type":"string"}],"name":"set_base_uri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_free_supply","type":"uint256"}],"name":"set_free_supply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max_free_tokens_per_wallet","type":"uint256"}],"name":"set_max_free_tokens_per_wallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"set_price","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","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 payable","name":"wallet","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600a80546001600160a01b0319163317905561076a600b55610190600c5566071afd498d0000600d5560e0604052602560808181529062002a2360a039600e906200004b9082620002f4565b50600a600f5560006010553480156200006357600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601681526020017f457363686572206279204a6f7264656e2052696a6b65000000000000000000008152506040518060400160405280600381526020016245534360e81b8152508160009081620000de9190620002f4565b506001620000ed8282620002f4565b5050506daaeb6d7670e522a718067333cd4e3b15620002355780156200018357604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200016457600080fd5b505af115801562000179573d6000803e3d6000fd5b5050505062000235565b6001600160a01b03821615620001d45760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000149565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200021b57600080fd5b505af115801562000230573d6000803e3d6000fd5b505050505b5050600a80546001600160a01b03191633179055620003c0565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200027a57607f821691505b6020821081036200029b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002ef57600081815260208120601f850160051c81016020861015620002ca5750805b601f850160051c820191505b81811015620002eb57828155600101620002d6565b5050505b505050565b81516001600160401b038111156200031057620003106200024f565b620003288162000321845462000265565b84620002a1565b602080601f831160018114620003605760008415620003475750858301515b600019600386901b1c1916600185901b178555620002eb565b600085815260208120601f198616915b82811015620003915788860151825594840194600190910190840162000370565b5085821015620003b05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61265380620003d06000396000f3fe6080604052600436106101e35760003560e01c80636352211e11610102578063a22cb46511610095578063d4c4641c11610064578063d4c4641c14610553578063d8e8708914610573578063e8a3d48514610589578063e985e9c51461059e57600080fd5b8063a22cb465146104d3578063af1c5211146104f3578063b88d4fde14610513578063c87b56dd1461053357600080fd5b80637bfd1da2116100d15780637bfd1da2146104685780638da5cb5b1461048857806395d89b41146104a8578063a035b1fe146104bd57600080fd5b80636352211e146103fd57806366fe513a1461041d57806370a0823114610433578063786f29101461045357600080fd5b806328bf794d1161017a5780634bbcd31c116101495780634bbcd31c1461038a5780634f6ccce71461039d57806351cff8d9146103bd5780635667a27c146103dd57600080fd5b806328bf794d146103085780632f745c591461032857806341f434341461034857806342842e0e1461036a57600080fd5b8063095ea7b3116101b6578063095ea7b31461029b578063116d3804146102bd57806318160ddd146102d357806323b872dd146102e857600080fd5b806301ffc9a7146101e8578063047fc9aa1461021d57806306fdde0314610241578063081812fc14610263575b600080fd5b3480156101f457600080fd5b50610208610203366004612096565b6105e7565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610233600b5481565b604051908152602001610214565b34801561024d57600080fd5b50610256610643565b6040516102149190612103565b34801561026f57600080fd5b5061028361027e366004612116565b6106d5565b6040516001600160a01b039091168152602001610214565b3480156102a757600080fd5b506102bb6102b6366004612144565b6106fc565b005b3480156102c957600080fd5b50610233600f5481565b3480156102df57600080fd5b50600854610233565b3480156102f457600080fd5b506102bb610303366004612170565b610832565b34801561031457600080fd5b506102bb610323366004612116565b6108b9565b34801561033457600080fd5b50610233610343366004612144565b610929565b34801561035457600080fd5b506102836daaeb6d7670e522a718067333cd4e81565b34801561037657600080fd5b506102bb610385366004612170565b6109d1565b6102bb610398366004612116565b6109ec565b3480156103a957600080fd5b506102336103b8366004612116565b610b8b565b3480156103c957600080fd5b506102bb6103d83660046121b1565b610c2f565b3480156103e957600080fd5b506102bb6103f8366004612116565b610d0f565b34801561040957600080fd5b50610283610418366004612116565b610d7f565b34801561042957600080fd5b50610233600c5481565b34801561043f57600080fd5b5061023361044e3660046121b1565b610de4565b34801561045f57600080fd5b50610256610e7e565b34801561047457600080fd5b506102bb610483366004612116565b610f0c565b34801561049457600080fd5b50600a54610283906001600160a01b031681565b3480156104b457600080fd5b50610256610f84565b3480156104c957600080fd5b50610233600d5481565b3480156104df57600080fd5b506102bb6104ee3660046121ce565b610f93565b3480156104ff57600080fd5b506102bb61050e366004612298565b610f9e565b34801561051f57600080fd5b506102bb61052e3660046122e1565b611015565b34801561053f57600080fd5b5061025661054e366004612116565b6110a3565b34801561055f57600080fd5b506102bb61056e366004612116565b61110a565b34801561057f57600080fd5b5061023360105481565b34801561059557600080fd5b5061025661117a565b3480156105aa57600080fd5b506102086105b9366004612361565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061063d575061063d8261119a565b92915050565b6060600080546106529061238f565b80601f016020809104026020016040519081016040528092919081815260200182805461067e9061238f565b80156106cb5780601f106106a0576101008083540402835291602001916106cb565b820191906000526020600020905b8154815290600101906020018083116106ae57829003601f168201915b5050505050905090565b60006106e08261127d565b506000908152600460205260409020546001600160a01b031690565b600061070782610d7f565b9050806001600160a01b0316836001600160a01b0316036107955760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b03821614806107b157506107b181336105b9565b6108235760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161078c565b61082d83836112e1565b505050565b61083c338261135c565b6108ae5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161078c565b61082d8383836113db565b600a546001600160a01b031633146109245760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b600d55565b600061093483610de4565b82106109a85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161078c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61082d83838360405180602001604052806000815250611015565b600081600d546109fc91906123df565b341090508015610b2057600c5482601054610a1791906123f6565b1115610a655760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f7567682066726565206d696e7473206c656674210000000000604482015260640161078c565b600f5433600090815260116020526040902054610a839084906123f6565b1115610af65760405162461bcd60e51b8152602060048201526024808201527f546f6f206d616e792066726565206d696e747320666f7220746869732077616c60448201527f6c65742100000000000000000000000000000000000000000000000000000000606482015260840161078c565b3360009081526011602052604081208054849290610b159084906123f6565b90915550610b7d9050565b81600d54610b2e91906123df565b341015610b7d5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768206574682073656e7421000000000000000000000000604482015260640161078c565b610b87338361161e565b5050565b6000610b9660085490565b8210610c0a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161078c565b60088281548110610c1d57610c1d612409565b90600052602060002001549050919050565b600a546001600160a01b03163314610c9a5760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610cd2573d6000803e3d6000fd5b5060405181906001600160a01b0384169030907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a45050565b600a546001600160a01b03163314610d7a5760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b600f55565b6000818152600260205260408120546001600160a01b03168061063d5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161078c565b60006001600160a01b038216610e625760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e65720000000000000000000000000000000000000000000000606482015260840161078c565b506001600160a01b031660009081526003602052604090205490565b600e8054610e8b9061238f565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb79061238f565b8015610f045780601f10610ed957610100808354040283529160200191610f04565b820191906000526020600020905b815481529060010190602001808311610ee757829003601f168201915b505050505081565b600a546001600160a01b03163314610f775760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b610f81338261161e565b50565b6060600180546106529061238f565b610b873383836116bb565b600a546001600160a01b031633146110095760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b600e610b87828261246d565b61101f338361135c565b6110915760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161078c565b61109d848484846117a7565b50505050565b60606110ae8261127d565b60006110b8611830565b905060008151116110d85760405180602001604052806000815250611103565b806110e28461183f565b6040516020016110f392919061252d565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146111755760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b600c55565b60606040518060600160405280602581526020016125f960259139905090565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061122d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061063d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461063d565b6000818152600260205260409020546001600160a01b0316610f815760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161078c565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061132382610d7f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061136883610d7f565b9050806001600160a01b0316846001600160a01b031614806113af57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806113d35750836001600160a01b03166113c8846106d5565b6001600160a01b0316145b949350505050565b826001600160a01b03166113ee82610d7f565b6001600160a01b03161461146a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161078c565b6001600160a01b0382166114e55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161078c565b6114f283838360016118df565b826001600160a01b031661150582610d7f565b6001600160a01b0316146115815760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161078c565b6000818152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b548160105461162f91906123f6565b111561167d5760405162461bcd60e51b815260206004820152601c60248201527f43616e2774206d696e742072657175657374656420616d6f756e742100000000604482015260640161078c565b60005b8181101561082d57601080549060006116988361255c565b91905055506116a983601054611a27565b806116b38161255c565b915050611680565b816001600160a01b0316836001600160a01b03160361171c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161078c565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6117b28484846113db565b6117be84848484611bcd565b61109d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161078c565b6060600e80546106529061238f565b6060600061184c83611d6e565b600101905060008167ffffffffffffffff81111561186c5761186c61220c565b6040519080825280601f01601f191660200182016040528015611896576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846118a057509392505050565b6118eb84848484611e50565b60018111156119625760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f727465640000000000000000000000606482015260840161078c565b816001600160a01b0385166119be576119b981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6119e1565b836001600160a01b0316856001600160a01b0316146119e1576119e18582611ed8565b6001600160a01b0384166119fd576119f881611f75565b611a20565b846001600160a01b0316846001600160a01b031614611a2057611a208482612024565b5050505050565b6001600160a01b038216611a7d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161078c565b6000818152600260205260409020546001600160a01b031615611ae25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161078c565b611af06000838360016118df565b6000818152600260205260409020546001600160a01b031615611b555760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161078c565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611d63576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611c2a903390899088908890600401612576565b6020604051808303816000875af1925050508015611c65575060408051601f3d908101601f19168201909252611c62918101906125b2565b60015b611d18573d808015611c93576040519150601f19603f3d011682016040523d82523d6000602084013e611c98565b606091505b508051600003611d105760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161078c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506113d3565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611db7577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611de3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611e0157662386f26fc10000830492506010015b6305f5e1008310611e19576305f5e100830492506008015b6127108310611e2d57612710830492506004015b60648310611e3f576064830492506002015b600a831061063d5760010192915050565b600181111561109d576001600160a01b03841615611e96576001600160a01b03841660009081526003602052604081208054839290611e909084906125cf565b90915550505b6001600160a01b0383161561109d576001600160a01b03831660009081526003602052604081208054839290611ecd9084906123f6565b909155505050505050565b60006001611ee584610de4565b611eef91906125cf565b600083815260076020526040902054909150808214611f42576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611f87906001906125cf565b60008381526009602052604081205460088054939450909284908110611faf57611faf612409565b906000526020600020015490508060088381548110611fd057611fd0612409565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612008576120086125e2565b6001900381819060005260206000200160009055905550505050565b600061202f83610de4565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610f8157600080fd5b6000602082840312156120a857600080fd5b813561110381612068565b60005b838110156120ce5781810151838201526020016120b6565b50506000910152565b600081518084526120ef8160208601602086016120b3565b601f01601f19169290920160200192915050565b60208152600061110360208301846120d7565b60006020828403121561212857600080fd5b5035919050565b6001600160a01b0381168114610f8157600080fd5b6000806040838503121561215757600080fd5b82356121628161212f565b946020939093013593505050565b60008060006060848603121561218557600080fd5b83356121908161212f565b925060208401356121a08161212f565b929592945050506040919091013590565b6000602082840312156121c357600080fd5b81356111038161212f565b600080604083850312156121e157600080fd5b82356121ec8161212f565b91506020830135801515811461220157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561223d5761223d61220c565b604051601f8501601f19908116603f011681019082821181831017156122655761226561220c565b8160405280935085815286868601111561227e57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156122aa57600080fd5b813567ffffffffffffffff8111156122c157600080fd5b8201601f810184136122d257600080fd5b6113d384823560208401612222565b600080600080608085870312156122f757600080fd5b84356123028161212f565b935060208501356123128161212f565b925060408501359150606085013567ffffffffffffffff81111561233557600080fd5b8501601f8101871361234657600080fd5b61235587823560208401612222565b91505092959194509250565b6000806040838503121561237457600080fd5b823561237f8161212f565b915060208301356122018161212f565b600181811c908216806123a357607f821691505b6020821081036123c357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761063d5761063d6123c9565b8082018082111561063d5761063d6123c9565b634e487b7160e01b600052603260045260246000fd5b601f82111561082d57600081815260208120601f850160051c810160208610156124465750805b601f850160051c820191505b8181101561246557828155600101612452565b505050505050565b815167ffffffffffffffff8111156124875761248761220c565b61249b81612495845461238f565b8461241f565b602080601f8311600181146124d057600084156124b85750858301515b600019600386901b1c1916600185901b178555612465565b600085815260208120601f198616915b828110156124ff578886015182559484019460019091019084016124e0565b508582101561251d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161253f8184602088016120b3565b8351908301906125538183602088016120b3565b01949350505050565b6000600019820361256f5761256f6123c9565b5060010190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526125a860808301846120d7565b9695505050505050565b6000602082840312156125c457600080fd5b815161110381612068565b8181038181111561063d5761063d6123c9565b634e487b7160e01b600052603160045260246000fdfe68747470733a2f2f6a6f7264656e72696a6b652e73332e616d617a6f6e6177732e636f6d2fa2646970667358221220d412a18465555c88c1ba621935c3c14baaca9afc264a10245ca67a88290340a364736f6c6343000811003368747470733a2f2f6a6f7264656e72696a6b652e73332e616d617a6f6e6177732e636f6d2f
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80636352211e11610102578063a22cb46511610095578063d4c4641c11610064578063d4c4641c14610553578063d8e8708914610573578063e8a3d48514610589578063e985e9c51461059e57600080fd5b8063a22cb465146104d3578063af1c5211146104f3578063b88d4fde14610513578063c87b56dd1461053357600080fd5b80637bfd1da2116100d15780637bfd1da2146104685780638da5cb5b1461048857806395d89b41146104a8578063a035b1fe146104bd57600080fd5b80636352211e146103fd57806366fe513a1461041d57806370a0823114610433578063786f29101461045357600080fd5b806328bf794d1161017a5780634bbcd31c116101495780634bbcd31c1461038a5780634f6ccce71461039d57806351cff8d9146103bd5780635667a27c146103dd57600080fd5b806328bf794d146103085780632f745c591461032857806341f434341461034857806342842e0e1461036a57600080fd5b8063095ea7b3116101b6578063095ea7b31461029b578063116d3804146102bd57806318160ddd146102d357806323b872dd146102e857600080fd5b806301ffc9a7146101e8578063047fc9aa1461021d57806306fdde0314610241578063081812fc14610263575b600080fd5b3480156101f457600080fd5b50610208610203366004612096565b6105e7565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610233600b5481565b604051908152602001610214565b34801561024d57600080fd5b50610256610643565b6040516102149190612103565b34801561026f57600080fd5b5061028361027e366004612116565b6106d5565b6040516001600160a01b039091168152602001610214565b3480156102a757600080fd5b506102bb6102b6366004612144565b6106fc565b005b3480156102c957600080fd5b50610233600f5481565b3480156102df57600080fd5b50600854610233565b3480156102f457600080fd5b506102bb610303366004612170565b610832565b34801561031457600080fd5b506102bb610323366004612116565b6108b9565b34801561033457600080fd5b50610233610343366004612144565b610929565b34801561035457600080fd5b506102836daaeb6d7670e522a718067333cd4e81565b34801561037657600080fd5b506102bb610385366004612170565b6109d1565b6102bb610398366004612116565b6109ec565b3480156103a957600080fd5b506102336103b8366004612116565b610b8b565b3480156103c957600080fd5b506102bb6103d83660046121b1565b610c2f565b3480156103e957600080fd5b506102bb6103f8366004612116565b610d0f565b34801561040957600080fd5b50610283610418366004612116565b610d7f565b34801561042957600080fd5b50610233600c5481565b34801561043f57600080fd5b5061023361044e3660046121b1565b610de4565b34801561045f57600080fd5b50610256610e7e565b34801561047457600080fd5b506102bb610483366004612116565b610f0c565b34801561049457600080fd5b50600a54610283906001600160a01b031681565b3480156104b457600080fd5b50610256610f84565b3480156104c957600080fd5b50610233600d5481565b3480156104df57600080fd5b506102bb6104ee3660046121ce565b610f93565b3480156104ff57600080fd5b506102bb61050e366004612298565b610f9e565b34801561051f57600080fd5b506102bb61052e3660046122e1565b611015565b34801561053f57600080fd5b5061025661054e366004612116565b6110a3565b34801561055f57600080fd5b506102bb61056e366004612116565b61110a565b34801561057f57600080fd5b5061023360105481565b34801561059557600080fd5b5061025661117a565b3480156105aa57600080fd5b506102086105b9366004612361565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061063d575061063d8261119a565b92915050565b6060600080546106529061238f565b80601f016020809104026020016040519081016040528092919081815260200182805461067e9061238f565b80156106cb5780601f106106a0576101008083540402835291602001916106cb565b820191906000526020600020905b8154815290600101906020018083116106ae57829003601f168201915b5050505050905090565b60006106e08261127d565b506000908152600460205260409020546001600160a01b031690565b600061070782610d7f565b9050806001600160a01b0316836001600160a01b0316036107955760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b03821614806107b157506107b181336105b9565b6108235760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161078c565b61082d83836112e1565b505050565b61083c338261135c565b6108ae5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161078c565b61082d8383836113db565b600a546001600160a01b031633146109245760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b600d55565b600061093483610de4565b82106109a85760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161078c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61082d83838360405180602001604052806000815250611015565b600081600d546109fc91906123df565b341090508015610b2057600c5482601054610a1791906123f6565b1115610a655760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f7567682066726565206d696e7473206c656674210000000000604482015260640161078c565b600f5433600090815260116020526040902054610a839084906123f6565b1115610af65760405162461bcd60e51b8152602060048201526024808201527f546f6f206d616e792066726565206d696e747320666f7220746869732077616c60448201527f6c65742100000000000000000000000000000000000000000000000000000000606482015260840161078c565b3360009081526011602052604081208054849290610b159084906123f6565b90915550610b7d9050565b81600d54610b2e91906123df565b341015610b7d5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420656e6f756768206574682073656e7421000000000000000000000000604482015260640161078c565b610b87338361161e565b5050565b6000610b9660085490565b8210610c0a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161078c565b60088281548110610c1d57610c1d612409565b90600052602060002001549050919050565b600a546001600160a01b03163314610c9a5760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b60405147906001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610cd2573d6000803e3d6000fd5b5060405181906001600160a01b0384169030907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a45050565b600a546001600160a01b03163314610d7a5760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b600f55565b6000818152600260205260408120546001600160a01b03168061063d5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161078c565b60006001600160a01b038216610e625760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e65720000000000000000000000000000000000000000000000606482015260840161078c565b506001600160a01b031660009081526003602052604090205490565b600e8054610e8b9061238f565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb79061238f565b8015610f045780601f10610ed957610100808354040283529160200191610f04565b820191906000526020600020905b815481529060010190602001808311610ee757829003601f168201915b505050505081565b600a546001600160a01b03163314610f775760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b610f81338261161e565b50565b6060600180546106529061238f565b610b873383836116bb565b600a546001600160a01b031633146110095760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b600e610b87828261246d565b61101f338361135c565b6110915760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161078c565b61109d848484846117a7565b50505050565b60606110ae8261127d565b60006110b8611830565b905060008151116110d85760405180602001604052806000815250611103565b806110e28461183f565b6040516020016110f392919061252d565b6040516020818303038152906040525b9392505050565b600a546001600160a01b031633146111755760405162461bcd60e51b815260206004820152602860248201527f546869732066756e6374696f6e206973207265737472696374656420746f207460448201526734329037bbb732b960c11b606482015260840161078c565b600c55565b60606040518060600160405280602581526020016125f960259139905090565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061122d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061063d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461063d565b6000818152600260205260409020546001600160a01b0316610f815760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161078c565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061132382610d7f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061136883610d7f565b9050806001600160a01b0316846001600160a01b031614806113af57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806113d35750836001600160a01b03166113c8846106d5565b6001600160a01b0316145b949350505050565b826001600160a01b03166113ee82610d7f565b6001600160a01b03161461146a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161078c565b6001600160a01b0382166114e55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161078c565b6114f283838360016118df565b826001600160a01b031661150582610d7f565b6001600160a01b0316146115815760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161078c565b6000818152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b548160105461162f91906123f6565b111561167d5760405162461bcd60e51b815260206004820152601c60248201527f43616e2774206d696e742072657175657374656420616d6f756e742100000000604482015260640161078c565b60005b8181101561082d57601080549060006116988361255c565b91905055506116a983601054611a27565b806116b38161255c565b915050611680565b816001600160a01b0316836001600160a01b03160361171c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161078c565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6117b28484846113db565b6117be84848484611bcd565b61109d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161078c565b6060600e80546106529061238f565b6060600061184c83611d6e565b600101905060008167ffffffffffffffff81111561186c5761186c61220c565b6040519080825280601f01601f191660200182016040528015611896576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846118a057509392505050565b6118eb84848484611e50565b60018111156119625760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f727465640000000000000000000000606482015260840161078c565b816001600160a01b0385166119be576119b981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6119e1565b836001600160a01b0316856001600160a01b0316146119e1576119e18582611ed8565b6001600160a01b0384166119fd576119f881611f75565b611a20565b846001600160a01b0316846001600160a01b031614611a2057611a208482612024565b5050505050565b6001600160a01b038216611a7d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161078c565b6000818152600260205260409020546001600160a01b031615611ae25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161078c565b611af06000838360016118df565b6000818152600260205260409020546001600160a01b031615611b555760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161078c565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611d63576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611c2a903390899088908890600401612576565b6020604051808303816000875af1925050508015611c65575060408051601f3d908101601f19168201909252611c62918101906125b2565b60015b611d18573d808015611c93576040519150601f19603f3d011682016040523d82523d6000602084013e611c98565b606091505b508051600003611d105760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161078c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506113d3565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611db7577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611de3576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611e0157662386f26fc10000830492506010015b6305f5e1008310611e19576305f5e100830492506008015b6127108310611e2d57612710830492506004015b60648310611e3f576064830492506002015b600a831061063d5760010192915050565b600181111561109d576001600160a01b03841615611e96576001600160a01b03841660009081526003602052604081208054839290611e909084906125cf565b90915550505b6001600160a01b0383161561109d576001600160a01b03831660009081526003602052604081208054839290611ecd9084906123f6565b909155505050505050565b60006001611ee584610de4565b611eef91906125cf565b600083815260076020526040902054909150808214611f42576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611f87906001906125cf565b60008381526009602052604081205460088054939450909284908110611faf57611faf612409565b906000526020600020015490508060088381548110611fd057611fd0612409565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612008576120086125e2565b6001900381819060005260206000200160009055905550505050565b600061202f83610de4565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610f8157600080fd5b6000602082840312156120a857600080fd5b813561110381612068565b60005b838110156120ce5781810151838201526020016120b6565b50506000910152565b600081518084526120ef8160208601602086016120b3565b601f01601f19169290920160200192915050565b60208152600061110360208301846120d7565b60006020828403121561212857600080fd5b5035919050565b6001600160a01b0381168114610f8157600080fd5b6000806040838503121561215757600080fd5b82356121628161212f565b946020939093013593505050565b60008060006060848603121561218557600080fd5b83356121908161212f565b925060208401356121a08161212f565b929592945050506040919091013590565b6000602082840312156121c357600080fd5b81356111038161212f565b600080604083850312156121e157600080fd5b82356121ec8161212f565b91506020830135801515811461220157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561223d5761223d61220c565b604051601f8501601f19908116603f011681019082821181831017156122655761226561220c565b8160405280935085815286868601111561227e57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156122aa57600080fd5b813567ffffffffffffffff8111156122c157600080fd5b8201601f810184136122d257600080fd5b6113d384823560208401612222565b600080600080608085870312156122f757600080fd5b84356123028161212f565b935060208501356123128161212f565b925060408501359150606085013567ffffffffffffffff81111561233557600080fd5b8501601f8101871361234657600080fd5b61235587823560208401612222565b91505092959194509250565b6000806040838503121561237457600080fd5b823561237f8161212f565b915060208301356122018161212f565b600181811c908216806123a357607f821691505b6020821081036123c357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761063d5761063d6123c9565b8082018082111561063d5761063d6123c9565b634e487b7160e01b600052603260045260246000fd5b601f82111561082d57600081815260208120601f850160051c810160208610156124465750805b601f850160051c820191505b8181101561246557828155600101612452565b505050505050565b815167ffffffffffffffff8111156124875761248761220c565b61249b81612495845461238f565b8461241f565b602080601f8311600181146124d057600084156124b85750858301515b600019600386901b1c1916600185901b178555612465565b600085815260208120601f198616915b828110156124ff578886015182559484019460019091019084016124e0565b508582101561251d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161253f8184602088016120b3565b8351908301906125538183602088016120b3565b01949350505050565b6000600019820361256f5761256f6123c9565b5060010190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526125a860808301846120d7565b9695505050505050565b6000602082840312156125c457600080fd5b815161110381612068565b8181038181111561063d5761063d6123c9565b634e487b7160e01b600052603160045260246000fdfe68747470733a2f2f6a6f7264656e72696a6b652e73332e616d617a6f6e6177732e636f6d2fa2646970667358221220d412a18465555c88c1ba621935c3c14baaca9afc264a10245ca67a88290340a364736f6c63430008110033
Deployed Bytecode Sourcemap
65121:2667:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59128:224;;;;;;;;;;-1:-1:-1;59128:224:0;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;59128:224:0;;;;;;;;65231:28;;;;;;;;;;;;;;;;;;;784:25:1;;;772:2;757:18;65231:28:0;638:177:1;43190:100:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;44702:171::-;;;;;;;;;;-1:-1:-1;44702:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1984:55:1;;;1966:74;;1954:2;1939:18;44702:171:0;1820:226:1;44220:416:0;;;;;;;;;;-1:-1:-1;44220:416:0;;;;;:::i;:::-;;:::i;:::-;;65422:46;;;;;;;;;;;;;;;;59768:113;;;;;;;;;;-1:-1:-1;59856:10:0;:17;59768:113;;45402:335;;;;;;;;;;-1:-1:-1;45402:335:0;;;;;:::i;:::-;;:::i;65813:88::-;;;;;;;;;;-1:-1:-1;65813:88:0;;;;;:::i;:::-;;:::i;59436:256::-;;;;;;;;;;-1:-1:-1;59436:256:0;;;;;:::i;:::-;;:::i;2869:143::-;;;;;;;;;;;;2969:42;2869:143;;45808:185;;;;;;;;;;-1:-1:-1;45808:185:0;;;;;:::i;:::-;;:::i;66623:598::-;;;;;;:::i;:::-;;:::i;59958:233::-;;;;;;;;;;-1:-1:-1;59958:233:0;;;;;:::i;:::-;;:::i;67579:206::-;;;;;;;;;;-1:-1:-1;67579:206:0;;;;;:::i;:::-;;:::i;66033:172::-;;;;;;;;;;-1:-1:-1;66033:172:0;;;;;:::i;:::-;;:::i;42900:223::-;;;;;;;;;;-1:-1:-1;42900:223:0;;;;;:::i;:::-;;:::i;65266:32::-;;;;;;;;;;;;;;;;42631:207;;;;;;;;;;-1:-1:-1;42631:207:0;;;;;:::i;:::-;;:::i;65351:64::-;;;;;;;;;;;;;:::i;67229:101::-;;;;;;;;;;-1:-1:-1;67229:101:0;;;;;:::i;:::-;;:::i;65189:33::-;;;;;;;;;;-1:-1:-1;65189:33:0;;;;-1:-1:-1;;;;;65189:33:0;;;43359:104;;;;;;;;;;;;;:::i;65305:39::-;;;;;;;;;;;;;;;;44945:155;;;;;;;;;;-1:-1:-1;44945:155:0;;;;;:::i;:::-;;:::i;66213:106::-;;;;;;;;;;-1:-1:-1;66213:106:0;;;;;:::i;:::-;;:::i;46064:322::-;;;;;;;;;;-1:-1:-1;46064:322:0;;;;;:::i;:::-;;:::i;43534:281::-;;;;;;;;;;-1:-1:-1;43534:281:0;;;;;:::i;:::-;;:::i;65909:112::-;;;;;;;;;;-1:-1:-1;65909:112:0;;;;;:::i;:::-;;:::i;65481:34::-;;;;;;;;;;;;;;;;67447:124;;;;;;;;;;;;;:::i;45171:164::-;;;;;;;;;;-1:-1:-1;45171:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;45292:25:0;;;45268:4;45292:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;45171:164;59128:224;59230:4;59254:50;;;59269:35;59254:50;;:90;;;59308:36;59332:11;59308:23;:36::i;:::-;59247:97;59128:224;-1:-1:-1;;59128:224:0:o;43190:100::-;43244:13;43277:5;43270:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43190:100;:::o;44702:171::-;44778:7;44798:23;44813:7;44798:14;:23::i;:::-;-1:-1:-1;44841:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;44841:24:0;;44702:171::o;44220:416::-;44301:13;44317:23;44332:7;44317:14;:23::i;:::-;44301:39;;44365:5;-1:-1:-1;;;;;44359:11:0;:2;-1:-1:-1;;;;;44359:11:0;;44351:57;;;;-1:-1:-1;;;44351:57:0;;7364:2:1;44351:57:0;;;7346:21:1;7403:2;7383:18;;;7376:30;7442:34;7422:18;;;7415:62;7513:3;7493:18;;;7486:31;7534:19;;44351:57:0;;;;;;;;;21296:10;-1:-1:-1;;;;;44443:21:0;;;;:62;;-1:-1:-1;44468:37:0;44485:5;21296:10;45171:164;:::i;44468:37::-;44421:173;;;;-1:-1:-1;;;44421:173:0;;7766:2:1;44421:173:0;;;7748:21:1;7805:2;7785:18;;;7778:30;7844:34;7824:18;;;7817:62;7915:31;7895:18;;;7888:59;7964:19;;44421:173:0;7564:425:1;44421:173:0;44607:21;44616:2;44620:7;44607:8;:21::i;:::-;44290:346;44220:416;;:::o;45402:335::-;45597:41;21296:10;45630:7;45597:18;:41::i;:::-;45589:99;;;;-1:-1:-1;;;45589:99:0;;8196:2:1;45589:99:0;;;8178:21:1;8235:2;8215:18;;;8208:30;8274:34;8254:18;;;8247:62;8345:15;8325:18;;;8318:43;8378:19;;45589:99:0;7994:409:1;45589:99:0;45701:28;45711:4;45717:2;45721:7;45701:9;:28::i;65813:88::-;65636:5;;-1:-1:-1;;;;;65636:5:0;65622:10;:19;65614:72;;;;-1:-1:-1;;;65614:72:0;;8610:2:1;65614:72:0;;;8592:21:1;8649:2;8629:18;;;8622:30;8688:34;8668:18;;;8661:62;-1:-1:-1;;;8739:18:1;;;8732:38;8787:19;;65614:72:0;8408:404:1;65614:72:0;65879:5:::1;:14:::0;65813:88::o;59436:256::-;59533:7;59569:23;59586:5;59569:16;:23::i;:::-;59561:5;:31;59553:87;;;;-1:-1:-1;;;59553:87:0;;9019:2:1;59553:87:0;;;9001:21:1;9058:2;9038:18;;;9031:30;9097:34;9077:18;;;9070:62;9168:13;9148:18;;;9141:41;9199:19;;59553:87:0;8817:407:1;59553:87:0;-1:-1:-1;;;;;;59658:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;59436:256::o;45808:185::-;45946:39;45963:4;45969:2;45973:7;45946:39;;;;;;;;;;;;:16;:39::i;66623:598::-;66689:23;66736:7;66728:5;;:15;;;;:::i;:::-;66716:9;:27;66689:55;;66759:18;66755:423;;;66831:11;;66820:7;66802:15;;:25;;;;:::i;:::-;:40;;66794:80;;;;-1:-1:-1;;;66794:80:0;;9923:2:1;66794:80:0;;;9905:21:1;9962:2;9942:18;;;9935:30;10001:29;9981:18;;;9974:57;10048:18;;66794:80:0;9721:351:1;66794:80:0;66945:26;;66920:10;66897:34;;;;:22;:34;;;;;;:44;;66934:7;;66897:44;:::i;:::-;:74;;66889:123;;;;-1:-1:-1;;;66889:123:0;;10279:2:1;66889:123:0;;;10261:21:1;10318:2;10298:18;;;10291:30;10357:34;10337:18;;;10330:62;10428:6;10408:18;;;10401:34;10452:19;;66889:123:0;10077:400:1;66889:123:0;67050:10;67027:34;;;;:22;:34;;;;;:45;;67065:7;;67027:34;:45;;67065:7;;67027:45;:::i;:::-;;;;-1:-1:-1;66755:423:0;;-1:-1:-1;66755:423:0;;67134:7;67126:5;;:15;;;;:::i;:::-;67113:9;:28;;67105:61;;;;-1:-1:-1;;;67105:61:0;;10684:2:1;67105:61:0;;;10666:21:1;10723:2;10703:18;;;10696:30;10762:22;10742:18;;;10735:50;10802:18;;67105:61:0;10482:344:1;67105:61:0;67188:25;67193:10;67205:7;67188:4;:25::i;:::-;66678:543;66623:598;:::o;59958:233::-;60033:7;60069:30;59856:10;:17;;59768:113;60069:30;60061:5;:38;60053:95;;;;-1:-1:-1;;;60053:95:0;;11033:2:1;60053:95:0;;;11015:21:1;11072:2;11052:18;;;11045:30;11111:34;11091:18;;;11084:62;11182:14;11162:18;;;11155:42;11214:19;;60053:95:0;10831:408:1;60053:95:0;60166:10;60177:5;60166:17;;;;;;;;:::i;:::-;;;;;;;;;60159:24;;59958:233;;;:::o;67579:206::-;65636:5;;-1:-1:-1;;;;;65636:5:0;65622:10;:19;65614:72;;;;-1:-1:-1;;;65614:72:0;;8610:2:1;65614:72:0;;;8592:21:1;8649:2;8629:18;;;8622:30;8688:34;8668:18;;;8661:62;-1:-1:-1;;;8739:18:1;;;8732:38;8787:19;;65614:72:0;8408:404:1;65614:72:0;67699:23:::1;::::0;67667:21:::1;::::0;-1:-1:-1;;;;;67699:15:0;::::1;::::0;:23;::::1;;;::::0;67667:21;;67650:14:::1;67699:23:::0;67650:14;67699:23;67667:21;67699:15;:23;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;67738:39:0::1;::::0;67770:6;;-1:-1:-1;;;;;67738:39:0;::::1;::::0;67755:4:::1;::::0;67738:39:::1;::::0;;;::::1;67639:146;67579:206:::0;:::o;66033:172::-;65636:5;;-1:-1:-1;;;;;65636:5:0;65622:10;:19;65614:72;;;;-1:-1:-1;;;65614:72:0;;8610:2:1;65614:72:0;;;8592:21:1;8649:2;8629:18;;;8622:30;8688:34;8668:18;;;8661:62;-1:-1:-1;;;8739:18:1;;;8732:38;8787:19;;65614:72:0;8408:404:1;65614:72:0;66141:26:::1;:56:::0;66033:172::o;42900:223::-;42972:7;47787:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47787:16:0;;43036:56;;;;-1:-1:-1;;;43036:56:0;;11635:2:1;43036:56:0;;;11617:21:1;11674:2;11654:18;;;11647:30;11713:26;11693:18;;;11686:54;11757:18;;43036:56:0;11433:348:1;42631:207:0;42703:7;-1:-1:-1;;;;;42731:19:0;;42723:73;;;;-1:-1:-1;;;42723:73:0;;11988:2:1;42723:73:0;;;11970:21:1;12027:2;12007:18;;;12000:30;12066:34;12046:18;;;12039:62;12137:11;12117:18;;;12110:39;12166:19;;42723:73:0;11786:405:1;42723:73:0;-1:-1:-1;;;;;;42814:16:0;;;;;:9;:16;;;;;;;42631:207::o;65351:64::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;67229:101::-;65636:5;;-1:-1:-1;;;;;65636:5:0;65622:10;:19;65614:72;;;;-1:-1:-1;;;65614:72:0;;8610:2:1;65614:72:0;;;8592:21:1;8649:2;8629:18;;;8622:30;8688:34;8668:18;;;8661:62;-1:-1:-1;;;8739:18:1;;;8732:38;8787:19;;65614:72:0;8408:404:1;65614:72:0;67297:25:::1;67302:10;67314:7;67297:4;:25::i;:::-;67229:101:::0;:::o;43359:104::-;43415:13;43448:7;43441:14;;;;;:::i;44945:155::-;45040:52;21296:10;45073:8;45083;45040:18;:52::i;66213:106::-;65636:5;;-1:-1:-1;;;;;65636:5:0;65622:10;:19;65614:72;;;;-1:-1:-1;;;65614:72:0;;8610:2:1;65614:72:0;;;8592:21:1;8649:2;8629:18;;;8622:30;8688:34;8668:18;;;8661:62;-1:-1:-1;;;8739:18:1;;;8732:38;8787:19;;65614:72:0;8408:404:1;65614:72:0;66291:8:::1;:20;66302:9:::0;66291:8;:20:::1;:::i;46064:322::-:0;46238:41;21296:10;46271:7;46238:18;:41::i;:::-;46230:99;;;;-1:-1:-1;;;46230:99:0;;8196:2:1;46230:99:0;;;8178:21:1;8235:2;8215:18;;;8208:30;8274:34;8254:18;;;8247:62;8345:15;8325:18;;;8318:43;8378:19;;46230:99:0;7994:409:1;46230:99:0;46340:38;46354:4;46360:2;46364:7;46373:4;46340:13;:38::i;:::-;46064:322;;;;:::o;43534:281::-;43607:13;43633:23;43648:7;43633:14;:23::i;:::-;43669:21;43693:10;:8;:10::i;:::-;43669:34;;43745:1;43727:7;43721:21;:25;:86;;;;;;;;;;;;;;;;;43773:7;43782:18;:7;:16;:18::i;:::-;43756:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;43721:86;43714:93;43534:281;-1:-1:-1;;;43534:281:0:o;65909:112::-;65636:5;;-1:-1:-1;;;;;65636:5:0;65622:10;:19;65614:72;;;;-1:-1:-1;;;65614:72:0;;8610:2:1;65614:72:0;;;8592:21:1;8649:2;8629:18;;;8622:30;8688:34;8668:18;;;8661:62;-1:-1:-1;;;8739:18:1;;;8732:38;8787:19;;65614:72:0;8408:404:1;65614:72:0;65987:11:::1;:26:::0;65909:112::o;67447:124::-;67491:13;67517:46;;;;;;;;;;;;;;;;;;;67447:124;:::o;42262:305::-;42364:4;42401:40;;;42416:25;42401:40;;:105;;-1:-1:-1;42458:48:0;;;42473:33;42458:48;42401:105;:158;;;-1:-1:-1;33818:25:0;33803:40;;;;42523:36;33694:157;54521:135;48189:4;47787:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47787:16:0;54595:53;;;;-1:-1:-1;;;54595:53:0;;11635:2:1;54595:53:0;;;11617:21:1;11674:2;11654:18;;;11647:30;11713:26;11693:18;;;11686:54;11757:18;;54595:53:0;11433:348:1;53800:174:0;53875:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;53875:29:0;-1:-1:-1;;;;;53875:29:0;;;;;;;;:24;;53929:23;53875:24;53929:14;:23::i;:::-;-1:-1:-1;;;;;53920:46:0;;;;;;;;;;;53800:174;;:::o;48419:264::-;48512:4;48529:13;48545:23;48560:7;48545:14;:23::i;:::-;48529:39;;48598:5;-1:-1:-1;;;;;48587:16:0;:7;-1:-1:-1;;;;;48587:16:0;;:52;;;-1:-1:-1;;;;;;45292:25:0;;;45268:4;45292:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;48607:32;48587:87;;;;48667:7;-1:-1:-1;;;;;48643:31:0;:20;48655:7;48643:11;:20::i;:::-;-1:-1:-1;;;;;48643:31:0;;48587:87;48579:96;48419:264;-1:-1:-1;;;;48419:264:0:o;52418:1263::-;52577:4;-1:-1:-1;;;;;52550:31:0;:23;52565:7;52550:14;:23::i;:::-;-1:-1:-1;;;;;52550:31:0;;52542:81;;;;-1:-1:-1;;;52542:81:0;;15282:2:1;52542:81:0;;;15264:21:1;15321:2;15301:18;;;15294:30;15360:34;15340:18;;;15333:62;15431:7;15411:18;;;15404:35;15456:19;;52542:81:0;15080:401:1;52542:81:0;-1:-1:-1;;;;;52642:16:0;;52634:65;;;;-1:-1:-1;;;52634:65:0;;15688:2:1;52634:65:0;;;15670:21:1;15727:2;15707:18;;;15700:30;15766:34;15746:18;;;15739:62;15837:6;15817:18;;;15810:34;15861:19;;52634:65:0;15486:400:1;52634:65:0;52712:42;52733:4;52739:2;52743:7;52752:1;52712:20;:42::i;:::-;52884:4;-1:-1:-1;;;;;52857:31:0;:23;52872:7;52857:14;:23::i;:::-;-1:-1:-1;;;;;52857:31:0;;52849:81;;;;-1:-1:-1;;;52849:81:0;;15282:2:1;52849:81:0;;;15264:21:1;15321:2;15301:18;;;15294:30;15360:34;15340:18;;;15333:62;15431:7;15411:18;;;15404:35;15456:19;;52849:81:0;15080:401:1;52849:81:0;53002:24;;;;:15;:24;;;;;;;;52995:31;;-1:-1:-1;;52995:31:0;;;;;;-1:-1:-1;;;;;53478:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;53478:20:0;;;53513:13;;;;;;;;;:18;;52995:31;53513:18;;;53553:16;;;:7;:16;;;;;;:21;;;;;;;;;;53592:27;;53018:7;;53592:27;;;44290:346;44220:416;;:::o;66327:288::-;66431:6;;66420:7;66402:15;;:25;;;;:::i;:::-;:35;;66394:76;;;;-1:-1:-1;;;66394:76:0;;16093:2:1;66394:76:0;;;16075:21:1;16132:2;16112:18;;;16105:30;16171;16151:18;;;16144:58;16219:18;;66394:76:0;15891:352:1;66394:76:0;66486:9;66481:127;66505:7;66501:1;:11;66481:127;;;66534:15;:17;;;:15;:17;;;:::i;:::-;;;;;;66566:30;66572:6;66580:15;;66566:5;:30::i;:::-;66514:3;;;;:::i;:::-;;;;66481:127;;54117:315;54272:8;-1:-1:-1;;;;;54263:17:0;:5;-1:-1:-1;;;;;54263:17:0;;54255:55;;;;-1:-1:-1;;;54255:55:0;;16650:2:1;54255:55:0;;;16632:21:1;16689:2;16669:18;;;16662:30;16728:27;16708:18;;;16701:55;16773:18;;54255:55:0;16448:349:1;54255:55:0;-1:-1:-1;;;;;54321:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;;;;;;;;;;;;54383:41;;586::1;;;54383::0;;559:18:1;54383:41:0;;;;;;;54117:315;;;:::o;47267:313::-;47423:28;47433:4;47439:2;47443:7;47423:9;:28::i;:::-;47470:47;47493:4;47499:2;47503:7;47512:4;47470:22;:47::i;:::-;47462:110;;;;-1:-1:-1;;;47462:110:0;;17004:2:1;47462:110:0;;;16986:21:1;17043:2;17023:18;;;17016:30;17082:34;17062:18;;;17055:62;17153:20;17133:18;;;17126:48;17191:19;;47462:110:0;16802:414:1;67338:101:0;67390:13;67423:8;67416:15;;;;;:::i;18643:716::-;18699:13;18750:14;18767:17;18778:5;18767:10;:17::i;:::-;18787:1;18767:21;18750:38;;18803:20;18837:6;18826:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18826:18:0;-1:-1:-1;18803:41:0;-1:-1:-1;18968:28:0;;;18984:2;18968:28;19025:288;-1:-1:-1;;19057:5:0;19199:8;19194:2;19183:14;;19178:30;19057:5;19165:44;19255:2;19246:11;;;-1:-1:-1;19276:21:0;19025:288;19276:21;-1:-1:-1;19334:6:0;18643:716;-1:-1:-1;;;18643:716:0:o;60265:915::-;60442:61;60469:4;60475:2;60479:12;60493:9;60442:26;:61::i;:::-;60532:1;60520:9;:13;60516:222;;;60663:63;;-1:-1:-1;;;60663:63:0;;17612:2:1;60663:63:0;;;17594:21:1;17651:2;17631:18;;;17624:30;17690:34;17670:18;;;17663:62;17761:23;17741:18;;;17734:51;17802:19;;60663:63:0;17410:417:1;60516:222:0;60768:12;-1:-1:-1;;;;;60797:18:0;;60793:187;;60832:40;60864:7;62007:10;:17;;61980:24;;;;:15;:24;;;;;:44;;;62035:24;;;;;;;;;;;;61903:164;60832:40;60793:187;;;60902:2;-1:-1:-1;;;;;60894:10:0;:4;-1:-1:-1;;;;;60894:10:0;;60890:90;;60921:47;60954:4;60960:7;60921:32;:47::i;:::-;-1:-1:-1;;;;;60994:16:0;;60990:183;;61027:45;61064:7;61027:36;:45::i;:::-;60990:183;;;61100:4;-1:-1:-1;;;;;61094:10:0;:2;-1:-1:-1;;;;;61094:10:0;;61090:83;;61121:40;61149:2;61153:7;61121:27;:40::i;:::-;60431:749;60265:915;;;;:::o;50017:942::-;-1:-1:-1;;;;;50097:16:0;;50089:61;;;;-1:-1:-1;;;50089:61:0;;18034:2:1;50089:61:0;;;18016:21:1;;;18053:18;;;18046:30;18112:34;18092:18;;;18085:62;18164:18;;50089:61:0;17832:356:1;50089:61:0;48189:4;47787:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47787:16:0;48213:31;50161:58;;;;-1:-1:-1;;;50161:58:0;;18395:2:1;50161:58:0;;;18377:21:1;18434:2;18414:18;;;18407:30;18473;18453:18;;;18446:58;18521:18;;50161:58:0;18193:352:1;50161:58:0;50232:48;50261:1;50265:2;50269:7;50278:1;50232:20;:48::i;:::-;48189:4;47787:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47787:16:0;48213:31;50370:58;;;;-1:-1:-1;;;50370:58:0;;18395:2:1;50370:58:0;;;18377:21:1;18434:2;18414:18;;;18407:30;18473;18453:18;;;18446:58;18521:18;;50370:58:0;18193:352:1;50370:58:0;-1:-1:-1;;;;;50777:13:0;;;;;;:9;:13;;;;;;;;:18;;50794:1;50777:18;;;50819:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;50819:21:0;;;;;50858:33;50827:7;;50777:13;;50858:33;;50777:13;;50858:33;66678:543;66623:598;:::o;55220:853::-;55374:4;-1:-1:-1;;;;;55395:13:0;;22958:19;:23;55391:675;;55431:71;;;;;-1:-1:-1;;;;;55431:36:0;;;;;:71;;21296:10;;55482:4;;55488:7;;55497:4;;55431:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55431:71:0;;;;;;;;-1:-1:-1;;55431:71:0;;;;;;;;;;;;:::i;:::-;;;55427:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55672:6;:13;55689:1;55672:18;55668:328;;55715:60;;-1:-1:-1;;;55715:60:0;;17004:2:1;55715:60:0;;;16986:21:1;17043:2;17023:18;;;17016:30;17082:34;17062:18;;;17055:62;17153:20;17133:18;;;17126:48;17191:19;;55715:60:0;16802:414:1;55668:328:0;55946:6;55940:13;55931:6;55927:2;55923:15;55916:38;55427:584;55553:51;;55563:41;55553:51;;-1:-1:-1;55546:58:0;;55391:675;-1:-1:-1;56050:4:0;55220:853;;;;;;:::o;15509:922::-;15562:7;;15649:6;15640:15;;15636:102;;15685:6;15676:15;;;-1:-1:-1;15720:2:0;15710:12;15636:102;15765:6;15756:5;:15;15752:102;;15801:6;15792:15;;;-1:-1:-1;15836:2:0;15826:12;15752:102;15881:6;15872:5;:15;15868:102;;15917:6;15908:15;;;-1:-1:-1;15952:2:0;15942:12;15868:102;15997:5;15988;:14;15984:99;;16032:5;16023:14;;;-1:-1:-1;16066:1:0;16056:11;15984:99;16110:5;16101;:14;16097:99;;16145:5;16136:14;;;-1:-1:-1;16179:1:0;16169:11;16097:99;16223:5;16214;:14;16210:99;;16258:5;16249:14;;;-1:-1:-1;16292:1:0;16282:11;16210:99;16336:5;16327;:14;16323:66;;16372:1;16362:11;16417:6;15509:922;-1:-1:-1;;15509:922:0:o;56805:410::-;56995:1;56983:9;:13;56979:229;;;-1:-1:-1;;;;;57017:18:0;;;57013:87;;-1:-1:-1;;;;;57056:15:0;;;;;;:9;:15;;;;;:28;;57075:9;;57056:15;:28;;57075:9;;57056:28;:::i;:::-;;;;-1:-1:-1;;57013:87:0;-1:-1:-1;;;;;57118:16:0;;;57114:83;;-1:-1:-1;;;;;57155:13:0;;;;;;:9;:13;;;;;:26;;57172:9;;57155:13;:26;;57172:9;;57155:26;:::i;:::-;;;;-1:-1:-1;;56805:410:0;;;;:::o;62694:988::-;62960:22;63010:1;62985:22;63002:4;62985:16;:22::i;:::-;:26;;;;:::i;:::-;63022:18;63043:26;;;:17;:26;;;;;;62960:51;;-1:-1:-1;63176:28:0;;;63172:328;;-1:-1:-1;;;;;63243:18:0;;63221:19;63243:18;;;:12;:18;;;;;;;;:34;;;;;;;;;63294:30;;;;;;:44;;;63411:30;;:17;:30;;;;;:43;;;63172:328;-1:-1:-1;63596:26:0;;;;:17;:26;;;;;;;;63589:33;;;-1:-1:-1;;;;;63640:18:0;;;;;:12;:18;;;;;:34;;;;;;;63633:41;62694:988::o;63977:1079::-;64255:10;:17;64230:22;;64255:21;;64275:1;;64255:21;:::i;:::-;64287:18;64308:24;;;:15;:24;;;;;;64681:10;:26;;64230:46;;-1:-1:-1;64308:24:0;;64230:46;;64681:26;;;;;;:::i;:::-;;;;;;;;;64659:48;;64745:11;64720:10;64731;64720:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;64825:28;;;:15;:28;;;;;;;:41;;;64997:24;;;;;64990:31;65032:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;64048:1008;;;63977:1079;:::o;61481:221::-;61566:14;61583:20;61600:2;61583:16;:20::i;:::-;-1:-1:-1;;;;;61614:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;61659:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;61481:221:0:o;14:177:1:-;99:66;92:5;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;820:250::-;905:1;915:113;929:6;926:1;923:13;915:113;;;1005:11;;;999:18;986:11;;;979:39;951:2;944:10;915:113;;;-1:-1:-1;;1062:1:1;1044:16;;1037:27;820:250::o;1075:330::-;1117:3;1155:5;1149:12;1182:6;1177:3;1170:19;1198:76;1267:6;1260:4;1255:3;1251:14;1244:4;1237:5;1233:16;1198:76;:::i;:::-;1319:2;1307:15;-1:-1:-1;;1303:88:1;1294:98;;;;1394:4;1290:109;;1075:330;-1:-1:-1;;1075:330:1:o;1410:220::-;1559:2;1548:9;1541:21;1522:4;1579:45;1620:2;1609:9;1605:18;1597:6;1579:45;:::i;1635:180::-;1694:6;1747:2;1735:9;1726:7;1722:23;1718:32;1715:52;;;1763:1;1760;1753:12;1715:52;-1:-1:-1;1786:23:1;;1635:180;-1:-1:-1;1635:180:1:o;2051:154::-;-1:-1:-1;;;;;2130:5:1;2126:54;2119:5;2116:65;2106:93;;2195:1;2192;2185:12;2210:315;2278:6;2286;2339:2;2327:9;2318:7;2314:23;2310:32;2307:52;;;2355:1;2352;2345:12;2307:52;2394:9;2381:23;2413:31;2438:5;2413:31;:::i;:::-;2463:5;2515:2;2500:18;;;;2487:32;;-1:-1:-1;;;2210:315:1:o;2530:456::-;2607:6;2615;2623;2676:2;2664:9;2655:7;2651:23;2647:32;2644:52;;;2692:1;2689;2682:12;2644:52;2731:9;2718:23;2750:31;2775:5;2750:31;:::i;:::-;2800:5;-1:-1:-1;2857:2:1;2842:18;;2829:32;2870:33;2829:32;2870:33;:::i;:::-;2530:456;;2922:7;;-1:-1:-1;;;2976:2:1;2961:18;;;;2948:32;;2530:456::o;3253:255::-;3320:6;3373:2;3361:9;3352:7;3348:23;3344:32;3341:52;;;3389:1;3386;3379:12;3341:52;3428:9;3415:23;3447:31;3472:5;3447:31;:::i;3765:416::-;3830:6;3838;3891:2;3879:9;3870:7;3866:23;3862:32;3859:52;;;3907:1;3904;3897:12;3859:52;3946:9;3933:23;3965:31;3990:5;3965:31;:::i;:::-;4015:5;-1:-1:-1;4072:2:1;4057:18;;4044:32;4114:15;;4107:23;4095:36;;4085:64;;4145:1;4142;4135:12;4085:64;4168:7;4158:17;;;3765:416;;;;;:::o;4186:184::-;-1:-1:-1;;;4235:1:1;4228:88;4335:4;4332:1;4325:15;4359:4;4356:1;4349:15;4375:691;4440:5;4470:18;4511:2;4503:6;4500:14;4497:40;;;4517:18;;:::i;:::-;4651:2;4645:9;4717:2;4705:15;;-1:-1:-1;;4701:24:1;;;4727:2;4697:33;4693:42;4681:55;;;4751:18;;;4771:22;;;4748:46;4745:72;;;4797:18;;:::i;:::-;4837:10;4833:2;4826:22;4866:6;4857:15;;4896:6;4888;4881:22;4936:3;4927:6;4922:3;4918:16;4915:25;4912:45;;;4953:1;4950;4943:12;4912:45;5003:6;4998:3;4991:4;4983:6;4979:17;4966:44;5058:1;5051:4;5042:6;5034;5030:19;5026:30;5019:41;;;;4375:691;;;;;:::o;5071:451::-;5140:6;5193:2;5181:9;5172:7;5168:23;5164:32;5161:52;;;5209:1;5206;5199:12;5161:52;5249:9;5236:23;5282:18;5274:6;5271:30;5268:50;;;5314:1;5311;5304:12;5268:50;5337:22;;5390:4;5382:13;;5378:27;-1:-1:-1;5368:55:1;;5419:1;5416;5409:12;5368:55;5442:74;5508:7;5503:2;5490:16;5485:2;5481;5477:11;5442:74;:::i;5527:795::-;5622:6;5630;5638;5646;5699:3;5687:9;5678:7;5674:23;5670:33;5667:53;;;5716:1;5713;5706:12;5667:53;5755:9;5742:23;5774:31;5799:5;5774:31;:::i;:::-;5824:5;-1:-1:-1;5881:2:1;5866:18;;5853:32;5894:33;5853:32;5894:33;:::i;:::-;5946:7;-1:-1:-1;6000:2:1;5985:18;;5972:32;;-1:-1:-1;6055:2:1;6040:18;;6027:32;6082:18;6071:30;;6068:50;;;6114:1;6111;6104:12;6068:50;6137:22;;6190:4;6182:13;;6178:27;-1:-1:-1;6168:55:1;;6219:1;6216;6209:12;6168:55;6242:74;6308:7;6303:2;6290:16;6285:2;6281;6277:11;6242:74;:::i;:::-;6232:84;;;5527:795;;;;;;;:::o;6327:388::-;6395:6;6403;6456:2;6444:9;6435:7;6431:23;6427:32;6424:52;;;6472:1;6469;6462:12;6424:52;6511:9;6498:23;6530:31;6555:5;6530:31;:::i;:::-;6580:5;-1:-1:-1;6637:2:1;6622:18;;6609:32;6650:33;6609:32;6650:33;:::i;6720:437::-;6799:1;6795:12;;;;6842;;;6863:61;;6917:4;6909:6;6905:17;6895:27;;6863:61;6970:2;6962:6;6959:14;6939:18;6936:38;6933:218;;-1:-1:-1;;;7004:1:1;6997:88;7108:4;7105:1;7098:15;7136:4;7133:1;7126:15;6933:218;;6720:437;;;:::o;9229:184::-;-1:-1:-1;;;9278:1:1;9271:88;9378:4;9375:1;9368:15;9402:4;9399:1;9392:15;9418:168;9491:9;;;9522;;9539:15;;;9533:22;;9519:37;9509:71;;9560:18;;:::i;9591:125::-;9656:9;;;9677:10;;;9674:36;;;9690:18;;:::i;11244:184::-;-1:-1:-1;;;11293:1:1;11286:88;11393:4;11390:1;11383:15;11417:4;11414:1;11407:15;12322:545;12424:2;12419:3;12416:11;12413:448;;;12460:1;12485:5;12481:2;12474:17;12530:4;12526:2;12516:19;12600:2;12588:10;12584:19;12581:1;12577:27;12571:4;12567:38;12636:4;12624:10;12621:20;12618:47;;;-1:-1:-1;12659:4:1;12618:47;12714:2;12709:3;12705:12;12702:1;12698:20;12692:4;12688:31;12678:41;;12769:82;12787:2;12780:5;12777:13;12769:82;;;12832:17;;;12813:1;12802:13;12769:82;;;12773:3;;;12322:545;;;:::o;13103:1471::-;13229:3;13223:10;13256:18;13248:6;13245:30;13242:56;;;13278:18;;:::i;:::-;13307:97;13397:6;13357:38;13389:4;13383:11;13357:38;:::i;:::-;13351:4;13307:97;:::i;:::-;13459:4;;13523:2;13512:14;;13540:1;13535:782;;;;14361:1;14378:6;14375:89;;;-1:-1:-1;14430:19:1;;;14424:26;14375:89;-1:-1:-1;;13000:1:1;12996:11;;;12992:84;12988:89;12978:100;13084:1;13080:11;;;12975:117;14477:81;;13505:1063;;13535:782;12269:1;12262:14;;;12306:4;12293:18;;-1:-1:-1;;13571:79:1;;;13748:236;13762:7;13759:1;13756:14;13748:236;;;13851:19;;;13845:26;13830:42;;13943:27;;;;13911:1;13899:14;;;;13778:19;;13748:236;;;13752:3;14012:6;14003:7;14000:19;13997:261;;;14073:19;;;14067:26;-1:-1:-1;;14156:1:1;14152:14;;;14168:3;14148:24;14144:97;14140:102;14125:118;14110:134;;13997:261;-1:-1:-1;;;;;14304:1:1;14288:14;;;14284:22;14271:36;;-1:-1:-1;13103:1471:1:o;14579:496::-;14758:3;14796:6;14790:13;14812:66;14871:6;14866:3;14859:4;14851:6;14847:17;14812:66;:::i;:::-;14941:13;;14900:16;;;;14963:70;14941:13;14900:16;15010:4;14998:17;;14963:70;:::i;:::-;15049:20;;14579:496;-1:-1:-1;;;;14579:496:1:o;16248:195::-;16287:3;-1:-1:-1;;16311:5:1;16308:77;16305:103;;16388:18;;:::i;:::-;-1:-1:-1;16435:1:1;16424:13;;16248:195::o;18550:512::-;18744:4;-1:-1:-1;;;;;18854:2:1;18846:6;18842:15;18831:9;18824:34;18906:2;18898:6;18894:15;18889:2;18878:9;18874:18;18867:43;;18946:6;18941:2;18930:9;18926:18;18919:34;18989:3;18984:2;18973:9;18969:18;18962:31;19010:46;19051:3;19040:9;19036:19;19028:6;19010:46;:::i;:::-;19002:54;18550:512;-1:-1:-1;;;;;;18550:512:1:o;19067:249::-;19136:6;19189:2;19177:9;19168:7;19164:23;19160:32;19157:52;;;19205:1;19202;19195:12;19157:52;19237:9;19231:16;19256:30;19280:5;19256:30;:::i;19321:128::-;19388:9;;;19409:11;;;19406:37;;;19423:18;;:::i;19454:184::-;-1:-1:-1;;;19503:1:1;19496:88;19603:4;19600:1;19593:15;19627:4;19624:1;19617:15
Swarm Source
ipfs://d412a18465555c88c1ba621935c3c14baaca9afc264a10245ca67a88290340a3
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,693.21 | 0.08 | $215.46 |
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.