Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
$8liensThirdEye
Compiler Version
v0.8.12+commit.f00d7308
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; /// @title 8liensThirdEye /// @author 8liens (https://twitter.com/8liensNFT) /// @author Developer: dievardump (https://twitter.com/dievardump, [email protected]) contract $8liensThirdEye is Ownable { string public baseURI; string public defaultURI = "ipfs://QmWQouxrn2uisPD6ucR18hVBWAmvy1gmins4JApYm3YJ6a"; string public constant name = "8liens Third Eye"; function tokenURI(uint256 tokenId) external view returns (string memory) { if (bytes(baseURI).length > 0) { return string.concat(baseURI, Strings.toString(tokenId), ".json"); } return defaultURI; } ///////////////////////////////////////////////////////// // Gated Owner // ///////////////////////////////////////////////////////// function setBaseURI(string calldata newBaseURI) external onlyOwner { baseURI = newBaseURI; } function setDefaultURI(string calldata newDefaultURI) external onlyOwner { defaultURI = newDefaultURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // 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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newDefaultURI","type":"string"}],"name":"setDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040526035608081815290610a7d60a039805161002691600291602090910190610092565b5034801561003357600080fd5b5061003d33610042565b610166565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805461009e9061012b565b90600052602060002090601f0160209004810192826100c05760008555610106565b82601f106100d957805160ff1916838001178555610106565b82800160010185558215610106579182015b828111156101065782518255916020019190600101906100eb565b50610112929150610116565b5090565b5b808211156101125760008155600101610117565b600181811c9082168061013f57607f821691505b6020821081141561016057634e487b7160e01b600052602260045260246000fd5b50919050565b610908806101756000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063715018a611610066578063715018a6146101025780638da5cb5b1461010a578063c87b56dd14610125578063da1b9e0814610138578063f2fde38b1461014b57600080fd5b806306fdde03146100985780633a367a67146100dd57806355f804b3146100e55780636c0360eb146100fa575b600080fd5b6100c76040518060400160405280601081526020016f386c69656e732054686972642045796560801b81525081565b6040516100d4919061060e565b60405180910390f35b6100c761015e565b6100f86100f3366004610641565b6101ec565b005b6100c7610205565b6100f8610212565b6000546040516001600160a01b0390911681526020016100d4565b6100c76101333660046106b3565b610226565b6100f8610146366004610641565b610303565b6100f86101593660046106cc565b610317565b6002805461016b906106fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610197906106fc565b80156101e45780601f106101b9576101008083540402835291602001916101e4565b820191906000526020600020905b8154815290600101906020018083116101c757829003601f168201915b505050505081565b6101f4610395565b61020060018383610545565b505050565b6001805461016b906106fc565b61021a610395565b61022460006103ef565b565b6060600060018054610237906106fc565b9050111561027157600161024a8361043f565b60405160200161025b929190610753565b6040516020818303038152906040529050919050565b6002805461027e906106fc565b80601f01602080910402602001604051908101604052809291908181526020018280546102aa906106fc565b80156102f75780601f106102cc576101008083540402835291602001916102f7565b820191906000526020600020905b8154815290600101906020018083116102da57829003601f168201915b50505050509050919050565b61030b610395565b61020060028383610545565b61031f610395565b6001600160a01b0381166103895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610392816103ef565b50565b6000546001600160a01b031633146102245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610380565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060816104635750506040805180820190915260018152600360fc1b602082015290565b8160005b811561048d57806104778161081e565b91506104869050600a8361084f565b9150610467565b60008167ffffffffffffffff8111156104a8576104a8610863565b6040519080825280601f01601f1916602001820160405280156104d2576020820181803683370190505b5090505b841561053d576104e7600183610879565b91506104f4600a86610890565b6104ff9060306108a4565b60f81b818381518110610514576105146108bc565b60200101906001600160f81b031916908160001a905350610536600a8661084f565b94506104d6565b949350505050565b828054610551906106fc565b90600052602060002090601f01602090048101928261057357600085556105b9565b82601f1061058c5782800160ff198235161785556105b9565b828001600101855582156105b9579182015b828111156105b957823582559160200191906001019061059e565b506105c59291506105c9565b5090565b5b808211156105c557600081556001016105ca565b60005b838110156105f95781810151838201526020016105e1565b83811115610608576000848401525b50505050565b602081526000825180602084015261062d8160408501602087016105de565b601f01601f19169190910160400192915050565b6000806020838503121561065457600080fd5b823567ffffffffffffffff8082111561066c57600080fd5b818501915085601f83011261068057600080fd5b81358181111561068f57600080fd5b8660208285010111156106a157600080fd5b60209290920196919550909350505050565b6000602082840312156106c557600080fd5b5035919050565b6000602082840312156106de57600080fd5b81356001600160a01b03811681146106f557600080fd5b9392505050565b600181811c9082168061071057607f821691505b6020821081141561073157634e487b7160e01b600052602260045260246000fd5b50919050565b600081516107498185602086016105de565b9290920192915050565b600080845481600182811c91508083168061076f57607f831692505b602080841082141561078f57634e487b7160e01b86526022600452602486fd5b8180156107a357600181146107b4576107e1565b60ff198616895284890196506107e1565b60008b81526020902060005b868110156107d95781548b8201529085019083016107c0565b505084890196505b5050505050506107f18185610737565b64173539b7b760d91b815260050195945050505050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561083257610832610808565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261085e5761085e610839565b500490565b634e487b7160e01b600052604160045260246000fd5b60008282101561088b5761088b610808565b500390565b60008261089f5761089f610839565b500690565b600082198211156108b7576108b7610808565b500190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220cce6778cf845cd50040e55ac406bc2125fcaa47db43e7a47955c87b990560cdf64736f6c634300080c0033697066733a2f2f516d57516f7578726e32756973504436756352313868564257416d767931676d696e73344a4170596d33594a3661
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063715018a611610066578063715018a6146101025780638da5cb5b1461010a578063c87b56dd14610125578063da1b9e0814610138578063f2fde38b1461014b57600080fd5b806306fdde03146100985780633a367a67146100dd57806355f804b3146100e55780636c0360eb146100fa575b600080fd5b6100c76040518060400160405280601081526020016f386c69656e732054686972642045796560801b81525081565b6040516100d4919061060e565b60405180910390f35b6100c761015e565b6100f86100f3366004610641565b6101ec565b005b6100c7610205565b6100f8610212565b6000546040516001600160a01b0390911681526020016100d4565b6100c76101333660046106b3565b610226565b6100f8610146366004610641565b610303565b6100f86101593660046106cc565b610317565b6002805461016b906106fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610197906106fc565b80156101e45780601f106101b9576101008083540402835291602001916101e4565b820191906000526020600020905b8154815290600101906020018083116101c757829003601f168201915b505050505081565b6101f4610395565b61020060018383610545565b505050565b6001805461016b906106fc565b61021a610395565b61022460006103ef565b565b6060600060018054610237906106fc565b9050111561027157600161024a8361043f565b60405160200161025b929190610753565b6040516020818303038152906040529050919050565b6002805461027e906106fc565b80601f01602080910402602001604051908101604052809291908181526020018280546102aa906106fc565b80156102f75780601f106102cc576101008083540402835291602001916102f7565b820191906000526020600020905b8154815290600101906020018083116102da57829003601f168201915b50505050509050919050565b61030b610395565b61020060028383610545565b61031f610395565b6001600160a01b0381166103895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610392816103ef565b50565b6000546001600160a01b031633146102245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610380565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060816104635750506040805180820190915260018152600360fc1b602082015290565b8160005b811561048d57806104778161081e565b91506104869050600a8361084f565b9150610467565b60008167ffffffffffffffff8111156104a8576104a8610863565b6040519080825280601f01601f1916602001820160405280156104d2576020820181803683370190505b5090505b841561053d576104e7600183610879565b91506104f4600a86610890565b6104ff9060306108a4565b60f81b818381518110610514576105146108bc565b60200101906001600160f81b031916908160001a905350610536600a8661084f565b94506104d6565b949350505050565b828054610551906106fc565b90600052602060002090601f01602090048101928261057357600085556105b9565b82601f1061058c5782800160ff198235161785556105b9565b828001600101855582156105b9579182015b828111156105b957823582559160200191906001019061059e565b506105c59291506105c9565b5090565b5b808211156105c557600081556001016105ca565b60005b838110156105f95781810151838201526020016105e1565b83811115610608576000848401525b50505050565b602081526000825180602084015261062d8160408501602087016105de565b601f01601f19169190910160400192915050565b6000806020838503121561065457600080fd5b823567ffffffffffffffff8082111561066c57600080fd5b818501915085601f83011261068057600080fd5b81358181111561068f57600080fd5b8660208285010111156106a157600080fd5b60209290920196919550909350505050565b6000602082840312156106c557600080fd5b5035919050565b6000602082840312156106de57600080fd5b81356001600160a01b03811681146106f557600080fd5b9392505050565b600181811c9082168061071057607f821691505b6020821081141561073157634e487b7160e01b600052602260045260246000fd5b50919050565b600081516107498185602086016105de565b9290920192915050565b600080845481600182811c91508083168061076f57607f831692505b602080841082141561078f57634e487b7160e01b86526022600452602486fd5b8180156107a357600181146107b4576107e1565b60ff198616895284890196506107e1565b60008b81526020902060005b868110156107d95781548b8201529085019083016107c0565b505084890196505b5050505050506107f18185610737565b64173539b7b760d91b815260050195945050505050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561083257610832610808565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261085e5761085e610839565b500490565b634e487b7160e01b600052604160045260246000fd5b60008282101561088b5761088b610808565b500390565b60008261089f5761089f610839565b500690565b600082198211156108b7576108b7610808565b500190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220cce6778cf845cd50040e55ac406bc2125fcaa47db43e7a47955c87b990560cdf64736f6c634300080c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.