Overview
TokenID
4210
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CyberPunkPi3D
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-19 */ // 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 CyberPunkPi3D is Ownable, ERC721Enumerable, Pausable { using Counters for Counters.Counter; using Strings for uint256; string private baseTokenURI; uint256 TOTAL_TOKEN = 6280; 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 removeMiner(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":"removeMiner","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
6080604052611888600d553480156200001757600080fd5b5060405162002523380380620025238339810160408190526200003a916200019e565b8282620000473362000089565b6001620000558382620002be565b506002620000648282620002be565b5050600b805460ff1916905550600c6200007f8282620002be565b505050506200038a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200010157600080fd5b81516001600160401b03808211156200011e576200011e620000d9565b604051601f8301601f19908116603f01168101908282118183101715620001495762000149620000d9565b816040528381526020925086838588010111156200016657600080fd5b600091505b838210156200018a57858201830151818301840152908201906200016b565b600093810190920192909252949350505050565b600080600060608486031215620001b457600080fd5b83516001600160401b0380821115620001cc57600080fd5b620001da87838801620000ef565b94506020860151915080821115620001f157600080fd5b620001ff87838801620000ef565b935060408601519150808211156200021657600080fd5b506200022586828701620000ef565b9150509250925092565b600181811c908216806200024457607f821691505b6020821081036200026557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002b957600081815260208120601f850160051c81016020861015620002945750805b601f850160051c820191505b81811015620002b557828155600101620002a0565b5050505b505050565b81516001600160401b03811115620002da57620002da620000d9565b620002f281620002eb84546200022f565b846200026b565b602080601f8311600181146200032a5760008415620003115750858301515b600019600386901b1c1916600185901b178555620002b5565b600085815260208120601f198616915b828110156200035b578886015182559484019460019091019084016200033a565b50858210156200037a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612189806200039a6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635c975abb116101045780638da5cb5b116100a2578063c87b56dd11610071578063c87b56dd146103c6578063e985e9c5146103d9578063f2fde38b14610415578063f3982e5e1461042857600080fd5b80638da5cb5b1461038757806395d89b4114610398578063a22cb465146103a0578063b88d4fde146103b357600080fd5b80636a627842116100de5780636a6278421461035157806370a0823114610364578063715018a6146103775780638456cb591461037f57600080fd5b80635c975abb146103105780636352211e1461031b578063648ec7b91461032e57600080fd5b80632f745c591161017157806342842e0e1161014b57806342842e0e146102c457806343508b05146102d75780634f6ccce7146102ea57806355f804b3146102fd57600080fd5b80632f745c59146102895780633b9418fd1461029c5780633f4ba83a146102bc57600080fd5b8063095ea7b3116101ad578063095ea7b31461023c578063102425901461025157806318160ddd1461026457806323b872dd1461027657600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e2366004611b17565b61043b565b60405190151581526020015b60405180910390f35b610204610466565b6040516101f39190611b84565b61022461021f366004611b97565b6104f8565b6040516001600160a01b0390911681526020016101f3565b61024f61024a366004611bcc565b61051f565b005b61024f61025f366004611bf6565b610639565b6009545b6040519081526020016101f3565b61024f610284366004611c11565b6106aa565b610268610297366004611bcc565b6106db565b6102686102aa366004611bf6565b60106020526000908152604090205481565b61024f610771565b61024f6102d2366004611c11565b610783565b61024f6102e5366004611bcc565b61079e565b6102686102f8366004611b97565b610898565b61024f61030b366004611cd9565b61092b565b600b5460ff166101e7565b610224610329366004611b97565b610943565b6101e761033c366004611bf6565b600f6020526000908152604090205460ff1681565b61024f61035f366004611bf6565b6109a3565b610268610372366004611bf6565b610a97565b61024f610b1d565b61024f610b2f565b6000546001600160a01b0316610224565b610204610b3f565b61024f6103ae366004611d22565b610b4e565b61024f6103c1366004611d5e565b610b59565b6102046103d4366004611b97565b610b8b565b6101e76103e7366004611dda565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61024f610423366004611bf6565b610c66565b61024f610436366004611bf6565b610cdf565b60006001600160e01b0319821663780e9d6360e01b1480610460575061046082610d53565b92915050565b60606001805461047590611e0d565b80601f01602080910402602001604051908101604052809291908181526020018280546104a190611e0d565b80156104ee5780601f106104c3576101008083540402835291602001916104ee565b820191906000526020600020905b8154815290600101906020018083116104d157829003601f168201915b5050505050905090565b600061050382610da3565b506000908152600560205260409020546001600160a01b031690565b600061052a82610943565b9050806001600160a01b0316836001600160a01b03160361059c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105b857506105b881336103e7565b61062a5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610593565b6106348383610e02565b505050565b610641610e70565b6001600160a01b0381166106895760405162461bcd60e51b815260206004820152600f60248201526e4973207a65726f206164647265737360881b6044820152606401610593565b6001600160a01b03166000908152600f60205260409020805460ff19169055565b6106b43382610eca565b6106d05760405162461bcd60e51b815260040161059390611e47565b610634838383610f49565b60006106e683610a97565b82106107485760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610593565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610779610e70565b6107816110ba565b565b61063483838360405180602001604052806000815250610b59565b336000908152600f602052604090205460ff16806107c657506000546001600160a01b031633145b6108065760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b6044820152606401610593565b61080e61110c565b80600d548161081c60095490565b6108269190611eaa565b111561086c5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881cdd5c1c1b1e48195e18d959591959605a1b6044820152606401610593565b60005b8281101561089257610880846109a3565b8061088a81611ebd565b91505061086f565b50505050565b60006108a360095490565b82106109065760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610593565b6009828154811061091957610919611ed6565b90600052602060002001549050919050565b610933610e70565b600c61093f8282611f3a565b5050565b6000818152600360205260408120546001600160a01b0316806104605760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610593565b336000908152600f602052604090205460ff16806109cb57506000546001600160a01b031633145b610a0b5760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b6044820152606401610593565b610a1361110c565b6001600d5481610a2260095490565b610a2c9190611eaa565b1115610a725760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881cdd5c1c1b1e48195e18d959591959605a1b6044820152606401610593565b610a80600e80546001019055565b6000610a8b600e5490565b90506106348382611152565b60006001600160a01b038216610b015760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610593565b506001600160a01b031660009081526004602052604090205490565b610b25610e70565b61078160006112eb565b610b37610e70565b61078161133b565b60606002805461047590611e0d565b61093f338383611378565b610b633383610eca565b610b7f5760405162461bcd60e51b815260040161059390611e47565b61089284848484611446565b6000818152600360205260409020546060906001600160a01b0316610c0a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610593565b6000610c14611479565b90506000815111610c345760405180602001604052806000815250610c5f565b80610c3e84611488565b604051602001610c4f929190611ffa565b6040516020818303038152906040525b9392505050565b610c6e610e70565b6001600160a01b038116610cd35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610593565b610cdc816112eb565b50565b610ce7610e70565b6001600160a01b038116610d2f5760405162461bcd60e51b815260206004820152600f60248201526e4973207a65726f206164647265737360881b6044820152606401610593565b6001600160a01b03166000908152600f60205260409020805460ff19166001179055565b60006001600160e01b031982166380ac58cd60e01b1480610d8457506001600160e01b03198216635b5e139f60e01b145b8061046057506301ffc9a760e01b6001600160e01b0319831614610460565b6000818152600360205260409020546001600160a01b0316610cdc5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610593565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e3782610943565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000546001600160a01b031633146107815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610593565b600080610ed683610943565b9050806001600160a01b0316846001600160a01b03161480610f1d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80610f415750836001600160a01b0316610f36846104f8565b6001600160a01b0316145b949350505050565b826001600160a01b0316610f5c82610943565b6001600160a01b031614610f825760405162461bcd60e51b815260040161059390612039565b6001600160a01b038216610fe45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610593565b610ff1838383600161151b565b826001600160a01b031661100482610943565b6001600160a01b03161461102a5760405162461bcd60e51b815260040161059390612039565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6110c2611587565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff16156107815760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610593565b6001600160a01b0382166111a85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610593565b6000818152600360205260409020546001600160a01b03161561120d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610593565b61121b60008383600161151b565b6000818152600360205260409020546001600160a01b0316156112805760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610593565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61134361110c565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110ef3390565b816001600160a01b0316836001600160a01b0316036113d95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610593565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611451848484610f49565b61145d848484846115d0565b6108925760405162461bcd60e51b81526004016105939061207e565b6060600c805461047590611e0d565b60606000611495836116d1565b600101905060008167ffffffffffffffff8111156114b5576114b5611c4d565b6040519080825280601f01601f1916602001820160405280156114df576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114e957509392505050565b61152884848460016117a9565b600b5460ff16156108925760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20746f6b656e207472616e73666572207768696c65207061756044820152621cd95960ea1b6064820152608401610593565b600b5460ff166107815760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610593565b60006001600160a01b0384163b156116c657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906116149033908990889088906004016120d0565b6020604051808303816000875af192505050801561164f575060408051601f3d908101601f1916820190925261164c9181019061210d565b60015b6116ac573d80801561167d576040519150601f19603f3d011682016040523d82523d6000602084013e611682565b606091505b5080516000036116a45760405162461bcd60e51b81526004016105939061207e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f41565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117105772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061173c576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061175a57662386f26fc10000830492506010015b6305f5e1008310611772576305f5e100830492506008015b612710831061178657612710830492506004015b60648310611798576064830492506002015b600a83106104605760010192915050565b6117b5848484846118e9565b60018111156118245760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610593565b816001600160a01b0385166118805761187b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6118a3565b836001600160a01b0316856001600160a01b0316146118a3576118a38582611971565b6001600160a01b0384166118bf576118ba81611a0e565b6118e2565b846001600160a01b0316846001600160a01b0316146118e2576118e28482611abd565b5050505050565b6001811115610892576001600160a01b0384161561192f576001600160a01b0384166000908152600460205260408120805483929061192990849061212a565b90915550505b6001600160a01b03831615610892576001600160a01b03831660009081526004602052604081208054839290611966908490611eaa565b909155505050505050565b6000600161197e84610a97565b611988919061212a565b6000838152600860205260409020549091508082146119db576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611a209060019061212a565b6000838152600a602052604081205460098054939450909284908110611a4857611a48611ed6565b906000526020600020015490508060098381548110611a6957611a69611ed6565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611aa157611aa161213d565b6001900381819060005260206000200160009055905550505050565b6000611ac883610a97565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160e01b031981168114610cdc57600080fd5b600060208284031215611b2957600080fd5b8135610c5f81611b01565b60005b83811015611b4f578181015183820152602001611b37565b50506000910152565b60008151808452611b70816020860160208601611b34565b601f01601f19169290920160200192915050565b602081526000610c5f6020830184611b58565b600060208284031215611ba957600080fd5b5035919050565b80356001600160a01b0381168114611bc757600080fd5b919050565b60008060408385031215611bdf57600080fd5b611be883611bb0565b946020939093013593505050565b600060208284031215611c0857600080fd5b610c5f82611bb0565b600080600060608486031215611c2657600080fd5b611c2f84611bb0565b9250611c3d60208501611bb0565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611c7e57611c7e611c4d565b604051601f8501601f19908116603f01168101908282118183101715611ca657611ca6611c4d565b81604052809350858152868686011115611cbf57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ceb57600080fd5b813567ffffffffffffffff811115611d0257600080fd5b8201601f81018413611d1357600080fd5b610f4184823560208401611c63565b60008060408385031215611d3557600080fd5b611d3e83611bb0565b915060208301358015158114611d5357600080fd5b809150509250929050565b60008060008060808587031215611d7457600080fd5b611d7d85611bb0565b9350611d8b60208601611bb0565b925060408501359150606085013567ffffffffffffffff811115611dae57600080fd5b8501601f81018713611dbf57600080fd5b611dce87823560208401611c63565b91505092959194509250565b60008060408385031215611ded57600080fd5b611df683611bb0565b9150611e0460208401611bb0565b90509250929050565b600181811c90821680611e2157607f821691505b602082108103611e4157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561046057610460611e94565b600060018201611ecf57611ecf611e94565b5060010190565b634e487b7160e01b600052603260045260246000fd5b601f82111561063457600081815260208120601f850160051c81016020861015611f135750805b601f850160051c820191505b81811015611f3257828155600101611f1f565b505050505050565b815167ffffffffffffffff811115611f5457611f54611c4d565b611f6881611f628454611e0d565b84611eec565b602080601f831160018114611f9d5760008415611f855750858301515b600019600386901b1c1916600185901b178555611f32565b600085815260208120601f198616915b82811015611fcc57888601518255948401946001909101908401611fad565b5085821015611fea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161200c818460208801611b34565b835190830190612020818360208801611b34565b64173539b7b760d91b9101908152600501949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061210390830184611b58565b9695505050505050565b60006020828403121561211f57600080fd5b8151610c5f81611b01565b8181038181111561046057610460611e94565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220be8836728442ac6b0a45d5f260d22345a8ff34b01dc524675f7fd7302c57fe4564736f6c63430008120033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000f437962657250756e6b2050692033440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f437962657250756e6b20506920334400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696270356b7273343476653566797736663335696976736b7936616f6c6f786b6e6b7032663635646b6a73626f6b746861623761652f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635c975abb116101045780638da5cb5b116100a2578063c87b56dd11610071578063c87b56dd146103c6578063e985e9c5146103d9578063f2fde38b14610415578063f3982e5e1461042857600080fd5b80638da5cb5b1461038757806395d89b4114610398578063a22cb465146103a0578063b88d4fde146103b357600080fd5b80636a627842116100de5780636a6278421461035157806370a0823114610364578063715018a6146103775780638456cb591461037f57600080fd5b80635c975abb146103105780636352211e1461031b578063648ec7b91461032e57600080fd5b80632f745c591161017157806342842e0e1161014b57806342842e0e146102c457806343508b05146102d75780634f6ccce7146102ea57806355f804b3146102fd57600080fd5b80632f745c59146102895780633b9418fd1461029c5780633f4ba83a146102bc57600080fd5b8063095ea7b3116101ad578063095ea7b31461023c578063102425901461025157806318160ddd1461026457806323b872dd1461027657600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e2366004611b17565b61043b565b60405190151581526020015b60405180910390f35b610204610466565b6040516101f39190611b84565b61022461021f366004611b97565b6104f8565b6040516001600160a01b0390911681526020016101f3565b61024f61024a366004611bcc565b61051f565b005b61024f61025f366004611bf6565b610639565b6009545b6040519081526020016101f3565b61024f610284366004611c11565b6106aa565b610268610297366004611bcc565b6106db565b6102686102aa366004611bf6565b60106020526000908152604090205481565b61024f610771565b61024f6102d2366004611c11565b610783565b61024f6102e5366004611bcc565b61079e565b6102686102f8366004611b97565b610898565b61024f61030b366004611cd9565b61092b565b600b5460ff166101e7565b610224610329366004611b97565b610943565b6101e761033c366004611bf6565b600f6020526000908152604090205460ff1681565b61024f61035f366004611bf6565b6109a3565b610268610372366004611bf6565b610a97565b61024f610b1d565b61024f610b2f565b6000546001600160a01b0316610224565b610204610b3f565b61024f6103ae366004611d22565b610b4e565b61024f6103c1366004611d5e565b610b59565b6102046103d4366004611b97565b610b8b565b6101e76103e7366004611dda565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b61024f610423366004611bf6565b610c66565b61024f610436366004611bf6565b610cdf565b60006001600160e01b0319821663780e9d6360e01b1480610460575061046082610d53565b92915050565b60606001805461047590611e0d565b80601f01602080910402602001604051908101604052809291908181526020018280546104a190611e0d565b80156104ee5780601f106104c3576101008083540402835291602001916104ee565b820191906000526020600020905b8154815290600101906020018083116104d157829003601f168201915b5050505050905090565b600061050382610da3565b506000908152600560205260409020546001600160a01b031690565b600061052a82610943565b9050806001600160a01b0316836001600160a01b03160361059c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105b857506105b881336103e7565b61062a5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610593565b6106348383610e02565b505050565b610641610e70565b6001600160a01b0381166106895760405162461bcd60e51b815260206004820152600f60248201526e4973207a65726f206164647265737360881b6044820152606401610593565b6001600160a01b03166000908152600f60205260409020805460ff19169055565b6106b43382610eca565b6106d05760405162461bcd60e51b815260040161059390611e47565b610634838383610f49565b60006106e683610a97565b82106107485760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610593565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610779610e70565b6107816110ba565b565b61063483838360405180602001604052806000815250610b59565b336000908152600f602052604090205460ff16806107c657506000546001600160a01b031633145b6108065760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b6044820152606401610593565b61080e61110c565b80600d548161081c60095490565b6108269190611eaa565b111561086c5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881cdd5c1c1b1e48195e18d959591959605a1b6044820152606401610593565b60005b8281101561089257610880846109a3565b8061088a81611ebd565b91505061086f565b50505050565b60006108a360095490565b82106109065760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610593565b6009828154811061091957610919611ed6565b90600052602060002001549050919050565b610933610e70565b600c61093f8282611f3a565b5050565b6000818152600360205260408120546001600160a01b0316806104605760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610593565b336000908152600f602052604090205460ff16806109cb57506000546001600160a01b031633145b610a0b5760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b6044820152606401610593565b610a1361110c565b6001600d5481610a2260095490565b610a2c9190611eaa565b1115610a725760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881cdd5c1c1b1e48195e18d959591959605a1b6044820152606401610593565b610a80600e80546001019055565b6000610a8b600e5490565b90506106348382611152565b60006001600160a01b038216610b015760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610593565b506001600160a01b031660009081526004602052604090205490565b610b25610e70565b61078160006112eb565b610b37610e70565b61078161133b565b60606002805461047590611e0d565b61093f338383611378565b610b633383610eca565b610b7f5760405162461bcd60e51b815260040161059390611e47565b61089284848484611446565b6000818152600360205260409020546060906001600160a01b0316610c0a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610593565b6000610c14611479565b90506000815111610c345760405180602001604052806000815250610c5f565b80610c3e84611488565b604051602001610c4f929190611ffa565b6040516020818303038152906040525b9392505050565b610c6e610e70565b6001600160a01b038116610cd35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610593565b610cdc816112eb565b50565b610ce7610e70565b6001600160a01b038116610d2f5760405162461bcd60e51b815260206004820152600f60248201526e4973207a65726f206164647265737360881b6044820152606401610593565b6001600160a01b03166000908152600f60205260409020805460ff19166001179055565b60006001600160e01b031982166380ac58cd60e01b1480610d8457506001600160e01b03198216635b5e139f60e01b145b8061046057506301ffc9a760e01b6001600160e01b0319831614610460565b6000818152600360205260409020546001600160a01b0316610cdc5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610593565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e3782610943565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000546001600160a01b031633146107815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610593565b600080610ed683610943565b9050806001600160a01b0316846001600160a01b03161480610f1d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80610f415750836001600160a01b0316610f36846104f8565b6001600160a01b0316145b949350505050565b826001600160a01b0316610f5c82610943565b6001600160a01b031614610f825760405162461bcd60e51b815260040161059390612039565b6001600160a01b038216610fe45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610593565b610ff1838383600161151b565b826001600160a01b031661100482610943565b6001600160a01b03161461102a5760405162461bcd60e51b815260040161059390612039565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6110c2611587565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600b5460ff16156107815760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610593565b6001600160a01b0382166111a85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610593565b6000818152600360205260409020546001600160a01b03161561120d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610593565b61121b60008383600161151b565b6000818152600360205260409020546001600160a01b0316156112805760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610593565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61134361110c565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110ef3390565b816001600160a01b0316836001600160a01b0316036113d95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610593565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611451848484610f49565b61145d848484846115d0565b6108925760405162461bcd60e51b81526004016105939061207e565b6060600c805461047590611e0d565b60606000611495836116d1565b600101905060008167ffffffffffffffff8111156114b5576114b5611c4d565b6040519080825280601f01601f1916602001820160405280156114df576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114e957509392505050565b61152884848460016117a9565b600b5460ff16156108925760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20746f6b656e207472616e73666572207768696c65207061756044820152621cd95960ea1b6064820152608401610593565b600b5460ff166107815760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610593565b60006001600160a01b0384163b156116c657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906116149033908990889088906004016120d0565b6020604051808303816000875af192505050801561164f575060408051601f3d908101601f1916820190925261164c9181019061210d565b60015b6116ac573d80801561167d576040519150601f19603f3d011682016040523d82523d6000602084013e611682565b606091505b5080516000036116a45760405162461bcd60e51b81526004016105939061207e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f41565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106117105772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061173c576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061175a57662386f26fc10000830492506010015b6305f5e1008310611772576305f5e100830492506008015b612710831061178657612710830492506004015b60648310611798576064830492506002015b600a83106104605760010192915050565b6117b5848484846118e9565b60018111156118245760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610593565b816001600160a01b0385166118805761187b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6118a3565b836001600160a01b0316856001600160a01b0316146118a3576118a38582611971565b6001600160a01b0384166118bf576118ba81611a0e565b6118e2565b846001600160a01b0316846001600160a01b0316146118e2576118e28482611abd565b5050505050565b6001811115610892576001600160a01b0384161561192f576001600160a01b0384166000908152600460205260408120805483929061192990849061212a565b90915550505b6001600160a01b03831615610892576001600160a01b03831660009081526004602052604081208054839290611966908490611eaa565b909155505050505050565b6000600161197e84610a97565b611988919061212a565b6000838152600860205260409020549091508082146119db576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611a209060019061212a565b6000838152600a602052604081205460098054939450909284908110611a4857611a48611ed6565b906000526020600020015490508060098381548110611a6957611a69611ed6565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611aa157611aa161213d565b6001900381819060005260206000200160009055905550505050565b6000611ac883610a97565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160e01b031981168114610cdc57600080fd5b600060208284031215611b2957600080fd5b8135610c5f81611b01565b60005b83811015611b4f578181015183820152602001611b37565b50506000910152565b60008151808452611b70816020860160208601611b34565b601f01601f19169290920160200192915050565b602081526000610c5f6020830184611b58565b600060208284031215611ba957600080fd5b5035919050565b80356001600160a01b0381168114611bc757600080fd5b919050565b60008060408385031215611bdf57600080fd5b611be883611bb0565b946020939093013593505050565b600060208284031215611c0857600080fd5b610c5f82611bb0565b600080600060608486031215611c2657600080fd5b611c2f84611bb0565b9250611c3d60208501611bb0565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611c7e57611c7e611c4d565b604051601f8501601f19908116603f01168101908282118183101715611ca657611ca6611c4d565b81604052809350858152868686011115611cbf57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611ceb57600080fd5b813567ffffffffffffffff811115611d0257600080fd5b8201601f81018413611d1357600080fd5b610f4184823560208401611c63565b60008060408385031215611d3557600080fd5b611d3e83611bb0565b915060208301358015158114611d5357600080fd5b809150509250929050565b60008060008060808587031215611d7457600080fd5b611d7d85611bb0565b9350611d8b60208601611bb0565b925060408501359150606085013567ffffffffffffffff811115611dae57600080fd5b8501601f81018713611dbf57600080fd5b611dce87823560208401611c63565b91505092959194509250565b60008060408385031215611ded57600080fd5b611df683611bb0565b9150611e0460208401611bb0565b90509250929050565b600181811c90821680611e2157607f821691505b602082108103611e4157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561046057610460611e94565b600060018201611ecf57611ecf611e94565b5060010190565b634e487b7160e01b600052603260045260246000fd5b601f82111561063457600081815260208120601f850160051c81016020861015611f135750805b601f850160051c820191505b81811015611f3257828155600101611f1f565b505050505050565b815167ffffffffffffffff811115611f5457611f54611c4d565b611f6881611f628454611e0d565b84611eec565b602080601f831160018114611f9d5760008415611f855750858301515b600019600386901b1c1916600185901b178555611f32565b600085815260208120601f198616915b82811015611fcc57888601518255948401946001909101908401611fad565b5085821015611fea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161200c818460208801611b34565b835190830190612020818360208801611b34565b64173539b7b760d91b9101908152600501949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061210390830184611b58565b9695505050505050565b60006020828403121561211f57600080fd5b8151610c5f81611b01565b8181038181111561046057610460611e94565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220be8836728442ac6b0a45d5f260d22345a8ff34b01dc524675f7fd7302c57fe4564736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000f437962657250756e6b2050692033440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f437962657250756e6b20506920334400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696270356b7273343476653566797736663335696976736b7936616f6c6f786b6e6b7032663635646b6a73626f6b746861623761652f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): CyberPunk Pi 3D
Arg [1] : _symbol (string): CyberPunk Pi 3D
Arg [2] : _baseTokenURI (string): ipfs://bafybeibp5krs44ve5fyw6f35iivsky6aoloxknkp2f65dkjsbokthab7ae/
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [4] : 437962657250756e6b2050692033440000000000000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [6] : 437962657250756e6b2050692033440000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [8] : 697066733a2f2f626166796265696270356b7273343476653566797736663335
Arg [9] : 696976736b7936616f6c6f786b6e6b7032663635646b6a73626f6b7468616237
Arg [10] : 61652f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
66831:2746:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59302:224;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;59302:224:0;;;;;;;;42272:100;;;:::i;:::-;;;;;;;:::i;43784:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;43784:171:0;1533:203:1;43302:416:0;;;;;;:::i;:::-;;:::i;:::-;;68395:149;;;;;;:::i;:::-;;:::i;59942:113::-;60030:10;:17;59942:113;;;2515:25:1;;;2503:2;2488:18;59942:113:0;2369:177:1;44484:335:0;;;;;;:::i;:::-;;:::i;59610:256::-;;;;;;:::i;:::-;;:::i;67137:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;69194:67;;;:::i;44890:185::-;;;;;;:::i;:::-;;:::i;68917:200::-;;;;;;:::i;:::-;;:::i;60132:233::-;;;;;;:::i;:::-;;:::i;67388:97::-;;;;;;:::i;:::-;;:::i;5349:86::-;5420:7;;;;5349:86;;41982:223;;;;;;:::i;:::-;;:::i;67092:38::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;68552:359;;;;;;:::i;:::-;;:::i;41713:207::-;;;;;;:::i;:::-;;:::i;2853:103::-;;;:::i;69123: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;67616: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;68241:146::-;;;;;;:::i;:::-;;:::i;59302:224::-;59404:4;-1:-1:-1;;;;;;59428:50:0;;-1:-1:-1;;;59428:50:0;;: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;;5985:2:1;43433:57:0;;;5967:21:1;6024:2;6004:18;;;5997:30;6063:34;6043:18;;;6036:62;-1:-1:-1;;;6114:18:1;;;6107:31;6155: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;;6387:2:1;43503:173:0;;;6369:21:1;6426:2;6406:18;;;6399:30;6465:34;6445:18;;;6438:62;6536:31;6516:18;;;6509:59;6585:19;;43503:173:0;6185:425:1;43503:173:0;43689:21;43698:2;43702:7;43689:8;:21::i;:::-;43372:346;43302:416;;:::o;68395:149::-;2091:13;:11;:13::i;:::-;-1:-1:-1;;;;;68467:18:0;::::1;68459:46;;;::::0;-1:-1:-1;;;68459:46:0;;6817:2:1;68459:46:0::1;::::0;::::1;6799:21:1::0;6856:2;6836:18;;;6829:30;-1:-1:-1;;;6875:18:1;;;6868:45;6930:18;;68459:46:0::1;6615:339:1::0;68459:46:0::1;-1:-1:-1::0;;;;;68516:12:0::1;68531:5;68516:12:::0;;;:6:::1;:12;::::0;;;;:20;;-1:-1:-1;;68516:20:0::1;::::0;;68395:149::o;44484:335::-;44679:41;830:10;44712:7;44679:18;:41::i;:::-;44671:99;;;;-1:-1:-1;;;44671:99:0;;;;;;;:::i;:::-;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;;7575:2:1;59727:87:0;;;7557:21:1;7614:2;7594:18;;;7587:30;7653:34;7633:18;;;7626:62;-1:-1:-1;;;7704:18:1;;;7697:41;7755:19;;59727:87:0;7373:407:1;59727:87:0;-1:-1:-1;;;;;;59832:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;59610:256::o;69194:67::-;2091:13;:11;:13::i;:::-;69243:10:::1;:8;:10::i;:::-;69194:67::o:0;44890:185::-;45028:39;45045:4;45051:2;45055:7;45028:39;;;;;;;;;;;;:16;:39::i;68917:200::-;68155:10;68148:18;;;;:6;:18;;;;;;;;;:43;;-1:-1:-1;2251:7:0;2278:6;-1:-1:-1;;;;;2278:6:0;68170:10;:21;68148:43;68140:73;;;;-1:-1:-1;;;68140:73:0;;7987:2:1;68140:73:0;;;7969:21:1;8026:2;8006:18;;;7999:30;-1:-1:-1;;;8045:18:1;;;8038:47;8102:18;;68140:73:0;7785:341:1;68140:73:0;4954:19:::1;:17;:19::i;:::-;69015:8:::2;68042:11;;68037:1;68021:13;60030:10:::0;:17;;59942:113;68021:13:::2;:17;;;;:::i;:::-;:32;;68013:66;;;::::0;-1:-1:-1;;;68013:66:0;;8595:2:1;68013:66:0::2;::::0;::::2;8577:21:1::0;8634:2;8614:18;;;8607:30;-1:-1:-1;;;8653:18:1;;;8646:51;8714:18;;68013:66:0::2;8393:345:1::0;68013:66:0::2;69041:9:::3;69036:74;69060:8;69056:1;:12;69036:74;;;69090:8;69095:2;69090:4;:8::i;:::-;69070:3:::0;::::3;::::0;::::3;:::i;:::-;;;;69036:74;;;;4984:1:::2;68917: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;;9085:2:1;60227:95:0;;;9067:21:1;9124:2;9104:18;;;9097:30;9163:34;9143:18;;;9136:62;-1:-1:-1;;;9214:18:1;;;9207:42;9266:19;;60227:95:0;8883:408:1;60227:95:0;60340:10;60351:5;60340:17;;;;;;;;:::i;:::-;;;;;;;;;60333:24;;60132:233;;;:::o;67388:97::-;2091:13;:11;:13::i;:::-;67458:12:::1;:19;67473:4:::0;67458:12;:19:::1;:::i;:::-;;67388: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;;11834:2:1;42118:56:0;;;11816:21:1;11873:2;11853:18;;;11846:30;-1:-1:-1;;;11892:18:1;;;11885:54;11956:18;;42118:56:0;11632:348:1;68552:359:0;68155:10;68148:18;;;;:6;:18;;;;;;;;;:43;;-1:-1:-1;2251:7:0;2278:6;-1:-1:-1;;;;;2278:6:0;68170:10;:21;68148:43;68140:73;;;;-1:-1:-1;;;68140:73:0;;7987:2:1;68140:73:0;;;7969:21:1;8026:2;8006:18;;;7999:30;-1:-1:-1;;;8045:18:1;;;8038:47;8102:18;;68140:73:0;7785:341:1;68140:73:0;4954:19:::1;:17;:19::i;:::-;68627:1:::2;68042:11;;68037:1;68021:13;60030:10:::0;:17;;59942:113;68021:13:::2;:17;;;;:::i;:::-;:32;;68013:66;;;::::0;-1:-1:-1;;;68013:66:0;;8595:2:1;68013:66:0::2;::::0;::::2;8577:21:1::0;8634:2;8614:18;;;8607:30;-1:-1:-1;;;8653:18:1;;;8646:51;8714:18;;68013:66:0::2;8393:345:1::0;68013:66:0::2;68793:27:::3;:15;66328:19:::0;;66346:1;66328:19;;;66239:127;68793:27:::3;68831:15;68849:25;:15;66209:14:::0;;66117:114;68849:25:::3;68831:43;;68885:18;68891:2;68895:7;68885:5;:18::i;41713:207::-:0;41785:7;-1:-1:-1;;;;;41813:19:0;;41805:73;;;;-1:-1:-1;;;41805:73:0;;12187:2:1;41805:73:0;;;12169:21:1;12226:2;12206:18;;;12199:30;12265:34;12245:18;;;12238:62;-1:-1:-1;;;12316:18:1;;;12309:39;12365:19;;41805:73:0;11985: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;69123:63::-:0;2091:13;:11;:13::i;:::-;69170: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;;;;;;;:::i;:::-;45422:38;45436:4;45442:2;45446:7;45455:4;45422:13;:38::i;67616:341::-;47271:4;46869:16;;;:7;:16;;;;;;67689:13;;-1:-1:-1;;;;;46869:16:0;67715:76;;;;-1:-1:-1;;;67715:76:0;;12597:2:1;67715:76:0;;;12579:21:1;12636:2;12616:18;;;12609:30;12675:34;12655:18;;;12648:62;-1:-1:-1;;;12726:18:1;;;12719:45;12781:19;;67715:76:0;12395:411:1;67715:76:0;67802:21;67826:10;:8;:10::i;:::-;67802:34;;67878:1;67860:7;67854:21;:25;:95;;;;;;;;;;;;;;;;;67906:7;67915:18;:7;:16;:18::i;:::-;67889:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;67854:95;67847:102;67616:341;-1:-1:-1;;;67616: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;;13681:2:1;3192:73:0::1;::::0;::::1;13663:21:1::0;13720:2;13700:18;;;13693:30;13759:34;13739:18;;;13732:62;-1:-1:-1;;;13810:18:1;;;13803:36;13856:19;;3192:73:0::1;13479:402:1::0;3192:73:0::1;3276:28;3295:8;3276:18;:28::i;:::-;3111:201:::0;:::o;68241:146::-;2091:13;:11;:13::i;:::-;-1:-1:-1;;;;;68311:18:0;::::1;68303:46;;;::::0;-1:-1:-1;;;68303:46:0;;6817:2:1;68303:46:0::1;::::0;::::1;6799:21:1::0;6856:2;6836:18;;;6829:30;-1:-1:-1;;;6875:18:1;;;6868:45;6930:18;;68303:46:0::1;6615:339:1::0;68303:46:0::1;-1:-1:-1::0;;;;;68360:12:0::1;;::::0;;;:6:::1;:12;::::0;;;;:19;;-1:-1:-1;;68360:19:0::1;68375:4;68360:19;::::0;;68241:146::o;41344:305::-;41446:4;-1:-1:-1;;;;;;41483:40:0;;-1:-1:-1;;;41483:40:0;;:105;;-1:-1:-1;;;;;;;41540:48:0;;-1:-1:-1;;;41540:48:0;41483:105;:158;;;-1:-1:-1;;;;;;;;;;24663:40:0;;;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;;11834:2:1;53677:53:0;;;11816:21:1;11873:2;11853:18;;;11846:30;-1:-1:-1;;;11892:18:1;;;11885:54;11956:18;;53677:53:0;11632:348:1;52882:174:0;52957:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;52957:29:0;-1:-1:-1;;;;;52957:29:0;;;;;;;;:24;;53011:23;52957:24;53011:14;:23::i;:::-;-1:-1:-1;;;;;53002:46:0;;;;;;;;;;;52882:174;;:::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;;14088:2:1;2426:68:0;;;14070:21:1;;;14107:18;;;14100:30;14166:34;14146:18;;;14139:62;14218:18;;2426:68:0;13886:356:1;47501:264:0;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;;;;;;;:::i;:::-;-1:-1:-1;;;;;51724:16:0;;51716:65;;;;-1:-1:-1;;;51716:65:0;;14855:2:1;51716:65:0;;;14837:21:1;14894:2;14874:18;;;14867:30;14933:34;14913:18;;;14906:62;-1:-1:-1;;;14984:18:1;;;14977:34;15028:19;;51716:65:0;14653: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;;;;;;;:::i;:::-;52084:24;;;;:15;:24;;;;;;;;52077:31;;-1:-1:-1;;;;;;52077:31:0;;;;;;-1:-1:-1;;;;;52560:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;52560:20:0;;;52595:13;;;;;;;;;:18;;52077:31;52595:18;;;52635:16;;;:7;:16;;;;;;:21;;;;;;;;;;52674:27;;52100:7;;52674:27;;;43372:346;43302:416;;:::o;6204:120::-;5213:16;:14;:16::i;:::-;6263:7:::1;:15:::0;;-1:-1:-1;;6263:15:0::1;::::0;;6294:22:::1;830:10:::0;6303:12:::1;6294:22;::::0;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;6294:22:0::1;;;;;;;6204:120::o:0;5508:108::-;5420:7;;;;5578:9;5570:38;;;;-1:-1:-1;;;5570:38:0;;15260:2:1;5570:38:0;;;15242:21:1;15299:2;15279:18;;;15272:30;-1:-1:-1;;;15318:18:1;;;15311:46;15374:18;;5570:38:0;15058:340:1;49099:942:0;-1:-1:-1;;;;;49179:16:0;;49171:61;;;;-1:-1:-1;;;49171:61:0;;15605:2:1;49171:61:0;;;15587:21:1;;;15624:18;;;15617:30;15683:34;15663:18;;;15656:62;15735:18;;49171:61:0;15403: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;;15966:2:1;49243:58:0;;;15948:21:1;16005:2;15985:18;;;15978:30;16044;16024:18;;;16017:58;16092:18;;49243:58:0;15764: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;;15966:2:1;49452:58:0;;;15948:21:1;16005:2;15985:18;;;15978:30;16044;16024:18;;;16017:58;16092:18;;49452:58:0;15764:352:1;49452:58:0;-1:-1:-1;;;;;49859:13:0;;;;;;:9;:13;;;;;;;;:18;;49876:1;49859:18;;;49901:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;49901:21:0;;;;;49940:33;49909:7;;49859:13;;49940:33;;49859:13;;49940:33;67458:19:::1;67388:97:::0;:::o;3472:191::-;3546:16;3565:6;;-1:-1:-1;;;;;3582:17:0;;;-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:-1:-1;;6005: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;;16323:2:1;53337:55:0;;;16305:21:1;16362:2;16342:18;;;16335:30;16401:27;16381:18;;;16374:55;16446:18;;53337:55:0;16121:349:1;53337:55:0;-1:-1:-1;;;;;53403:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;53403:46:0;;;;;;;;;;53465:41;;540::1;;;53465::0;;513: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;;;;;;;:::i;67493:113::-;67553:13;67586:12;67579: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;-1:-1:-1;;38451:5:0;-1:-1:-1;;;38588:2:0;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;69269:305::-;69449:47;69476:4;69482:2;69486:7;69494:1;69449:26;:47::i;:::-;5420:7;;;;69517:9;69509:57;;;;-1:-1:-1;;;69509:57:0;;17228:2:1;69509:57:0;;;17210:21:1;17267:2;17247:18;;;17240:30;17306:34;17286:18;;;17279:62;-1:-1:-1;;;17357:18:1;;;17350:33;17400:19;;69509:57:0;17026:399:1;5693:108:0;5420:7;;;;5752:41;;;;-1:-1:-1;;;5752:41:0;;17632:2:1;5752:41:0;;;17614:21:1;17671:2;17651:18;;;17644:30;-1:-1:-1;;;17690:18:1;;;17683:50;17750:18;;5752:41:0;17430:344:1;54302:853:0;54456:4;-1:-1:-1;;;;;54477:13:0;;15783:19;:23;54473:675;;54513:71;;-1:-1:-1;;;54513:71:0;;-1:-1:-1;;;;;54513:36:0;;;;;:71;;830:10;;54564:4;;54570:7;;54579:4;;54513:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54513:71:0;;;;;;;;-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;;;;;;;:::i;54750:328::-;55028:6;55022:13;55013:6;55009:2;55005:15;54998:38;54509:584;-1:-1:-1;;;;;;54635:51:0;-1:-1:-1;;;54635:51:0;;-1:-1:-1;54628:58:0;;54473:675;-1:-1:-1;55132:4:0;54302:853;;;;;;:::o;34897:922::-;34950:7;;-1:-1:-1;;;35028:15:0;;35024:102;;-1:-1:-1;;;35064:15:0;;;-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;;18729:2:1;60837:63:0;;;18711:21:1;18768:2;18748:18;;;18741:30;18807:34;18787:18;;;18780:62;-1:-1:-1;;;18858:18:1;;;18851:51;18919:19;;60837:63:0;18527: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:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2178:186::-;2237:6;2290:2;2278:9;2269:7;2265:23;2261:32;2258:52;;;2306:1;2303;2296:12;2258:52;2329:29;2348:9;2329:29;:::i;2551:328::-;2628:6;2636;2644;2697:2;2685:9;2676:7;2672:23;2668:32;2665:52;;;2713:1;2710;2703:12;2665:52;2736:29;2755:9;2736:29;:::i;:::-;2726:39;;2784:38;2818:2;2807:9;2803:18;2784:38;:::i;:::-;2774:48;;2869:2;2858:9;2854:18;2841:32;2831:42;;2551:328;;;;;:::o;2884:127::-;2945:10;2940:3;2936:20;2933:1;2926:31;2976:4;2973:1;2966:15;3000:4;2997:1;2990:15;3016:632;3081:5;3111:18;3152:2;3144:6;3141:14;3138:40;;;3158:18;;:::i;:::-;3233:2;3227:9;3201:2;3287:15;;-1:-1:-1;;3283:24:1;;;3309:2;3279:33;3275:42;3263:55;;;3333:18;;;3353:22;;;3330:46;3327:72;;;3379:18;;:::i;:::-;3419:10;3415:2;3408:22;3448:6;3439:15;;3478:6;3470;3463:22;3518:3;3509:6;3504:3;3500:16;3497:25;3494:45;;;3535:1;3532;3525:12;3494:45;3585:6;3580:3;3573:4;3565:6;3561:17;3548:44;3640:1;3633:4;3624:6;3616;3612:19;3608:30;3601:41;;;;3016:632;;;;;:::o;3653:451::-;3722:6;3775:2;3763:9;3754:7;3750:23;3746:32;3743:52;;;3791:1;3788;3781:12;3743:52;3831:9;3818:23;3864:18;3856:6;3853:30;3850:50;;;3896:1;3893;3886:12;3850:50;3919:22;;3972:4;3964:13;;3960:27;-1:-1:-1;3950:55:1;;4001:1;3998;3991:12;3950:55;4024:74;4090:7;4085:2;4072:16;4067:2;4063;4059:11;4024:74;:::i;4109:347::-;4174:6;4182;4235:2;4223:9;4214:7;4210:23;4206:32;4203:52;;;4251:1;4248;4241:12;4203:52;4274:29;4293:9;4274:29;:::i;:::-;4264:39;;4353:2;4342:9;4338:18;4325:32;4400:5;4393:13;4386:21;4379:5;4376:32;4366:60;;4422:1;4419;4412:12;4366:60;4445:5;4435:15;;;4109:347;;;;;:::o;4461:667::-;4556:6;4564;4572;4580;4633:3;4621:9;4612:7;4608:23;4604:33;4601:53;;;4650:1;4647;4640:12;4601:53;4673:29;4692:9;4673:29;:::i;:::-;4663:39;;4721:38;4755:2;4744:9;4740:18;4721:38;:::i;:::-;4711:48;;4806:2;4795:9;4791:18;4778:32;4768:42;;4861:2;4850:9;4846:18;4833:32;4888:18;4880:6;4877:30;4874:50;;;4920:1;4917;4910:12;4874:50;4943:22;;4996:4;4988:13;;4984:27;-1:-1:-1;4974:55:1;;5025:1;5022;5015:12;4974:55;5048:74;5114:7;5109:2;5096:16;5091:2;5087;5083:11;5048:74;:::i;:::-;5038:84;;;4461:667;;;;;;;:::o;5133:260::-;5201:6;5209;5262:2;5250:9;5241:7;5237:23;5233:32;5230:52;;;5278:1;5275;5268:12;5230:52;5301:29;5320:9;5301:29;:::i;:::-;5291:39;;5349:38;5383:2;5372:9;5368:18;5349:38;:::i;:::-;5339:48;;5133:260;;;;;:::o;5398:380::-;5477:1;5473:12;;;;5520;;;5541:61;;5595:4;5587:6;5583:17;5573:27;;5541:61;5648:2;5640:6;5637:14;5617:18;5614:38;5611:161;;5694:10;5689:3;5685:20;5682:1;5675:31;5729:4;5726:1;5719:15;5757:4;5754:1;5747:15;5611:161;;5398:380;;;:::o;6959:409::-;7161:2;7143:21;;;7200:2;7180:18;;;7173:30;7239:34;7234:2;7219:18;;7212:62;-1:-1:-1;;;7305:2:1;7290:18;;7283:43;7358:3;7343:19;;6959:409::o;8131:127::-;8192:10;8187:3;8183:20;8180:1;8173:31;8223:4;8220:1;8213:15;8247:4;8244:1;8237:15;8263:125;8328:9;;;8349:10;;;8346:36;;;8362:18;;:::i;8743:135::-;8782:3;8803:17;;;8800:43;;8823:18;;:::i;:::-;-1:-1:-1;8870:1:1;8859:13;;8743:135::o;9296:127::-;9357:10;9352:3;9348:20;9345:1;9338:31;9388:4;9385:1;9378:15;9412:4;9409:1;9402:15;9554:545;9656:2;9651:3;9648:11;9645:448;;;9692:1;9717:5;9713:2;9706:17;9762:4;9758:2;9748:19;9832:2;9820:10;9816:19;9813:1;9809:27;9803:4;9799:38;9868:4;9856:10;9853:20;9850:47;;;-1:-1:-1;9891:4:1;9850:47;9946:2;9941:3;9937:12;9934:1;9930:20;9924:4;9920:31;9910:41;;10001:82;10019:2;10012:5;10009:13;10001:82;;;10064:17;;;10045:1;10034:13;10001:82;;;10005:3;;;9554:545;;;:::o;10275:1352::-;10401:3;10395:10;10428:18;10420:6;10417:30;10414:56;;;10450:18;;:::i;:::-;10479:97;10569:6;10529:38;10561:4;10555:11;10529:38;:::i;:::-;10523:4;10479:97;:::i;:::-;10631:4;;10695:2;10684:14;;10712:1;10707:663;;;;11414:1;11431:6;11428:89;;;-1:-1:-1;11483:19:1;;;11477:26;11428:89;-1:-1:-1;;10232:1:1;10228:11;;;10224:24;10220:29;10210:40;10256:1;10252:11;;;10207:57;11530:81;;10677:944;;10707:663;9501:1;9494:14;;;9538:4;9525:18;;-1:-1:-1;;10743:20:1;;;10861:236;10875:7;10872:1;10869:14;10861:236;;;10964:19;;;10958:26;10943:42;;11056:27;;;;11024:1;11012:14;;;;10891:19;;10861:236;;;10865:3;11125:6;11116:7;11113:19;11110:201;;;11186:19;;;11180:26;-1:-1:-1;;11269:1:1;11265:14;;;11281:3;11261:24;11257:37;11253:42;11238:58;11223:74;;11110:201;-1:-1:-1;;;;;11357:1:1;11341:14;;;11337:22;11324:36;;-1:-1:-1;10275:1352:1:o;12811:663::-;13091:3;13129:6;13123:13;13145:66;13204:6;13199:3;13192:4;13184:6;13180:17;13145:66;:::i;:::-;13274:13;;13233:16;;;;13296:70;13274:13;13233:16;13343:4;13331:17;;13296:70;:::i;:::-;-1:-1:-1;;;13388:20:1;;13417:22;;;13466:1;13455:13;;12811:663;-1:-1:-1;;;;12811:663:1:o;14247:401::-;14449:2;14431:21;;;14488:2;14468:18;;;14461:30;14527:34;14522:2;14507:18;;14500:62;-1:-1:-1;;;14593:2:1;14578:18;;14571:35;14638:3;14623:19;;14247:401::o;16475:414::-;16677:2;16659:21;;;16716:2;16696:18;;;16689:30;16755:34;16750:2;16735:18;;16728:62;-1:-1:-1;;;16821:2:1;16806:18;;16799:48;16879:3;16864:19;;16475:414::o;17779:489::-;-1:-1:-1;;;;;18048:15:1;;;18030:34;;18100:15;;18095:2;18080:18;;18073:43;18147:2;18132:18;;18125:34;;;18195:3;18190:2;18175:18;;18168:31;;;17973:4;;18216:46;;18242:19;;18234:6;18216:46;:::i;:::-;18208:54;17779:489;-1:-1:-1;;;;;;17779:489:1:o;18273:249::-;18342:6;18395:2;18383:9;18374:7;18370:23;18366:32;18363:52;;;18411:1;18408;18401:12;18363:52;18443:9;18437:16;18462:30;18486:5;18462:30;:::i;18949:128::-;19016:9;;;19037:11;;;19034:37;;;19051:18;;:::i;19082:127::-;19143:10;19138:3;19134:20;19131:1;19124:31;19174:4;19171:1;19164:15;19198:4;19195:1;19188:15
Swarm Source
ipfs://be8836728442ac6b0a45d5f260d22345a8ff34b01dc524675f7fd7302c57fe45
Loading...
Loading
Loading...
Loading
[ 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.