ETH Price: $3,060.22 (-4.43%)
 

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
Transfer Ownersh...251341142025-01-16 19:59:35305 days ago1737057575IN
0xC31252d6...2dB0f3E9a
0 ETH0.000000530.00494843
Update Contract ...251320892025-01-16 18:52:05305 days ago1737053525IN
0xC31252d6...2dB0f3E9a
0 ETH0.0000130.00221599

Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

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

Contract Name:
ContractAddressManager

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT

pragma solidity 0.8.26;

import { IContractAddressManager } from "../interfaces/IContractAddressManager.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";

contract ContractAddressManager is IContractAddressManager, Ownable(msg.sender) {
  mapping(string => address) private contractAddressForName;
  mapping(address => bool) private isEthosContract;

  event ContractAddressUpdated(string indexed name, address indexed contractAddress);

  error InvalidInputLength();

  /**
   * @dev Updates contract address for a name.
   * @param contractAddresses Contract addresses.
   * @param names Name of the contracts.
   */
  function updateContractAddressesForNames(
    address[] calldata contractAddresses,
    string[] memory names
  ) external onlyOwner {
    if (contractAddresses.length != names.length) {
      revert InvalidInputLength();
    }

    for (uint256 i = 0; i < contractAddresses.length; ++i) {
      address current = contractAddressForName[names[i]];
      if (current != address(0)) {
        isEthosContract[current] = false;
      }
      contractAddressForName[names[i]] = contractAddresses[i];
      isEthosContract[contractAddresses[i]] = true;
      emit ContractAddressUpdated(names[i], contractAddresses[i]);
    }
  }

  /**
   * @dev Returns contract address for a name.
   * @param name Name of the contract.
   * @return Contract address.
   */
  function getContractAddressForName(string memory name) external view returns (address) {
    return contractAddressForName[name];
  }

  /**
   * @dev Returns a flag based on if the target is an ethos contract
   * @param targetAddress address of the contract.
   */
  function checkIsEthosContract(address targetAddress) external view returns (bool) {
    return isEthosContract[targetAddress];
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity 0.8.26;

interface IContractAddressManager {
  function getContractAddressForName(string memory name) external view returns (address);

  function checkIsEthosContract(address targetAddress) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"name":"InvalidInputLength","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"}],"name":"ContractAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"targetAddress","type":"address"}],"name":"checkIsEthosContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"getContractAddressForName","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"contractAddresses","type":"address[]"},{"internalType":"string[]","name":"names","type":"string[]"}],"name":"updateContractAddressesForNames","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x60806040523461002257610011610027565b60405161083861017f823961083890f35b600080fd5b61003033610074565b565b61004261003f61003f9290565b90565b6001600160a01b031690565b61003f90610032565b61006090610042565b9052565b6020810192916100309190610057565b600061007f8161004e565b61008881610042565b61009184610042565b146100a157505061003090610127565b631e4fbdf760e01b825281906100ba9060048301610064565b0390fd5b61003f90610042565b61003f90546100be565b61003f90610042906001600160a01b031682565b61003f906100d1565b61003f906100e5565b9061010761003f610123926100ee565b82546001600160a01b0319166001600160a01b03919091161790565b9055565b61014d61014761013760006100c7565b6101428460006100f7565b6100ee565b916100ee565b907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e061017860405190565b600090a356fe6080604052600436101561001257600080fd5b60003560e01c806348355f8414610072578063715018a61461006d5780638da5cb5b14610068578063d57f7aa314610063578063db5389ab1461005e5763f2fde38b036100a757610387565b61035a565b61030d565b6102a8565b610284565b610257565b909182601f830112156100a75781359167ffffffffffffffff83116100a75760200192602083028401116100a757565b600080fd5b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff8211176100e457604052565b6100ac565b906100fd6100f660405190565b92836100c2565b565b67ffffffffffffffff81116100e45760208091020190565b67ffffffffffffffff81116100e457602090601f01601f19160190565b0190565b90826000939282370152565b9092919261015961015482610117565b6100e9565b93818552818301116100a7576100fd916020850190610138565b9080601f830112156100a75781602061018e93359101610144565b90565b9291906101a0610154826100ff565b93818552602080860192028101918383116100a75781905b8382106101c6575050505050565b813567ffffffffffffffff81116100a7576020916101e78784938701610173565b8152019101906101b8565b9080601f830112156100a75781602061018e93359101610191565b90916040828403126100a757813567ffffffffffffffff81116100a75783610236918401610077565b929093602082013567ffffffffffffffff81116100a75761018e92016101f2565b346100a75761027061026a36600461020d565b916106a9565b604051005b0390f35b60009103126100a757565b346100a757610294366004610279565b6102706106d1565b6001600160a01b031690565b346100a7576102b8366004610279565b6102756102cd6000546001600160a01b031690565b604051918291826001600160a01b03909116815260200190565b906020828203126100a757813567ffffffffffffffff81116100a75761018e9201610173565b346100a7576102756102cd6103233660046102e7565b6106d9565b6001600160a01b038116036100a757565b905035906100fd82610328565b906020828203126100a75761018e91610339565b346100a757610275610375610370366004610346565b6106f0565b60405191829182901515815260200190565b346100a75761027061039a366004610346565b610766565b906100fd92916103ad61076f565b61054e565b61018e61018e61018e9290565b634e487b7160e01b600052603260045260246000fd5b906103de825190565b8110156103ef576020809102010190565b6103bf565b60005b8381106104075750506000910152565b81810151838201526020016103f7565b61013461042f92602092610429815190565b94859290565b938491016103f4565b6104486101349160209493610417565b918252565b61046261045960405190565b92839283610438565b03902090565b61018e9161044d565b61029c61018e61018e9290565b61018e90610471565b61018e9061029c906001600160a01b031682565b61018e90610487565b61018e9061049b565b906104b7906104a4565b600052602052604060002090565b9060ff905b9181191691161790565b906104e461018e6104eb92151590565b82546104c5565b9055565b91908110156103ef576020020190565b3561018e81610328565b906001600160a01b03906104ca565b9061052861018e6104eb926104a4565b8254610509565b61018e91610417565b6104629061054560405190565b9182918261052f565b909291839261055e61018e835190565b84036106975761056e60006103b2565b845b81101561068f576106726105709161061260016105a761059a610593858a6103d5565b5183610468565b546001600160a01b031690565b6105b461029c600061047e565b6001600160a01b03821603610679575b506105f46105db6105d6858d8c6104ef565b6104ff565b6105ef6105e8868b6103d5565b5184610468565b610518565b61060d60026106076105d6868e8d6104ef565b906104ad565b6104d4565b61061c81866103d5565b5161063d6106376106316105d6858d8c6104ef565b92610538565b916104a4565b907fa42de6429c1410f4470a8ff5afeeae27c734519ac1693e8eb58798a81715c94761066860405190565b600090a360010190565b905061056e565b600061060d6106899260026104ad565b386105c4565b509350505050565b637db491eb60e01b6000908152600490fd5b906100fd929161039f565b6106bc61076f565b6100fd6100fd6106cc600061047e565b6107a9565b6100fd6106b4565b61059a61018e916106e8600090565b506001610468565b61070761018e916106ff600090565b5060026104ad565b5460ff1690565b6100fd9061071a61076f565b60006107258161047e565b6001600160a01b0381166001600160a01b038416146107495750506100fd906107a9565b631e4fbdf760e01b82526001600160a01b03166004820152602490fd5b6100fd9061070e565b60005433906001600160a01b03168190036107875750565b63118cdaa760e01b60009081526001600160a01b039091166004526024036000fd5b6107d16106376107c16000546001600160a01b031690565b6107cc846000610518565b6104a4565b907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06107fc60405190565b600090a356fea2646970667358221220335737c9c7a0602245c0c67e037f90f7ae5dfd5774d52eb25211085809e4de7564736f6c634300081a0033

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c806348355f8414610072578063715018a61461006d5780638da5cb5b14610068578063d57f7aa314610063578063db5389ab1461005e5763f2fde38b036100a757610387565b61035a565b61030d565b6102a8565b610284565b610257565b909182601f830112156100a75781359167ffffffffffffffff83116100a75760200192602083028401116100a757565b600080fd5b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff8211176100e457604052565b6100ac565b906100fd6100f660405190565b92836100c2565b565b67ffffffffffffffff81116100e45760208091020190565b67ffffffffffffffff81116100e457602090601f01601f19160190565b0190565b90826000939282370152565b9092919261015961015482610117565b6100e9565b93818552818301116100a7576100fd916020850190610138565b9080601f830112156100a75781602061018e93359101610144565b90565b9291906101a0610154826100ff565b93818552602080860192028101918383116100a75781905b8382106101c6575050505050565b813567ffffffffffffffff81116100a7576020916101e78784938701610173565b8152019101906101b8565b9080601f830112156100a75781602061018e93359101610191565b90916040828403126100a757813567ffffffffffffffff81116100a75783610236918401610077565b929093602082013567ffffffffffffffff81116100a75761018e92016101f2565b346100a75761027061026a36600461020d565b916106a9565b604051005b0390f35b60009103126100a757565b346100a757610294366004610279565b6102706106d1565b6001600160a01b031690565b346100a7576102b8366004610279565b6102756102cd6000546001600160a01b031690565b604051918291826001600160a01b03909116815260200190565b906020828203126100a757813567ffffffffffffffff81116100a75761018e9201610173565b346100a7576102756102cd6103233660046102e7565b6106d9565b6001600160a01b038116036100a757565b905035906100fd82610328565b906020828203126100a75761018e91610339565b346100a757610275610375610370366004610346565b6106f0565b60405191829182901515815260200190565b346100a75761027061039a366004610346565b610766565b906100fd92916103ad61076f565b61054e565b61018e61018e61018e9290565b634e487b7160e01b600052603260045260246000fd5b906103de825190565b8110156103ef576020809102010190565b6103bf565b60005b8381106104075750506000910152565b81810151838201526020016103f7565b61013461042f92602092610429815190565b94859290565b938491016103f4565b6104486101349160209493610417565b918252565b61046261045960405190565b92839283610438565b03902090565b61018e9161044d565b61029c61018e61018e9290565b61018e90610471565b61018e9061029c906001600160a01b031682565b61018e90610487565b61018e9061049b565b906104b7906104a4565b600052602052604060002090565b9060ff905b9181191691161790565b906104e461018e6104eb92151590565b82546104c5565b9055565b91908110156103ef576020020190565b3561018e81610328565b906001600160a01b03906104ca565b9061052861018e6104eb926104a4565b8254610509565b61018e91610417565b6104629061054560405190565b9182918261052f565b909291839261055e61018e835190565b84036106975761056e60006103b2565b845b81101561068f576106726105709161061260016105a761059a610593858a6103d5565b5183610468565b546001600160a01b031690565b6105b461029c600061047e565b6001600160a01b03821603610679575b506105f46105db6105d6858d8c6104ef565b6104ff565b6105ef6105e8868b6103d5565b5184610468565b610518565b61060d60026106076105d6868e8d6104ef565b906104ad565b6104d4565b61061c81866103d5565b5161063d6106376106316105d6858d8c6104ef565b92610538565b916104a4565b907fa42de6429c1410f4470a8ff5afeeae27c734519ac1693e8eb58798a81715c94761066860405190565b600090a360010190565b905061056e565b600061060d6106899260026104ad565b386105c4565b509350505050565b637db491eb60e01b6000908152600490fd5b906100fd929161039f565b6106bc61076f565b6100fd6100fd6106cc600061047e565b6107a9565b6100fd6106b4565b61059a61018e916106e8600090565b506001610468565b61070761018e916106ff600090565b5060026104ad565b5460ff1690565b6100fd9061071a61076f565b60006107258161047e565b6001600160a01b0381166001600160a01b038416146107495750506100fd906107a9565b631e4fbdf760e01b82526001600160a01b03166004820152602490fd5b6100fd9061070e565b60005433906001600160a01b03168190036107875750565b63118cdaa760e01b60009081526001600160a01b039091166004526024036000fd5b6107d16106376107c16000546001600160a01b031690565b6107cc846000610518565b6104a4565b907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e06107fc60405190565b600090a356fea2646970667358221220335737c9c7a0602245c0c67e037f90f7ae5dfd5774d52eb25211085809e4de7564736f6c634300081a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.