Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 516 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21138129 | 46 days ago | IN | 0 ETH | 0.00065534 | ||||
Set Approval For... | 20727356 | 104 days ago | IN | 0 ETH | 0.0001312 | ||||
Set Approval For... | 20486957 | 137 days ago | IN | 0 ETH | 0.00018874 | ||||
Safe Transfer Fr... | 19744102 | 241 days ago | IN | 0 ETH | 0.0003172 | ||||
Set Approval For... | 19454125 | 282 days ago | IN | 0 ETH | 0.00106111 | ||||
Set Approval For... | 18346176 | 437 days ago | IN | 0 ETH | 0.00025173 | ||||
Safe Transfer Fr... | 17864074 | 505 days ago | IN | 0 ETH | 0.00322519 | ||||
Safe Transfer Fr... | 17829001 | 510 days ago | IN | 0 ETH | 0.0021312 | ||||
Set Approval For... | 17435829 | 565 days ago | IN | 0 ETH | 0.00125421 | ||||
Set Approval For... | 17305930 | 583 days ago | IN | 0 ETH | 0.00125448 | ||||
Set Approval For... | 17024514 | 623 days ago | IN | 0 ETH | 0.00045816 | ||||
Safe Transfer Fr... | 17001058 | 626 days ago | IN | 0 ETH | 0.00139119 | ||||
Set Approval For... | 16981423 | 629 days ago | IN | 0 ETH | 0.0013957 | ||||
Set Approval For... | 16886894 | 642 days ago | IN | 0 ETH | 0.00073911 | ||||
Safe Transfer Fr... | 16844131 | 648 days ago | IN | 0 ETH | 0.00130581 | ||||
Safe Transfer Fr... | 16727043 | 665 days ago | IN | 0 ETH | 0.001686 | ||||
Set Approval For... | 16718029 | 666 days ago | IN | 0 ETH | 0.00076044 | ||||
Set Approval For... | 16606304 | 682 days ago | IN | 0 ETH | 0.00084922 | ||||
Safe Transfer Fr... | 16605592 | 682 days ago | IN | 0 ETH | 0.00528672 | ||||
Set Approval For... | 16603541 | 682 days ago | IN | 0 ETH | 0.00079028 | ||||
Set Approval For... | 16564779 | 688 days ago | IN | 0 ETH | 0.00089065 | ||||
Safe Transfer Fr... | 16522966 | 693 days ago | IN | 0 ETH | 0.00114011 | ||||
Safe Transfer Fr... | 16492607 | 698 days ago | IN | 0 ETH | 0.00165201 | ||||
Set Approval For... | 16472284 | 700 days ago | IN | 0 ETH | 0.00080585 | ||||
Set Approval For... | 16414283 | 709 days ago | IN | 0 ETH | 0.00112632 |
Loading...
Loading
Contract Name:
Smowlmfer
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier: MIT // 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; } } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // 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); } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; ////import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; ////import "./IERC165.sol"; /** * @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; } } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.5.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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; ////import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; ////import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; ////import "../../utils/introspection/IERC165.sol"; /** * @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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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); } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; ////import "../IERC721.sol"; /** * @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); } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // 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); } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; ////import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; ////import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; ////import "../utils/Context.sol"; /** * @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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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); } } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; ////import "./IERC1155.sol"; ////import "./IERC1155Receiver.sol"; ////import "./extensions/IERC1155MetadataURI.sol"; ////import "../../utils/Address.sol"; ////import "../../utils/Context.sol"; ////import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; ////import './IERC721A.sol'; ////import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; ////import '@openzeppelin/contracts/utils/Address.sol'; ////import '@openzeppelin/contracts/utils/Context.sol'; ////import '@openzeppelin/contracts/utils/Strings.sol'; ////import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 { _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 { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } /** * SourceUnit: c:\Users\chris\Downloads\nftProject\here.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.12; ////import "erc721a/contracts/ERC721A.sol"; ////import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; ////import "@openzeppelin/contracts/access/Ownable.sol"; contract Smowlmfer is ERC721A, Ownable { uint256 public constant MAX_PER_WALLET = 4; uint256 public constant MAX_SUPPLY = 1337; uint256 public constant MAX_FREE_SUPPLY = 420; uint256 public mintPrice = 0.01337 ether; uint256 public whitelistStopTime = 0; mapping(address => bool) public whitelistParties; address[] public whitelist721s; mapping(address => uint8) private _qtyMinted; bool public mintIsActive = false; //////////////////////////////////////////////////////////////////////////////////// // this needs to be the PLACEHOLDER baseURI string public baseURI = "ipfs://QmbqDeLtagMWhXaq4FjKe28k37SxDJ5oP2utBaixK5vJPS?filename="; //////////////////////////////////////////////////////////////////////////////////// constructor() ERC721A("Smowlmfer", "SMMFR") { whitelistParties[0x8b1A1aF63bb9b3730f62c56bDa272BCC69dF4CC7] = true; whitelistParties[0x92DF544228Ca92b8C9943BBeECFDA7D3377f6294] = true; whitelistParties[0x911A6Ad1b0811A909A22A071D421998AA3CCEce8] = true; whitelistParties[0x7BAce095602E2BaB41d09a26e0CBCCD13485D9eb] = true; whitelistParties[0xbaDDA2e018C0D56356B90650153b9cE56A6e72ed] = true; whitelistParties[0xCc48857242141CC7F4f8555f8a3d5bED03556C19] = true; whitelistParties[0x721389dC4b507b4D55ac8CeDAf2F6A83cCaa4fB2] = true; whitelistParties[0x809cE3401657B841bd901a7f26d4F6914AEDd7e4] = true; whitelistParties[0x49Ff879D80c33ffA78238bE16ab9A143e12d470B] = true; whitelistParties[0x39C44DC4cf2398281C52DC1073f97162440F39CE] = true; whitelistParties[0x8442853E514D18BB76356Ea17d13448A2381E08F] = true; whitelistParties[0x4a34e638835F65d1a2dF79E9AF93556DD009278a] = true; whitelistParties[0x8EA5d42b5bEfc4DF7447e647B60D2396E93A4999] = true; whitelistParties[0x4e5e17201f9553db36ecCA0201526D27788C3E35] = true; whitelistParties[0xDceb4Fd5b8667F1CB2919a9e66A767c65435960B] = true; whitelistParties[0x99c531A770FDa06dbF4e657FBF1514408951323B] = true; whitelistParties[0x49a1f87C5Bcf099b78550Ec127f0d2d17697A317] = true; whitelistParties[0x5886Dc12a54af415293c3861a9f87Da2d5BAb391] = true; whitelistParties[0xDA1128FDd6Ff2Fd18F609F3EA9844DF0A1dB3FB3] = true; whitelistParties[0x5960db0AC5DE05143D200dcFc35D3412A7ad2441] = true; whitelistParties[0x721389dC4b507b4D55ac8CeDAf2F6A83cCaa4fB2] = true; whitelistParties[0x7BAce095602E2BaB41d09a26e0CBCCD13485D9eb] = true; whitelistParties[0xbaDDA2e018C0D56356B90650153b9cE56A6e72ed] = true; whitelistParties[0x53387F537c36638B60085Bd22402c06Feb733F89] = true; whitelistParties[0xC17d016b585B362915342a59aDBC228Dab917fAE] = true; whitelistParties[0x0EFF59156B540867Ce74Fe972E81be4186c1734a] = true; whitelistParties[0x9d7DC59D1DB46899f5CF069B7261ECF64363d4DE] = true; whitelistParties[0x47b16b6D23f657a8D6de849Fe41CEe79C560a4b5] = true; whitelistParties[0xA8A350D56c6F59391Bd1EeA15a10bFf4D30470c1] = true; whitelistParties[0xEf2c4f533A5220c10468ad280b40978723DAfd51] = true; whitelistParties[0x55902109bF1A72Bb5Fa0bF36b917f0Cd759D8Ab5] = true; whitelist721s = [ 0x03B8D129A8F6DC62a797b59aA5eeBB11Ad63DaDA, 0x79FCDEF22feeD20eDDacbB2587640e45491b757f, 0xBc8Af167FFAa6B780AAEB522CCaBd64C5933bf02, 0x0F5aC1716d088B52869A3Cfe28F10ddfcC565e94 ]; } function mint(uint8 quantity) external payable { require( msg.sender == tx.origin, "No transaction from smart contracts!" ); require(mintIsActive, "Mint must be active to mint"); require( quantity > 0 && quantity + _qtyMinted[msg.sender] <= MAX_PER_WALLET, "Max per wallet reached" ); require(totalSupply() + quantity <= MAX_SUPPLY, "Exceeds max supply"); require(msg.value >= mintPrice * quantity, "not enough money"); _qtyMinted[msg.sender] += quantity; //tracking minted _safeMint(msg.sender, quantity); } function freeMint() external { require( msg.sender == tx.origin, "No transaction from smart contracts!" ); require(mintIsActive, "Mint must be active to mint"); require(_qtyMinted[msg.sender] == 0, "already minted a token"); require(totalSupply() < MAX_SUPPLY, "Exceeds max supply"); require(isWhitelisted(msg.sender), "not on the whitelist :("); require(totalSupply() < MAX_FREE_SUPPLY, "Exceeds max freesupply"); _qtyMinted[msg.sender] += 1; //tracking minted _safeMint(msg.sender, 1); } function ownerMint(uint8 quantity) external onlyOwner { require(totalSupply() + quantity <= MAX_SUPPLY, "Exceeds max supply"); _safeMint(msg.sender, quantity, ""); } function addAddressWhitelist(address addr) external onlyOwner { whitelistParties[addr] = true; } function add721Whitelist(address addr) external onlyOwner { whitelist721s.push(addr); } function setPrice(uint256 price) external onlyOwner { mintPrice = price; } function flipSaleState() external onlyOwner { mintIsActive = !mintIsActive; } function withdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } function setBaseURI(string memory newBaseURI) public onlyOwner { baseURI = newBaseURI; } //////////////////////////////////////////////////////////////////////////////////// // need to change to the others //////////////////////////////////////////////////////////////////////////////////// function isWhitelisted(address addr) public view returns (bool) { if (whitelistParties[addr]) { return true; } for (uint256 i = 0; i < whitelist721s.length; i++) { if (ERC721A(whitelist721s[i]).balanceOf(addr) > 0) { return true; } } if (ERC1155(0xe79c44b2dbFedbAC1dB992aad3827a3621B0813f).balanceOf(addr, 1) > 0) { return true; } if (ERC1155(0xe79c44b2dbFedbAC1dB992aad3827a3621B0813f).balanceOf( addr, 2) > 0) { return true; } return false; } function _baseURI() internal view override returns (string memory) { return baseURI; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_FREE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"add721Whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addAddressWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","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":"addr","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelist721s","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistParties","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistStopTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
662f7ff1b4a5a0006009556000600a55600e805460ff1916905560e0604052603f6080818152906200299660a03980516200004391600f9160209091019062000645565b503480156200005157600080fd5b50604080518082018252600981526829b6b7bbb636b332b960b91b60208083019182528351808501909452600584526429a6a6a32960d91b908401528151919291620000a09160029162000645565b508051620000b690600390602084019062000645565b50506000805550620000c833620005f3565b600b60209081527f2b0fc2f253715e3a506f67172c096b2073e74f595de008d612164255daaf226b8054600160ff1991821681179092557fff44fd84b5d852e4835a1b5be30268e8dea5400ecf2795ba64215b0247dd587680548216831790557f68979fe4fcec0cea889a3323aeec0cebcd83e071c85b79e7fdb277e0c4a1fac680548216831790557f6710c7ef7b5344640c5bdb02bb7c9d565f2528ac1a489f0cd5a06955d06d308680548216831790557f5f6454789a80bdb962ed4a15c447dbcf4799de58814c75255866cf37eb08c38180548216831790557f965687de89d26500017360fceed84a0e9a6e566613c15472f8f65b9011e9685680548216831790557f271f390dce7eec915c52e121ae0140f0bc61cdb502e03f519d1ab816b43872a780548216831790557f5c5446e9809d1456ad7bc879c1a5b2166fdeae77d39a49e36965c313ca26e0d480548216831790557f86bbdc0090466533e49c8ab5463f80cba1d8a82210fb079caedc28b9bb7557b380548216831790557f2b11b22beaac6a41f01672648e0f5e32994f3277a5cf430009ce7e18a4316b5780548216831790557f1df7643b84402f37f84fc53d8772691468906f9f4cce41ccbcd74699a42a814280548216831790557f3d3563cde338851c392cbe9191701b73254e9a89588bfc60b9749076f368d27880548216831790557f036d3b03f06b1e84fc5028aee97d04597a71c4d5d7ce4710e7fc1530aefa0b3f80548216831790557f0f08f5cbd2a44a79c6b7d7e7ff8e0b04a0cd1e067d6d64eea8617380a86de97980548216831790557ff03973834df124b47255d4b442e342eb828c9cec28d5d72b3963db6f4576af4f80548216831790557f60b96dc745eb78652a3b49d125f3310deb1761862ac14a40b43ff8ded44067a580548216831790557fe01b34df83ab0d9dfc708aa7221667921250119b2175b701388d607bb0c2a28980548216831790557f6d50763cf8dc79d4a98a4bfe3b4dd625f1f1c4db73a04b1a0d2c4b5b443f84c180548216831790557f60a3c830eae009e00a733550e02baf901f2a4f31ca5150f1cbb4f3df21f38f2a80548216831790557f9676117056fd5a82929b39533e00090cd0e7163f5c2eac62b57819783188ec3c80548216831790557f7ded12e6fb5e3b513157f110a29a8cd77bbac146970117cb17320294b428896980548216831790557f717a6293c0128688d7dde09ff74d33a5cd3ec281d4284484075b831829e4afdd80548216831790557f45b9aa57ed08e79e8bbc717675a5d80e60108967bf28be09973d73ad27ab1d1d80548216831790557fbe9bd03f41f180bfaba678aa6b14ea4a6c330db9b07b26d6966afccc117f677780548216831790557fcb6b4ee852d009006c03ad4991ca127953aad2e6c1d649b5315467770fa199ab80548216831790557f2f1a67528a1dce60953e24cdc1116a7d6a38606df07580f5b9c356f733688b8880548216831790557fb3ed4ed142d9ff5d2fbf6e18267e7f7f1e047da814fb87820914078ef269adc280548216831790557355902109bf1a72bb5fa0bf36b917f0cd759d8ab56000527f8c7f4e4c7cb3f302d9591d7a1795bb5b2251ae3c766ba8bf2379a853b621c9a680549091169091179055604080516080810182527303b8d129a8f6dc62a797b59aa5eebb11ad63dada81527379fcdef22feed20eddacbb2587640e45491b757f9281019290925273bc8af167ffaa6b780aaeb522ccabd64c5933bf0290820152730f5ac1716d088b52869a3cfe28f10ddfcc565e946060820152620005ec90600c906004620006d4565b5062000780565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620006539062000743565b90600052602060002090601f016020900481019282620006775760008555620006c2565b82601f106200069257805160ff1916838001178555620006c2565b82800160010185558215620006c2579182015b82811115620006c2578251825591602001919060010190620006a5565b50620006d09291506200072c565b5090565b828054828255906000526020600020908101928215620006c2579160200282015b82811115620006c257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006f5565b5b80821115620006d057600081556001016200072d565b600181811c908216806200075857607f821691505b602082108114156200077a57634e487b7160e01b600052602260045260246000fd5b50919050565b61220680620007906000396000f3fe60806040526004361061020f5760003560e01c80636352211e1161011857806395d89b41116100a0578063b88d4fde1161006f578063b88d4fde146105b2578063c87b56dd146105d2578063e985e9c5146105f2578063ef58504b1461063b578063f2fde38b1461065b57600080fd5b806395d89b411461053d5780639d70500114610552578063a22cb46514610572578063b308ff331461059257600080fd5b806370a08231116100e757806370a08231146104aa578063715018a6146104ca57806374118199146104df5780638da5cb5b146104ff57806391b7f5ed1461051d57600080fd5b80636352211e1461044c5780636817c76c1461046c5780636c0360eb146104825780636ecd23061461049757600080fd5b806334918dfd1161019b578063471a42941161016a578063471a4294146103b757806355f804b3146103d15780635709b7bf146103f15780635b70ea9f146104075780635c817e821461041c57600080fd5b806334918dfd1461034d5780633af32abf146103625780633ccfd60b1461038257806342842e0e1461039757600080fd5b8063095ea7b3116101e2578063095ea7b3146102c75780630f2cdd6c146102e957806318160ddd146102fe57806323b872dd1461031757806332cb6b0c1461033757600080fd5b806301ffc9a71461021457806302ddb65b1461024957806306fdde031461026d578063081812fc1461028f575b600080fd5b34801561022057600080fd5b5061023461022f366004611c35565b61067b565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025f6101a481565b604051908152602001610240565b34801561027957600080fd5b506102826106cd565b6040516102409190611caa565b34801561029b57600080fd5b506102af6102aa366004611cbd565b61075f565b6040516001600160a01b039091168152602001610240565b3480156102d357600080fd5b506102e76102e2366004611cf2565b6107a3565b005b3480156102f557600080fd5b5061025f600481565b34801561030a57600080fd5b506001546000540361025f565b34801561032357600080fd5b506102e7610332366004611d1c565b61082a565b34801561034357600080fd5b5061025f61053981565b34801561035957600080fd5b506102e7610835565b34801561036e57600080fd5b5061023461037d366004611d58565b61087c565b34801561038e57600080fd5b506102e7610a8c565b3480156103a357600080fd5b506102e76103b2366004611d1c565b610af2565b3480156103c357600080fd5b50600e546102349060ff1681565b3480156103dd57600080fd5b506102e76103ec366004611dff565b610b0d565b3480156103fd57600080fd5b5061025f600a5481565b34801561041357600080fd5b506102e7610b4e565b34801561042857600080fd5b50610234610437366004611d58565b600b6020526000908152604090205460ff1681565b34801561045857600080fd5b506102af610467366004611cbd565b610d38565b34801561047857600080fd5b5061025f60095481565b34801561048e57600080fd5b50610282610d4a565b6102e76104a5366004611e48565b610dd8565b3480156104b657600080fd5b5061025f6104c5366004611d58565b610f98565b3480156104d657600080fd5b506102e7610fe7565b3480156104eb57600080fd5b506102e76104fa366004611d58565b61101b565b34801561050b57600080fd5b506008546001600160a01b03166102af565b34801561052957600080fd5b506102e7610538366004611cbd565b611097565b34801561054957600080fd5b506102826110c6565b34801561055e57600080fd5b506102e761056d366004611d58565b6110d5565b34801561057e57600080fd5b506102e761058d366004611e6b565b611123565b34801561059e57600080fd5b506102e76105ad366004611e48565b6111b9565b3480156105be57600080fd5b506102e76105cd366004611ea7565b61123c565b3480156105de57600080fd5b506102826105ed366004611cbd565b611286565b3480156105fe57600080fd5b5061023461060d366004611f23565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064757600080fd5b506102af610656366004611cbd565b61130b565b34801561066757600080fd5b506102e7610676366004611d58565b611335565b60006001600160e01b031982166380ac58cd60e01b14806106ac57506001600160e01b03198216635b5e139f60e01b145b806106c757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546106dc90611f56565b80601f016020809104026020016040519081016040528092919081815260200182805461070890611f56565b80156107555780601f1061072a57610100808354040283529160200191610755565b820191906000526020600020905b81548152906001019060200180831161073857829003601f168201915b5050505050905090565b600061076a826113cd565b610787576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107ae82610d38565b9050806001600160a01b0316836001600160a01b031614156107e35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461081a576107fd813361060d565b61081a576040516367d9dca160e11b815260040160405180910390fd5b6108258383836113f8565b505050565b610825838383611454565b6008546001600160a01b031633146108685760405162461bcd60e51b815260040161085f90611f91565b60405180910390fd5b600e805460ff19811660ff90911615179055565b6001600160a01b0381166000908152600b602052604081205460ff16156108a557506001919050565b60005b600c5481101561095f576000600c82815481106108c7576108c7611fc6565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a0823190602401602060405180830381865afa15801561091a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093e9190611fdc565b111561094d5750600192915050565b806109578161200b565b9150506108a8565b50604051627eeac760e11b81526001600160a01b03831660048201526001602482015260009073e79c44b2dbfedbac1db992aad3827a3621b0813f9062fdd58e90604401602060405180830381865afa1580156109c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e49190611fdc565b11156109f257506001919050565b604051627eeac760e11b81526001600160a01b03831660048201526002602482015260009073e79c44b2dbfedbac1db992aad3827a3621b0813f9062fdd58e90604401602060405180830381865afa158015610a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a769190611fdc565b1115610a8457506001919050565b506000919050565b6008546001600160a01b03163314610ab65760405162461bcd60e51b815260040161085f90611f91565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610aef573d6000803e3d6000fd5b50565b6108258383836040518060200160405280600081525061123c565b6008546001600160a01b03163314610b375760405162461bcd60e51b815260040161085f90611f91565b8051610b4a90600f906020840190611b86565b5050565b333214610b6d5760405162461bcd60e51b815260040161085f90612026565b600e5460ff16610bbf5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74206d7573742062652061637469766520746f206d696e740000000000604482015260640161085f565b336000908152600d602052604090205460ff1615610c185760405162461bcd60e51b815260206004820152601660248201527530b63932b0b23c9036b4b73a32b21030903a37b5b2b760511b604482015260640161085f565b610539610c286001546000540390565b10610c455760405162461bcd60e51b815260040161085f9061206a565b610c4e3361087c565b610c9a5760405162461bcd60e51b815260206004820152601760248201527f6e6f74206f6e207468652077686974656c697374203a28000000000000000000604482015260640161085f565b6101a4610caa6001546000540390565b10610cf05760405162461bcd60e51b815260206004820152601660248201527545786365656473206d61782066726565737570706c7960501b604482015260640161085f565b336000908152600d60205260408120805460019290610d1390849060ff16612096565b92506101000a81548160ff021916908360ff160217905550610d36336001611643565b565b6000610d438261165d565b5192915050565b600f8054610d5790611f56565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8390611f56565b8015610dd05780601f10610da557610100808354040283529160200191610dd0565b820191906000526020600020905b815481529060010190602001808311610db357829003601f168201915b505050505081565b333214610df75760405162461bcd60e51b815260040161085f90612026565b600e5460ff16610e495760405162461bcd60e51b815260206004820152601b60248201527f4d696e74206d7573742062652061637469766520746f206d696e740000000000604482015260640161085f565b60008160ff16118015610e7d5750336000908152600d6020526040902054600490610e779060ff1683612096565b60ff1611155b610ec25760405162461bcd60e51b815260206004820152601660248201527513585e081c195c881dd85b1b195d081c995858da195960521b604482015260640161085f565b6105398160ff16610ed66001546000540390565b610ee091906120bb565b1115610efe5760405162461bcd60e51b815260040161085f9061206a565b8060ff16600954610f0f91906120d3565b341015610f515760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f756768206d6f6e657960801b604482015260640161085f565b336000908152600d602052604081208054839290610f7390849060ff16612096565b92506101000a81548160ff021916908360ff160217905550610aef338260ff16611643565b60006001600160a01b038216610fc1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146110115760405162461bcd60e51b815260040161085f90611f91565b610d366000611779565b6008546001600160a01b031633146110455760405162461bcd60e51b815260040161085f90611f91565b600c80546001810182556000919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146110c15760405162461bcd60e51b815260040161085f90611f91565b600955565b6060600380546106dc90611f56565b6008546001600160a01b031633146110ff5760405162461bcd60e51b815260040161085f90611f91565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b6001600160a01b03821633141561114d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146111e35760405162461bcd60e51b815260040161085f90611f91565b6105398160ff166111f76001546000540390565b61120191906120bb565b111561121f5760405162461bcd60e51b815260040161085f9061206a565b610aef338260ff16604051806020016040528060008152506117cb565b611247848484611454565b6001600160a01b0383163b156112805761126384848484611990565b611280576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611291826113cd565b6112ae57604051630a14c4b560e41b815260040160405180910390fd5b60006112b8611a79565b90508051600014156112d95760405180602001604052806000815250611304565b806112e384611a88565b6040516020016112f49291906120f2565b6040516020818303038152906040525b9392505050565b600c818154811061131b57600080fd5b6000918252602090912001546001600160a01b0316905081565b6008546001600160a01b0316331461135f5760405162461bcd60e51b815260040161085f90611f91565b6001600160a01b0381166113c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161085f565b610aef81611779565b60008054821080156106c7575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061145f8261165d565b9050836001600160a01b031681600001516001600160a01b0316146114965760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806114b457506114b4853361060d565b806114cf5750336114c48461075f565b6001600160a01b0316145b9050806114ef57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661151657604051633a954ecd60e21b815260040160405180910390fd5b611522600084876113f8565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166115f85760005482146115f8578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b610b4a8282604051806020016040528060008152506117cb565b60408051606081018252600080825260208201819052918101919091528160005481101561176057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061175e5780516001600160a01b0316156116f4579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611759579392505050565b6116f4565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b0384166117f457604051622e076360e81b815260040160405180910390fd5b826118125760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561193b575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46119046000878480600101955087611990565b611921576040516368d2bf6b60e11b815260040160405180910390fd5b8082106118b957826000541461193657600080fd5b611980565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061193c575b5060009081556112809085838684565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906119c5903390899088908890600401612121565b6020604051808303816000875af1925050508015611a00575060408051601f3d908101601f191682019092526119fd9181019061215e565b60015b611a5b573d808015611a2e576040519150601f19603f3d011682016040523d82523d6000602084013e611a33565b606091505b508051611a53576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f80546106dc90611f56565b606081611aac5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ad65780611ac08161200b565b9150611acf9050600a83612191565b9150611ab0565b60008167ffffffffffffffff811115611af157611af1611d73565b6040519080825280601f01601f191660200182016040528015611b1b576020820181803683370190505b5090505b8415611a7157611b306001836121a5565b9150611b3d600a866121bc565b611b489060306120bb565b60f81b818381518110611b5d57611b5d611fc6565b60200101906001600160f81b031916908160001a905350611b7f600a86612191565b9450611b1f565b828054611b9290611f56565b90600052602060002090601f016020900481019282611bb45760008555611bfa565b82601f10611bcd57805160ff1916838001178555611bfa565b82800160010185558215611bfa579182015b82811115611bfa578251825591602001919060010190611bdf565b50611c06929150611c0a565b5090565b5b80821115611c065760008155600101611c0b565b6001600160e01b031981168114610aef57600080fd5b600060208284031215611c4757600080fd5b813561130481611c1f565b60005b83811015611c6d578181015183820152602001611c55565b838111156112805750506000910152565b60008151808452611c96816020860160208601611c52565b601f01601f19169290920160200192915050565b6020815260006113046020830184611c7e565b600060208284031215611ccf57600080fd5b5035919050565b80356001600160a01b0381168114611ced57600080fd5b919050565b60008060408385031215611d0557600080fd5b611d0e83611cd6565b946020939093013593505050565b600080600060608486031215611d3157600080fd5b611d3a84611cd6565b9250611d4860208501611cd6565b9150604084013590509250925092565b600060208284031215611d6a57600080fd5b61130482611cd6565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611da457611da4611d73565b604051601f8501601f19908116603f01168101908282118183101715611dcc57611dcc611d73565b81604052809350858152868686011115611de557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611e1157600080fd5b813567ffffffffffffffff811115611e2857600080fd5b8201601f81018413611e3957600080fd5b611a7184823560208401611d89565b600060208284031215611e5a57600080fd5b813560ff8116811461130457600080fd5b60008060408385031215611e7e57600080fd5b611e8783611cd6565b915060208301358015158114611e9c57600080fd5b809150509250929050565b60008060008060808587031215611ebd57600080fd5b611ec685611cd6565b9350611ed460208601611cd6565b925060408501359150606085013567ffffffffffffffff811115611ef757600080fd5b8501601f81018713611f0857600080fd5b611f1787823560208401611d89565b91505092959194509250565b60008060408385031215611f3657600080fd5b611f3f83611cd6565b9150611f4d60208401611cd6565b90509250929050565b600181811c90821680611f6a57607f821691505b60208210811415611f8b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611fee57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561201f5761201f611ff5565b5060010190565b60208082526024908201527f4e6f207472616e73616374696f6e2066726f6d20736d61727420636f6e7472616040820152636374732160e01b606082015260800190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b600060ff821660ff84168060ff038211156120b3576120b3611ff5565b019392505050565b600082198211156120ce576120ce611ff5565b500190565b60008160001904831182151516156120ed576120ed611ff5565b500290565b60008351612104818460208801611c52565b835190830190612118818360208801611c52565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061215490830184611c7e565b9695505050505050565b60006020828403121561217057600080fd5b815161130481611c1f565b634e487b7160e01b600052601260045260246000fd5b6000826121a0576121a061217b565b500490565b6000828210156121b7576121b7611ff5565b500390565b6000826121cb576121cb61217b565b50069056fea2646970667358221220a69c094eca6d8f193aa1045760f0ed3327fc4cf6991a198b2d384acd59f775ce64736f6c634300080c0033697066733a2f2f516d627144654c7461674d576858617134466a4b6532386b33375378444a356f50327574426169784b35764a50533f66696c656e616d653d
Deployed Bytecode
0x60806040526004361061020f5760003560e01c80636352211e1161011857806395d89b41116100a0578063b88d4fde1161006f578063b88d4fde146105b2578063c87b56dd146105d2578063e985e9c5146105f2578063ef58504b1461063b578063f2fde38b1461065b57600080fd5b806395d89b411461053d5780639d70500114610552578063a22cb46514610572578063b308ff331461059257600080fd5b806370a08231116100e757806370a08231146104aa578063715018a6146104ca57806374118199146104df5780638da5cb5b146104ff57806391b7f5ed1461051d57600080fd5b80636352211e1461044c5780636817c76c1461046c5780636c0360eb146104825780636ecd23061461049757600080fd5b806334918dfd1161019b578063471a42941161016a578063471a4294146103b757806355f804b3146103d15780635709b7bf146103f15780635b70ea9f146104075780635c817e821461041c57600080fd5b806334918dfd1461034d5780633af32abf146103625780633ccfd60b1461038257806342842e0e1461039757600080fd5b8063095ea7b3116101e2578063095ea7b3146102c75780630f2cdd6c146102e957806318160ddd146102fe57806323b872dd1461031757806332cb6b0c1461033757600080fd5b806301ffc9a71461021457806302ddb65b1461024957806306fdde031461026d578063081812fc1461028f575b600080fd5b34801561022057600080fd5b5061023461022f366004611c35565b61067b565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025f6101a481565b604051908152602001610240565b34801561027957600080fd5b506102826106cd565b6040516102409190611caa565b34801561029b57600080fd5b506102af6102aa366004611cbd565b61075f565b6040516001600160a01b039091168152602001610240565b3480156102d357600080fd5b506102e76102e2366004611cf2565b6107a3565b005b3480156102f557600080fd5b5061025f600481565b34801561030a57600080fd5b506001546000540361025f565b34801561032357600080fd5b506102e7610332366004611d1c565b61082a565b34801561034357600080fd5b5061025f61053981565b34801561035957600080fd5b506102e7610835565b34801561036e57600080fd5b5061023461037d366004611d58565b61087c565b34801561038e57600080fd5b506102e7610a8c565b3480156103a357600080fd5b506102e76103b2366004611d1c565b610af2565b3480156103c357600080fd5b50600e546102349060ff1681565b3480156103dd57600080fd5b506102e76103ec366004611dff565b610b0d565b3480156103fd57600080fd5b5061025f600a5481565b34801561041357600080fd5b506102e7610b4e565b34801561042857600080fd5b50610234610437366004611d58565b600b6020526000908152604090205460ff1681565b34801561045857600080fd5b506102af610467366004611cbd565b610d38565b34801561047857600080fd5b5061025f60095481565b34801561048e57600080fd5b50610282610d4a565b6102e76104a5366004611e48565b610dd8565b3480156104b657600080fd5b5061025f6104c5366004611d58565b610f98565b3480156104d657600080fd5b506102e7610fe7565b3480156104eb57600080fd5b506102e76104fa366004611d58565b61101b565b34801561050b57600080fd5b506008546001600160a01b03166102af565b34801561052957600080fd5b506102e7610538366004611cbd565b611097565b34801561054957600080fd5b506102826110c6565b34801561055e57600080fd5b506102e761056d366004611d58565b6110d5565b34801561057e57600080fd5b506102e761058d366004611e6b565b611123565b34801561059e57600080fd5b506102e76105ad366004611e48565b6111b9565b3480156105be57600080fd5b506102e76105cd366004611ea7565b61123c565b3480156105de57600080fd5b506102826105ed366004611cbd565b611286565b3480156105fe57600080fd5b5061023461060d366004611f23565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064757600080fd5b506102af610656366004611cbd565b61130b565b34801561066757600080fd5b506102e7610676366004611d58565b611335565b60006001600160e01b031982166380ac58cd60e01b14806106ac57506001600160e01b03198216635b5e139f60e01b145b806106c757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546106dc90611f56565b80601f016020809104026020016040519081016040528092919081815260200182805461070890611f56565b80156107555780601f1061072a57610100808354040283529160200191610755565b820191906000526020600020905b81548152906001019060200180831161073857829003601f168201915b5050505050905090565b600061076a826113cd565b610787576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107ae82610d38565b9050806001600160a01b0316836001600160a01b031614156107e35760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461081a576107fd813361060d565b61081a576040516367d9dca160e11b815260040160405180910390fd5b6108258383836113f8565b505050565b610825838383611454565b6008546001600160a01b031633146108685760405162461bcd60e51b815260040161085f90611f91565b60405180910390fd5b600e805460ff19811660ff90911615179055565b6001600160a01b0381166000908152600b602052604081205460ff16156108a557506001919050565b60005b600c5481101561095f576000600c82815481106108c7576108c7611fc6565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a0823190602401602060405180830381865afa15801561091a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093e9190611fdc565b111561094d5750600192915050565b806109578161200b565b9150506108a8565b50604051627eeac760e11b81526001600160a01b03831660048201526001602482015260009073e79c44b2dbfedbac1db992aad3827a3621b0813f9062fdd58e90604401602060405180830381865afa1580156109c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e49190611fdc565b11156109f257506001919050565b604051627eeac760e11b81526001600160a01b03831660048201526002602482015260009073e79c44b2dbfedbac1db992aad3827a3621b0813f9062fdd58e90604401602060405180830381865afa158015610a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a769190611fdc565b1115610a8457506001919050565b506000919050565b6008546001600160a01b03163314610ab65760405162461bcd60e51b815260040161085f90611f91565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610aef573d6000803e3d6000fd5b50565b6108258383836040518060200160405280600081525061123c565b6008546001600160a01b03163314610b375760405162461bcd60e51b815260040161085f90611f91565b8051610b4a90600f906020840190611b86565b5050565b333214610b6d5760405162461bcd60e51b815260040161085f90612026565b600e5460ff16610bbf5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74206d7573742062652061637469766520746f206d696e740000000000604482015260640161085f565b336000908152600d602052604090205460ff1615610c185760405162461bcd60e51b815260206004820152601660248201527530b63932b0b23c9036b4b73a32b21030903a37b5b2b760511b604482015260640161085f565b610539610c286001546000540390565b10610c455760405162461bcd60e51b815260040161085f9061206a565b610c4e3361087c565b610c9a5760405162461bcd60e51b815260206004820152601760248201527f6e6f74206f6e207468652077686974656c697374203a28000000000000000000604482015260640161085f565b6101a4610caa6001546000540390565b10610cf05760405162461bcd60e51b815260206004820152601660248201527545786365656473206d61782066726565737570706c7960501b604482015260640161085f565b336000908152600d60205260408120805460019290610d1390849060ff16612096565b92506101000a81548160ff021916908360ff160217905550610d36336001611643565b565b6000610d438261165d565b5192915050565b600f8054610d5790611f56565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8390611f56565b8015610dd05780601f10610da557610100808354040283529160200191610dd0565b820191906000526020600020905b815481529060010190602001808311610db357829003601f168201915b505050505081565b333214610df75760405162461bcd60e51b815260040161085f90612026565b600e5460ff16610e495760405162461bcd60e51b815260206004820152601b60248201527f4d696e74206d7573742062652061637469766520746f206d696e740000000000604482015260640161085f565b60008160ff16118015610e7d5750336000908152600d6020526040902054600490610e779060ff1683612096565b60ff1611155b610ec25760405162461bcd60e51b815260206004820152601660248201527513585e081c195c881dd85b1b195d081c995858da195960521b604482015260640161085f565b6105398160ff16610ed66001546000540390565b610ee091906120bb565b1115610efe5760405162461bcd60e51b815260040161085f9061206a565b8060ff16600954610f0f91906120d3565b341015610f515760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f756768206d6f6e657960801b604482015260640161085f565b336000908152600d602052604081208054839290610f7390849060ff16612096565b92506101000a81548160ff021916908360ff160217905550610aef338260ff16611643565b60006001600160a01b038216610fc1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146110115760405162461bcd60e51b815260040161085f90611f91565b610d366000611779565b6008546001600160a01b031633146110455760405162461bcd60e51b815260040161085f90611f91565b600c80546001810182556000919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146110c15760405162461bcd60e51b815260040161085f90611f91565b600955565b6060600380546106dc90611f56565b6008546001600160a01b031633146110ff5760405162461bcd60e51b815260040161085f90611f91565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b6001600160a01b03821633141561114d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146111e35760405162461bcd60e51b815260040161085f90611f91565b6105398160ff166111f76001546000540390565b61120191906120bb565b111561121f5760405162461bcd60e51b815260040161085f9061206a565b610aef338260ff16604051806020016040528060008152506117cb565b611247848484611454565b6001600160a01b0383163b156112805761126384848484611990565b611280576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611291826113cd565b6112ae57604051630a14c4b560e41b815260040160405180910390fd5b60006112b8611a79565b90508051600014156112d95760405180602001604052806000815250611304565b806112e384611a88565b6040516020016112f49291906120f2565b6040516020818303038152906040525b9392505050565b600c818154811061131b57600080fd5b6000918252602090912001546001600160a01b0316905081565b6008546001600160a01b0316331461135f5760405162461bcd60e51b815260040161085f90611f91565b6001600160a01b0381166113c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161085f565b610aef81611779565b60008054821080156106c7575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061145f8261165d565b9050836001600160a01b031681600001516001600160a01b0316146114965760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806114b457506114b4853361060d565b806114cf5750336114c48461075f565b6001600160a01b0316145b9050806114ef57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661151657604051633a954ecd60e21b815260040160405180910390fd5b611522600084876113f8565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166115f85760005482146115f8578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b610b4a8282604051806020016040528060008152506117cb565b60408051606081018252600080825260208201819052918101919091528160005481101561176057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061175e5780516001600160a01b0316156116f4579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611759579392505050565b6116f4565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b0384166117f457604051622e076360e81b815260040160405180910390fd5b826118125760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561193b575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46119046000878480600101955087611990565b611921576040516368d2bf6b60e11b815260040160405180910390fd5b8082106118b957826000541461193657600080fd5b611980565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061193c575b5060009081556112809085838684565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906119c5903390899088908890600401612121565b6020604051808303816000875af1925050508015611a00575060408051601f3d908101601f191682019092526119fd9181019061215e565b60015b611a5b573d808015611a2e576040519150601f19603f3d011682016040523d82523d6000602084013e611a33565b606091505b508051611a53576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600f80546106dc90611f56565b606081611aac5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ad65780611ac08161200b565b9150611acf9050600a83612191565b9150611ab0565b60008167ffffffffffffffff811115611af157611af1611d73565b6040519080825280601f01601f191660200182016040528015611b1b576020820181803683370190505b5090505b8415611a7157611b306001836121a5565b9150611b3d600a866121bc565b611b489060306120bb565b60f81b818381518110611b5d57611b5d611fc6565b60200101906001600160f81b031916908160001a905350611b7f600a86612191565b9450611b1f565b828054611b9290611f56565b90600052602060002090601f016020900481019282611bb45760008555611bfa565b82601f10611bcd57805160ff1916838001178555611bfa565b82800160010185558215611bfa579182015b82811115611bfa578251825591602001919060010190611bdf565b50611c06929150611c0a565b5090565b5b80821115611c065760008155600101611c0b565b6001600160e01b031981168114610aef57600080fd5b600060208284031215611c4757600080fd5b813561130481611c1f565b60005b83811015611c6d578181015183820152602001611c55565b838111156112805750506000910152565b60008151808452611c96816020860160208601611c52565b601f01601f19169290920160200192915050565b6020815260006113046020830184611c7e565b600060208284031215611ccf57600080fd5b5035919050565b80356001600160a01b0381168114611ced57600080fd5b919050565b60008060408385031215611d0557600080fd5b611d0e83611cd6565b946020939093013593505050565b600080600060608486031215611d3157600080fd5b611d3a84611cd6565b9250611d4860208501611cd6565b9150604084013590509250925092565b600060208284031215611d6a57600080fd5b61130482611cd6565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611da457611da4611d73565b604051601f8501601f19908116603f01168101908282118183101715611dcc57611dcc611d73565b81604052809350858152868686011115611de557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611e1157600080fd5b813567ffffffffffffffff811115611e2857600080fd5b8201601f81018413611e3957600080fd5b611a7184823560208401611d89565b600060208284031215611e5a57600080fd5b813560ff8116811461130457600080fd5b60008060408385031215611e7e57600080fd5b611e8783611cd6565b915060208301358015158114611e9c57600080fd5b809150509250929050565b60008060008060808587031215611ebd57600080fd5b611ec685611cd6565b9350611ed460208601611cd6565b925060408501359150606085013567ffffffffffffffff811115611ef757600080fd5b8501601f81018713611f0857600080fd5b611f1787823560208401611d89565b91505092959194509250565b60008060408385031215611f3657600080fd5b611f3f83611cd6565b9150611f4d60208401611cd6565b90509250929050565b600181811c90821680611f6a57607f821691505b60208210811415611f8b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611fee57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561201f5761201f611ff5565b5060010190565b60208082526024908201527f4e6f207472616e73616374696f6e2066726f6d20736d61727420636f6e7472616040820152636374732160e01b606082015260800190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b600060ff821660ff84168060ff038211156120b3576120b3611ff5565b019392505050565b600082198211156120ce576120ce611ff5565b500190565b60008160001904831182151516156120ed576120ed611ff5565b500290565b60008351612104818460208801611c52565b835190830190612118818360208801611c52565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061215490830184611c7e565b9695505050505050565b60006020828403121561217057600080fd5b815161130481611c1f565b634e487b7160e01b600052601260045260246000fd5b6000826121a0576121a061217b565b500490565b6000828210156121b7576121b7611ff5565b500390565b6000826121cb576121cb61217b565b50069056fea2646970667358221220a69c094eca6d8f193aa1045760f0ed3327fc4cf6991a198b2d384acd59f775ce64736f6c634300080c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.