ETH Price: $3,372.95 (-0.08%)
Gas: 3 Gwei

Contract

0x4F736EcE64Df2c6D7a1cb5597Da9E32396EC4dbc
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x6102a060180730282023-09-05 21:43:35294 days ago1693950215IN
 Create: LogosPhasometerMetadata
0 ETH0.0438995935

Advanced mode:
Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LogosPhasometerMetadata

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 20 runs

Other Settings:
default evmVersion
File 1 of 7 : LogosPhasometerMetadata.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.20;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";

contract LogosPhasometerMetadata is Ownable {
    string public tokenDescription =
        "The Logos are a faction of androids who collect and wear logos and other memorabilia from the fallen brands of the era of humanity.\\n\\n \\n\\nPhasometers are unique generative artworks that draw from the Blitmap or Blitnaut artwork that powered them. Logos characters can be crafted in October. Please join the community [Discord](https://discord.gg/blitmap) for the latest information.\\n\\n \\n\\nLearn more about Blitmap and the Blitmap universe by viewing [our website](https://blitmap.com).";
    string public baseUri = "https://d3g6sn21m8x1w9.cloudfront.net";

    constructor() Ownable() {}

    function updateURLs(string memory newBaseUri) public onlyOwner {
        baseUri = newBaseUri;
    }

    function updateDescription(string memory newDescription) public onlyOwner {
        tokenDescription = newDescription;
    }

    function tokenURI(uint256 tokenId) public view returns (string memory) {
        string memory imageUri = string(
            abi.encodePacked(baseUri, '/', Strings.toString(tokenId), '.jpg')
        );
        string memory videoUri = string(
            abi.encodePacked(baseUri, '/', Strings.toString(tokenId), '.mp4')
        );
        string memory json = string(
            abi.encodePacked(
                "data:application/json;base64,",
                Base64.encode(
                    bytes(
                        string(
                            abi.encodePacked(
                                '{"name": "Phasometer ',
                                Strings.toString(tokenId),
                                '", "description": "',
                                tokenDescription,
                                '", "image": "',
                                imageUri,
                                '", "animation_url": "',
                                videoUri,
                                '", "attributes": [',
                                '{ "trait_type": "Type", "value": "',
                                tokenId < 1700 ? "Blitmap" : "Blitnaut",
                                '" }',
                                ']}'
                            )
                        )
                    )
                )
            )
        );
        return json;
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 7 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 4 of 7 : Context.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;
    }
}

File 5 of 7 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 6 of 7 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 7 of 7 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 20
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":"baseUri","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":[],"name":"tokenDescription","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newDescription","type":"string"}],"name":"updateDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"updateURLs","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6102a06040526101f360808181529062000f2260a0396001906200002490826200015c565b5060405180606001604052806025815260200162001115602591396002906200004e90826200015c565b503480156200005b575f80fd5b5062000067336200006d565b62000224565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620000e557607f821691505b6020821081036200010457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000157575f81815260208120601f850160051c81016020861015620001325750805b601f850160051c820191505b8181101562000153578281556001016200013e565b5050505b505050565b81516001600160401b03811115620001785762000178620000bc565b6200019081620001898454620000d0565b846200010a565b602080601f831160018114620001c6575f8415620001ae5750858301515b5f19600386901b1c1916600185901b17855562000153565b5f85815260208120601f198616915b82811015620001f657888601518255948401946001909101908401620001d5565b50858210156200021457878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b610cf080620002325f395ff3fe608060405234801561000f575f80fd5b5060043610610076575f3560e01c806325e6f5161461007a578063715018a6146100985780638da5cb5b146100a25780639abc8320146100c2578063a6325366146100ca578063c87b56dd146100dd578063e735b48a146100f0578063f2fde38b14610103575b5f80fd5b610082610116565b60405161008f919061070d565b60405180910390f35b6100a06101a2565b005b6100aa6101b5565b6040516001600160a01b03909116815260200161008f565b6100826101c3565b6100a06100d8366004610753565b6101d0565b6100826100eb3660046107fd565b6101e8565b6100a06100fe366004610753565b6102f8565b6100a0610111366004610814565b61030c565b6001805461012390610841565b80601f016020809104026020016040519081016040528092919081815260200182805461014f90610841565b801561019a5780601f106101715761010080835404028352916020019161019a565b820191905f5260205f20905b81548152906001019060200180831161017d57829003601f168201915b505050505081565b6101aa61038a565b6101b35f6103e9565b565b5f546001600160a01b031690565b6002805461012390610841565b6101d861038a565b60026101e482826108c7565b5050565b60605f60026101f684610438565b604051602001610207929190610a0c565b60405160208183030381529060405290505f600261022485610438565b604051602001610235929190610a4e565b60405160208183030381529060405290505f6102cf61025386610438565b600185856106a48a106102865760405180604001604052806008815260200167109b1a5d1b985d5d60c21b8152506102a7565b604051806040016040528060078152602001660426c69746d61760cc1b8152505b6040516020016102bb959493929190610a90565b6040516020818303038152906040526104c7565b6040516020016102df9190610bd9565b60408051601f1981840301815291905295945050505050565b61030061038a565b60016101e482826108c7565b61031461038a565b6001600160a01b03811661037e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610387816103e9565b50565b336103936101b5565b6001600160a01b0316146101b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610375565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60605f61044483610615565b60010190505f816001600160401b038111156104625761046261073f565b6040519080825280601f01601f19166020018201604052801561048c576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461049657509392505050565b606081515f036104e457505060408051602081019091525f815290565b5f604051806060016040528060408152602001610c7b6040913990505f6003845160026105119190610c31565b61051b9190610c44565b610526906004610c63565b6001600160401b0381111561053d5761053d61073f565b6040519080825280601f01601f191660200182016040528015610567576020820181803683370190505b509050600182016020820185865187015b808210156105d3576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610578565b50506003865106600181146105ef57600281146106025761060a565b603d6001830353603d600283035361060a565b603d60018303535b509195945050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106106535772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b831061067d576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061069b57662386f26fc10000830492506010015b6305f5e10083106106b3576305f5e100830492506008015b61271083106106c757612710830492506004015b606483106106d9576064830492506002015b600a83106106e5576001015b92915050565b5f5b838110156107055781810151838201526020016106ed565b50505f910152565b602081525f825180602084015261072b8160408501602087016106eb565b601f01601f19169190910160400192915050565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215610763575f80fd5b81356001600160401b0380821115610779575f80fd5b818401915084601f83011261078c575f80fd5b81358181111561079e5761079e61073f565b604051601f8201601f19908116603f011681019083821181831017156107c6576107c661073f565b816040528281528760208487010111156107de575f80fd5b826020860160208301375f928101602001929092525095945050505050565b5f6020828403121561080d575f80fd5b5035919050565b5f60208284031215610824575f80fd5b81356001600160a01b038116811461083a575f80fd5b9392505050565b600181811c9082168061085557607f821691505b60208210810361087357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156108c2575f81815260208120601f850160051c8101602086101561089f5750805b601f850160051c820191505b818110156108be578281556001016108ab565b5050505b505050565b81516001600160401b038111156108e0576108e061073f565b6108f4816108ee8454610841565b84610879565b602080601f831160018114610927575f84156109105750858301515b5f19600386901b1c1916600185901b1785556108be565b5f85815260208120601f198616915b8281101561095557888601518255948401946001909101908401610936565b508582101561097257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f815461098e81610841565b600182811680156109a657600181146109bb576109e7565b60ff19841687528215158302870194506109e7565b855f526020805f205f5b858110156109de5781548a8201529084019082016109c5565b50505082870194505b5050505092915050565b5f8151610a028185602086016106eb565b9290920192915050565b5f610a178285610982565b602f60f81b81528351610a318160018401602088016106eb565b632e6a706760e01b60019290910191820152600501949350505050565b5f610a598285610982565b602f60f81b81528351610a738160018401602088016106eb565b630b9b5c0d60e21b60019290910191820152600501949350505050565b7403d913730b6b2911d1011283430b9b7b6b2ba32b91605d1b815285515f90610ac0816015850160208b016106eb565b72111610113232b9b1b934b83a34b7b7111d101160691b601591840191820152610aed6028820188610982565b6c1116101134b6b0b3b2911d101160991b81528651909150610b1681600d840160208a016106eb565b741116101130b734b6b0ba34b7b72fbab936111d101160591b600d92909101918201528451610b4c8160228401602089016106eb565b71222c202261747472696275746573223a205b60701b602292909101918201527f7b202274726169745f74797065223a202254797065222c202276616c7565223a603482015261101160f11b6054820152610bcd610bbf610bb060568401876109f1565b6222207d60e81b815260030190565b615d7d60f01b815260020190565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081525f8251610c1081601d8501602087016106eb565b91909101601d0192915050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156106e5576106e5610c1d565b5f82610c5e57634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176106e5576106e5610c1d56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212203fe80387739ed488eecdf6da03566a5919683017bfa2ec73596ea4ef9b59b20f64736f6c63430008140033546865204c6f676f732061726520612066616374696f6e206f6620616e64726f6964732077686f20636f6c6c65637420616e642077656172206c6f676f7320616e64206f74686572206d656d6f726162696c69612066726f6d207468652066616c6c656e206272616e6473206f662074686520657261206f662068756d616e6974792e5c6e5c6e266e6273703b5c6e5c6e506861736f6d65746572732061726520756e697175652067656e6572617469766520617274776f726b73207468617420647261772066726f6d2074686520426c69746d6170206f7220426c69746e61757420617274776f726b207468617420706f7765726564207468656d2e204c6f676f7320636861726163746572732063616e206265206372616674656420696e204f63746f6265722e20506c65617365206a6f696e2074686520636f6d6d756e697479205b446973636f72645d2868747470733a2f2f646973636f72642e67672f626c69746d61702920666f7220746865206c617465737420696e666f726d6174696f6e2e5c6e5c6e266e6273703b5c6e5c6e4c6561726e206d6f72652061626f757420426c69746d617020616e642074686520426c69746d617020756e6976657273652062792076696577696e67205b6f757220776562736974655d2868747470733a2f2f626c69746d61702e636f6d292e68747470733a2f2f64336736736e32316d38783177392e636c6f756466726f6e742e6e6574

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610076575f3560e01c806325e6f5161461007a578063715018a6146100985780638da5cb5b146100a25780639abc8320146100c2578063a6325366146100ca578063c87b56dd146100dd578063e735b48a146100f0578063f2fde38b14610103575b5f80fd5b610082610116565b60405161008f919061070d565b60405180910390f35b6100a06101a2565b005b6100aa6101b5565b6040516001600160a01b03909116815260200161008f565b6100826101c3565b6100a06100d8366004610753565b6101d0565b6100826100eb3660046107fd565b6101e8565b6100a06100fe366004610753565b6102f8565b6100a0610111366004610814565b61030c565b6001805461012390610841565b80601f016020809104026020016040519081016040528092919081815260200182805461014f90610841565b801561019a5780601f106101715761010080835404028352916020019161019a565b820191905f5260205f20905b81548152906001019060200180831161017d57829003601f168201915b505050505081565b6101aa61038a565b6101b35f6103e9565b565b5f546001600160a01b031690565b6002805461012390610841565b6101d861038a565b60026101e482826108c7565b5050565b60605f60026101f684610438565b604051602001610207929190610a0c565b60405160208183030381529060405290505f600261022485610438565b604051602001610235929190610a4e565b60405160208183030381529060405290505f6102cf61025386610438565b600185856106a48a106102865760405180604001604052806008815260200167109b1a5d1b985d5d60c21b8152506102a7565b604051806040016040528060078152602001660426c69746d61760cc1b8152505b6040516020016102bb959493929190610a90565b6040516020818303038152906040526104c7565b6040516020016102df9190610bd9565b60408051601f1981840301815291905295945050505050565b61030061038a565b60016101e482826108c7565b61031461038a565b6001600160a01b03811661037e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610387816103e9565b50565b336103936101b5565b6001600160a01b0316146101b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610375565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60605f61044483610615565b60010190505f816001600160401b038111156104625761046261073f565b6040519080825280601f01601f19166020018201604052801561048c576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461049657509392505050565b606081515f036104e457505060408051602081019091525f815290565b5f604051806060016040528060408152602001610c7b6040913990505f6003845160026105119190610c31565b61051b9190610c44565b610526906004610c63565b6001600160401b0381111561053d5761053d61073f565b6040519080825280601f01601f191660200182016040528015610567576020820181803683370190505b509050600182016020820185865187015b808210156105d3576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250610578565b50506003865106600181146105ef57600281146106025761060a565b603d6001830353603d600283035361060a565b603d60018303535b509195945050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106106535772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b831061067d576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061069b57662386f26fc10000830492506010015b6305f5e10083106106b3576305f5e100830492506008015b61271083106106c757612710830492506004015b606483106106d9576064830492506002015b600a83106106e5576001015b92915050565b5f5b838110156107055781810151838201526020016106ed565b50505f910152565b602081525f825180602084015261072b8160408501602087016106eb565b601f01601f19169190910160400192915050565b634e487b7160e01b5f52604160045260245ffd5b5f60208284031215610763575f80fd5b81356001600160401b0380821115610779575f80fd5b818401915084601f83011261078c575f80fd5b81358181111561079e5761079e61073f565b604051601f8201601f19908116603f011681019083821181831017156107c6576107c661073f565b816040528281528760208487010111156107de575f80fd5b826020860160208301375f928101602001929092525095945050505050565b5f6020828403121561080d575f80fd5b5035919050565b5f60208284031215610824575f80fd5b81356001600160a01b038116811461083a575f80fd5b9392505050565b600181811c9082168061085557607f821691505b60208210810361087357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156108c2575f81815260208120601f850160051c8101602086101561089f5750805b601f850160051c820191505b818110156108be578281556001016108ab565b5050505b505050565b81516001600160401b038111156108e0576108e061073f565b6108f4816108ee8454610841565b84610879565b602080601f831160018114610927575f84156109105750858301515b5f19600386901b1c1916600185901b1785556108be565b5f85815260208120601f198616915b8281101561095557888601518255948401946001909101908401610936565b508582101561097257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f815461098e81610841565b600182811680156109a657600181146109bb576109e7565b60ff19841687528215158302870194506109e7565b855f526020805f205f5b858110156109de5781548a8201529084019082016109c5565b50505082870194505b5050505092915050565b5f8151610a028185602086016106eb565b9290920192915050565b5f610a178285610982565b602f60f81b81528351610a318160018401602088016106eb565b632e6a706760e01b60019290910191820152600501949350505050565b5f610a598285610982565b602f60f81b81528351610a738160018401602088016106eb565b630b9b5c0d60e21b60019290910191820152600501949350505050565b7403d913730b6b2911d1011283430b9b7b6b2ba32b91605d1b815285515f90610ac0816015850160208b016106eb565b72111610113232b9b1b934b83a34b7b7111d101160691b601591840191820152610aed6028820188610982565b6c1116101134b6b0b3b2911d101160991b81528651909150610b1681600d840160208a016106eb565b741116101130b734b6b0ba34b7b72fbab936111d101160591b600d92909101918201528451610b4c8160228401602089016106eb565b71222c202261747472696275746573223a205b60701b602292909101918201527f7b202274726169745f74797065223a202254797065222c202276616c7565223a603482015261101160f11b6054820152610bcd610bbf610bb060568401876109f1565b6222207d60e81b815260030190565b615d7d60f01b815260020190565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081525f8251610c1081601d8501602087016106eb565b91909101601d0192915050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156106e5576106e5610c1d565b5f82610c5e57634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176106e5576106e5610c1d56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212203fe80387739ed488eecdf6da03566a5919683017bfa2ec73596ea4ef9b59b20f64736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.