ETH Price: $2,288.91 (+1.09%)
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
0x60806040134762902024-04-21 23:25:27139 days ago1713741927IN
 Contract Creation
0 ETH0.000003510.01325791

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x1197ef05...b451DD52c
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
OperatorRegistry

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 1 : OperatorRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

contract OperatorRegistry {
    event OperatorAdded(address operatorAddress);
    event OperatorRemoved(uint256 index, address operatorAddress);
    event OperatorStatusSet(uint256 index, bool _newStatus);
    event OperatorAddressSet(uint256 index, address operatorAddress);
    event OperatorNameSet(uint256 index, string _newName);
    event UpgradedTo(address newImplementation);

    function addOperator(address operatorAddress) external {
        emit OperatorAdded(operatorAddress);
    }

    function removeOperator(uint256 index, address operatorAddress) external {
        emit OperatorRemoved(index, operatorAddress);
    }

    function setOperatorStatus(uint256 index, bool status) external {
        emit OperatorStatusSet(index, status);
    }

    function setOperatorAddress(uint256 index, address operatorAddress) external {
        emit OperatorAddressSet(index, operatorAddress);
    }

    function setOperatorName(uint256 index, string calldata name) external {
        emit OperatorNameSet(index, name);
    }

    function upgradeTo(address newImplementation) external {
        emit UpgradedTo(newImplementation);
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operatorAddress","type":"address"}],"name":"OperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"operatorAddress","type":"address"}],"name":"OperatorAddressSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"string","name":"_newName","type":"string"}],"name":"OperatorNameSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"operatorAddress","type":"address"}],"name":"OperatorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_newStatus","type":"bool"}],"name":"OperatorStatusSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"UpgradedTo","type":"event"},{"inputs":[{"internalType":"address","name":"operatorAddress","type":"address"}],"name":"addOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"operatorAddress","type":"address"}],"name":"removeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"operatorAddress","type":"address"}],"name":"setOperatorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"setOperatorName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setOperatorStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c80630d18d07a146100675780633659cfe61461007c578063392513211461008f5780635a16f135146100a25780639870d7fe146100b5578063f87e5296146100c8575b600080fd5b61007a61007536600461026b565b6100db565b005b61007a61008a366004610297565b610121565b61007a61009d3660046102b9565b610161565b61007a6100b0366004610335565b6101a1565b61007a6100c3366004610297565b6101d8565b61007a6100d636600461026b565b610211565b604080518381526001600160a01b03831660208201527f52d3687b8125cef8627d9a4976cbb4de4fb13a1eec014884f69cb22f0f9bacb191015b60405180910390a15050565b6040516001600160a01b03821681527f1466d4e2c17718222b4ada7f7cbc8907912d6083fdaf34382703d6a9602eef55906020015b60405180910390a150565b7f8b0502f80e53a384aba529c8bafaae9094e3d46857d1b9f595a5d512cabf0a648383836040516101949392919061036a565b60405180910390a1505050565b6040805183815282151560208201527feec7fc12acacd33005b523ce43cb55f19a04cc9c5da8bcd29163ceaa4d6d54e09101610115565b6040516001600160a01b03821681527fac6fa858e9350a46cec16539926e0fde25b7629f84b5a72bffaae4df888ae86d90602001610156565b604080518381526001600160a01b03831660208201527f1d0d580a922545ff10b2cd7334e36cb3e913a89a7b68f037971786f774489b829101610115565b80356001600160a01b038116811461026657600080fd5b919050565b6000806040838503121561027e57600080fd5b8235915061028e6020840161024f565b90509250929050565b6000602082840312156102a957600080fd5b6102b28261024f565b9392505050565b6000806000604084860312156102ce57600080fd5b83359250602084013567ffffffffffffffff808211156102ed57600080fd5b818601915086601f83011261030157600080fd5b81358181111561031057600080fd5b87602082850101111561032257600080fd5b6020830194508093505050509250925092565b6000806040838503121561034857600080fd5b823591506020830135801515811461035f57600080fd5b809150509250929050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f191601019291505056fea264697066735822122074ba3700501db418e242fba20531ce0884223019bc78528796e267d20533fd8764736f6c63430008190033

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
[ 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.