ETH Price: $3,329.35 (+3.31%)
Gas: 2.98 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Base URI175922292023-06-30 12:56:23580 days ago1688129783IN
0x6e990d1D...8d630dd88
0 ETH0.0014780336.26287049
Set Base URI175862782023-06-29 16:55:11581 days ago1688057711IN
0x6e990d1D...8d630dd88
0 ETH0.0014914536.80870215

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

Contract Source Code Verified (Exact Match)

Contract Name:
Renderer

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : Renderer.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

/**===============================================================================
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@,,,,,,,,,@@@@@@@@@@@@@@,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,@@(((((,,,,,,,,,@@,,,,,@@((,,,,,,,,,,  @@,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,@@(((((,,,,,,,,,,,,,@@@@@((,,,,,,,,,,,,,,  @@,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,@@@((((,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  @@@,,,,,,,,,,,,,,,
,,,,,,,,,,,,@@(((((((,,,,,,,,,,,,,,,,@@,,,,,,,,,,,,@@@@@@@@@@@,,,,,@@,,,,,,,,,,,,,
,,,,,,,,,,,,@@(((((((,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@    @@,,,@@,,,,,,,,,,,,,
,,,,,,,,,,@@(((((((,,,,@@@@@@@@@@@@@@,,@@@,,,,@@     @@@@@    @@,,,,,@@,,,,,,,,,,,
,,,,,,,,,,@@(((((((,,,,,,,,,,,,,,,,,,@@@@@,,,,@@   @@@@@@@    @@,,,,,@@,,,,,,,,,,,
,,,,,,,@@@(((((((((,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@@@@@@@@,,,,,,,,,@@@,,,,,,,,
,,,,,,,@@@(((((((((@@@@@@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@,,,,,,,,
,,,,,,,@@@((((((@@@(((((((@@@@,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,@@@@@@@,,,,@@@,,,,,,,,
,,,,,,,@@@((((((@@@((@@(((((((@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(((((((@@,,@@@,,,,,,,,
,,,,,,,@@@((((((@@@((((@@@@@((((((((((((((((((((((((((((((((@@@@(((@@,,@@@,,,,,,,,
,,,,,,,@@@(((((((((@@(((((((@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(((((((@@,,@@@,,,,,,,,
,,,,,,,@@@(((((((((**##############################################,,**@@@,,,,,,,,
,,,,,,,,,,@@(((((((((((,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,((@@,,,,,,,,,,,
,,,,,,,,,,,,@@(((((((((((((((((((((((((((((((((((((((((((((((((((((@@,,,,,,,,,,,,,
,,,,,,,,,,,,,,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
==================================================================================
🐸                               RENDERING LOGIC                                🐸
🐸                       THE PEOPLES' NFT MADE BY FROGS                         🐸
================================================================================*/

import "@openzeppelin/contracts/access/Ownable.sol";

contract Renderer is Ownable {

    // temp uri for the instant reveal process. This will be changed once all tokens
    // are revealed
    string public _baseTokenURI = "https://metadata.babypepes.repl.co/pepe/";

    constructor(){}

    /**
     🐸 @notice Get to metadata for a given token ID
     🐸 @param tokenId - Token ID for desired token
     🐸 @return metadata as a string
     */
    function tokenURI(uint256 tokenId) public view returns (string memory) {
        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     🐸 @notice Get the baseTokenURI
     🐸 @return baseTokenURI as a string
     */
    function _baseURI() internal view returns (string memory) {
        return _baseTokenURI;
    }

    /**
     🐸 @notice Set the baseTokenURI
     🐸 @param baseTokenURI - URI for metadata
     */
    function setBaseURI(string memory baseTokenURI) public onlyOwner {
        _baseTokenURI = baseTokenURI;
    }

    /**
     🐸 @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 2 of 3 : Ownable.sol
// 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);
    }
}

File 3 of 3 : 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "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":"_baseTokenURI","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":"baseTokenURI","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"}]

60e060405260286080818152906108fb60a03960019061001f908261012a565b5034801561002c57600080fd5b506100363361003b565b6101e9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806100b557607f821691505b6020821081036100d557634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561012557600081815260208120601f850160051c810160208610156101025750805b601f850160051c820191505b818110156101215782815560010161010e565b5050505b505050565b81516001600160401b038111156101435761014361008b565b6101578161015184546100a1565b846100db565b602080601f83116001811461018c57600084156101745750858301515b600019600386901b1c1916600185901b178555610121565b600085815260208120601f198616915b828110156101bb5788860151825594840194600190910190840161019c565b50858210156101d95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610703806101f86000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806355f804b314610067578063715018a61461007c5780638da5cb5b14610084578063c87b56dd146100a4578063cfc86f7b146100c4578063f2fde38b146100cc575b600080fd5b61007a61007536600461040b565b6100df565b005b61007a6100f7565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100b76100b23660046104bc565b61010b565b60405161009b91906104f9565b6100b7610169565b61007a6100da36600461052c565b6101f7565b6100e7610275565b60016100f382826105de565b5050565b6100ff610275565b61010960006102cf565b565b6060600061011761031f565b905080516000036101375760405180602001604052806000815250610162565b80610141846103b1565b60405160200161015292919061069e565b6040516020818303038152906040525b9392505050565b6001805461017690610555565b80601f01602080910402602001604051908101604052809291908181526020018280546101a290610555565b80156101ef5780601f106101c4576101008083540402835291602001916101ef565b820191906000526020600020905b8154815290600101906020018083116101d257829003601f168201915b505050505081565b6101ff610275565b6001600160a01b0381166102695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610272816102cf565b50565b6000546001600160a01b031633146101095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610260565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606001805461032e90610555565b80601f016020809104026020016040519081016040528092919081815260200182805461035a90610555565b80156103a75780601f1061037c576101008083540402835291602001916103a7565b820191906000526020600020905b81548152906001019060200180831161038a57829003601f168201915b5050505050905090565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806103cb5750819003601f19909101908152919050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561041d57600080fd5b813567ffffffffffffffff8082111561043557600080fd5b818401915084601f83011261044957600080fd5b81358181111561045b5761045b6103f5565b604051601f8201601f19908116603f01168101908382118183101715610483576104836103f5565b8160405282815287602084870101111561049c57600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000602082840312156104ce57600080fd5b5035919050565b60005b838110156104f05781810151838201526020016104d8565b50506000910152565b60208152600082518060208401526105188160408501602087016104d5565b601f01601f19169190910160400192915050565b60006020828403121561053e57600080fd5b81356001600160a01b038116811461016257600080fd5b600181811c9082168061056957607f821691505b60208210810361058957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156105d957600081815260208120601f850160051c810160208610156105b65750805b601f850160051c820191505b818110156105d5578281556001016105c2565b5050505b505050565b815167ffffffffffffffff8111156105f8576105f86103f5565b61060c816106068454610555565b8461058f565b602080601f83116001811461064157600084156106295750858301515b600019600386901b1c1916600185901b1785556105d5565b600085815260208120601f198616915b8281101561067057888601518255948401946001909101908401610651565b508582101561068e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516106b08184602088016104d5565b8351908301906106c48183602088016104d5565b0194935050505056fea2646970667358221220485154667f6be55458370962243d1c3e42ed8a1c1634a1468b6867765ee0bf7364736f6c6343000811003368747470733a2f2f6d657461646174612e6261627970657065732e7265706c2e636f2f706570652f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c806355f804b314610067578063715018a61461007c5780638da5cb5b14610084578063c87b56dd146100a4578063cfc86f7b146100c4578063f2fde38b146100cc575b600080fd5b61007a61007536600461040b565b6100df565b005b61007a6100f7565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100b76100b23660046104bc565b61010b565b60405161009b91906104f9565b6100b7610169565b61007a6100da36600461052c565b6101f7565b6100e7610275565b60016100f382826105de565b5050565b6100ff610275565b61010960006102cf565b565b6060600061011761031f565b905080516000036101375760405180602001604052806000815250610162565b80610141846103b1565b60405160200161015292919061069e565b6040516020818303038152906040525b9392505050565b6001805461017690610555565b80601f01602080910402602001604051908101604052809291908181526020018280546101a290610555565b80156101ef5780601f106101c4576101008083540402835291602001916101ef565b820191906000526020600020905b8154815290600101906020018083116101d257829003601f168201915b505050505081565b6101ff610275565b6001600160a01b0381166102695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610272816102cf565b50565b6000546001600160a01b031633146101095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610260565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60606001805461032e90610555565b80601f016020809104026020016040519081016040528092919081815260200182805461035a90610555565b80156103a75780601f1061037c576101008083540402835291602001916103a7565b820191906000526020600020905b81548152906001019060200180831161038a57829003601f168201915b5050505050905090565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806103cb5750819003601f19909101908152919050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561041d57600080fd5b813567ffffffffffffffff8082111561043557600080fd5b818401915084601f83011261044957600080fd5b81358181111561045b5761045b6103f5565b604051601f8201601f19908116603f01168101908382118183101715610483576104836103f5565b8160405282815287602084870101111561049c57600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000602082840312156104ce57600080fd5b5035919050565b60005b838110156104f05781810151838201526020016104d8565b50506000910152565b60208152600082518060208401526105188160408501602087016104d5565b601f01601f19169190910160400192915050565b60006020828403121561053e57600080fd5b81356001600160a01b038116811461016257600080fd5b600181811c9082168061056957607f821691505b60208210810361058957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156105d957600081815260208120601f850160051c810160208610156105b65750805b601f850160051c820191505b818110156105d5578281556001016105c2565b5050505b505050565b815167ffffffffffffffff8111156105f8576105f86103f5565b61060c816106068454610555565b8461058f565b602080601f83116001811461064157600084156106295750858301515b600019600386901b1c1916600185901b1785556105d5565b600085815260208120601f198616915b8281101561067057888601518255948401946001909101908401610651565b508582101561068e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516106b08184602088016104d5565b8351908301906106c48183602088016104d5565b0194935050505056fea2646970667358221220485154667f6be55458370962243d1c3e42ed8a1c1634a1468b6867765ee0bf7364736f6c63430008110033

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.