Sepolia Testnet

Contract

0x252B5152F49Bc93BaEB0B14503dCEF6457A4694B

Overview

ETH Balance

0 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

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

Contract Source Code Verified (Exact Match)

Contract Name:
Weekdays

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : Enums.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Weekdays {
    enum Day { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday }

    function getNextDay(Day currentDay) public pure returns (Day) {
        if (currentDay == Day.Sunday) return Day.Monday;
        return Day(uint(currentDay) + 1);
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"enum Weekdays.Day","name":"currentDay","type":"uint8"}],"name":"getNextDay","outputs":[{"internalType":"enum Weekdays.Day","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"}]

6080604052348015600e575f80fd5b506102478061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063d999d0ed1461002d575b5f80fd5b610047600480360381019061004291906100f1565b61005d565b604051610054919061018f565b60405180910390f35b5f6006808111156100715761007061011c565b5b8260068111156100845761008361011c565b5b03610091575f90506100c5565b60018260068111156100a6576100a561011c565b5b6100b091906101de565b60068111156100c2576100c161011c565b5b90505b919050565b5f80fd5b600781106100da575f80fd5b50565b5f813590506100eb816100ce565b92915050565b5f60208284031215610106576101056100ca565b5b5f610113848285016100dd565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6007811061015a5761015961011c565b5b50565b5f81905061016a82610149565b919050565b5f6101798261015d565b9050919050565b6101898161016f565b82525050565b5f6020820190506101a25f830184610180565b92915050565b5f819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6101e8826101a8565b91506101f3836101a8565b925082820190508082111561020b5761020a6101b1565b5b9291505056fea26469706673582212208194eac49257e9fc18bf07526215424480bb059af11fe24882bf67b98141490664736f6c634300081a0033

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063d999d0ed1461002d575b5f80fd5b610047600480360381019061004291906100f1565b61005d565b604051610054919061018f565b60405180910390f35b5f6006808111156100715761007061011c565b5b8260068111156100845761008361011c565b5b03610091575f90506100c5565b60018260068111156100a6576100a561011c565b5b6100b091906101de565b60068111156100c2576100c161011c565b5b90505b919050565b5f80fd5b600781106100da575f80fd5b50565b5f813590506100eb816100ce565b92915050565b5f60208284031215610106576101056100ca565b5b5f610113848285016100dd565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6007811061015a5761015961011c565b5b50565b5f81905061016a82610149565b919050565b5f6101798261015d565b9050919050565b6101898161016f565b82525050565b5f6020820190506101a25f830184610180565b92915050565b5f819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6101e8826101a8565b91506101f3836101a8565b925082820190508082111561020b5761020a6101b1565b5b9291505056fea26469706673582212208194eac49257e9fc18bf07526215424480bb059af11fe24882bf67b98141490664736f6c634300081a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

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.