ERC-721
Overview
Max Total Supply
6,901 SpacePiPlanet
Holders
224
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SpacePiPlanetLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SpacePiPlanet
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-30 */ // Sources flattened with hardhat v2.12.7 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/security/[email protected] // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface 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/token/ERC721/[email protected] // 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/[email protected] // 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/[email protected] // 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/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library 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/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract 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/utils/math/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library 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/[email protected] // 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/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library 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 contracts/nfts/series/AutoIncrement.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract SpacePiPlanet is Ownable, ERC721Enumerable, Pausable { using Counters for Counters.Counter; using Strings for uint256; string private baseTokenURI; uint256 TOTAL_TOKEN = 10000; Counters.Counter private _tokenIdTracker; mapping(address => bool) public miners; mapping(address => uint256) public currentIndex; constructor( string memory _name, string memory _symbol, string memory _baseTokenURI ) ERC721(_name, _symbol) { baseTokenURI = _baseTokenURI; } function setBaseURI(string memory _uri) external onlyOwner { baseTokenURI = _uri; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : ""; } modifier tokenSupplyLimit(uint256 i) { require(totalSupply() + i <= TOTAL_TOKEN, "Token supply exceeded"); _; } modifier onlyMiners() { require(miners[msg.sender] || msg.sender == owner(), "Permission denied"); _; } function addMiner(address user) external onlyOwner { require(user != address(0), "Is zero address"); miners[user] = true; } function removeMinder(address user) external onlyOwner{ require(user != address(0), "Is zero address"); miners[user] = false; } function mint(address to) public onlyMiners whenNotPaused tokenSupplyLimit(1) { // We cannot just use balanceOf to create the new tokenId because tokens // can be burned (destroyed), so we need a separate counter. _tokenIdTracker.increment(); uint256 tokenId = _tokenIdTracker.current(); _mint(to, tokenId); } function batchMint(address to, uint256 quantity) public onlyMiners whenNotPaused tokenSupplyLimit(quantity) { for (uint256 i = 0; i < quantity; i++) { mint(to); } } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 ) internal virtual override(ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId,1); require(!paused(), "ERC721: token transfer while paused"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","type":"string"}],"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"addMiner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"currentIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"miners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"removeMinder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"string","name":"_uri","type":"string"}],"name":"setBaseURI","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052612710600d553480156200001757600080fd5b5060405162002b3038038062002b308339810160408190526200003a916200019e565b8282620000473362000089565b6001620000558382620002be565b506002620000648282620002be565b5050600b805460ff1916905550600c6200007f8282620002be565b505050506200038a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200010157600080fd5b81516001600160401b03808211156200011e576200011e620000d9565b604051601f8301601f19908116603f01168101908282118183101715620001495762000149620000d9565b816040528381526020925086838588010111156200016657600080fd5b600091505b838210156200018a57858201830151818301840152908201906200016b565b600093810190920192909252949350505050565b600080600060608486031215620001b457600080fd5b83516001600160401b0380821115620001cc57600080fd5b620001da87838801620000ef565b94506020860151915080821115620001f157600080fd5b620001ff87838801620000ef565b935060408601519150808211156200021657600080fd5b506200022586828701620000ef565b9150509250925092565b600181811c908216806200024457607f821691505b6020821081036200026557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002b957600081815260208120601f850160051c81016020861015620002945750805b601f850160051c820191505b81811015620002b557828155600101620002a0565b5050505b505050565b81516001600160401b03811115620002da57620002da620000d9565b620002f281620002eb84546200022f565b846200026b565b602080601f8311600181146200032a5760008415620003115750858301515b600019600386901b1c1916600185901b178555620002b5565b600085815260208120601f198616915b828110156200035b578886015182559484019460019091019084016200033a565b50858210156200037a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612796806200039a6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635c975abb116101045780638da5cb5b116100a2578063c87b56dd11610071578063c87b56dd146103c6578063e985e9c5146103d9578063f2fde38b14610415578063f3982e5e1461042857600080fd5b80638da5cb5b1461038757806395d89b4114610398578063a22cb465146103a0578063b88d4fde146103b357600080fd5b80636a627842116100de5780636a6278421461035157806370a0823114610364578063715018a6146103775780638456cb591461037f57600080fd5b80635c975abb146103105780636352211e1461031b578063648ec7b91461032e57600080fd5b80633b9418fd1161017157806343508b051161014b57806343508b05146102c45780634f6ccce7146102d75780635046df99146102ea57806355f804b3146102fd57600080fd5b80633b9418fd146102895780633f4ba83a146102a957806342842e0e146102b157600080fd5b8063095ea7b3116101ad578063095ea7b31461023c57806318160ddd1461025157806323b872dd146102635780632f745c591461027657600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e23660046120bf565b61043b565b60405190151581526020015b60405180910390f35b610204610497565b6040516101f3919061214a565b61022461021f36600461215d565b610529565b6040516001600160a01b0390911681526020016101f3565b61024f61024a366004612192565b610550565b005b6009545b6040519081526020016101f3565b61024f6102713660046121bc565b610686565b610255610284366004612192565b61070d565b6102556102973660046121f8565b60106020526000908152604090205481565b61024f6107b5565b61024f6102bf3660046121bc565b6107c7565b61024f6102d2366004612192565b6107e2565b6102556102e536600461215d565b6108f0565b61024f6102f83660046121f8565b610994565b61024f61030b3660046122d6565b610a31565b600b5460ff166101e7565b61022461032936600461215d565b610a49565b6101e761033c3660046121f8565b600f6020526000908152604090205460ff1681565b61024f61035f3660046121f8565b610aae565b6102556103723660046121f8565b610bb6565b61024f610c50565b61024f610c62565b6000546001600160a01b0316610224565b610204610c72565b61024f6103ae36600461231f565b610c81565b61024f6103c136600461235b565b610c8c565b6102046103d436600461215d565b610d14565b6101e76103e73660046123d7565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61024f6104233660046121f8565b610dfd565b61024f6104363660046121f8565b610e8d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610491575061049182610f2d565b92915050565b6060600180546104a69061240a565b80601f01602080910402602001604051908101604052809291908181526020018280546104d29061240a565b801561051f5780601f106104f45761010080835404028352916020019161051f565b820191906000526020600020905b81548152906001019060200180831161050257829003601f168201915b5050505050905090565b600061053482611010565b506000908152600560205260409020546001600160a01b031690565b600061055b82610a49565b9050806001600160a01b0316836001600160a01b0316036105e95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610605575061060581336103e7565b6106775760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016105e0565b6106818383611074565b505050565b61069033826110fa565b6107025760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016105e0565b610681838383611179565b600061071883610bb6565b821061078c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016105e0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6107bd6113e5565b6107c561143f565b565b61068183838360405180602001604052806000815250610c8c565b336000908152600f602052604090205460ff168061080a57506000546001600160a01b031633145b6108565760405162461bcd60e51b815260206004820152601160248201527f5065726d697373696f6e2064656e69656400000000000000000000000000000060448201526064016105e0565b61085e6114af565b80600d548161086c60095490565b610876919061248c565b11156108c45760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20737570706c79206578636565646564000000000000000000000060448201526064016105e0565b60005b828110156108ea576108d884610aae565b806108e28161249f565b9150506108c7565b50505050565b60006108fb60095490565b821061096f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016105e0565b60098281548110610982576109826124d7565b90600052602060002001549050919050565b61099c6113e5565b6001600160a01b0381166109f25760405162461bcd60e51b815260206004820152600f60248201527f4973207a65726f2061646472657373000000000000000000000000000000000060448201526064016105e0565b6001600160a01b03166000908152600f6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610a396113e5565b600c610a458282612554565b5050565b6000818152600360205260408120546001600160a01b0316806104915760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016105e0565b336000908152600f602052604090205460ff1680610ad657506000546001600160a01b031633145b610b225760405162461bcd60e51b815260206004820152601160248201527f5065726d697373696f6e2064656e69656400000000000000000000000000000060448201526064016105e0565b610b2a6114af565b6001600d5481610b3960095490565b610b43919061248c565b1115610b915760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20737570706c79206578636565646564000000000000000000000060448201526064016105e0565b610b9f600e80546001019055565b6000610baa600e5490565b90506106818382611502565b60006001600160a01b038216610c345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016105e0565b506001600160a01b031660009081526004602052604090205490565b610c586113e5565b6107c560006116b3565b610c6a6113e5565b6107c561171b565b6060600280546104a69061240a565b610a45338383611776565b610c9633836110fa565b610d085760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016105e0565b6108ea84848484611862565b6000818152600360205260409020546060906001600160a01b0316610da15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016105e0565b6000610dab6118eb565b90506000815111610dcb5760405180602001604052806000815250610df6565b80610dd5846118fa565b604051602001610de692919061266e565b6040516020818303038152906040525b9392505050565b610e056113e5565b6001600160a01b038116610e815760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105e0565b610e8a816116b3565b50565b610e956113e5565b6001600160a01b038116610eeb5760405162461bcd60e51b815260206004820152600f60248201527f4973207a65726f2061646472657373000000000000000000000000000000000060448201526064016105e0565b6001600160a01b03166000908152600f6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610fc057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061049157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610491565b6000818152600360205260409020546001600160a01b0316610e8a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016105e0565b600081815260056020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906110c182610a49565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061110683610a49565b9050806001600160a01b0316846001600160a01b0316148061114d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806111715750836001600160a01b031661116684610529565b6001600160a01b0316145b949350505050565b826001600160a01b031661118c82610a49565b6001600160a01b0316146112085760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016105e0565b6001600160a01b0382166112835760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105e0565b61129083838360016119b8565b826001600160a01b03166112a382610a49565b6001600160a01b03161461131f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016105e0565b600081815260056020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526004855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b031633146107c55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e0565b611447611a3e565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff16156107c55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105e0565b6001600160a01b0382166115585760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105e0565b6000818152600360205260409020546001600160a01b0316156115bd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105e0565b6115cb6000838360016119b8565b6000818152600360205260409020546001600160a01b0316156116305760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105e0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6117236114af565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114923390565b816001600160a01b0316836001600160a01b0316036117d75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105e0565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61186d848484611179565b61187984848484611a90565b6108ea5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016105e0565b6060600c80546104a69061240a565b6060600061190783611c4f565b600101905060008167ffffffffffffffff81111561192757611927612213565b6040519080825280601f01601f191660200182016040528015611951576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461195b57509392505050565b6119c58484846001611d31565b600b5460ff16156108ea5760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20746f6b656e207472616e73666572207768696c652070617560448201527f736564000000000000000000000000000000000000000000000000000000000060648201526084016105e0565b600b5460ff166107c55760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105e0565b60006001600160a01b0384163b15611c44576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611aed9033908990889088906004016126c5565b6020604051808303816000875af1925050508015611b46575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252611b4391810190612701565b60015b611bf9573d808015611b74576040519150601f19603f3d011682016040523d82523d6000602084013e611b79565b606091505b508051600003611bf15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016105e0565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611171565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611c98577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611cc4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611ce257662386f26fc10000830492506010015b6305f5e1008310611cfa576305f5e100830492506008015b6127108310611d0e57612710830492506004015b60648310611d20576064830492506002015b600a83106104915760010192915050565b611d3d84848484611e79565b6001811115611db45760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f72746564000000000000000000000060648201526084016105e0565b816001600160a01b038516611e1057611e0b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611e33565b836001600160a01b0316856001600160a01b031614611e3357611e338582611f01565b6001600160a01b038416611e4f57611e4a81611f9e565b611e72565b846001600160a01b0316846001600160a01b031614611e7257611e72848261204d565b5050505050565b60018111156108ea576001600160a01b03841615611ebf576001600160a01b03841660009081526004602052604081208054839290611eb990849061271e565b90915550505b6001600160a01b038316156108ea576001600160a01b03831660009081526004602052604081208054839290611ef690849061248c565b909155505050505050565b60006001611f0e84610bb6565b611f18919061271e565b600083815260086020526040902054909150808214611f6b576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611fb09060019061271e565b6000838152600a602052604081205460098054939450909284908110611fd857611fd86124d7565b906000526020600020015490508060098381548110611ff957611ff96124d7565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061203157612031612731565b6001900381819060005260206000200160009055905550505050565b600061205883610bb6565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e8a57600080fd5b6000602082840312156120d157600080fd5b8135610df681612091565b60005b838110156120f75781810151838201526020016120df565b50506000910152565b600081518084526121188160208601602086016120dc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610df66020830184612100565b60006020828403121561216f57600080fd5b5035919050565b80356001600160a01b038116811461218d57600080fd5b919050565b600080604083850312156121a557600080fd5b6121ae83612176565b946020939093013593505050565b6000806000606084860312156121d157600080fd5b6121da84612176565b92506121e860208501612176565b9150604084013590509250925092565b60006020828403121561220a57600080fd5b610df682612176565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff8084111561225d5761225d612213565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156122a3576122a3612213565b816040528093508581528686860111156122bc57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156122e857600080fd5b813567ffffffffffffffff8111156122ff57600080fd5b8201601f8101841361231057600080fd5b61117184823560208401612242565b6000806040838503121561233257600080fd5b61233b83612176565b91506020830135801515811461235057600080fd5b809150509250929050565b6000806000806080858703121561237157600080fd5b61237a85612176565b935061238860208601612176565b925060408501359150606085013567ffffffffffffffff8111156123ab57600080fd5b8501601f810187136123bc57600080fd5b6123cb87823560208401612242565b91505092959194509250565b600080604083850312156123ea57600080fd5b6123f383612176565b915061240160208401612176565b90509250929050565b600181811c9082168061241e57607f821691505b602082108103612457577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156104915761049161245d565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036124d0576124d061245d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601f82111561068157600081815260208120601f850160051c8101602086101561252d5750805b601f850160051c820191505b8181101561254c57828155600101612539565b505050505050565b815167ffffffffffffffff81111561256e5761256e612213565b6125828161257c845461240a565b84612506565b602080601f8311600181146125d5576000841561259f5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b17855561254c565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561262257888601518255948401946001909101908401612603565b508582101561265e57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600083516126808184602088016120dc565b8351908301906126948183602088016120dc565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526126f76080830184612100565b9695505050505050565b60006020828403121561271357600080fd5b8151610df681612091565b818103818111156104915761049161245d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220662cece58e5a0e77780f297ab174c7cd35aedef55779a7cb821c344fdcbb8d6764736f6c63430008130033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d53706163655069506c616e657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d53706163655069506c616e6574000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696333657a716e79636a686768627675667562323236763368716a6c79377979676b75336e69336b717263687437756277756e68712f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635c975abb116101045780638da5cb5b116100a2578063c87b56dd11610071578063c87b56dd146103c6578063e985e9c5146103d9578063f2fde38b14610415578063f3982e5e1461042857600080fd5b80638da5cb5b1461038757806395d89b4114610398578063a22cb465146103a0578063b88d4fde146103b357600080fd5b80636a627842116100de5780636a6278421461035157806370a0823114610364578063715018a6146103775780638456cb591461037f57600080fd5b80635c975abb146103105780636352211e1461031b578063648ec7b91461032e57600080fd5b80633b9418fd1161017157806343508b051161014b57806343508b05146102c45780634f6ccce7146102d75780635046df99146102ea57806355f804b3146102fd57600080fd5b80633b9418fd146102895780633f4ba83a146102a957806342842e0e146102b157600080fd5b8063095ea7b3116101ad578063095ea7b31461023c57806318160ddd1461025157806323b872dd146102635780632f745c591461027657600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e23660046120bf565b61043b565b60405190151581526020015b60405180910390f35b610204610497565b6040516101f3919061214a565b61022461021f36600461215d565b610529565b6040516001600160a01b0390911681526020016101f3565b61024f61024a366004612192565b610550565b005b6009545b6040519081526020016101f3565b61024f6102713660046121bc565b610686565b610255610284366004612192565b61070d565b6102556102973660046121f8565b60106020526000908152604090205481565b61024f6107b5565b61024f6102bf3660046121bc565b6107c7565b61024f6102d2366004612192565b6107e2565b6102556102e536600461215d565b6108f0565b61024f6102f83660046121f8565b610994565b61024f61030b3660046122d6565b610a31565b600b5460ff166101e7565b61022461032936600461215d565b610a49565b6101e761033c3660046121f8565b600f6020526000908152604090205460ff1681565b61024f61035f3660046121f8565b610aae565b6102556103723660046121f8565b610bb6565b61024f610c50565b61024f610c62565b6000546001600160a01b0316610224565b610204610c72565b61024f6103ae36600461231f565b610c81565b61024f6103c136600461235b565b610c8c565b6102046103d436600461215d565b610d14565b6101e76103e73660046123d7565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61024f6104233660046121f8565b610dfd565b61024f6104363660046121f8565b610e8d565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610491575061049182610f2d565b92915050565b6060600180546104a69061240a565b80601f01602080910402602001604051908101604052809291908181526020018280546104d29061240a565b801561051f5780601f106104f45761010080835404028352916020019161051f565b820191906000526020600020905b81548152906001019060200180831161050257829003601f168201915b5050505050905090565b600061053482611010565b506000908152600560205260409020546001600160a01b031690565b600061055b82610a49565b9050806001600160a01b0316836001600160a01b0316036105e95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610605575061060581336103e7565b6106775760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016105e0565b6106818383611074565b505050565b61069033826110fa565b6107025760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016105e0565b610681838383611179565b600061071883610bb6565b821061078c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016105e0565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6107bd6113e5565b6107c561143f565b565b61068183838360405180602001604052806000815250610c8c565b336000908152600f602052604090205460ff168061080a57506000546001600160a01b031633145b6108565760405162461bcd60e51b815260206004820152601160248201527f5065726d697373696f6e2064656e69656400000000000000000000000000000060448201526064016105e0565b61085e6114af565b80600d548161086c60095490565b610876919061248c565b11156108c45760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20737570706c79206578636565646564000000000000000000000060448201526064016105e0565b60005b828110156108ea576108d884610aae565b806108e28161249f565b9150506108c7565b50505050565b60006108fb60095490565b821061096f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016105e0565b60098281548110610982576109826124d7565b90600052602060002001549050919050565b61099c6113e5565b6001600160a01b0381166109f25760405162461bcd60e51b815260206004820152600f60248201527f4973207a65726f2061646472657373000000000000000000000000000000000060448201526064016105e0565b6001600160a01b03166000908152600f6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610a396113e5565b600c610a458282612554565b5050565b6000818152600360205260408120546001600160a01b0316806104915760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016105e0565b336000908152600f602052604090205460ff1680610ad657506000546001600160a01b031633145b610b225760405162461bcd60e51b815260206004820152601160248201527f5065726d697373696f6e2064656e69656400000000000000000000000000000060448201526064016105e0565b610b2a6114af565b6001600d5481610b3960095490565b610b43919061248c565b1115610b915760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20737570706c79206578636565646564000000000000000000000060448201526064016105e0565b610b9f600e80546001019055565b6000610baa600e5490565b90506106818382611502565b60006001600160a01b038216610c345760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016105e0565b506001600160a01b031660009081526004602052604090205490565b610c586113e5565b6107c560006116b3565b610c6a6113e5565b6107c561171b565b6060600280546104a69061240a565b610a45338383611776565b610c9633836110fa565b610d085760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f7665640000000000000000000000000000000000000060648201526084016105e0565b6108ea84848484611862565b6000818152600360205260409020546060906001600160a01b0316610da15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016105e0565b6000610dab6118eb565b90506000815111610dcb5760405180602001604052806000815250610df6565b80610dd5846118fa565b604051602001610de692919061266e565b6040516020818303038152906040525b9392505050565b610e056113e5565b6001600160a01b038116610e815760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105e0565b610e8a816116b3565b50565b610e956113e5565b6001600160a01b038116610eeb5760405162461bcd60e51b815260206004820152600f60248201527f4973207a65726f2061646472657373000000000000000000000000000000000060448201526064016105e0565b6001600160a01b03166000908152600f6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610fc057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061049157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610491565b6000818152600360205260409020546001600160a01b0316610e8a5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016105e0565b600081815260056020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906110c182610a49565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061110683610a49565b9050806001600160a01b0316846001600160a01b0316148061114d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806111715750836001600160a01b031661116684610529565b6001600160a01b0316145b949350505050565b826001600160a01b031661118c82610a49565b6001600160a01b0316146112085760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016105e0565b6001600160a01b0382166112835760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105e0565b61129083838360016119b8565b826001600160a01b03166112a382610a49565b6001600160a01b03161461131f5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016105e0565b600081815260056020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526004855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b031633146107c55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e0565b611447611a3e565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff16156107c55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105e0565b6001600160a01b0382166115585760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105e0565b6000818152600360205260409020546001600160a01b0316156115bd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105e0565b6115cb6000838360016119b8565b6000818152600360205260409020546001600160a01b0316156116305760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105e0565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6117236114af565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114923390565b816001600160a01b0316836001600160a01b0316036117d75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105e0565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61186d848484611179565b61187984848484611a90565b6108ea5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016105e0565b6060600c80546104a69061240a565b6060600061190783611c4f565b600101905060008167ffffffffffffffff81111561192757611927612213565b6040519080825280601f01601f191660200182016040528015611951576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461195b57509392505050565b6119c58484846001611d31565b600b5460ff16156108ea5760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20746f6b656e207472616e73666572207768696c652070617560448201527f736564000000000000000000000000000000000000000000000000000000000060648201526084016105e0565b600b5460ff166107c55760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105e0565b60006001600160a01b0384163b15611c44576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611aed9033908990889088906004016126c5565b6020604051808303816000875af1925050508015611b46575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252611b4391810190612701565b60015b611bf9573d808015611b74576040519150601f19603f3d011682016040523d82523d6000602084013e611b79565b606091505b508051600003611bf15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016105e0565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611171565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611c98577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611cc4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611ce257662386f26fc10000830492506010015b6305f5e1008310611cfa576305f5e100830492506008015b6127108310611d0e57612710830492506004015b60648310611d20576064830492506002015b600a83106104915760010192915050565b611d3d84848484611e79565b6001811115611db45760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f72746564000000000000000000000060648201526084016105e0565b816001600160a01b038516611e1057611e0b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611e33565b836001600160a01b0316856001600160a01b031614611e3357611e338582611f01565b6001600160a01b038416611e4f57611e4a81611f9e565b611e72565b846001600160a01b0316846001600160a01b031614611e7257611e72848261204d565b5050505050565b60018111156108ea576001600160a01b03841615611ebf576001600160a01b03841660009081526004602052604081208054839290611eb990849061271e565b90915550505b6001600160a01b038316156108ea576001600160a01b03831660009081526004602052604081208054839290611ef690849061248c565b909155505050505050565b60006001611f0e84610bb6565b611f18919061271e565b600083815260086020526040902054909150808214611f6b576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611fb09060019061271e565b6000838152600a602052604081205460098054939450909284908110611fd857611fd86124d7565b906000526020600020015490508060098381548110611ff957611ff96124d7565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061203157612031612731565b6001900381819060005260206000200160009055905550505050565b600061205883610bb6565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610e8a57600080fd5b6000602082840312156120d157600080fd5b8135610df681612091565b60005b838110156120f75781810151838201526020016120df565b50506000910152565b600081518084526121188160208601602086016120dc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610df66020830184612100565b60006020828403121561216f57600080fd5b5035919050565b80356001600160a01b038116811461218d57600080fd5b919050565b600080604083850312156121a557600080fd5b6121ae83612176565b946020939093013593505050565b6000806000606084860312156121d157600080fd5b6121da84612176565b92506121e860208501612176565b9150604084013590509250925092565b60006020828403121561220a57600080fd5b610df682612176565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff8084111561225d5761225d612213565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156122a3576122a3612213565b816040528093508581528686860111156122bc57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156122e857600080fd5b813567ffffffffffffffff8111156122ff57600080fd5b8201601f8101841361231057600080fd5b61117184823560208401612242565b6000806040838503121561233257600080fd5b61233b83612176565b91506020830135801515811461235057600080fd5b809150509250929050565b6000806000806080858703121561237157600080fd5b61237a85612176565b935061238860208601612176565b925060408501359150606085013567ffffffffffffffff8111156123ab57600080fd5b8501601f810187136123bc57600080fd5b6123cb87823560208401612242565b91505092959194509250565b600080604083850312156123ea57600080fd5b6123f383612176565b915061240160208401612176565b90509250929050565b600181811c9082168061241e57607f821691505b602082108103612457577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156104915761049161245d565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036124d0576124d061245d565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b601f82111561068157600081815260208120601f850160051c8101602086101561252d5750805b601f850160051c820191505b8181101561254c57828155600101612539565b505050505050565b815167ffffffffffffffff81111561256e5761256e612213565b6125828161257c845461240a565b84612506565b602080601f8311600181146125d5576000841561259f5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b17855561254c565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561262257888601518255948401946001909101908401612603565b508582101561265e57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600083516126808184602088016120dc565b8351908301906126948183602088016120dc565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526126f76080830184612100565b9695505050505050565b60006020828403121561271357600080fd5b8151610df681612091565b818103818111156104915761049161245d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220662cece58e5a0e77780f297ab174c7cd35aedef55779a7cb821c344fdcbb8d6764736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d53706163655069506c616e657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d53706163655069506c616e6574000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696333657a716e79636a686768627675667562323236763368716a6c79377979676b75336e69336b717263687437756277756e68712f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): SpacePiPlanet
Arg [1] : _symbol (string): SpacePiPlanet
Arg [2] : _baseTokenURI (string): ipfs://bafybeic3ezqnycjhghbvufub226v3hqjly7yygku3ni3kqrcht7ubwunhq/
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [4] : 53706163655069506c616e657400000000000000000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [6] : 53706163655069506c616e657400000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [8] : 697066733a2f2f626166796265696333657a716e79636a686768627675667562
Arg [9] : 323236763368716a6c79377979676b75336e69336b717263687437756277756e
Arg [10] : 68712f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
66831:2748:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59302:224;;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;59302:224:0;;;;;;;;42272:100;;;:::i;:::-;;;;;;;:::i;43784:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1802:55:1;;;1784:74;;1772:2;1757:18;43784:171:0;1638:226:1;43302:416:0;;;;;;:::i;:::-;;:::i;:::-;;59942:113;60030:10;:17;59942:113;;;2475:25:1;;;2463:2;2448:18;59942:113:0;2329:177:1;44484:335:0;;;;;;:::i;:::-;;:::i;59610:256::-;;;;;;:::i;:::-;;:::i;67138:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;69196:67;;;:::i;44890:185::-;;;;;;:::i;:::-;;:::i;68919:200::-;;;;;;:::i;:::-;;:::i;60132:233::-;;;;;;:::i;:::-;;:::i;68396:150::-;;;;;;:::i;:::-;;:::i;67389:97::-;;;;;;:::i;:::-;;:::i;5349:86::-;5420:7;;;;5349:86;;41982:223;;;;;;:::i;:::-;;:::i;67093:38::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;68554:359;;;;;;:::i;:::-;;:::i;41713:207::-;;;;;;:::i;:::-;;:::i;2853:103::-;;;:::i;69125:63::-;;;:::i;2205:87::-;2251:7;2278:6;-1:-1:-1;;;;;2278:6:0;2205:87;;42441:104;;;:::i;44027:155::-;;;;;;:::i;:::-;;:::i;45146:322::-;;;;;;:::i;:::-;;:::i;67617:341::-;;;;;;:::i;:::-;;:::i;44253:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;44374:25:0;;;44350:4;44374:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;44253:164;3111:201;;;;;;:::i;:::-;;:::i;68242:146::-;;;;;;:::i;:::-;;:::i;59302:224::-;59404:4;59428:50;;;59443:35;59428:50;;:90;;;59482:36;59506:11;59482:23;:36::i;:::-;59421:97;59302:224;-1:-1:-1;;59302:224:0:o;42272:100::-;42326:13;42359:5;42352:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42272:100;:::o;43784:171::-;43860:7;43880:23;43895:7;43880:14;:23::i;:::-;-1:-1:-1;43923:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;43923:24:0;;43784:171::o;43302:416::-;43383:13;43399:23;43414:7;43399:14;:23::i;:::-;43383:39;;43447:5;-1:-1:-1;;;;;43441:11:0;:2;-1:-1:-1;;;;;43441:11:0;;43433:57;;;;-1:-1:-1;;;43433:57:0;;6309:2:1;43433:57:0;;;6291:21:1;6348:2;6328:18;;;6321:30;6387:34;6367:18;;;6360:62;6458:3;6438:18;;;6431:31;6479:19;;43433:57:0;;;;;;;;;830:10;-1:-1:-1;;;;;43525:21:0;;;;:62;;-1:-1:-1;43550:37:0;43567:5;830:10;44253:164;:::i;43550:37::-;43503:173;;;;-1:-1:-1;;;43503:173:0;;6711:2:1;43503:173:0;;;6693:21:1;6750:2;6730:18;;;6723:30;6789:34;6769:18;;;6762:62;6860:31;6840:18;;;6833:59;6909:19;;43503:173:0;6509:425:1;43503:173:0;43689:21;43698:2;43702:7;43689:8;:21::i;:::-;43372:346;43302:416;;:::o;44484:335::-;44679:41;830:10;44712:7;44679:18;:41::i;:::-;44671:99;;;;-1:-1:-1;;;44671:99:0;;7141:2:1;44671:99:0;;;7123:21:1;7180:2;7160:18;;;7153:30;7219:34;7199:18;;;7192:62;7290:15;7270:18;;;7263:43;7323:19;;44671:99:0;6939:409:1;44671:99:0;44783:28;44793:4;44799:2;44803:7;44783:9;:28::i;59610:256::-;59707:7;59743:23;59760:5;59743:16;:23::i;:::-;59735:5;:31;59727:87;;;;-1:-1:-1;;;59727:87:0;;7555:2:1;59727:87:0;;;7537:21:1;7594:2;7574:18;;;7567:30;7633:34;7613:18;;;7606:62;7704:13;7684:18;;;7677:41;7735:19;;59727:87:0;7353:407:1;59727:87:0;-1:-1:-1;;;;;;59832:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;59610:256::o;69196:67::-;2091:13;:11;:13::i;:::-;69245:10:::1;:8;:10::i;:::-;69196:67::o:0;44890:185::-;45028:39;45045:4;45051:2;45055:7;45028:39;;;;;;;;;;;;:16;:39::i;68919:200::-;68156:10;68149:18;;;;:6;:18;;;;;;;;;:43;;-1:-1:-1;2251:7:0;2278:6;-1:-1:-1;;;;;2278:6:0;68171:10;:21;68149:43;68141:73;;;;-1:-1:-1;;;68141:73:0;;7967:2:1;68141:73:0;;;7949:21:1;8006:2;7986:18;;;7979:30;8045:19;8025:18;;;8018:47;8082:18;;68141:73:0;7765:341:1;68141:73:0;4954:19:::1;:17;:19::i;:::-;69017:8:::2;68043:11;;68038:1;68022:13;60030:10:::0;:17;;59942:113;68022:13:::2;:17;;;;:::i;:::-;:32;;68014:66;;;::::0;-1:-1:-1;;;68014:66:0;;8632:2:1;68014:66:0::2;::::0;::::2;8614:21:1::0;8671:2;8651:18;;;8644:30;8710:23;8690:18;;;8683:51;8751:18;;68014:66:0::2;8430:345:1::0;68014:66:0::2;69043:9:::3;69038:74;69062:8;69058:1;:12;69038:74;;;69092:8;69097:2;69092:4;:8::i;:::-;69072:3:::0;::::3;::::0;::::3;:::i;:::-;;;;69038:74;;;;4984:1:::2;68919:200:::0;;:::o;60132:233::-;60207:7;60243:30;60030:10;:17;;59942:113;60243:30;60235:5;:38;60227:95;;;;-1:-1:-1;;;60227:95:0;;9182:2:1;60227:95:0;;;9164:21:1;9221:2;9201:18;;;9194:30;9260:34;9240:18;;;9233:62;9331:14;9311:18;;;9304:42;9363:19;;60227:95:0;8980:408:1;60227:95:0;60340:10;60351:5;60340:17;;;;;;;;:::i;:::-;;;;;;;;;60333:24;;60132:233;;;:::o;68396:150::-;2091:13;:11;:13::i;:::-;-1:-1:-1;;;;;68469:18:0;::::1;68461:46;;;::::0;-1:-1:-1;;;68461:46:0;;9784:2:1;68461:46:0::1;::::0;::::1;9766:21:1::0;9823:2;9803:18;;;9796:30;9862:17;9842:18;;;9835:45;9897:18;;68461:46:0::1;9582:339:1::0;68461:46:0::1;-1:-1:-1::0;;;;;68518:12:0::1;68533:5;68518:12:::0;;;:6:::1;:12;::::0;;;;:20;;;::::1;::::0;;68396:150::o;67389:97::-;2091:13;:11;:13::i;:::-;67459:12:::1;:19;67474:4:::0;67459:12;:19:::1;:::i;:::-;;67389:97:::0;:::o;41982:223::-;42054:7;46869:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46869:16:0;;42118:56;;;;-1:-1:-1;;;42118:56:0;;12511:2:1;42118:56:0;;;12493:21:1;12550:2;12530:18;;;12523:30;12589:26;12569:18;;;12562:54;12633:18;;42118:56:0;12309:348:1;68554:359:0;68156:10;68149:18;;;;:6;:18;;;;;;;;;:43;;-1:-1:-1;2251:7:0;2278:6;-1:-1:-1;;;;;2278:6:0;68171:10;:21;68149:43;68141:73;;;;-1:-1:-1;;;68141:73:0;;7967:2:1;68141:73:0;;;7949:21:1;8006:2;7986:18;;;7979:30;8045:19;8025:18;;;8018:47;8082:18;;68141:73:0;7765:341:1;68141:73:0;4954:19:::1;:17;:19::i;:::-;68629:1:::2;68043:11;;68038:1;68022:13;60030:10:::0;:17;;59942:113;68022:13:::2;:17;;;;:::i;:::-;:32;;68014:66;;;::::0;-1:-1:-1;;;68014:66:0;;8632:2:1;68014:66:0::2;::::0;::::2;8614:21:1::0;8671:2;8651:18;;;8644:30;8710:23;8690:18;;;8683:51;8751:18;;68014:66:0::2;8430:345:1::0;68014:66:0::2;68795:27:::3;:15;66328:19:::0;;66346:1;66328:19;;;66239:127;68795:27:::3;68833:15;68851:25;:15;66209:14:::0;;66117:114;68851:25:::3;68833:43;;68887:18;68893:2;68897:7;68887:5;:18::i;41713:207::-:0;41785:7;-1:-1:-1;;;;;41813:19:0;;41805:73;;;;-1:-1:-1;;;41805:73:0;;12864:2:1;41805:73:0;;;12846:21:1;12903:2;12883:18;;;12876:30;12942:34;12922:18;;;12915:62;13013:11;12993:18;;;12986:39;13042:19;;41805:73:0;12662:405:1;41805:73:0;-1:-1:-1;;;;;;41896:16:0;;;;;:9;:16;;;;;;;41713:207::o;2853:103::-;2091:13;:11;:13::i;:::-;2918:30:::1;2945:1;2918:18;:30::i;69125:63::-:0;2091:13;:11;:13::i;:::-;69172:8:::1;:6;:8::i;42441:104::-:0;42497:13;42530:7;42523:14;;;;;:::i;44027:155::-;44122:52;830:10;44155:8;44165;44122:18;:52::i;45146:322::-;45320:41;830:10;45353:7;45320:18;:41::i;:::-;45312:99;;;;-1:-1:-1;;;45312:99:0;;7141:2:1;45312:99:0;;;7123:21:1;7180:2;7160:18;;;7153:30;7219:34;7199:18;;;7192:62;7290:15;7270:18;;;7263:43;7323:19;;45312:99:0;6939:409:1;45312:99:0;45422:38;45436:4;45442:2;45446:7;45455:4;45422:13;:38::i;67617:341::-;47271:4;46869:16;;;:7;:16;;;;;;67690:13;;-1:-1:-1;;;;;46869:16:0;67716:76;;;;-1:-1:-1;;;67716:76:0;;13274:2:1;67716:76:0;;;13256:21:1;13313:2;13293:18;;;13286:30;13352:34;13332:18;;;13325:62;13423:17;13403:18;;;13396:45;13458:19;;67716:76:0;13072:411:1;67716:76:0;67803:21;67827:10;:8;:10::i;:::-;67803:34;;67879:1;67861:7;67855:21;:25;:95;;;;;;;;;;;;;;;;;67907:7;67916:18;:7;:16;:18::i;:::-;67890:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;67855:95;67848:102;67617:341;-1:-1:-1;;;67617:341:0:o;3111:201::-;2091:13;:11;:13::i;:::-;-1:-1:-1;;;;;3200:22:0;::::1;3192:73;;;::::0;-1:-1:-1;;;3192:73:0;;14358:2:1;3192:73:0::1;::::0;::::1;14340:21:1::0;14397:2;14377:18;;;14370:30;14436:34;14416:18;;;14409:62;14507:8;14487:18;;;14480:36;14533:19;;3192:73:0::1;14156:402:1::0;3192:73:0::1;3276:28;3295:8;3276:18;:28::i;:::-;3111:201:::0;:::o;68242:146::-;2091:13;:11;:13::i;:::-;-1:-1:-1;;;;;68312:18:0;::::1;68304:46;;;::::0;-1:-1:-1;;;68304:46:0;;9784:2:1;68304:46:0::1;::::0;::::1;9766:21:1::0;9823:2;9803:18;;;9796:30;9862:17;9842:18;;;9835:45;9897:18;;68304:46:0::1;9582:339:1::0;68304:46:0::1;-1:-1:-1::0;;;;;68361:12:0::1;;::::0;;;:6:::1;:12;::::0;;;;:19;;;::::1;68376:4;68361:19;::::0;;68242:146::o;41344:305::-;41446:4;41483:40;;;41498:25;41483:40;;:105;;-1:-1:-1;41540:48:0;;;41555:33;41540:48;41483:105;:158;;;-1:-1:-1;24678:25:0;24663:40;;;;41605:36;24554:157;53603:135;47271:4;46869:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46869:16:0;53677:53;;;;-1:-1:-1;;;53677:53:0;;12511:2:1;53677:53:0;;;12493:21:1;12550:2;12530:18;;;12523:30;12589:26;12569:18;;;12562:54;12633:18;;53677:53:0;12309:348:1;52882:174:0;52957:24;;;;:15;:24;;;;;:29;;;;-1:-1:-1;;;;;52957:29:0;;;;;;;;:24;;53011:23;52957:24;53011:14;:23::i;:::-;-1:-1:-1;;;;;53002:46:0;;;;;;;;;;;52882:174;;:::o;47501:264::-;47594:4;47611:13;47627:23;47642:7;47627:14;:23::i;:::-;47611:39;;47680:5;-1:-1:-1;;;;;47669:16:0;:7;-1:-1:-1;;;;;47669:16:0;;:52;;;-1:-1:-1;;;;;;44374:25:0;;;44350:4;44374:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;47689:32;47669:87;;;;47749:7;-1:-1:-1;;;;;47725:31:0;:20;47737:7;47725:11;:20::i;:::-;-1:-1:-1;;;;;47725:31:0;;47669:87;47661:96;47501:264;-1:-1:-1;;;;47501:264:0:o;51500:1263::-;51659:4;-1:-1:-1;;;;;51632:31:0;:23;51647:7;51632:14;:23::i;:::-;-1:-1:-1;;;;;51632:31:0;;51624:81;;;;-1:-1:-1;;;51624:81:0;;14765:2:1;51624:81:0;;;14747:21:1;14804:2;14784:18;;;14777:30;14843:34;14823:18;;;14816:62;14914:7;14894:18;;;14887:35;14939:19;;51624:81:0;14563:401:1;51624:81:0;-1:-1:-1;;;;;51724:16:0;;51716:65;;;;-1:-1:-1;;;51716:65:0;;15171:2:1;51716:65:0;;;15153:21:1;15210:2;15190:18;;;15183:30;15249:34;15229:18;;;15222:62;15320:6;15300:18;;;15293:34;15344:19;;51716:65:0;14969:400:1;51716:65:0;51794:42;51815:4;51821:2;51825:7;51834:1;51794:20;:42::i;:::-;51966:4;-1:-1:-1;;;;;51939:31:0;:23;51954:7;51939:14;:23::i;:::-;-1:-1:-1;;;;;51939:31:0;;51931:81;;;;-1:-1:-1;;;51931:81:0;;14765:2:1;51931:81:0;;;14747:21:1;14804:2;14784:18;;;14777:30;14843:34;14823:18;;;14816:62;14914:7;14894:18;;;14887:35;14939:19;;51931:81:0;14563:401:1;51931:81:0;52084:24;;;;:15;:24;;;;;;;;52077:31;;;;;;;;;-1:-1:-1;;;;;52560:15:0;;;;;;:9;:15;;;;;:20;;;;;;52595:13;;;;;;;;;:18;;52077:31;52595:18;;;52635:16;;;:7;:16;;;;;;:21;;;;;;;;;;52674:27;;52100:7;;52674:27;;;43372:346;43302:416;;:::o;2370:132::-;2251:7;2278:6;-1:-1:-1;;;;;2278:6:0;830:10;2434:23;2426:68;;;;-1:-1:-1;;;2426:68:0;;15576:2:1;2426:68:0;;;15558:21:1;;;15595:18;;;15588:30;15654:34;15634:18;;;15627:62;15706:18;;2426:68:0;15374:356:1;6204:120:0;5213:16;:14;:16::i;:::-;6263:7:::1;:15:::0;;;::::1;::::0;;6294:22:::1;830:10:::0;6303:12:::1;6294:22;::::0;-1:-1:-1;;;;;1802:55:1;;;1784:74;;1772:2;1757:18;6294:22:0::1;;;;;;;6204:120::o:0;5508:108::-;5420:7;;;;5578:9;5570:38;;;;-1:-1:-1;;;5570:38:0;;15937:2:1;5570:38:0;;;15919:21:1;15976:2;15956:18;;;15949:30;16015:18;15995;;;15988:46;16051:18;;5570:38:0;15735:340:1;49099:942:0;-1:-1:-1;;;;;49179:16:0;;49171:61;;;;-1:-1:-1;;;49171:61:0;;16282:2:1;49171:61:0;;;16264:21:1;;;16301:18;;;16294:30;16360:34;16340:18;;;16333:62;16412:18;;49171:61:0;16080:356:1;49171:61:0;47271:4;46869:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46869:16:0;47295:31;49243:58;;;;-1:-1:-1;;;49243:58:0;;16643:2:1;49243:58:0;;;16625:21:1;16682:2;16662:18;;;16655:30;16721;16701:18;;;16694:58;16769:18;;49243:58:0;16441:352:1;49243:58:0;49314:48;49343:1;49347:2;49351:7;49360:1;49314:20;:48::i;:::-;47271:4;46869:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46869:16:0;47295:31;49452:58;;;;-1:-1:-1;;;49452:58:0;;16643:2:1;49452:58:0;;;16625:21:1;16682:2;16662:18;;;16655:30;16721;16701:18;;;16694:58;16769:18;;49452:58:0;16441:352:1;49452:58:0;-1:-1:-1;;;;;49859:13:0;;;;;;:9;:13;;;;;;;;:18;;49876:1;49859:18;;;49901:16;;;:7;:16;;;;;;:21;;;;;;;;49940:33;49909:7;;49859:13;;49940:33;;49859:13;;49940:33;67459:19:::1;67389:97:::0;:::o;3472:191::-;3546:16;3565:6;;-1:-1:-1;;;;;3582:17:0;;;;;;;;;;3615:40;;3565:6;;;;;;;3615:40;;3546:16;3615:40;3535:128;3472:191;:::o;5945:118::-;4954:19;:17;:19::i;:::-;6005:7:::1;:14:::0;;;::::1;6015:4;6005:14;::::0;;6035:20:::1;6042:12;830:10:::0;;750:98;53199:315;53354:8;-1:-1:-1;;;;;53345:17:0;:5;-1:-1:-1;;;;;53345:17:0;;53337:55;;;;-1:-1:-1;;;53337:55:0;;17000:2:1;53337:55:0;;;16982:21:1;17039:2;17019:18;;;17012:30;17078:27;17058:18;;;17051:55;17123:18;;53337:55:0;16798:349:1;53337:55:0;-1:-1:-1;;;;;53403:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;;;;;;;;;;;;53465:41;;586::1;;;53465::0;;559:18:1;53465:41:0;;;;;;;53199:315;;;:::o;46349:313::-;46505:28;46515:4;46521:2;46525:7;46505:9;:28::i;:::-;46552:47;46575:4;46581:2;46585:7;46594:4;46552:22;:47::i;:::-;46544:110;;;;-1:-1:-1;;;46544:110:0;;17354:2:1;46544:110:0;;;17336:21:1;17393:2;17373:18;;;17366:30;17432:34;17412:18;;;17405:62;17503:20;17483:18;;;17476:48;17541:19;;46544:110:0;17152:414:1;67494:113:0;67554:13;67587:12;67580:19;;;;;:::i;38037:716::-;38093:13;38144:14;38161:17;38172:5;38161:10;:17::i;:::-;38181:1;38161:21;38144:38;;38197:20;38231:6;38220:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38220:18:0;-1:-1:-1;38197:41:0;-1:-1:-1;38362:28:0;;;38378:2;38362:28;38419:288;38451:5;;38593:8;38588:2;38577:14;;38572:30;38451:5;38559:44;38649:2;38640:11;;;-1:-1:-1;38670:21:0;38419:288;38670:21;-1:-1:-1;38728:6:0;38037:716;-1:-1:-1;;;38037:716:0:o;69271:305::-;69451:47;69478:4;69484:2;69488:7;69496:1;69451:26;:47::i;:::-;5420:7;;;;69519:9;69511:57;;;;-1:-1:-1;;;69511:57:0;;17962:2:1;69511:57:0;;;17944:21:1;18001:2;17981:18;;;17974:30;18040:34;18020:18;;;18013:62;18111:5;18091:18;;;18084:33;18134:19;;69511:57:0;17760:399:1;5693:108:0;5420:7;;;;5752:41;;;;-1:-1:-1;;;5752:41:0;;18366:2:1;5752:41:0;;;18348:21:1;18405:2;18385:18;;;18378:30;18444:22;18424:18;;;18417:50;18484:18;;5752:41:0;18164:344:1;54302:853:0;54456:4;-1:-1:-1;;;;;54477:13:0;;15783:19;:23;54473:675;;54513:71;;;;;-1:-1:-1;;;;;54513:36:0;;;;;:71;;830:10;;54564:4;;54570:7;;54579:4;;54513:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54513:71:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;54509:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54754:6;:13;54771:1;54754:18;54750:328;;54797:60;;-1:-1:-1;;;54797:60:0;;17354:2:1;54797:60:0;;;17336:21:1;17393:2;17373:18;;;17366:30;17432:34;17412:18;;;17405:62;17503:20;17483:18;;;17476:48;17541:19;;54797:60:0;17152:414:1;54750:328:0;55028:6;55022:13;55013:6;55009:2;55005:15;54998:38;54509:584;54635:51;;54645:41;54635:51;;-1:-1:-1;54628:58:0;;54473:675;-1:-1:-1;55132:4:0;54302:853;;;;;;:::o;34897:922::-;34950:7;;35037:6;35028:15;;35024:102;;35073:6;35064:15;;;-1:-1:-1;35108:2:0;35098:12;35024:102;35153:6;35144:5;:15;35140:102;;35189:6;35180:15;;;-1:-1:-1;35224:2:0;35214:12;35140:102;35269:6;35260:5;:15;35256:102;;35305:6;35296:15;;;-1:-1:-1;35340:2:0;35330:12;35256:102;35385:5;35376;:14;35372:99;;35420:5;35411:14;;;-1:-1:-1;35454:1:0;35444:11;35372:99;35498:5;35489;:14;35485:99;;35533:5;35524:14;;;-1:-1:-1;35567:1:0;35557:11;35485:99;35611:5;35602;:14;35598:99;;35646:5;35637:14;;;-1:-1:-1;35680:1:0;35670:11;35598:99;35724:5;35715;:14;35711:66;;35760:1;35750:11;35805:6;34897:922;-1:-1:-1;;34897:922:0:o;60439:915::-;60616:61;60643:4;60649:2;60653:12;60667:9;60616:26;:61::i;:::-;60706:1;60694:9;:13;60690:222;;;60837:63;;-1:-1:-1;;;60837:63:0;;19486:2:1;60837:63:0;;;19468:21:1;19525:2;19505:18;;;19498:30;19564:34;19544:18;;;19537:62;19635:23;19615:18;;;19608:51;19676:19;;60837:63:0;19284:417:1;60690:222:0;60942:12;-1:-1:-1;;;;;60971:18:0;;60967:187;;61006:40;61038:7;62181:10;:17;;62154:24;;;;:15;:24;;;;;:44;;;62209:24;;;;;;;;;;;;62077:164;61006:40;60967:187;;;61076:2;-1:-1:-1;;;;;61068:10:0;:4;-1:-1:-1;;;;;61068:10:0;;61064:90;;61095:47;61128:4;61134:7;61095:32;:47::i;:::-;-1:-1:-1;;;;;61168:16:0;;61164:183;;61201:45;61238:7;61201:36;:45::i;:::-;61164:183;;;61274:4;-1:-1:-1;;;;;61268:10:0;:2;-1:-1:-1;;;;;61268:10:0;;61264:83;;61295:40;61323:2;61327:7;61295:27;:40::i;:::-;60605:749;60439:915;;;;:::o;55887:410::-;56077:1;56065:9;:13;56061:229;;;-1:-1:-1;;;;;56099:18:0;;;56095:87;;-1:-1:-1;;;;;56138:15:0;;;;;;:9;:15;;;;;:28;;56157:9;;56138:15;:28;;56157:9;;56138:28;:::i;:::-;;;;-1:-1:-1;;56095:87:0;-1:-1:-1;;;;;56200:16:0;;;56196:83;;-1:-1:-1;;;;;56237:13:0;;;;;;:9;:13;;;;;:26;;56254:9;;56237:13;:26;;56254:9;;56237:26;:::i;:::-;;;;-1:-1:-1;;55887:410:0;;;;:::o;62868:988::-;63134:22;63184:1;63159:22;63176:4;63159:16;:22::i;:::-;:26;;;;:::i;:::-;63196:18;63217:26;;;:17;:26;;;;;;63134:51;;-1:-1:-1;63350:28:0;;;63346:328;;-1:-1:-1;;;;;63417:18:0;;63395:19;63417:18;;;:12;:18;;;;;;;;:34;;;;;;;;;63468:30;;;;;;:44;;;63585:30;;:17;:30;;;;;:43;;;63346:328;-1:-1:-1;63770:26:0;;;;:17;:26;;;;;;;;63763:33;;;-1:-1:-1;;;;;63814:18:0;;;;;:12;:18;;;;;:34;;;;;;;63807:41;62868:988::o;64151:1079::-;64429:10;:17;64404:22;;64429:21;;64449:1;;64429:21;:::i;:::-;64461:18;64482:24;;;:15;:24;;;;;;64855:10;:26;;64404:46;;-1:-1:-1;64482:24:0;;64404:46;;64855:26;;;;;;:::i;:::-;;;;;;;;;64833:48;;64919:11;64894:10;64905;64894:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;64999:28;;;:15;:28;;;;;;;:41;;;65171:24;;;;;65164:31;65206:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;64222:1008;;;64151:1079;:::o;61655:221::-;61740:14;61757:20;61774:2;61757:16;:20::i;:::-;-1:-1:-1;;;;;61788:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;61833:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;61655:221:0:o;14:177:1:-;99:66;92:5;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:250::-;723:1;733:113;747:6;744:1;741:13;733:113;;;823:11;;;817:18;804:11;;;797:39;769:2;762:10;733:113;;;-1:-1:-1;;880:1:1;862:16;;855:27;638:250::o;893:330::-;935:3;973:5;967:12;1000:6;995:3;988:19;1016:76;1085:6;1078:4;1073:3;1069:14;1062:4;1055:5;1051:16;1016:76;:::i;:::-;1137:2;1125:15;1142:66;1121:88;1112:98;;;;1212:4;1108:109;;893:330;-1:-1:-1;;893:330:1:o;1228:220::-;1377:2;1366:9;1359:21;1340:4;1397:45;1438:2;1427:9;1423:18;1415:6;1397:45;:::i;1453:180::-;1512:6;1565:2;1553:9;1544:7;1540:23;1536:32;1533:52;;;1581:1;1578;1571:12;1533:52;-1:-1:-1;1604:23:1;;1453:180;-1:-1:-1;1453:180:1:o;1869:196::-;1937:20;;-1:-1:-1;;;;;1986:54:1;;1976:65;;1966:93;;2055:1;2052;2045:12;1966:93;1869:196;;;:::o;2070:254::-;2138:6;2146;2199:2;2187:9;2178:7;2174:23;2170:32;2167:52;;;2215:1;2212;2205:12;2167:52;2238:29;2257:9;2238:29;:::i;:::-;2228:39;2314:2;2299:18;;;;2286:32;;-1:-1:-1;;;2070:254:1:o;2511:328::-;2588:6;2596;2604;2657:2;2645:9;2636:7;2632:23;2628:32;2625:52;;;2673:1;2670;2663:12;2625:52;2696:29;2715:9;2696:29;:::i;:::-;2686:39;;2744:38;2778:2;2767:9;2763:18;2744:38;:::i;:::-;2734:48;;2829:2;2818:9;2814:18;2801:32;2791:42;;2511:328;;;;;:::o;2844:186::-;2903:6;2956:2;2944:9;2935:7;2931:23;2927:32;2924:52;;;2972:1;2969;2962:12;2924:52;2995:29;3014:9;2995:29;:::i;3035:184::-;3087:77;3084:1;3077:88;3184:4;3181:1;3174:15;3208:4;3205:1;3198:15;3224:691;3289:5;3319:18;3360:2;3352:6;3349:14;3346:40;;;3366:18;;:::i;:::-;3500:2;3494:9;3566:2;3554:15;;3405:66;3550:24;;;3576:2;3546:33;3542:42;3530:55;;;3600:18;;;3620:22;;;3597:46;3594:72;;;3646:18;;:::i;:::-;3686:10;3682:2;3675:22;3715:6;3706:15;;3745:6;3737;3730:22;3785:3;3776:6;3771:3;3767:16;3764:25;3761:45;;;3802:1;3799;3792:12;3761:45;3852:6;3847:3;3840:4;3832:6;3828:17;3815:44;3907:1;3900:4;3891:6;3883;3879:19;3875:30;3868:41;;;;3224:691;;;;;:::o;3920:451::-;3989:6;4042:2;4030:9;4021:7;4017:23;4013:32;4010:52;;;4058:1;4055;4048:12;4010:52;4098:9;4085:23;4131:18;4123:6;4120:30;4117:50;;;4163:1;4160;4153:12;4117:50;4186:22;;4239:4;4231:13;;4227:27;-1:-1:-1;4217:55:1;;4268:1;4265;4258:12;4217:55;4291:74;4357:7;4352:2;4339:16;4334:2;4330;4326:11;4291:74;:::i;4376:347::-;4441:6;4449;4502:2;4490:9;4481:7;4477:23;4473:32;4470:52;;;4518:1;4515;4508:12;4470:52;4541:29;4560:9;4541:29;:::i;:::-;4531:39;;4620:2;4609:9;4605:18;4592:32;4667:5;4660:13;4653:21;4646:5;4643:32;4633:60;;4689:1;4686;4679:12;4633:60;4712:5;4702:15;;;4376:347;;;;;:::o;4728:667::-;4823:6;4831;4839;4847;4900:3;4888:9;4879:7;4875:23;4871:33;4868:53;;;4917:1;4914;4907:12;4868:53;4940:29;4959:9;4940:29;:::i;:::-;4930:39;;4988:38;5022:2;5011:9;5007:18;4988:38;:::i;:::-;4978:48;;5073:2;5062:9;5058:18;5045:32;5035:42;;5128:2;5117:9;5113:18;5100:32;5155:18;5147:6;5144:30;5141:50;;;5187:1;5184;5177:12;5141:50;5210:22;;5263:4;5255:13;;5251:27;-1:-1:-1;5241:55:1;;5292:1;5289;5282:12;5241:55;5315:74;5381:7;5376:2;5363:16;5358:2;5354;5350:11;5315:74;:::i;:::-;5305:84;;;4728:667;;;;;;;:::o;5400:260::-;5468:6;5476;5529:2;5517:9;5508:7;5504:23;5500:32;5497:52;;;5545:1;5542;5535:12;5497:52;5568:29;5587:9;5568:29;:::i;:::-;5558:39;;5616:38;5650:2;5639:9;5635:18;5616:38;:::i;:::-;5606:48;;5400:260;;;;;:::o;5665:437::-;5744:1;5740:12;;;;5787;;;5808:61;;5862:4;5854:6;5850:17;5840:27;;5808:61;5915:2;5907:6;5904:14;5884:18;5881:38;5878:218;;5952:77;5949:1;5942:88;6053:4;6050:1;6043:15;6081:4;6078:1;6071:15;5878:218;;5665:437;;;:::o;8111:184::-;8163:77;8160:1;8153:88;8260:4;8257:1;8250:15;8284:4;8281:1;8274:15;8300:125;8365:9;;;8386:10;;;8383:36;;;8399:18;;:::i;8780:195::-;8819:3;8850:66;8843:5;8840:77;8837:103;;8920:18;;:::i;:::-;-1:-1:-1;8967:1:1;8956:13;;8780:195::o;9393:184::-;9445:77;9442:1;9435:88;9542:4;9539:1;9532:15;9566:4;9563:1;9556:15;10052:545;10154:2;10149:3;10146:11;10143:448;;;10190:1;10215:5;10211:2;10204:17;10260:4;10256:2;10246:19;10330:2;10318:10;10314:19;10311:1;10307:27;10301:4;10297:38;10366:4;10354:10;10351:20;10348:47;;;-1:-1:-1;10389:4:1;10348:47;10444:2;10439:3;10435:12;10432:1;10428:20;10422:4;10418:31;10408:41;;10499:82;10517:2;10510:5;10507:13;10499:82;;;10562:17;;;10543:1;10532:13;10499:82;;;10503:3;;;10052:545;;;:::o;10833:1471::-;10959:3;10953:10;10986:18;10978:6;10975:30;10972:56;;;11008:18;;:::i;:::-;11037:97;11127:6;11087:38;11119:4;11113:11;11087:38;:::i;:::-;11081:4;11037:97;:::i;:::-;11189:4;;11253:2;11242:14;;11270:1;11265:782;;;;12091:1;12108:6;12105:89;;;-1:-1:-1;12160:19:1;;;12154:26;12105:89;10739:66;10730:1;10726:11;;;10722:84;10718:89;10708:100;10814:1;10810:11;;;10705:117;12207:81;;11235:1063;;11265:782;9999:1;9992:14;;;10036:4;10023:18;;11313:66;11301:79;;;11478:236;11492:7;11489:1;11486:14;11478:236;;;11581:19;;;11575:26;11560:42;;11673:27;;;;11641:1;11629:14;;;;11508:19;;11478:236;;;11482:3;11742:6;11733:7;11730:19;11727:261;;;11803:19;;;11797:26;11904:66;11886:1;11882:14;;;11898:3;11878:24;11874:97;11870:102;11855:118;11840:134;;11727:261;-1:-1:-1;;;;;12034:1:1;12018:14;;;12014:22;12001:36;;-1:-1:-1;10833:1471:1:o;13488:663::-;13768:3;13806:6;13800:13;13822:66;13881:6;13876:3;13869:4;13861:6;13857:17;13822:66;:::i;:::-;13951:13;;13910:16;;;;13973:70;13951:13;13910:16;14020:4;14008:17;;13973:70;:::i;:::-;14108:7;14065:20;;14094:22;;;14143:1;14132:13;;13488:663;-1:-1:-1;;;;13488:663:1:o;18513:512::-;18707:4;-1:-1:-1;;;;;18817:2:1;18809:6;18805:15;18794:9;18787:34;18869:2;18861:6;18857:15;18852:2;18841:9;18837:18;18830:43;;18909:6;18904:2;18893:9;18889:18;18882:34;18952:3;18947:2;18936:9;18932:18;18925:31;18973:46;19014:3;19003:9;18999:19;18991:6;18973:46;:::i;:::-;18965:54;18513:512;-1:-1:-1;;;;;;18513:512:1:o;19030:249::-;19099:6;19152:2;19140:9;19131:7;19127:23;19123:32;19120:52;;;19168:1;19165;19158:12;19120:52;19200:9;19194:16;19219:30;19243:5;19219:30;:::i;19706:128::-;19773:9;;;19794:11;;;19791:37;;;19808:18;;:::i;19839:184::-;19891:77;19888:1;19881:88;19988:4;19985:1;19978:15;20012:4;20009:1;20002:15
Swarm Source
ipfs://662cece58e5a0e77780f297ab174c7cd35aedef55779a7cb821c344fdcbb8d67
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.