ETH Price: $3,477.13 (-1.16%)
Gas: 3 Gwei

Contract

0xbD5Bf39ac08B9a16C3DE2Ad093706E70082eff8E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Address Bloc...180936412023-09-08 19:00:11318 days ago1694199611IN
0xbD5Bf39a...0082eff8E
0 ETH0.0012175826.27282576
Set Address Bloc...167417922023-03-02 15:33:35508 days ago1677771215IN
0xbD5Bf39a...0082eff8E
0 ETH0.0014577231.41373701
Set Address Bloc...167417922023-03-02 15:33:35508 days ago1677771215IN
0xbD5Bf39a...0082eff8E
0 ETH0.0014577231.41373701
Set Address Bloc...167417922023-03-02 15:33:35508 days ago1677771215IN
0xbD5Bf39a...0082eff8E
0 ETH0.0014577231.41373701
Set Address Bloc...167417922023-03-02 15:33:35508 days ago1677771215IN
0xbD5Bf39a...0082eff8E
0 ETH0.0014577231.41373701
Set Address Bloc...167417922023-03-02 15:33:35508 days ago1677771215IN
0xbD5Bf39a...0082eff8E
0 ETH0.0014623631.51373701
Set Address Bloc...167417892023-03-02 15:32:59508 days ago1677771179IN
0xbD5Bf39a...0082eff8E
0 ETH0.0014658431.58886987
Set Address Bloc...166658292023-02-19 23:14:23519 days ago1676848463IN
0xbD5Bf39a...0082eff8E
0 ETH0.0005823823.8602636
Set Address Bloc...166647662023-02-19 19:39:11519 days ago1676835551IN
0xbD5Bf39a...0082eff8E
0 ETH0.0009791521.10064253
Set Address Bloc...166647662023-02-19 19:39:11519 days ago1676835551IN
0xbD5Bf39a...0082eff8E
0 ETH0.0009773821.10064253
Set Address Bloc...166647662023-02-19 19:39:11519 days ago1676835551IN
0xbD5Bf39a...0082eff8E
0 ETH0.0009791521.10064253
Set Address Bloc...166647662023-02-19 19:39:11519 days ago1676835551IN
0xbD5Bf39a...0082eff8E
0 ETH0.0009791521.10064253
Set Address Bloc...166647662023-02-19 19:39:11519 days ago1676835551IN
0xbD5Bf39a...0082eff8E
0 ETH0.0005572221.10064253
Set Address Bloc...166647652023-02-19 19:38:59519 days ago1676835539IN
0xbD5Bf39a...0082eff8E
0 ETH0.0005292321.66162971
Set Address Bloc...166647362023-02-19 19:33:11519 days ago1676835191IN
0xbD5Bf39a...0082eff8E
0 ETH0.0005547622.72867604
Set Address Bloc...166647342023-02-19 19:32:47519 days ago1676835167IN
0xbD5Bf39a...0082eff8E
0 ETH0.0006014724.55819378
Set Address Bloc...166647272023-02-19 19:31:23519 days ago1676835083IN
0xbD5Bf39a...0082eff8E
0 ETH0.0005670523.20944742
Set Address Bloc...163196242023-01-02 14:15:59567 days ago1672668959IN
0xbD5Bf39a...0082eff8E
0 ETH0.0006982415.06658747
Set Address Bloc...163196232023-01-02 14:15:47567 days ago1672668947IN
0xbD5Bf39a...0082eff8E
0 ETH0.0007123115.3503085
Set Address Bloc...163196212023-01-02 14:15:23567 days ago1672668923IN
0xbD5Bf39a...0082eff8E
0 ETH0.0007132115.36958175
Set Address Bloc...159218182022-11-08 0:46:35623 days ago1667868395IN
0xbD5Bf39a...0082eff8E
0 ETH0.0007167215.47332856
Set Address Bloc...159218142022-11-08 0:45:47623 days ago1667868347IN
0xbD5Bf39a...0082eff8E
0 ETH0.0006961115.02071444
Set Address Bloc...159218142022-11-08 0:45:47623 days ago1667868347IN
0xbD5Bf39a...0082eff8E
0 ETH0.0003666215.02071444
Set Address Bloc...159218092022-11-08 0:44:47623 days ago1667868287IN
0xbD5Bf39a...0082eff8E
0 ETH0.0003942914.92413966
Set Address Bloc...158975012022-11-04 15:19:23626 days ago1667575163IN
0xbD5Bf39a...0082eff8E
0 ETH0.0013714329.60785687
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DenylistOperatorFilter

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : DenylistOperatorFilter.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

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

import {IOperatorFilter} from "./interfaces/IOperatorFilter.sol";

contract DenylistOperatorFilter is Ownable, IOperatorFilter {
    mapping(address => bool) private blockedAddresses_;
    mapping(bytes32 => bool) private blockedCodeHashes_;



    function setAddressBlocked(address a, bool blocked) external onlyOwner {
        blockedAddresses_[a] = blocked;
    }

    function setCodeHashBlocked(bytes32 codeHash, bool blocked)
        external
        onlyOwner
    {
        if (codeHash == keccak256(""))
            revert("DenylistOperatorFilter: can't block EOAs");
        blockedCodeHashes_[codeHash] = blocked;
    }

    function mayTransfer(address operator) external view returns (bool) {
        if (blockedAddresses_[operator]) return false;
        if (blockedCodeHashes_[operator.codehash]) return false;
        return true;
    }

    function isAddressBlocked(address a) external view returns (bool) {
        return blockedAddresses_[a];
    }

    function isCodeHashBlocked(bytes32 codeHash) external view returns (bool) {
        return blockedCodeHashes_[codeHash];
    }

    /// Convenience function to compute the code hash of an arbitrary contract;
    /// the result can be passed to `setBlockedCodeHash`.
    function codeHashOf(address a) external view returns (bytes32) {
        return a.codehash;
    }
}

File 2 of 4 : Ownable.sol
// 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);
    }
}

File 3 of 4 : IOperatorFilter.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

interface IOperatorFilter {
    error IllegalOperator();
    function mayTransfer(address operator) external view returns (bool);
}

File 4 of 4 : Context.sol
// 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;
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"IllegalOperator","type":"error"},{"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":"a","type":"address"}],"name":"codeHashOf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"isAddressBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"isCodeHashBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"mayTransfer","outputs":[{"internalType":"bool","name":"","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":"a","type":"address"},{"internalType":"bool","name":"blocked","type":"bool"}],"name":"setAddressBlocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"codeHash","type":"bytes32"},{"internalType":"bool","name":"blocked","type":"bool"}],"name":"setCodeHashBlocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6104fb8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063a08b637111610066578063a08b6371146100f8578063bbd652c71461011b578063bd3657fe14610144578063e7dad4f914610157578063f2fde38b1461018357600080fd5b8063192c596e14610098578063267860d3146100c0578063715018a6146100d55780638da5cb5b146100dd575b600080fd5b6100ab6100a6366004610424565b610196565b60405190151581526020015b60405180910390f35b6100d36100ce366004610456565b6101f1565b005b6100d361029e565b6000546040516001600160a01b0390911681526020016100b7565b6100ab610106366004610482565b60009081526002602052604090205460ff1690565b610136610129366004610424565b6001600160a01b03163f90565b6040519081526020016100b7565b6100d361015236600461049b565b6102b2565b6100ab610165366004610424565b6001600160a01b031660009081526001602052604090205460ff1690565b6100d3610191366004610424565b6102e5565b6001600160a01b03811660009081526001602052604081205460ff16156101bf57506000919050565b6001600160a01b0382163f60009081526002602052604090205460ff16156101e957506000919050565b506001919050565b6101f961035e565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470820361027e5760405162461bcd60e51b815260206004820152602860248201527f44656e796c6973744f70657261746f7246696c7465723a2063616e277420626c6044820152676f636b20454f417360c01b60648201526084015b60405180910390fd5b600091825260026020526040909120805460ff1916911515919091179055565b6102a661035e565b6102b060006103b8565b565b6102ba61035e565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6102ed61035e565b6001600160a01b0381166103525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610275565b61035b816103b8565b50565b6000546001600160a01b031633146102b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610275565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461041f57600080fd5b919050565b60006020828403121561043657600080fd5b61043f82610408565b9392505050565b8035801515811461041f57600080fd5b6000806040838503121561046957600080fd5b8235915061047960208401610446565b90509250929050565b60006020828403121561049457600080fd5b5035919050565b600080604083850312156104ae57600080fd5b6104b783610408565b91506104796020840161044656fea2646970667358221220b7f9d7d59b905cca400bc56c9f12c79b69ef34b08555a635486485c9aac32e1864736f6c634300080f0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063a08b637111610066578063a08b6371146100f8578063bbd652c71461011b578063bd3657fe14610144578063e7dad4f914610157578063f2fde38b1461018357600080fd5b8063192c596e14610098578063267860d3146100c0578063715018a6146100d55780638da5cb5b146100dd575b600080fd5b6100ab6100a6366004610424565b610196565b60405190151581526020015b60405180910390f35b6100d36100ce366004610456565b6101f1565b005b6100d361029e565b6000546040516001600160a01b0390911681526020016100b7565b6100ab610106366004610482565b60009081526002602052604090205460ff1690565b610136610129366004610424565b6001600160a01b03163f90565b6040519081526020016100b7565b6100d361015236600461049b565b6102b2565b6100ab610165366004610424565b6001600160a01b031660009081526001602052604090205460ff1690565b6100d3610191366004610424565b6102e5565b6001600160a01b03811660009081526001602052604081205460ff16156101bf57506000919050565b6001600160a01b0382163f60009081526002602052604090205460ff16156101e957506000919050565b506001919050565b6101f961035e565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470820361027e5760405162461bcd60e51b815260206004820152602860248201527f44656e796c6973744f70657261746f7246696c7465723a2063616e277420626c6044820152676f636b20454f417360c01b60648201526084015b60405180910390fd5b600091825260026020526040909120805460ff1916911515919091179055565b6102a661035e565b6102b060006103b8565b565b6102ba61035e565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6102ed61035e565b6001600160a01b0381166103525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610275565b61035b816103b8565b50565b6000546001600160a01b031633146102b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610275565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461041f57600080fd5b919050565b60006020828403121561043657600080fd5b61043f82610408565b9392505050565b8035801515811461041f57600080fd5b6000806040838503121561046957600080fd5b8235915061047960208401610446565b90509250929050565b60006020828403121561049457600080fd5b5035919050565b600080604083850312156104ae57600080fd5b6104b783610408565b91506104796020840161044656fea2646970667358221220b7f9d7d59b905cca400bc56c9f12c79b69ef34b08555a635486485c9aac32e1864736f6c634300080f0033

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