More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 46,977 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 69288709 | 33 days ago | IN | 0 POL | 0.00143762 | ||||
Set Approval For... | 69273423 | 33 days ago | IN | 0 POL | 0.00138288 | ||||
Set Approval For... | 69013503 | 40 days ago | IN | 0 POL | 0.00129811 | ||||
Set Approval For... | 68949872 | 42 days ago | IN | 0 POL | 0.00147553 | ||||
Set Approval For... | 68604972 | 50 days ago | IN | 0 POL | 0.00503928 | ||||
Set Approval For... | 68566987 | 51 days ago | IN | 0 POL | 0.00478628 | ||||
Set Approval For... | 66273413 | 109 days ago | IN | 0 POL | 0.00158736 | ||||
Set Approval For... | 66080048 | 114 days ago | IN | 0 POL | 0.00106592 | ||||
Set Approval For... | 66003370 | 116 days ago | IN | 0 POL | 0.00186216 | ||||
Set Approval For... | 65915707 | 118 days ago | IN | 0 POL | 0.00254419 | ||||
Set Approval For... | 65839450 | 120 days ago | IN | 0 POL | 0.00276615 | ||||
Set Approval For... | 63274777 | 184 days ago | IN | 0 POL | 0.00133462 | ||||
Set Approval For... | 63216538 | 186 days ago | IN | 0 POL | 0.00080084 | ||||
Set Approval For... | 63216533 | 186 days ago | IN | 0 POL | 0.00080084 | ||||
Set Approval For... | 62178183 | 211 days ago | IN | 0 POL | 0.001971 | ||||
Transfer From | 62178110 | 211 days ago | IN | 0 POL | 0.00182398 | ||||
Transfer From | 62178105 | 211 days ago | IN | 0 POL | 0.00203998 | ||||
Transfer From | 62178100 | 211 days ago | IN | 0 POL | 0.00203998 | ||||
Transfer From | 62178085 | 211 days ago | IN | 0 POL | 0.00203998 | ||||
Transfer From | 62178080 | 211 days ago | IN | 0 POL | 0.00203998 | ||||
Transfer From | 62178076 | 211 days ago | IN | 0 POL | 0.00203998 | ||||
Transfer From | 62178070 | 211 days ago | IN | 0 POL | 0.00280948 | ||||
Set Approval For... | 62178063 | 211 days ago | IN | 0 POL | 0.0034635 | ||||
Set Approval For... | 61113078 | 238 days ago | IN | 0 POL | 0.00147553 | ||||
Set Approval For... | 60771116 | 247 days ago | IN | 0 POL | 0.00145343 |
Loading...
Loading
Contract Name:
ManorNFT
Compiler Version
v0.8.2+commit.661d1103
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2023-06-05 */ // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: @openzeppelin/contracts/access/IAccessControl.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: @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/access/AccessControl.sol // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File: @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/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.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // File: contracts/ManorNFT.sol pragma solidity >=0.7.0 <0.9.0; contract ManorNFT is ERC721, AccessControl { using Counters for Counters.Counter; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); Counters.Counter private _tokenIdCounter; constructor() ERC721("ManorNft", "Manor") { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(MINTER_ROLE, msg.sender); } function _baseURI() internal pure override returns (string memory) { return "https://worldoffairy.com/token/"; } function safeMint(address to) public onlyRole(MINTER_ROLE) { uint256 tokenId = _tokenIdCounter.current()+10000; _tokenIdCounter.increment(); _safeMint(to, tokenId); } // The following functions are overrides required by Solidity. function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600881526713585b9bdc93999d60c21b60208083019182528351808501909452600584526426b0b737b960d91b9084015281519192916200005f916000916200015e565b508051620000759060019060208401906200015e565b506200008791506000905033620000b9565b620000b37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000b9565b62000241565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166200015a5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001193390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b8280546200016c9062000204565b90600052602060002090601f016020900481019282620001905760008555620001db565b82601f10620001ab57805160ff1916838001178555620001db565b82800160010185558215620001db579182015b82811115620001db578251825591602001919060010190620001be565b50620001e9929150620001ed565b5090565b5b80821115620001e95760008155600101620001ee565b6002810460018216806200021957607f821691505b602082108114156200023b57634e487b7160e01b600052602260045260246000fd5b50919050565b6119e380620002516000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80636352211e116100b8578063a22cb4651161007c578063a22cb46514610292578063b88d4fde146102a5578063c87b56dd146102b8578063d5391393146102cb578063d547741f146102f2578063e985e9c51461030557610137565b80636352211e1461024957806370a082311461025c57806391d148541461026f57806395d89b4114610282578063a217fddf1461028a57610137565b8063248a9ca3116100ff578063248a9ca3146101cc5780632f2ff15d146101fd57806336568abe1461021057806340d097c31461022357806342842e0e1461023657610137565b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a457806323b872dd146101b9575b600080fd5b61014f61014a36600461167a565b610341565b60405190151581526020015b60405180910390f35b61016c610354565b60405161015b91906117bf565b61018c610187366004611640565b6103e6565b6040516001600160a01b03909116815260200161015b565b6101b76101b2366004611617565b61040d565b005b6101b76101c73660046114cd565b610528565b6101ef6101da366004611640565b60009081526006602052604090206001015490565b60405190815260200161015b565b6101b761020b366004611658565b610559565b6101b761021e366004611658565b61057e565b6101b7610231366004611481565b6105fc565b6101b76102443660046114cd565b610657565b61018c610257366004611640565b610672565b6101ef61026a366004611481565b6106d2565b61014f61027d366004611658565b610758565b61016c610783565b6101ef600081565b6101b76102a03660046115dd565b610792565b6101b76102b3366004611508565b61079d565b61016c6102c6366004611640565b6107d5565b6101ef7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6101b7610300366004611658565b61086e565b61014f61031336600461149b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600061034c82610893565b90505b919050565b60606000805461036390611930565b80601f016020809104026020016040519081016040528092919081815260200182805461038f90611930565b80156103dc5780601f106103b1576101008083540402835291602001916103dc565b820191906000526020600020905b8154815290600101906020018083116103bf57829003601f168201915b5050505050905090565b60006103f1826108b8565b506000908152600460205260409020546001600160a01b031690565b600061041882610672565b9050806001600160a01b0316836001600160a01b0316141561048b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806104a757506104a78133610313565b6105195760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610482565b610523838361091a565b505050565b6105323382610988565b61054e5760405162461bcd60e51b8152600401610482906117d2565b610523838383610a07565b60008281526006602052604090206001015461057481610b6b565b6105238383610b75565b6001600160a01b03811633146105ee5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610482565b6105f88282610bfb565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661062681610b6b565b600061063160075490565b61063d906127106118b6565b905061064d600780546001019055565b6105238382610c62565b6105238383836040518060200160405280600081525061079d565b6000818152600260205260408120546001600160a01b03168061034c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610482565b60006001600160a01b03821661073c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610482565b506001600160a01b031660009081526003602052604090205490565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606001805461036390611930565b6105f8338383610c7c565b6107a73383610988565b6107c35760405162461bcd60e51b8152600401610482906117d2565b6107cf84848484610d4b565b50505050565b60606107e0826108b8565b600061081c60408051808201909152601f81527f68747470733a2f2f776f726c646f6666616972792e636f6d2f746f6b656e2f00602082015290565b9050600081511161083c5760405180602001604052806000815250610867565b8061084684610d7e565b6040516020016108579291906116de565b6040516020818303038152906040525b9392505050565b60008281526006602052604090206001015461088981610b6b565b6105238383610bfb565b60006001600160e01b03198216637965db0b60e01b148061034c575061034c82610e29565b6000818152600260205260409020546001600160a01b03166109175760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610482565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061094f82610672565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061099483610672565b9050806001600160a01b0316846001600160a01b031614806109db57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806109ff5750836001600160a01b03166109f4846103e6565b6001600160a01b0316145b949350505050565b826001600160a01b0316610a1a82610672565b6001600160a01b031614610a405760405162461bcd60e51b815260040161048290611871565b6001600160a01b038216610aa25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610482565b826001600160a01b0316610ab582610672565b6001600160a01b031614610adb5760405162461bcd60e51b815260040161048290611871565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610523565b6109178133610e79565b610b7f8282610758565b6105f85760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610bb73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610c058282610758565b156105f85760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6105f8828260405180602001604052806000815250610ed2565b816001600160a01b0316836001600160a01b03161415610cde5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610482565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610d56848484610a07565b610d6284848484610f05565b6107cf5760405162461bcd60e51b81526004016104829061181f565b60606000610d8b83611012565b600101905060008167ffffffffffffffff811115610db957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610de3576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610e1c57610e21565b610ded565b509392505050565b60006001600160e01b031982166380ac58cd60e01b1480610e5a57506001600160e01b03198216635b5e139f60e01b145b8061034c57506301ffc9a760e01b6001600160e01b031983161461034c565b610e838282610758565b6105f857610e90816110ea565b610e9b8360206110fc565b604051602001610eac92919061170d565b60408051601f198184030181529082905262461bcd60e51b8252610482916004016117bf565b610edc83836112de565b610ee96000848484610f05565b6105235760405162461bcd60e51b81526004016104829061181f565b60006001600160a01b0384163b1561100757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610f49903390899088908890600401611782565b602060405180830381600087803b158015610f6357600080fd5b505af1925050508015610f93575060408051601f3d908101601f19168201909252610f9091810190611696565b60015b610fed573d808015610fc1576040519150601f19603f3d011682016040523d82523d6000602084013e610fc6565b606091505b508051610fe55760405162461bcd60e51b81526004016104829061181f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506109ff565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106110515772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061107d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061109b57662386f26fc10000830492506010015b6305f5e10083106110b3576305f5e100830492506008015b61271083106110c757612710830492506004015b606483106110d9576064830492506002015b600a831061034c5760010192915050565b606061034c6001600160a01b03831660145b6060600061110b8360026118ce565b6111169060026118b6565b67ffffffffffffffff81111561113c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611166576020820181803683370190505b509050600360fc1b8160008151811061118f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106111cc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006111f08460026118ce565b6111fb9060016118b6565b90505b600181111561128f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061123d57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061126157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361128881611919565b90506111fe565b5083156108675760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610482565b6001600160a01b0382166113345760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610482565b6000818152600260205260409020546001600160a01b0316156113995760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610482565b6000818152600260205260409020546001600160a01b0316156113fe5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610482565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46105f8565b80356001600160a01b038116811461034f57600080fd5b600060208284031215611492578081fd5b6108678261146a565b600080604083850312156114ad578081fd5b6114b68361146a565b91506114c46020840161146a565b90509250929050565b6000806000606084860312156114e1578081fd5b6114ea8461146a565b92506114f86020850161146a565b9150604084013590509250925092565b6000806000806080858703121561151d578081fd5b6115268561146a565b93506115346020860161146a565b925060408501359150606085013567ffffffffffffffff80821115611557578283fd5b818701915087601f83011261156a578283fd5b81358181111561157c5761157c611981565b604051601f8201601f19908116603f011681019083821181831017156115a4576115a4611981565b816040528281528a60208487010111156115bc578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156115ef578182fd5b6115f88361146a565b91506020830135801515811461160c578182fd5b809150509250929050565b60008060408385031215611629578182fd5b6116328361146a565b946020939093013593505050565b600060208284031215611651578081fd5b5035919050565b6000806040838503121561166a578182fd5b823591506114c46020840161146a565b60006020828403121561168b578081fd5b813561086781611997565b6000602082840312156116a7578081fd5b815161086781611997565b600081518084526116ca8160208601602086016118ed565b601f01601f19169290920160200192915050565b600083516116f08184602088016118ed565b8351908301906117048183602088016118ed565b01949350505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516117458160178501602088016118ed565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117768160288401602088016118ed565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117b5908301846116b2565b9695505050505050565b60006020825261086760208301846116b2565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b600082198211156118c9576118c961196b565b500190565b60008160001904831182151516156118e8576118e861196b565b500290565b60005b838110156119085781810151838201526020016118f0565b838111156107cf5750506000910152565b6000816119285761192861196b565b506000190190565b60028104600182168061194457607f821691505b6020821081141561196557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461091757600080fdfea2646970667358221220d87f894b61e6841147e181ce593f3bb62d7e1aafd6bf1d26f85224358ec98cb464736f6c63430008020033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c80636352211e116100b8578063a22cb4651161007c578063a22cb46514610292578063b88d4fde146102a5578063c87b56dd146102b8578063d5391393146102cb578063d547741f146102f2578063e985e9c51461030557610137565b80636352211e1461024957806370a082311461025c57806391d148541461026f57806395d89b4114610282578063a217fddf1461028a57610137565b8063248a9ca3116100ff578063248a9ca3146101cc5780632f2ff15d146101fd57806336568abe1461021057806340d097c31461022357806342842e0e1461023657610137565b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a457806323b872dd146101b9575b600080fd5b61014f61014a36600461167a565b610341565b60405190151581526020015b60405180910390f35b61016c610354565b60405161015b91906117bf565b61018c610187366004611640565b6103e6565b6040516001600160a01b03909116815260200161015b565b6101b76101b2366004611617565b61040d565b005b6101b76101c73660046114cd565b610528565b6101ef6101da366004611640565b60009081526006602052604090206001015490565b60405190815260200161015b565b6101b761020b366004611658565b610559565b6101b761021e366004611658565b61057e565b6101b7610231366004611481565b6105fc565b6101b76102443660046114cd565b610657565b61018c610257366004611640565b610672565b6101ef61026a366004611481565b6106d2565b61014f61027d366004611658565b610758565b61016c610783565b6101ef600081565b6101b76102a03660046115dd565b610792565b6101b76102b3366004611508565b61079d565b61016c6102c6366004611640565b6107d5565b6101ef7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6101b7610300366004611658565b61086e565b61014f61031336600461149b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600061034c82610893565b90505b919050565b60606000805461036390611930565b80601f016020809104026020016040519081016040528092919081815260200182805461038f90611930565b80156103dc5780601f106103b1576101008083540402835291602001916103dc565b820191906000526020600020905b8154815290600101906020018083116103bf57829003601f168201915b5050505050905090565b60006103f1826108b8565b506000908152600460205260409020546001600160a01b031690565b600061041882610672565b9050806001600160a01b0316836001600160a01b0316141561048b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806104a757506104a78133610313565b6105195760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610482565b610523838361091a565b505050565b6105323382610988565b61054e5760405162461bcd60e51b8152600401610482906117d2565b610523838383610a07565b60008281526006602052604090206001015461057481610b6b565b6105238383610b75565b6001600160a01b03811633146105ee5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610482565b6105f88282610bfb565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661062681610b6b565b600061063160075490565b61063d906127106118b6565b905061064d600780546001019055565b6105238382610c62565b6105238383836040518060200160405280600081525061079d565b6000818152600260205260408120546001600160a01b03168061034c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610482565b60006001600160a01b03821661073c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610482565b506001600160a01b031660009081526003602052604090205490565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606001805461036390611930565b6105f8338383610c7c565b6107a73383610988565b6107c35760405162461bcd60e51b8152600401610482906117d2565b6107cf84848484610d4b565b50505050565b60606107e0826108b8565b600061081c60408051808201909152601f81527f68747470733a2f2f776f726c646f6666616972792e636f6d2f746f6b656e2f00602082015290565b9050600081511161083c5760405180602001604052806000815250610867565b8061084684610d7e565b6040516020016108579291906116de565b6040516020818303038152906040525b9392505050565b60008281526006602052604090206001015461088981610b6b565b6105238383610bfb565b60006001600160e01b03198216637965db0b60e01b148061034c575061034c82610e29565b6000818152600260205260409020546001600160a01b03166109175760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610482565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061094f82610672565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061099483610672565b9050806001600160a01b0316846001600160a01b031614806109db57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806109ff5750836001600160a01b03166109f4846103e6565b6001600160a01b0316145b949350505050565b826001600160a01b0316610a1a82610672565b6001600160a01b031614610a405760405162461bcd60e51b815260040161048290611871565b6001600160a01b038216610aa25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610482565b826001600160a01b0316610ab582610672565b6001600160a01b031614610adb5760405162461bcd60e51b815260040161048290611871565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610523565b6109178133610e79565b610b7f8282610758565b6105f85760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610bb73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610c058282610758565b156105f85760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6105f8828260405180602001604052806000815250610ed2565b816001600160a01b0316836001600160a01b03161415610cde5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610482565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610d56848484610a07565b610d6284848484610f05565b6107cf5760405162461bcd60e51b81526004016104829061181f565b60606000610d8b83611012565b600101905060008167ffffffffffffffff811115610db957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610de3576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610e1c57610e21565b610ded565b509392505050565b60006001600160e01b031982166380ac58cd60e01b1480610e5a57506001600160e01b03198216635b5e139f60e01b145b8061034c57506301ffc9a760e01b6001600160e01b031983161461034c565b610e838282610758565b6105f857610e90816110ea565b610e9b8360206110fc565b604051602001610eac92919061170d565b60408051601f198184030181529082905262461bcd60e51b8252610482916004016117bf565b610edc83836112de565b610ee96000848484610f05565b6105235760405162461bcd60e51b81526004016104829061181f565b60006001600160a01b0384163b1561100757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610f49903390899088908890600401611782565b602060405180830381600087803b158015610f6357600080fd5b505af1925050508015610f93575060408051601f3d908101601f19168201909252610f9091810190611696565b60015b610fed573d808015610fc1576040519150601f19603f3d011682016040523d82523d6000602084013e610fc6565b606091505b508051610fe55760405162461bcd60e51b81526004016104829061181f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506109ff565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106110515772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061107d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061109b57662386f26fc10000830492506010015b6305f5e10083106110b3576305f5e100830492506008015b61271083106110c757612710830492506004015b606483106110d9576064830492506002015b600a831061034c5760010192915050565b606061034c6001600160a01b03831660145b6060600061110b8360026118ce565b6111169060026118b6565b67ffffffffffffffff81111561113c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611166576020820181803683370190505b509050600360fc1b8160008151811061118f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106111cc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006111f08460026118ce565b6111fb9060016118b6565b90505b600181111561128f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061123d57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061126157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361128881611919565b90506111fe565b5083156108675760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610482565b6001600160a01b0382166113345760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610482565b6000818152600260205260409020546001600160a01b0316156113995760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610482565b6000818152600260205260409020546001600160a01b0316156113fe5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610482565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46105f8565b80356001600160a01b038116811461034f57600080fd5b600060208284031215611492578081fd5b6108678261146a565b600080604083850312156114ad578081fd5b6114b68361146a565b91506114c46020840161146a565b90509250929050565b6000806000606084860312156114e1578081fd5b6114ea8461146a565b92506114f86020850161146a565b9150604084013590509250925092565b6000806000806080858703121561151d578081fd5b6115268561146a565b93506115346020860161146a565b925060408501359150606085013567ffffffffffffffff80821115611557578283fd5b818701915087601f83011261156a578283fd5b81358181111561157c5761157c611981565b604051601f8201601f19908116603f011681019083821181831017156115a4576115a4611981565b816040528281528a60208487010111156115bc578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156115ef578182fd5b6115f88361146a565b91506020830135801515811461160c578182fd5b809150509250929050565b60008060408385031215611629578182fd5b6116328361146a565b946020939093013593505050565b600060208284031215611651578081fd5b5035919050565b6000806040838503121561166a578182fd5b823591506114c46020840161146a565b60006020828403121561168b578081fd5b813561086781611997565b6000602082840312156116a7578081fd5b815161086781611997565b600081518084526116ca8160208601602086016118ed565b601f01601f19169290920160200192915050565b600083516116f08184602088016118ed565b8351908301906117048183602088016118ed565b01949350505050565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516117458160178501602088016118ed565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516117768160288401602088016118ed565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117b5908301846116b2565b9695505050505050565b60006020825261086760208301846116b2565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b600082198211156118c9576118c961196b565b500190565b60008160001904831182151516156118e8576118e861196b565b500290565b60005b838110156119085781810151838201526020016118f0565b838111156107cf5750506000910152565b6000816119285761192861196b565b506000190190565b60028104600182168061194457607f821691505b6020821081141561196557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461091757600080fdfea2646970667358221220d87f894b61e6841147e181ce593f3bb62d7e1aafd6bf1d26f85224358ec98cb464736f6c63430008020033
Deployed Bytecode Sourcemap
64871:975:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65650:193;;;;;;:::i;:::-;;:::i;:::-;;;6417:14:1;;6410:22;6392:41;;6380:2;6365:18;65650:193:0;;;;;;;;49524:100;;;:::i;:::-;;;;;;;:::i;51036:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;5715:32:1;;;5697:51;;5685:2;5670:18;51036:171:0;5652:102:1;50554:416:0;;;;;;:::i;:::-;;:::i;:::-;;51736:335;;;;;;:::i;:::-;;:::i;37426:131::-;;;;;;:::i;:::-;37500:7;37527:12;;;:6;:12;;;;;:22;;;;37426:131;;;;6590:25:1;;;6578:2;6563:18;37426:131:0;6545:76:1;37867:147:0;;;;;;:::i;:::-;;:::i;39011:218::-;;;;;;:::i;:::-;;:::i;65374:198::-;;;;;;:::i;:::-;;:::i;52142:185::-;;;;;;:::i;:::-;;:::i;49234:223::-;;;;;;:::i;:::-;;:::i;48965:207::-;;;;;;:::i;:::-;;:::i;35899:147::-;;;;;;:::i;:::-;;:::i;49693:104::-;;;:::i;35004:49::-;;35049:4;35004:49;;51279:155;;;;;;:::i;:::-;;:::i;52398:322::-;;;;;;:::i;:::-;;:::i;49868:281::-;;;;;;:::i;:::-;;:::i;64965:62::-;;65003:24;64965:62;;38307:149;;;;;;:::i;:::-;;:::i;51505:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;51626:25:0;;;51602:4;51626:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;51505:164;65650:193;65770:4;65799:36;65823:11;65799:23;:36::i;:::-;65792:43;;65650:193;;;;:::o;49524:100::-;49578:13;49611:5;49604:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49524:100;:::o;51036:171::-;51112:7;51132:23;51147:7;51132:14;:23::i;:::-;-1:-1:-1;51175:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;51175:24:0;;51036:171::o;50554:416::-;50635:13;50651:23;50666:7;50651:14;:23::i;:::-;50635:39;;50699:5;-1:-1:-1;;;;;50693:11:0;:2;-1:-1:-1;;;;;50693:11:0;;;50685:57;;;;-1:-1:-1;;;50685:57:0;;10892:2:1;50685:57:0;;;10874:21:1;10931:2;10911:18;;;10904:30;10970:34;10950:18;;;10943:62;-1:-1:-1;;;11021:18:1;;;11014:31;11062:19;;50685:57:0;;;;;;;;;20464:10;-1:-1:-1;;;;;50777:21:0;;;;:62;;-1:-1:-1;50802:37:0;50819:5;20464:10;50826:12;20384:98;50802:37;50755:173;;;;-1:-1:-1;;;50755:173:0;;11294:2:1;50755:173:0;;;11276:21:1;11333:2;11313:18;;;11306:30;11372:34;11352:18;;;11345:62;11443:31;11423:18;;;11416:59;11492:19;;50755:173:0;11266:251:1;50755:173:0;50941:21;50950:2;50954:7;50941:8;:21::i;:::-;50554:416;;;:::o;51736:335::-;51931:41;20464:10;51964:7;51931:18;:41::i;:::-;51923:99;;;;-1:-1:-1;;;51923:99:0;;;;;;;:::i;:::-;52035:28;52045:4;52051:2;52055:7;52035:9;:28::i;37867:147::-;37500:7;37527:12;;;:6;:12;;;;;:22;;;35495:16;35506:4;35495:10;:16::i;:::-;37981:25:::1;37992:4;37998:7;37981:10;:25::i;39011:218::-:0;-1:-1:-1;;;;;39107:23:0;;20464:10;39107:23;39099:83;;;;-1:-1:-1;;;39099:83:0;;11724:2:1;39099:83:0;;;11706:21:1;11763:2;11743:18;;;11736:30;11802:34;11782:18;;;11775:62;-1:-1:-1;;;11853:18:1;;;11846:45;11908:19;;39099:83:0;11696:237:1;39099:83:0;39195:26;39207:4;39213:7;39195:11;:26::i;:::-;39011:218;;:::o;65374:198::-;65003:24;35495:16;35506:4;35495:10;:16::i;:::-;65444:15:::1;65462:25;:15;964:14:::0;;872:114;65462:25:::1;:31;::::0;65488:5:::1;65462:31;:::i;:::-;65444:49;;65504:27;:15;1083:19:::0;;1101:1;1083:19;;;994:127;65504:27:::1;65542:22;65552:2;65556:7;65542:9;:22::i;52142:185::-:0;52280:39;52297:4;52303:2;52307:7;52280:39;;;;;;;;;;;;:16;:39::i;49234:223::-;49306:7;54121:16;;;:7;:16;;;;;;-1:-1:-1;;;;;54121:16:0;;49370:56;;;;-1:-1:-1;;;49370:56:0;;10539:2:1;49370:56:0;;;10521:21:1;10578:2;10558:18;;;10551:30;-1:-1:-1;;;10597:18:1;;;10590:54;10661:18;;49370:56:0;10511:174:1;48965:207:0;49037:7;-1:-1:-1;;;;;49065:19:0;;49057:73;;;;-1:-1:-1;;;49057:73:0;;9768:2:1;49057:73:0;;;9750:21:1;9807:2;9787:18;;;9780:30;9846:34;9826:18;;;9819:62;-1:-1:-1;;;9897:18:1;;;9890:39;9946:19;;49057:73:0;9740:231:1;49057:73:0;-1:-1:-1;;;;;;49148:16:0;;;;;:9;:16;;;;;;;48965:207::o;35899:147::-;35985:4;36009:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;36009:29:0;;;;;;;;;;;;;;;35899:147::o;49693:104::-;49749:13;49782:7;49775:14;;;;;:::i;51279:155::-;51374:52;20464:10;51407:8;51417;51374:18;:52::i;52398:322::-;52572:41;20464:10;52605:7;52572:18;:41::i;:::-;52564:99;;;;-1:-1:-1;;;52564:99:0;;;;;;;:::i;:::-;52674:38;52688:4;52694:2;52698:7;52707:4;52674:13;:38::i;:::-;52398:322;;;;:::o;49868:281::-;49941:13;49967:23;49982:7;49967:14;:23::i;:::-;50003:21;50027:10;65318:40;;;;;;;;;;;;;;;;;65240:126;;50027:10;50003:34;;50079:1;50061:7;50055:21;:25;:86;;;;;;;;;;;;;;;;;50107:7;50116:18;:7;:16;:18::i;:::-;50090:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;50055:86;50048:93;49868:281;-1:-1:-1;;;49868:281:0:o;38307:149::-;37500:7;37527:12;;;:6;:12;;;;;:22;;;35495:16;35506:4;35495:10;:16::i;:::-;38422:26:::1;38434:4;38440:7;38422:11;:26::i;35603:204::-:0;35688:4;-1:-1:-1;;;;;;35712:47:0;;-1:-1:-1;;;35712:47:0;;:87;;;35763:36;35787:11;35763:23;:36::i;60855:135::-;54523:4;54121:16;;;:7;:16;;;;;;-1:-1:-1;;;;;54121:16:0;60929:53;;;;-1:-1:-1;;;60929:53:0;;10539:2:1;60929:53:0;;;10521:21:1;10578:2;10558:18;;;10551:30;-1:-1:-1;;;10597:18:1;;;10590:54;10661:18;;60929:53:0;10511:174:1;60929:53:0;60855:135;:::o;60134:174::-;60209:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;60209:29:0;-1:-1:-1;;;;;60209:29:0;;;;;;;;:24;;60263:23;60209:24;60263:14;:23::i;:::-;-1:-1:-1;;;;;60254:46:0;;;;;;;;;;;60134:174;;:::o;54753:264::-;54846:4;54863:13;54879:23;54894:7;54879:14;:23::i;:::-;54863:39;;54932:5;-1:-1:-1;;;;;54921:16:0;:7;-1:-1:-1;;;;;54921:16:0;;:52;;;-1:-1:-1;;;;;;51626:25:0;;;51602:4;51626:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;54941:32;54921:87;;;;55001:7;-1:-1:-1;;;;;54977:31:0;:20;54989:7;54977:11;:20::i;:::-;-1:-1:-1;;;;;54977:31:0;;54921:87;54913:96;54753:264;-1:-1:-1;;;;54753:264:0:o;58752:1263::-;58911:4;-1:-1:-1;;;;;58884:31:0;:23;58899:7;58884:14;:23::i;:::-;-1:-1:-1;;;;;58884:31:0;;58876:81;;;;-1:-1:-1;;;58876:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;58976:16:0;;58968:65;;;;-1:-1:-1;;;58968:65:0;;9009:2:1;58968:65:0;;;8991:21:1;9048:2;9028:18;;;9021:30;9087:34;9067:18;;;9060:62;-1:-1:-1;;;9138:18:1;;;9131:34;9182:19;;58968:65:0;8981:226:1;58968:65:0;59218:4;-1:-1:-1;;;;;59191:31:0;:23;59206:7;59191:14;:23::i;:::-;-1:-1:-1;;;;;59191:31:0;;59183:81;;;;-1:-1:-1;;;59183:81:0;;;;;;;:::i;:::-;59336:24;;;;:15;:24;;;;;;;;59329:31;;-1:-1:-1;;;;;;59329:31:0;;;;;;-1:-1:-1;;;;;59812:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;59812:20:0;;;59847:13;;;;;;;;;:18;;59329:31;59847:18;;;59887:16;;;:7;:16;;;;;;:21;;;;;;;;;;59926:27;;59352:7;;59926:27;;;59966:41;52398:322;36350:105;36417:30;36428:4;20464:10;36417;:30::i;40608:238::-;40692:22;40700:4;40706:7;40692;:22::i;:::-;40687:152;;40731:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;40731:29:0;;;;;;;;;:36;;-1:-1:-1;;40731:36:0;40763:4;40731:36;;;40814:12;20464:10;20384:98;;40814:12;-1:-1:-1;;;;;40787:40:0;40805:7;-1:-1:-1;;;;;40787:40:0;40799:4;40787:40;;;;;;;;;;40608:238;;:::o;41026:239::-;41110:22;41118:4;41124:7;41110;:22::i;:::-;41106:152;;;41181:5;41149:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;41149:29:0;;;;;;;;;;:37;;-1:-1:-1;;41149:37:0;;;41206:40;20464:10;;41149:12;;41206:40;;41181:5;41206:40;41026:239;;:::o;55359:110::-;55435:26;55445:2;55449:7;55435:26;;;;;;;;;;;;:9;:26::i;60451:315::-;60606:8;-1:-1:-1;;;;;60597:17:0;:5;-1:-1:-1;;;;;60597:17:0;;;60589:55;;;;-1:-1:-1;;;60589:55:0;;9414:2:1;60589:55:0;;;9396:21:1;9453:2;9433:18;;;9426:30;9492:27;9472:18;;;9465:55;9537:18;;60589:55:0;9386:175:1;60589:55:0;-1:-1:-1;;;;;60655:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;60655:46:0;;;;;;;;;;60717:41;;6392::1;;;60717::0;;6365:18:1;60717:41:0;;;;;;;60451:315;;;:::o;53601:313::-;53757:28;53767:4;53773:2;53777:7;53757:9;:28::i;:::-;53804:47;53827:4;53833:2;53837:7;53846:4;53804:22;:47::i;:::-;53796:110;;;;-1:-1:-1;;;53796:110:0;;;;;;;:::i;17811:716::-;17867:13;17918:14;17935:17;17946:5;17935:10;:17::i;:::-;17955:1;17935:21;17918:38;;17971:20;18005:6;17994:18;;;;;;-1:-1:-1;;;17994:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17994:18:0;-1:-1:-1;17971:41:0;-1:-1:-1;18136:28:0;;;18152:2;18136:28;18193:288;-1:-1:-1;;18225:5:0;-1:-1:-1;;;18362:2:0;18351:14;;18346:30;18225:5;18333:44;18423:2;18414:11;;;-1:-1:-1;18448:10:0;18444:21;;18460:5;;18444:21;18193:288;;;-1:-1:-1;18502:6:0;17811:716;-1:-1:-1;;;17811:716:0:o;48596:305::-;48698:4;-1:-1:-1;;;;;;48735:40:0;;-1:-1:-1;;;48735:40:0;;:105;;-1:-1:-1;;;;;;;48792:48:0;;-1:-1:-1;;;48792:48:0;48735:105;:158;;;-1:-1:-1;;;;;;;;;;32971:40:0;;;48857:36;32862:157;36745:492;36834:22;36842:4;36848:7;36834;:22::i;:::-;36829:401;;37022:28;37042:7;37022:19;:28::i;:::-;37123:38;37151:4;37158:2;37123:19;:38::i;:::-;36927:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;36927:257:0;;;;;;;;;;-1:-1:-1;;;36873:345:0;;;;;;;:::i;55696:319::-;55825:18;55831:2;55835:7;55825:5;:18::i;:::-;55876:53;55907:1;55911:2;55915:7;55924:4;55876:22;:53::i;:::-;55854:153;;;;-1:-1:-1;;;55854:153:0;;;;;;;:::i;61554:853::-;61708:4;-1:-1:-1;;;;;61729:13:0;;22126:19;:23;61725:675;;61765:71;;-1:-1:-1;;;61765:71:0;;-1:-1:-1;;;;;61765:36:0;;;;;:71;;20464:10;;61816:4;;61822:7;;61831:4;;61765:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61765:71:0;;;;;;;;-1:-1:-1;;61765:71:0;;;;;;;;;;;;:::i;:::-;;;61761:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62006:13:0;;62002:328;;62049:60;;-1:-1:-1;;;62049:60:0;;;;;;;:::i;62002:328::-;62280:6;62274:13;62265:6;62261:2;62257:15;62250:38;61761:584;-1:-1:-1;;;;;;61887:51:0;-1:-1:-1;;;61887:51:0;;-1:-1:-1;61880:58:0;;61725:675;-1:-1:-1;62384:4:0;61554:853;;;;;;:::o;14677:922::-;14730:7;;-1:-1:-1;;;14808:15:0;;14804:102;;-1:-1:-1;;;14844:15:0;;;-1:-1:-1;14888:2:0;14878:12;14804:102;14933:6;14924:5;:15;14920:102;;14969:6;14960:15;;;-1:-1:-1;15004:2:0;14994:12;14920:102;15049:6;15040:5;:15;15036:102;;15085:6;15076:15;;;-1:-1:-1;15120:2:0;15110:12;15036:102;15165:5;15156;:14;15152:99;;15200:5;15191:14;;;-1:-1:-1;15234:1:0;15224:11;15152:99;15278:5;15269;:14;15265:99;;15313:5;15304:14;;;-1:-1:-1;15347:1:0;15337:11;15265:99;15391:5;15382;:14;15378:99;;15426:5;15417:14;;;-1:-1:-1;15460:1:0;15450:11;15378:99;15504:5;15495;:14;15491:66;;15540:1;15530:11;;14677:922;-1:-1:-1;;14677:922:0:o;19547:151::-;19605:13;19638:52;-1:-1:-1;;;;;19650:22:0;;17702:2;18943:447;19018:13;19044:19;19076:10;19080:6;19076:1;:10;:::i;:::-;:14;;19089:1;19076:14;:::i;:::-;19066:25;;;;;;-1:-1:-1;;;19066:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19066:25:0;;19044:47;;-1:-1:-1;;;19102:6:0;19109:1;19102:9;;;;;;-1:-1:-1;;;19102:9:0;;;;;;;;;;;;:15;-1:-1:-1;;;;;19102:15:0;;;;;;;;;-1:-1:-1;;;19128:6:0;19135:1;19128:9;;;;;;-1:-1:-1;;;19128:9:0;;;;;;;;;;;;:15;-1:-1:-1;;;;;19128:15:0;;;;;;;;-1:-1:-1;19159:9:0;19171:10;19175:6;19171:1;:10;:::i;:::-;:14;;19184:1;19171:14;:::i;:::-;19159:26;;19154:131;19191:1;19187;:5;19154:131;;;-1:-1:-1;;;19235:5:0;19243:3;19235:11;19226:21;;;;;-1:-1:-1;;;19226:21:0;;;;;;;;;;;;19214:6;19221:1;19214:9;;;;;;-1:-1:-1;;;19214:9:0;;;;;;;;;;;;:33;-1:-1:-1;;;;;19214:33:0;;;;;;;;-1:-1:-1;19272:1:0;19262:11;;;;;19194:3;;;:::i;:::-;;;19154:131;;;-1:-1:-1;19303:10:0;;19295:55;;;;-1:-1:-1;;;19295:55:0;;7052:2:1;19295:55:0;;;7034:21:1;;;7071:18;;;7064:30;7130:34;7110:18;;;7103:62;7182:18;;19295:55:0;7024:182:1;56351:942:0;-1:-1:-1;;;;;56431:16:0;;56423:61;;;;-1:-1:-1;;;56423:61:0;;10178:2:1;56423:61:0;;;10160:21:1;;;10197:18;;;10190:30;10256:34;10236:18;;;10229:62;10308:18;;56423:61:0;10150:182:1;56423:61:0;54523:4;54121:16;;;:7;:16;;;;;;-1:-1:-1;;;;;54121:16:0;54547:31;56495:58;;;;-1:-1:-1;;;56495:58:0;;8652:2:1;56495:58:0;;;8634:21:1;8691:2;8671:18;;;8664:30;8730;8710:18;;;8703:58;8778:18;;56495:58:0;8624:178:1;56495:58:0;54523:4;54121:16;;;:7;:16;;;;;;-1:-1:-1;;;;;54121:16:0;54547:31;56704:58;;;;-1:-1:-1;;;56704:58:0;;8652:2:1;56704:58:0;;;8634:21:1;8691:2;8671:18;;;8664:30;8730;8710:18;;;8703:58;8778:18;;56704:58:0;8624:178:1;56704:58:0;-1:-1:-1;;;;;57111:13:0;;;;;;:9;:13;;;;;;;;:18;;57128:1;57111:18;;;57153:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;57153:21:0;;;;;57192:33;57161:7;;57111:13;;57192:33;;57111:13;;57192:33;57238:47;52398:322;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;192:196;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;393:270::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;;;;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:1183::-;;;;;1183:3;1171:9;1162:7;1158:23;1154:33;1151:2;;;1205:6;1197;1190:22;1151:2;1233:29;1252:9;1233:29;:::i;:::-;1223:39;;1281:38;1315:2;1304:9;1300:18;1281:38;:::i;:::-;1271:48;;1366:2;1355:9;1351:18;1338:32;1328:42;;1421:2;1410:9;1406:18;1393:32;1444:18;1485:2;1477:6;1474:14;1471:2;;;1506:6;1498;1491:22;1471:2;1549:6;1538:9;1534:22;1524:32;;1594:7;1587:4;1583:2;1579:13;1575:27;1565:2;;1621:6;1613;1606:22;1565:2;1662;1649:16;1684:2;1680;1677:10;1674:2;;;1690:18;;:::i;:::-;1765:2;1759:9;1733:2;1819:13;;-1:-1:-1;;1815:22:1;;;1839:2;1811:31;1807:40;1795:53;;;1863:18;;;1883:22;;;1860:46;1857:2;;;1909:18;;:::i;:::-;1949:10;1945:2;1938:22;1984:2;1976:6;1969:18;2024:7;2019:2;2014;2010;2006:11;2002:20;1999:33;1996:2;;;2050:6;2042;2035:22;1996:2;2111;2106;2102;2098:11;2093:2;2085:6;2081:15;2068:46;2134:15;;;2151:2;2130:24;2123:40;;;;1141:1053;;;;-1:-1:-1;1141:1053:1;;-1:-1:-1;;;;1141:1053:1:o;2199:367::-;;;2325:2;2313:9;2304:7;2300:23;2296:32;2293:2;;;2346:6;2338;2331:22;2293:2;2374:29;2393:9;2374:29;:::i;:::-;2364:39;;2453:2;2442:9;2438:18;2425:32;2500:5;2493:13;2486:21;2479:5;2476:32;2466:2;;2527:6;2519;2512:22;2466:2;2555:5;2545:15;;;2283:283;;;;;:::o;2571:264::-;;;2700:2;2688:9;2679:7;2675:23;2671:32;2668:2;;;2721:6;2713;2706:22;2668:2;2749:29;2768:9;2749:29;:::i;:::-;2739:39;2825:2;2810:18;;;;2797:32;;-1:-1:-1;;;2658:177:1:o;2840:190::-;;2952:2;2940:9;2931:7;2927:23;2923:32;2920:2;;;2973:6;2965;2958:22;2920:2;-1:-1:-1;3001:23:1;;2910:120;-1:-1:-1;2910:120:1:o;3035:264::-;;;3164:2;3152:9;3143:7;3139:23;3135:32;3132:2;;;3185:6;3177;3170:22;3132:2;3226:9;3213:23;3203:33;;3255:38;3289:2;3278:9;3274:18;3255:38;:::i;3304:255::-;;3415:2;3403:9;3394:7;3390:23;3386:32;3383:2;;;3436:6;3428;3421:22;3383:2;3480:9;3467:23;3499:30;3523:5;3499:30;:::i;3564:259::-;;3686:2;3674:9;3665:7;3661:23;3657:32;3654:2;;;3707:6;3699;3692:22;3654:2;3744:9;3738:16;3763:30;3787:5;3763:30;:::i;4023:257::-;;4102:5;4096:12;4129:6;4124:3;4117:19;4145:63;4201:6;4194:4;4189:3;4185:14;4178:4;4171:5;4167:16;4145:63;:::i;:::-;4262:2;4241:15;-1:-1:-1;;4237:29:1;4228:39;;;;4269:4;4224:50;;4072:208;-1:-1:-1;;4072:208:1:o;4285:470::-;;4502:6;4496:13;4518:53;4564:6;4559:3;4552:4;4544:6;4540:17;4518:53;:::i;:::-;4634:13;;4593:16;;;;4656:57;4634:13;4593:16;4690:4;4678:17;;4656:57;:::i;:::-;4729:20;;4472:283;-1:-1:-1;;;;4472:283:1:o;4760:786::-;;5171:25;5166:3;5159:38;5226:6;5220:13;5242:62;5297:6;5292:2;5287:3;5283:12;5276:4;5268:6;5264:17;5242:62;:::i;:::-;-1:-1:-1;;;5363:2:1;5323:16;;;5355:11;;;5348:40;5413:13;;5435:63;5413:13;5484:2;5476:11;;5469:4;5457:17;;5435:63;:::i;:::-;5518:17;5537:2;5514:26;;5149:397;-1:-1:-1;;;;5149:397:1:o;5759:488::-;-1:-1:-1;;;;;6028:15:1;;;6010:34;;6080:15;;6075:2;6060:18;;6053:43;6127:2;6112:18;;6105:34;;;6175:3;6170:2;6155:18;;6148:31;;;5759:488;;6196:45;;6221:19;;6213:6;6196:45;:::i;:::-;6188:53;5962:285;-1:-1:-1;;;;;;5962:285:1:o;6626:219::-;;6775:2;6764:9;6757:21;6795:44;6835:2;6824:9;6820:18;6812:6;6795:44;:::i;7211:409::-;7413:2;7395:21;;;7452:2;7432:18;;;7425:30;7491:34;7486:2;7471:18;;7464:62;-1:-1:-1;;;7557:2:1;7542:18;;7535:43;7610:3;7595:19;;7385:235::o;7625:414::-;7827:2;7809:21;;;7866:2;7846:18;;;7839:30;7905:34;7900:2;7885:18;;7878:62;-1:-1:-1;;;7971:2:1;7956:18;;7949:48;8029:3;8014:19;;7799:240::o;8044:401::-;8246:2;8228:21;;;8285:2;8265:18;;;8258:30;8324:34;8319:2;8304:18;;8297:62;-1:-1:-1;;;8390:2:1;8375:18;;8368:35;8435:3;8420:19;;8218:227::o;12120:128::-;;12191:1;12187:6;12184:1;12181:13;12178:2;;;12197:18;;:::i;:::-;-1:-1:-1;12233:9:1;;12168:80::o;12253:168::-;;12359:1;12355;12351:6;12347:14;12344:1;12341:21;12336:1;12329:9;12322:17;12318:45;12315:2;;;12366:18;;:::i;:::-;-1:-1:-1;12406:9:1;;12305:116::o;12426:258::-;12498:1;12508:113;12522:6;12519:1;12516:13;12508:113;;;12598:11;;;12592:18;12579:11;;;12572:39;12544:2;12537:10;12508:113;;;12639:6;12636:1;12633:13;12630:2;;;-1:-1:-1;;12674:1:1;12656:16;;12649:27;12479:205::o;12689:136::-;;12756:5;12746:2;;12765:18;;:::i;:::-;-1:-1:-1;;;12801:18:1;;12736:89::o;12830:380::-;12915:1;12905:12;;12962:1;12952:12;;;12973:2;;13027:4;13019:6;13015:17;13005:27;;12973:2;13080;13072:6;13069:14;13049:18;13046:38;13043:2;;;13126:10;13121:3;13117:20;13114:1;13107:31;13161:4;13158:1;13151:15;13189:4;13186:1;13179:15;13043:2;;12885:325;;;:::o;13215:127::-;13276:10;13271:3;13267:20;13264:1;13257:31;13307:4;13304:1;13297:15;13331:4;13328:1;13321:15;13347:127;13408:10;13403:3;13399:20;13396:1;13389:31;13439:4;13436:1;13429:15;13463:4;13460:1;13453:15;13479:131;-1:-1:-1;;;;;;13553:32:1;;13543:43;;13533:2;;13600:1;13597;13590:12
Swarm Source
ipfs://d87f894b61e6841147e181ce593f3bb62d7e1aafd6bf1d26f85224358ec98cb4
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.