ETH Price: $3,128.14 (-0.72%)
 

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

1 Internal Transaction found.

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x60806040186961742023-12-02 3:56:59773 days ago1701489419  Contract Creation0 ETH
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:
SolverValidator01

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity =0.8.17;


/**
 *    ,,                           ,,                                
 *   *MM                           db                      `7MM      
 *    MM                                                     MM      
 *    MM,dMMb.      `7Mb,od8     `7MM      `7MMpMMMb.        MM  ,MP'
 *    MM    `Mb       MM' "'       MM        MM    MM        MM ;Y   
 *    MM     M8       MM           MM        MM    MM        MM;Mm   
 *    MM.   ,M9       MM           MM        MM    MM        MM `Mb. 
 *    P^YbmdP'      .JMML.       .JMML.    .JMML  JMML.    .JMML. YA.
 *
 *    SolverValidator01.sol :: 0xea8cb64b49a29db66e84a795dc46ebfa9b10b120
 *    etherscan.io verified 2023-12-01
 */ 
import "@openzeppelin/v4.8.3/access/Ownable.sol";
import "../Interfaces/ISolverValidator.sol";

contract SolverValidator01 is ISolverValidator, Ownable {

  event SolverValiditySet(address solver, bool valid);

  mapping (address => bool) solverValidity;

  constructor () {
    transferOwnership(0x0AfB7C8cf2b639675a20Fda58Adf3307d40e8E8A);
    solverValidity[0x0AfB7C8cf2b639675a20Fda58Adf3307d40e8E8A] = true;
  }

  function isValidSolver (address solver) external view returns (bool valid) {
    valid = solverValidity[solver];
  }

  function setSolverValidity (address solver, bool valid) external onlyOwner {
    solverValidity[solver] = valid;
    emit SolverValiditySet(solver, valid);
  }
}

// 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);
    }
}

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

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity =0.8.17;

interface ISolverValidator {
  function isValidSolver(address solver) external returns (bool valid);
  function setSolverValidity(address solver, bool valid) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 800
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"solver","type":"address"},{"indexed":false,"internalType":"bool","name":"valid","type":"bool"}],"name":"SolverValiditySet","type":"event"},{"inputs":[{"internalType":"address","name":"solver","type":"address"}],"name":"isValidSolver","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"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":"solver","type":"address"},{"internalType":"bool","name":"valid","type":"bool"}],"name":"setSolverValidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a33610087565b610037730afb7c8cf2b639675a20fda58adf3307d40e8e8a6100d7565b730afb7c8cf2b639675a20fda58adf3307d40e8e8a600052600160208190527f0607d4054c165e6d78969cb4d1ad93dc8e7e8add4d179282537e2013b96276a2805460ff191690911790556101b1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100df610155565b6001600160a01b0381166101495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61015281610087565b50565b6000546001600160a01b031633146101af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610140565b565b610355806101c06000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80638da5cb5b116100505780638da5cb5b14610089578063c03b3193146100a9578063f2fde38b146100e557600080fd5b806345b996721461006c578063715018a614610081575b600080fd5b61007f61007a3660046102ea565b6100f8565b005b61007f610163565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100d56100b7366004610326565b6001600160a01b031660009081526001602052604090205460ff1690565b60405190151581526020016100a0565b61007f6100f3366004610326565b610177565b61010061020c565b6001600160a01b038216600081815260016020908152604091829020805460ff19168515159081179091558251938452908301527fcc1d44032eb18ee92601a171837a505b8cc1d2480c70d18dbbd39830e586592f910160405180910390a15050565b61016b61020c565b6101756000610266565b565b61017f61020c565b6001600160a01b0381166102005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61020981610266565b50565b6000546001600160a01b031633146101755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101f7565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b03811681146102e557600080fd5b919050565b600080604083850312156102fd57600080fd5b610306836102ce565b91506020830135801515811461031b57600080fd5b809150509250929050565b60006020828403121561033857600080fd5b610341826102ce565b939250505056fea164736f6c6343000811000a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100675760003560e01c80638da5cb5b116100505780638da5cb5b14610089578063c03b3193146100a9578063f2fde38b146100e557600080fd5b806345b996721461006c578063715018a614610081575b600080fd5b61007f61007a3660046102ea565b6100f8565b005b61007f610163565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100d56100b7366004610326565b6001600160a01b031660009081526001602052604090205460ff1690565b60405190151581526020016100a0565b61007f6100f3366004610326565b610177565b61010061020c565b6001600160a01b038216600081815260016020908152604091829020805460ff19168515159081179091558251938452908301527fcc1d44032eb18ee92601a171837a505b8cc1d2480c70d18dbbd39830e586592f910160405180910390a15050565b61016b61020c565b6101756000610266565b565b61017f61020c565b6001600160a01b0381166102005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61020981610266565b50565b6000546001600160a01b031633146101755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101f7565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b03811681146102e557600080fd5b919050565b600080604083850312156102fd57600080fd5b610306836102ce565b91506020830135801515811461031b57600080fd5b809150509250929050565b60006020828403121561033857600080fd5b610341826102ce565b939250505056fea164736f6c6343000811000a

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