ETH Price: $2,013.10 (-0.66%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PredictableCat

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.30;

import "../interface/BugCat.sol";

contract PredictableCat is BugCat {
    mapping(address => uint8) public winCount;

    function flip() external {
        if ((uint(keccak256(abi.encodePacked(
            block.timestamp,
            block.prevrandao,
            msg.sender
        ))) & 1) == 0) {
            winCount[msg.sender] += 1;
        } else {
            winCount[msg.sender] = 0;
        }
    }

    function caress() public {
        if (winCount[msg.sender] >= 10) {
            emit Meow(msg.sender, "predictable");
            winCount[msg.sender] = 0;
        }
    }

    function remember() external view returns (bool) {
        address FoMo3Dlong = 0xA62142888ABa8370742bE823c1782D17A0389Da1;
        return FoMo3Dlong.code.length > 0;
    }
}

// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.30;

interface BugCat {
    event Meow(address indexed caretaker, string wound);
    function caress() external;
    function remember() external view returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caretaker","type":"address"},{"indexed":false,"internalType":"string","name":"wound","type":"string"}],"name":"Meow","type":"event"},{"inputs":[],"name":"caress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"winCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]

60808060405234601557610255908161001b8239f35b600080fdfe608080604052600436101561001357600080fd5b60003560e01c90816301288f3c146101925750806354bd5023146101515780635ac687a81461011e5763cde4efa91461004b57600080fd5b3461011957600036600319011261011957604051602081014281524460408301523360601b606083015260548252608082019180831067ffffffffffffffff8411176101035760019260405251902016156000146100e8573360005260006020526040600020600160ff8254160160ff81116100d25760ff1660ff19825416179055600080f35b634e487b7160e01b600052601160045260246000fd5b336000526000602052604060002060ff198154169055600080f35b634e487b7160e01b600052604160045260246000fd5b600080fd5b3461011957600036600319011261011957602073a62142888aba8370742be823c1782d17a0389da13b1515604051908152f35b34610119576020366003190112610119576004356001600160a01b03811690819003610119576000526000602052602060ff60406000205416604051908152f35b3461011957600036600319011261011957336000526000602052600a60ff6040600020541610156101bf57005b60208152600b60208201526a7072656469637461626c6560a81b60408201527f55d68e0254b44d1d00659bd7e45544dea474c1b9d01304669332e1111dcd9d3360603392a2336000526000602052604060002060ff198154169055600080f3fea26469706673582212207bd5c6653b56baf8cc7a5adf50b7564cd50990944d14cda2e836e2437000f65964736f6c634300081e0033

Deployed Bytecode

0x608080604052600436101561001357600080fd5b60003560e01c90816301288f3c146101925750806354bd5023146101515780635ac687a81461011e5763cde4efa91461004b57600080fd5b3461011957600036600319011261011957604051602081014281524460408301523360601b606083015260548252608082019180831067ffffffffffffffff8411176101035760019260405251902016156000146100e8573360005260006020526040600020600160ff8254160160ff81116100d25760ff1660ff19825416179055600080f35b634e487b7160e01b600052601160045260246000fd5b336000526000602052604060002060ff198154169055600080f35b634e487b7160e01b600052604160045260246000fd5b600080fd5b3461011957600036600319011261011957602073a62142888aba8370742be823c1782d17a0389da13b1515604051908152f35b34610119576020366003190112610119576004356001600160a01b03811690819003610119576000526000602052602060ff60406000205416604051908152f35b3461011957600036600319011261011957336000526000602052600a60ff6040600020541610156101bf57005b60208152600b60208201526a7072656469637461626c6560a81b60408201527f55d68e0254b44d1d00659bd7e45544dea474c1b9d01304669332e1111dcd9d3360603392a2336000526000602052604060002060ff198154169055600080f3fea26469706673582212207bd5c6653b56baf8cc7a5adf50b7564cd50990944d14cda2e836e2437000f65964736f6c634300081e0033

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

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.