Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xF9798904...925dEF877 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
LPXMetadata
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.7; /* 77 77 77 77 77 77 77 77 77 ,adPPYba, 77 ,d7 7b d7 7b,dPPYba, 77 77 7b,dPPYba, 7b, ,d7 77 77 77 a7" "" 77 ,a7" `7b d7' 77P' "7a 77 77 77P' `"7a `Y7, ,7P' 77 77 77 7b 7777[ `7b d7' 77 d7 77 77 77 77 )777( 77 "7a, ,a77 "7a, ,aa 77`"Yba, `7b,d7' 77b, ,a7" "7a, ,a77 77 77 ,d7" "7b, 77 `"YbbdP'Y7 `"Ybbd7"' 77 `Y7a Y77' 77`YbbdP"' `"YbbdP'Y7 77 77 7P' `Y7 d7' 77 d7' 77 */ import "../interfaces/ILPXMetadata.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract LPXMetadata is ILPXMetadata, Ownable { string private baseURI; using Strings for uint256; constructor() {} /// Set the base URI for metadata /// @param _baseURI the URI for the metadata store function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } // Returns custom render logic for our metadata // @param _tokenId The token to render metadata for function tokenURI(uint256 _tokenId) external view returns (string memory) { return string(abi.encodePacked(baseURI, "/", _tokenId.toString(), ".json")); } }
// 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); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.7; /* 77 77 77 77 77 77 77 77 77 ,adPPYba, 77 ,d7 7b d7 7b,dPPYba, 77 77 7b,dPPYba, 7b, ,d7 77 77 77 a7" "" 77 ,a7" `7b d7' 77P' "7a 77 77 77P' `"7a `Y7, ,7P' 77 77 77 7b 7777[ `7b d7' 77 d7 77 77 77 77 )777( 77 "7a, ,a77 "7a, ,aa 77`"Yba, `7b,d7' 77b, ,a7" "7a, ,a77 77 77 ,d7" "7b, 77 `"YbbdP'Y7 `"Ybbd7"' 77 `Y7a Y77' 77`YbbdP"' `"YbbdP'Y7 77 77 7P' `Y7 d7' 77 d7' 77 */ interface ILPXMetadata { function tokenURI(uint256 tokenId) external view returns (string memory); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","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"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100575760003560e01c806355f804b31461005c578063715018a6146100785780638da5cb5b14610082578063c87b56dd146100a0578063f2fde38b146100d0575b600080fd5b610076600480360381019061007191906105ff565b6100ec565b005b610080610107565b005b61008a61011b565b6040516100979190610689565b60405180910390f35b6100ba60048036038101906100b591906106da565b610144565b6040516100c79190610786565b60405180910390f35b6100ea60048036038101906100e591906107d4565b610178565b005b6100f46101fb565b80600190816101039190610a0d565b5050565b61010f6101fb565b6101196000610279565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060016101518361033d565b604051602001610162929190610c36565b6040516020818303038152906040529050919050565b6101806101fb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101e690610ce2565b60405180910390fd5b6101f881610279565b50565b61020361049d565b73ffffffffffffffffffffffffffffffffffffffff1661022161011b565b73ffffffffffffffffffffffffffffffffffffffff1614610277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026e90610d4e565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060008203610384576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050610498565b600082905060005b600082146103b657808061039f90610d9d565b915050600a826103af9190610e14565b915061038c565b60008167ffffffffffffffff8111156103d2576103d16104d4565b5b6040519080825280601f01601f1916602001820160405280156104045781602001600182028036833780820191505090505b5090505b600085146104915760018261041d9190610e45565b9150600a8561042c9190610e79565b60306104389190610eaa565b60f81b81838151811061044e5761044d610ede565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561048a9190610e14565b9450610408565b8093505050505b919050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61050c826104c3565b810181811067ffffffffffffffff8211171561052b5761052a6104d4565b5b80604052505050565b600061053e6104a5565b905061054a8282610503565b919050565b600067ffffffffffffffff82111561056a576105696104d4565b5b610573826104c3565b9050602081019050919050565b82818337600083830152505050565b60006105a261059d8461054f565b610534565b9050828152602081018484840111156105be576105bd6104be565b5b6105c9848285610580565b509392505050565b600082601f8301126105e6576105e56104b9565b5b81356105f684826020860161058f565b91505092915050565b600060208284031215610615576106146104af565b5b600082013567ffffffffffffffff811115610633576106326104b4565b5b61063f848285016105d1565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061067382610648565b9050919050565b61068381610668565b82525050565b600060208201905061069e600083018461067a565b92915050565b6000819050919050565b6106b7816106a4565b81146106c257600080fd5b50565b6000813590506106d4816106ae565b92915050565b6000602082840312156106f0576106ef6104af565b5b60006106fe848285016106c5565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610741578082015181840152602081019050610726565b60008484015250505050565b600061075882610707565b6107628185610712565b9350610772818560208601610723565b61077b816104c3565b840191505092915050565b600060208201905081810360008301526107a0818461074d565b905092915050565b6107b181610668565b81146107bc57600080fd5b50565b6000813590506107ce816107a8565b92915050565b6000602082840312156107ea576107e96104af565b5b60006107f8848285016107bf565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061084857607f821691505b60208210810361085b5761085a610801565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026108c37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610886565b6108cd8683610886565b95508019841693508086168417925050509392505050565b6000819050919050565b600061090a610905610900846106a4565b6108e5565b6106a4565b9050919050565b6000819050919050565b610924836108ef565b61093861093082610911565b848454610893565b825550505050565b600090565b61094d610940565b61095881848461091b565b505050565b5b8181101561097c57610971600082610945565b60018101905061095e565b5050565b601f8211156109c15761099281610861565b61099b84610876565b810160208510156109aa578190505b6109be6109b685610876565b83018261095d565b50505b505050565b600082821c905092915050565b60006109e4600019846008026109c6565b1980831691505092915050565b60006109fd83836109d3565b9150826002028217905092915050565b610a1682610707565b67ffffffffffffffff811115610a2f57610a2e6104d4565b5b610a398254610830565b610a44828285610980565b600060209050601f831160018114610a775760008415610a65578287015190505b610a6f85826109f1565b865550610ad7565b601f198416610a8586610861565b60005b82811015610aad57848901518255600182019150602085019450602081019050610a88565b86831015610aca5784890151610ac6601f8916826109d3565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b60008154610af781610830565b610b018186610adf565b94506001821660008114610b1c5760018114610b3157610b64565b60ff1983168652811515820286019350610b64565b610b3a85610861565b60005b83811015610b5c57815481890152600182019150602081019050610b3d565b838801955050505b50505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000610ba3600183610adf565b9150610bae82610b6d565b600182019050919050565b6000610bc482610707565b610bce8185610adf565b9350610bde818560208601610723565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000610c20600583610adf565b9150610c2b82610bea565b600582019050919050565b6000610c428285610aea565b9150610c4d82610b96565b9150610c598284610bb9565b9150610c6482610c13565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610ccc602683610712565b9150610cd782610c70565b604082019050919050565b60006020820190508181036000830152610cfb81610cbf565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610d38602083610712565b9150610d4382610d02565b602082019050919050565b60006020820190508181036000830152610d6781610d2b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610da8826106a4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610dda57610dd9610d6e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610e1f826106a4565b9150610e2a836106a4565b925082610e3a57610e39610de5565b5b828204905092915050565b6000610e50826106a4565b9150610e5b836106a4565b9250828203905081811115610e7357610e72610d6e565b5b92915050565b6000610e84826106a4565b9150610e8f836106a4565b925082610e9f57610e9e610de5565b5b828206905092915050565b6000610eb5826106a4565b9150610ec0836106a4565b9250828201905080821115610ed857610ed7610d6e565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220aa433fb598fd3c5c42a24905a19d2cde21bbc72f01b26df3f1416a71c3773e4a64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.