Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 27 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Address Bloc... | 18093641 | 318 days ago | IN | 0 ETH | 0.00121758 | ||||
Set Address Bloc... | 16741792 | 508 days ago | IN | 0 ETH | 0.00145772 | ||||
Set Address Bloc... | 16741792 | 508 days ago | IN | 0 ETH | 0.00145772 | ||||
Set Address Bloc... | 16741792 | 508 days ago | IN | 0 ETH | 0.00145772 | ||||
Set Address Bloc... | 16741792 | 508 days ago | IN | 0 ETH | 0.00145772 | ||||
Set Address Bloc... | 16741792 | 508 days ago | IN | 0 ETH | 0.00146236 | ||||
Set Address Bloc... | 16741789 | 508 days ago | IN | 0 ETH | 0.00146584 | ||||
Set Address Bloc... | 16665829 | 519 days ago | IN | 0 ETH | 0.00058238 | ||||
Set Address Bloc... | 16664766 | 519 days ago | IN | 0 ETH | 0.00097915 | ||||
Set Address Bloc... | 16664766 | 519 days ago | IN | 0 ETH | 0.00097738 | ||||
Set Address Bloc... | 16664766 | 519 days ago | IN | 0 ETH | 0.00097915 | ||||
Set Address Bloc... | 16664766 | 519 days ago | IN | 0 ETH | 0.00097915 | ||||
Set Address Bloc... | 16664766 | 519 days ago | IN | 0 ETH | 0.00055722 | ||||
Set Address Bloc... | 16664765 | 519 days ago | IN | 0 ETH | 0.00052923 | ||||
Set Address Bloc... | 16664736 | 519 days ago | IN | 0 ETH | 0.00055476 | ||||
Set Address Bloc... | 16664734 | 519 days ago | IN | 0 ETH | 0.00060147 | ||||
Set Address Bloc... | 16664727 | 519 days ago | IN | 0 ETH | 0.00056705 | ||||
Set Address Bloc... | 16319624 | 567 days ago | IN | 0 ETH | 0.00069824 | ||||
Set Address Bloc... | 16319623 | 567 days ago | IN | 0 ETH | 0.00071231 | ||||
Set Address Bloc... | 16319621 | 567 days ago | IN | 0 ETH | 0.00071321 | ||||
Set Address Bloc... | 15921818 | 623 days ago | IN | 0 ETH | 0.00071672 | ||||
Set Address Bloc... | 15921814 | 623 days ago | IN | 0 ETH | 0.00069611 | ||||
Set Address Bloc... | 15921814 | 623 days ago | IN | 0 ETH | 0.00036662 | ||||
Set Address Bloc... | 15921809 | 623 days ago | IN | 0 ETH | 0.00039429 | ||||
Set Address Bloc... | 15897501 | 626 days ago | IN | 0 ETH | 0.00137143 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DenylistOperatorFilter
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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; } }
// 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 pragma solidity 0.8.15; interface IOperatorFilter { error IllegalOperator(); function mayTransfer(address operator) external view returns (bool); }
// 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; } }
{ "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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6104fb8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063a08b637111610066578063a08b6371146100f8578063bbd652c71461011b578063bd3657fe14610144578063e7dad4f914610157578063f2fde38b1461018357600080fd5b8063192c596e14610098578063267860d3146100c0578063715018a6146100d55780638da5cb5b146100dd575b600080fd5b6100ab6100a6366004610424565b610196565b60405190151581526020015b60405180910390f35b6100d36100ce366004610456565b6101f1565b005b6100d361029e565b6000546040516001600160a01b0390911681526020016100b7565b6100ab610106366004610482565b60009081526002602052604090205460ff1690565b610136610129366004610424565b6001600160a01b03163f90565b6040519081526020016100b7565b6100d361015236600461049b565b6102b2565b6100ab610165366004610424565b6001600160a01b031660009081526001602052604090205460ff1690565b6100d3610191366004610424565b6102e5565b6001600160a01b03811660009081526001602052604081205460ff16156101bf57506000919050565b6001600160a01b0382163f60009081526002602052604090205460ff16156101e957506000919050565b506001919050565b6101f961035e565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470820361027e5760405162461bcd60e51b815260206004820152602860248201527f44656e796c6973744f70657261746f7246696c7465723a2063616e277420626c6044820152676f636b20454f417360c01b60648201526084015b60405180910390fd5b600091825260026020526040909120805460ff1916911515919091179055565b6102a661035e565b6102b060006103b8565b565b6102ba61035e565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6102ed61035e565b6001600160a01b0381166103525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610275565b61035b816103b8565b50565b6000546001600160a01b031633146102b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610275565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461041f57600080fd5b919050565b60006020828403121561043657600080fd5b61043f82610408565b9392505050565b8035801515811461041f57600080fd5b6000806040838503121561046957600080fd5b8235915061047960208401610446565b90509250929050565b60006020828403121561049457600080fd5b5035919050565b600080604083850312156104ae57600080fd5b6104b783610408565b91506104796020840161044656fea2646970667358221220b7f9d7d59b905cca400bc56c9f12c79b69ef34b08555a635486485c9aac32e1864736f6c634300080f0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063a08b637111610066578063a08b6371146100f8578063bbd652c71461011b578063bd3657fe14610144578063e7dad4f914610157578063f2fde38b1461018357600080fd5b8063192c596e14610098578063267860d3146100c0578063715018a6146100d55780638da5cb5b146100dd575b600080fd5b6100ab6100a6366004610424565b610196565b60405190151581526020015b60405180910390f35b6100d36100ce366004610456565b6101f1565b005b6100d361029e565b6000546040516001600160a01b0390911681526020016100b7565b6100ab610106366004610482565b60009081526002602052604090205460ff1690565b610136610129366004610424565b6001600160a01b03163f90565b6040519081526020016100b7565b6100d361015236600461049b565b6102b2565b6100ab610165366004610424565b6001600160a01b031660009081526001602052604090205460ff1690565b6100d3610191366004610424565b6102e5565b6001600160a01b03811660009081526001602052604081205460ff16156101bf57506000919050565b6001600160a01b0382163f60009081526002602052604090205460ff16156101e957506000919050565b506001919050565b6101f961035e565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470820361027e5760405162461bcd60e51b815260206004820152602860248201527f44656e796c6973744f70657261746f7246696c7465723a2063616e277420626c6044820152676f636b20454f417360c01b60648201526084015b60405180910390fd5b600091825260026020526040909120805460ff1916911515919091179055565b6102a661035e565b6102b060006103b8565b565b6102ba61035e565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6102ed61035e565b6001600160a01b0381166103525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610275565b61035b816103b8565b50565b6000546001600160a01b031633146102b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610275565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461041f57600080fd5b919050565b60006020828403121561043657600080fd5b61043f82610408565b9392505050565b8035801515811461041f57600080fd5b6000806040838503121561046957600080fd5b8235915061047960208401610446565b90509250929050565b60006020828403121561049457600080fd5b5035919050565b600080604083850312156104ae57600080fd5b6104b783610408565b91506104796020840161044656fea2646970667358221220b7f9d7d59b905cca400bc56c9f12c79b69ef34b08555a635486485c9aac32e1864736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.