ETH Price: $2,334.77 (-4.57%)

Contract

0x96808a6a54249fe75e00D00F0748b674BD1ace38
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040190320572024-01-18 6:47:11259 days ago1705560431IN
 Create: Registry
0 ETH0.0317882133.24629494

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Registry

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 11 : Registry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {Allowlist} from "./Allowlist.sol";
import {Blocklist} from "./Blocklist.sol";
import {IRegistry} from "./IRegistry.sol";

/**
 * A registry of allowlisted and blocklisted addresses and code hashes. This is intended to
 * be deployed as a shared oracle, and it would be wise to set the `adminAddress` to an entity
 * that's responsible (e.g. a smart contract that lets creators vote on which addresses/code
 * hashes to add/remove, and then calls the related functions on this contract).
 *
 * @author this contract is based of Yuga Labs' regisry contract (https://etherscan.io/address/0x4fC5Da4607934cC80A0C6257B1F36909C58dD622#code)
 */
contract Registry is
AccessControl,
Allowlist,
Blocklist,
IRegistry
{
    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());

        super._setIsAllowlistDisabled(true);
        super._setIsBlocklistDisabled(false);
    }

    /**
    * @notice Checks against the allowlist and blocklist (depending if either is enabled
    * or disabled) to see if the operator is allowed.
    * @dev This function checks the blocklist before checking the allowlist, causing the
    * blocklist to take precedent over the allowlist. Be aware that if an operator is on
    * the blocklist and allowlist, it will still be blocked.
    * @param operator Address of operator
    * @return Bool whether the operator is allowed on based off the registry
    */
    function isAllowedOperator(
        address operator
    )
    external
    view
    virtual
    returns (bool)
    {
        if (isBlocklistDisabled == false) {
            bool blocked = _isBlocked(operator);

            if (blocked) {
                return false;
            }
        }

        if (isAllowlistDisabled == false) {
            bool allowed = _isAllowed(operator);

            return allowed;
        }

        return true;
    }

    /**
    * @notice Global killswitch for the allowlist
    * @param disabled Enables or disables the allowlist
    */
    function setIsAllowlistDisabled(
        bool disabled
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._setIsAllowlistDisabled(disabled);
    }

    /**
    * @notice Global killswitch for the blocklist
    * @param disabled Enables or disables the blocklist
    */
    function setIsBlocklistDisabled(
        bool disabled
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._setIsBlocklistDisabled(disabled);
    }

    /**
    * @notice Checks if the operator is on the blocklist
    * @param operator Address of operator
    * @return Bool whether operator is blocked
    */
    function isBlocked(address operator)
    external
    view
    override(IRegistry, Blocklist)
    returns (bool)
    {
        return _isBlocked(operator);
    }

    /**
    * @notice Checks if the operator is on the allowlist
    * @param operator Address of operator
    * @return Bool whether operator is allowed
    */
    function isAllowed(address operator)
    external
    view
    override(IRegistry, Allowlist)
    returns (bool)
    {
        return _isAllowed(operator);
    }

    /**
    * @notice Adds a contract address to the allowlist
    * @param contractAddress Address of allowed operator
    */
    function addAllowedContractAddress(
        address contractAddress
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._addAllowedContractAddress(contractAddress);
    }

    /**
    * @notice Removes a contract address from the allowlist
    * @param contractAddress Address of allowed operator
    */
    function removeAllowedContractAddress(
        address contractAddress
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._removeAllowedContractAddress(contractAddress);
    }

    /**
    * @notice Adds a codehash to the allowlist
    * @param codeHash Code hash of allowed contract
    */
    function addAllowedCodeHash(
        bytes32 codeHash
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._addAllowedCodeHash(codeHash);
    }

    /**
    * @notice Removes a codehash from the allowlist
    * @param codeHash Code hash of allowed contract
    */
    function removeAllowedCodeHash(
        bytes32 codeHash
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._removeAllowedCodeHash(codeHash);
    }

    /**
    * @notice Adds a contract address to the blocklist
    * @param contractAddress Address of blocked operator
    */
    function addBlockedContractAddress(
        address contractAddress
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._addBlockedContractAddress(contractAddress);
    }

    /**
    * @notice Removes a contract address from the blocklist
    * @param contractAddress Address of blocked operator
    */
    function removeBlockedContractAddress(
        address contractAddress
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._removeBlockedContractAddress(contractAddress);
    }

    /**
    * @notice Adds a codehash to the blocklist
    * @param codeHash Code hash of blocked contract
    */
    function addBlockedCodeHash(
        bytes32 codeHash
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._addBlockedCodeHash(codeHash);
    }

    /**
    * @notice Removes a codehash from the blocklist
    * @param codeHash Code hash of blocked contract
    */
    function removeBlockedCodeHash(
        bytes32 codeHash
    )
    external
    virtual
    onlyRole(DEFAULT_ADMIN_ROLE)
    {
        super._removeBlockedCodeHash(codeHash);
    }

    /**
    * @notice Loads a predefined blocklist
    */
    function loadPredefinedBlocklist() external onlyRole(DEFAULT_ADMIN_ROLE) {

        // blocklist from 2023-12-27
        super._addBlockedContractAddress(0xf42aa99F011A1fA7CDA90E5E98b277E306BcA83e);
        super._addBlockedContractAddress(0xFED24eC7E22f573c2e08AEF55aA6797Ca2b3A051);
        super._addBlockedContractAddress(0xD42638863462d2F21bb7D4275d7637eE5d5541eB);
        super._addBlockedContractAddress(0x08CE97807A81896E85841d74FB7E7B065ab3ef05);
        super._addBlockedContractAddress(0x92de3a1511EF22AbCf3526c302159882a4755B22);
        super._addBlockedContractAddress(0xCd80C916B1194beB48aBF007D0b79a7238436D56);
        super._addBlockedContractAddress(0xb16c1342E617A5B6E4b631EB114483FDB289c0A4);
        super._addBlockedContractAddress(0x0fc584529a2AEfA997697FAfAcbA5831faC0c22d);
        super._addBlockedContractAddress(0x0000000000E655fAe4d56241588680F86E3b2377);
        super._addBlockedContractAddress(0x000000000060C4Ca14CfC4325359062ace33Fe3D);
        super._addBlockedContractAddress(0x00000000005228B791a99a61f36A130d50600106);
        super._addBlockedContractAddress(0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC);
        super._addBlockedContractAddress(0x000000000000Ad05Ccc4F10045630fb830B95127);
        super._addBlockedContractAddress(0x0000000000A39bb272e79075ade125fd351887Ac);
        super._addBlockedContractAddress(0x29469395eAf6f95920E59F858042f0e28D98a20B);
        super._addBlockedContractAddress(0x39da41747a83aeE658334415666f3EF92DD0D541);
        super._addBlockedContractAddress(0xb2ecfE4E4D61f8790bbb9DE2D1259B9e2410CEA5);
        super._addBlockedContractAddress(0xb2ecfE4E4D61f8790bbb9DE2D1259B9e2410CEA5);
        super._addBlockedContractAddress(0x2f18F339620a63e43f0839Eeb18D7de1e1Be4DfB);
        super._addBlockedContractAddress(0x1E0049783F008A0085193E00003D00cd54003c71);

    }

}

File 2 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}

File 3 of 11 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)

pragma solidity ^0.8.20;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}

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

File 5 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 6 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 7 of 11 : Allowlist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IAllowlist} from "./IAllowlist.sol";

/**
 * A contract that keeps track of a list of allowed addresses and code hashes. This is
 * intended to be inherited by the Registry contract.
 */
contract Allowlist is IAllowlist {
    mapping(address => bool) public allowedContractAddresses;
    mapping(bytes32 => bool) public allowedCodeHashes;

    bool public isAllowlistDisabled;

    event AllowlistDisabled(bool indexed disabled);
    event AllowedContractAddressAdded(address indexed contractAddress);
    event AllowedContractAddressRemoved(address indexed contractAddress);
    event AllowedCodeHashAdded(bytes32 indexed codeHash);
    event AllowedCodeHashRemoved(bytes32 indexed codeHash);

    /**
     * @notice A global killswitch to either enable or disable the allowlist. By default
   * it is not disabled.
   * @param disabled Status of the allowlist
   */
    function _setIsAllowlistDisabled(
        bool disabled
    )
    internal
    virtual
    {
        isAllowlistDisabled = disabled;
        emit AllowlistDisabled(disabled);
    }

    /**
     * @notice Checks if operator is on the allowlist. If the operator is a contract
   * it also checks whether or not the codehash is on the allowlist.
   * Returns true if operator is an externally owned account.
   * @param operator Address of operator
   * @return Bool whether operator is allowed
   */
    function _isAllowed(
        address operator
    )
    internal
    virtual
    view
    returns (bool)
    {
        if (_isEOA(operator)) {
            return true;
        } else if (_isContract(operator)) {
            if (_isAllowedContractAddress(operator)) {
                return true;
            } else {
                return _isAllowedCodeHash(operator.codehash);
            }
        }

        return false;
    }

    modifier onlyAllowlistAllowed(address operator) {
        if (_isAllowed(operator)) {
            _;
        } else {
            revert IAllowlist.NotAllowlisted();
        }
    }

    /**
    * @notice Checks if operator is an externally owned account and not a contract
  * @param operator Address of operator
  * @return Bool whether operator is externally owned account
  */
    function _isEOA(address operator)
    internal
    view
    returns (bool)
    {
        return tx.origin == operator;
    }

    /**
     * @dev Returns true if the caller is a contract. This can only positively
   * identify a contract, i.e. if it returns true, then the caller is definitely
   * a contract. If it returns false, you should not draw any conclusions,
   * since e.g. code is length 0 if the caller is a contract's caller (in which
   * case this method returns false, despite the caller being a contract).
   * @param operator Address of operator
   * @return Bool whether operator is a contract
   */
    function _isContract(address operator)
    internal
    view
    returns (bool)
    {
        return (operator.code.length > 0);
    }

    /**
     * @notice Calls the internal function _isAllowed that checks if operator is on the allowlist.
   * @param operator - Address of operator
   * @return Bool whether operator is allowed
   */
    function isAllowed(
        address operator
    )
    external
    view
    virtual
    returns (bool)
    {
        return _isAllowed(operator);
    }

    /**
     * @notice Add a contract to the allowed registry
   * @param contractAddress - Contract address
   */
    function _addAllowedContractAddress(
        address contractAddress
    )
    internal
    virtual
    {
        allowedContractAddresses[contractAddress] = true;

        emit AllowedContractAddressAdded(
            contractAddress
        );
    }

    /**
     * @notice If the allowlist functionality has been disabled via the global killswitch,
   * always return true to let all requests through.
   * @param contractAddress - Contract address
   * @return Bool whether contract address is allowed
   */
    function _isAllowedContractAddress(
        address contractAddress
    )
    internal
    view
    virtual
    returns (bool)
    {
        if (isAllowlistDisabled) {
            return true;
        }

        return allowedContractAddresses[contractAddress];
    }

    /**
     * @notice External function that checks if contract address is on the allowlist
   * @param contractAddress - Contract address
   * @return Bool whether contract address is allowed
   */
    function isAllowedContractAddress(
        address contractAddress
    )
    external
    view
    virtual
    returns (bool)
    {
        return _isAllowedContractAddress(contractAddress);
    }

    /**
     * @notice Removes a contract from the allowlist
   * @param contractAddress - Contract address
   */
    function _removeAllowedContractAddress(
        address contractAddress
    )
    internal
    virtual
    {
        delete allowedContractAddresses[contractAddress];

        emit AllowedContractAddressRemoved(
            contractAddress
        );
    }

    /**
     * @notice Adds a codehash to the allowlist
   * @param codeHash - Contract address
   */
    function _addAllowedCodeHash(
        bytes32 codeHash
    )
    internal
    virtual
    {
        allowedCodeHashes[codeHash] = true;

        emit AllowedCodeHashAdded(
            codeHash
        );
    }

    /**
     * @notice If the allowlist functionality has been disabled via the global killswitch,
   * always return true to let all requests through.
   * @param codeHash - Code hash
   * @return Bool whether code hash is allowed
   */
    function _isAllowedCodeHash(
        bytes32 codeHash
    )
    internal
    view
    virtual
    returns (bool)
    {
        if (isAllowlistDisabled) {
            return true;
        }

        return allowedCodeHashes[codeHash];
    }

    /**
     * @notice External function that checks if the codehash is on the allowlist
   * @param contractAddress - Contract address
   * @return Bool whether code hash is allowed
   */
    function isAllowedCodeHash(
        address contractAddress
    )
    external
    view
    virtual
    returns (bool)
    {
        return _isAllowedCodeHash(contractAddress.codehash);
    }

    /**
     * @notice Removes a codehash from the allowlist
   * @param codeHash - Code hash
   */
    function _removeAllowedCodeHash(
        bytes32 codeHash
    )
    internal
    virtual
    {
        delete allowedCodeHashes[codeHash];

        emit AllowedCodeHashRemoved(
            codeHash
        );
    }
}

File 8 of 11 : Blocklist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IBlocklist} from "./IBlocklist.sol";

/**
 * A contract that keeps track of a list of blocked addresses and code hashes. This is
 * intended to be inherited by the Registry contract.
 */
contract Blocklist is
IBlocklist
{
    mapping(address => bool) public blockedContractAddresses;
    mapping(bytes32 => bool) public blockedCodeHashes;

    bool public isBlocklistDisabled;

    event BlocklistDisabled(bool indexed disabled);
    event BlockedContractAddressAdded(address indexed contractAddress);
    event BlockedContractAddressRemoved(address indexed contractAddress);
    event BlockedCodeHashAdded(bytes32 indexed codeHash);
    event BlockedCodeHashRemoved(bytes32 indexed codeHash);

    /**
     * @notice A global killswitch to either enable or disable the blocklist. By default
   * it is not disabled.
   * @param disabled Status of the blocklist
   */
    function _setIsBlocklistDisabled(
        bool disabled
    )
    internal
    virtual
    {
        isBlocklistDisabled = disabled;
        emit BlocklistDisabled(disabled);
    }

    /**
     * @notice External function that Checks if operator is on the blocklist.
   * @param operator Address of operator
   * @return Bool whether operator is blocked
   */
    function isBlocked(
        address operator
    )
    external
    virtual
    view
    returns (bool)
    {
        return _isBlocked(operator);
    }

    /**
     * @notice Checks if operator is on the blocklist. First checks to see if blocklist
   * is enabled, then checks against the address and code hash.
   * @param operator Address of operator
   * @return Bool whether operator is blocked
   */
    function _isBlocked(
        address operator
    )
    internal
    view
    returns (bool)
    {
        if (_isBlockedContractAddress(operator)) {
            return true;
        }

        if (operator.code.length > 0) {
            if (_isBlockedCodeHash(operator.codehash)) {
                return true;
            }
        }

        return false;
    }

    /**
     * @notice External function that checks if operator is on the blocklist
   * @param operator - Contract address
   * @return Bool whether operator is blocked
   */
    function isBlockedContractAddress(
        address operator
    )
    external
    view
    returns (bool)
    {
        return _isBlockedContractAddress(operator);
    }

    /**
     * @notice Checks if operator is on the blocklist
   * @param operator - Contract address
   * @return Bool whether operator is blocked
   */
    function _isBlockedContractAddress(
        address operator
    )
    internal
    view
    returns (bool)
    {
        return blockedContractAddresses[operator];
    }

    /**
     * @notice External function that checks if codehash is on the blocklist
   * @param contractAddress - Contract address
   * @return Bool whether code hash is blocked
   */
    function isBlockedCodeHash(
        address contractAddress
    )
    external
    view
    returns (bool)
    {
        return _isBlockedCodeHash(contractAddress.codehash);
    }

    /**
     * @notice Checks if codehash is on the blocklist
   * @param codeHash - Codehash
   * @return Bool whether code hash is blocked
   */
    function _isBlockedCodeHash(
        bytes32 codeHash
    )
    internal
    view
    returns (bool)
    {
        return blockedCodeHashes[codeHash];
    }

    /**
     * @notice Add a contract to a registry
   * @param contractAddress - Contract address
   */
    function _addBlockedContractAddress(
        address contractAddress
    )
    internal
    virtual
    {
        blockedContractAddresses[contractAddress] = true;

        emit BlockedContractAddressAdded(contractAddress);
    }

    /**
     * @notice Remove a contract from a registry
   * @param contractAddress - Contract address
   */
    function _removeBlockedContractAddress(
        address contractAddress
    )
    internal
    virtual
    {
        delete blockedContractAddresses[contractAddress];

        emit BlockedContractAddressRemoved(contractAddress);
    }

    /**
     * @notice Add a codehash to a registry
   * @param codeHash - Codehash
   */
    function _addBlockedCodeHash(
        bytes32 codeHash
    )
    internal
    virtual
    {
        blockedCodeHashes[codeHash] = true;

        emit BlockedCodeHashAdded(codeHash);
    }

    /**
     * @notice Remove a codehash from a registry
   * @param codeHash - Codehash
   */
    function _removeBlockedCodeHash(
        bytes32 codeHash
    )
    internal
    virtual
    {
        delete blockedCodeHashes[codeHash];

        emit BlockedCodeHashRemoved(codeHash);
    }
}

File 9 of 11 : IAllowlist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/**
 * @dev Interface for the allowlist contract
  */
interface IAllowlist {
    /**
     * @dev Emitted when address trying to transfer is not on the allowlist
  */
    error NotAllowlisted();

    /**
     * @dev Checks whether `operator` is allowed. If operator is a contract
  * it will also check if the codehash is allowed.
  * @param operator - Address of operator
  * @return Bool whether code hash is allowed
  */
    function isAllowed(address operator) external view returns (bool);

    /**
     * @dev Checks whether `operator` is on the allowlist
  * @param operator - Address of operator
  * @return Bool whether operator is allowed
  */
    function isAllowedContractAddress(address operator) external view returns (bool);

    /**
     * @dev Checks whether `contractAddress` codehash is on the allowlist
  * @param contractAddress - Contract address
  * @return Bool whether code hash is allowed
  */
    function isAllowedCodeHash(address contractAddress) external view returns (bool);
}

File 10 of 11 : IBlocklist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/**
 * @dev Interface for the blocklist contract
  */
interface IBlocklist {
    /**
     * @dev Checks whether `operator` is blocked. Checks against both the operator address
  * along with the operator codehash
  * @param operator - Address of operator
  * @return Bool whether operator is blocked
  */
    function isBlocked(address operator) external view returns (bool);

    /**
     * @dev Checks whether `operator` is blocked.
  * @param operator - Address of operator
  * @return Bool whether operator is blocked
  */
    function isBlockedContractAddress(address operator) external view returns (bool);

    /**
     * @dev Checks whether `contractAddress` codehash is blocked.
  * @param contractAddress - Contract address
  * @return Bool whether code hash is allowed
  */
    function isBlockedCodeHash(address contractAddress) external view returns (bool);
}

File 11 of 11 : IRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/**
 * @dev Required interface of an Registry compliant contract.
 */
interface IRegistry {
    /**
     * @dev Emitted when address trying to transfer is not allowed on the registry
  */
    error NotAllowed();

    /**
     * @dev Checks whether `operator` is valid on the registry; let the registry
  * decide across both allow and blocklists.
  * @param operator - Address of operator
  * @return Bool whether operator is valid against registry
  */
    function isAllowedOperator(address operator) external view returns (bool);

    /**
     * @dev Checks whether `operator` is allowed on the registry
  * @param operator - Address of operator
  * @return Bool whether operator is allowed
  */
    function isAllowed(address operator) external view returns (bool);

    /**
     * @dev Checks whether `operator` is blocked on the registry
  * @param operator - Address of operator
  * @return Bool whether operator is blocked
  */
    function isBlocked(address operator) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"NotAllowlisted","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"AllowedCodeHashAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"AllowedCodeHashRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"}],"name":"AllowedContractAddressAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"}],"name":"AllowedContractAddressRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"disabled","type":"bool"}],"name":"AllowlistDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"BlockedCodeHashAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"BlockedCodeHashRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"}],"name":"BlockedContractAddressAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contractAddress","type":"address"}],"name":"BlockedContractAddressRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"disabled","type":"bool"}],"name":"BlocklistDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"addAllowedCodeHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"addAllowedContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"addBlockedCodeHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"addBlockedContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"allowedCodeHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedContractAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"blockedCodeHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blockedContractAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"isAllowedCodeHash","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"isAllowedContractAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isAllowedOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowlistDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"isBlockedCodeHash","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isBlockedContractAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBlocklistDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"loadPredefinedBlocklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"removeAllowedCodeHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"removeAllowedContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"codeHash","type":"bytes32"}],"name":"removeBlockedCodeHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"removeBlockedContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"disabled","type":"bool"}],"name":"setIsAllowlistDisabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"disabled","type":"bool"}],"name":"setIsBlocklistDisabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061001c600033610036565b5061002760016100e2565b610031600061011f565b61015c565b6000828152602081815260408083206001600160a01b038516845290915281205460ff166100d8576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556100903390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016100dc565b5060005b92915050565b6003805460ff19168215159081179091556040517f43433567237bbb8eb8d0158caa4c9b69b97e8d451adac8a4dd378b11ed327a5790600090a250565b6006805460ff19168215159081179091556040517f12df2e4227585a44fe90a55655585b0ea85a1fe50ef23b533178618358a5563e90600090a250565b610f4e8061016b6000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063897b0b2e1161010f578063c7fdb8c5116100a2578063ed78d50f11610071578063ed78d50f1461042e578063efaa372414610441578063f5f9c65f14610454578063fbac39511461047757600080fd5b8063c7fdb8c5146103ed578063d0240903146103f5578063d547741f14610408578063e18bc08a1461041b57600080fd5b8063a1806b67116100de578063a1806b67146103ac578063a217fddf146103bf578063babcc539146103c7578063c0ff4a69146103da57600080fd5b8063897b0b2e1461035057806389a7eda31461036357806391d14854146103865780639a2496e51461039957600080fd5b8063426462f911610187578063687a055711610156578063687a0557146102e4578063687e44fd1461030757806370f3b1c81461032a578063843ca23f1461033d57600080fd5b8063426462f91461029e57806349887146146102ab5780635356a70a146102be5780635eec76d0146102d157600080fd5b8063248a9ca3116101c3578063248a9ca3146102345780632f2ff15d1461026557806336568abe1461027857806336d9a3e21461028b57600080fd5b806301ffc9a7146101ea57806310921f12146102125780632206ef371461021f575b600080fd5b6101fd6101f8366004610e50565b61048a565b60405190151581526020015b60405180910390f35b6006546101fd9060ff1681565b61023261022d366004610e96565b6104c1565b005b610257610242366004610eb1565b60009081526020819052604090206001015490565b604051908152602001610209565b610232610273366004610eca565b6104d9565b610232610286366004610eca565b610504565b610232610299366004610eb1565b61053c565b6003546101fd9060ff1681565b6101fd6102b9366004610e96565b610550565b6102326102cc366004610ef6565b610571565b6101fd6102df366004610e96565b610585565b6101fd6102f2366004610e96565b60016020526000908152604090205460ff1681565b6101fd610315366004610eb1565b60056020526000908152604090205460ff1681565b610232610338366004610eb1565b6105a7565b61023261034b366004610eb1565b6105bb565b61023261035e366004610ef6565b6105cf565b6101fd610371366004610eb1565b60026020526000908152604090205460ff1681565b6101fd610394366004610eca565b6105e3565b6101fd6103a7366004610e96565b61060c565b6101fd6103ba366004610e96565b610621565b610257600081565b6101fd6103d5366004610e96565b61062c565b6102326103e8366004610e96565b610637565b61023261064b565b610232610403366004610e96565b61087c565b610232610416366004610eca565b610890565b6101fd610429366004610e96565b6108b5565b61023261043c366004610eb1565b61090d565b61023261044f366004610e96565b610921565b6101fd610462366004610e96565b60046020526000908152604090205460ff1681565b6101fd610485366004610e96565b610935565b60006001600160e01b03198216637965db0b60e01b14806104bb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006104cc81610940565b6104d58261094a565b5050565b6000828152602081905260409020600101546104f481610940565b6104fe8383610999565b50505050565b6001600160a01b038116331461052d5760405163334bd91960e11b815260040160405180910390fd5b6105378282610a2b565b505050565b600061054781610940565b6104d582610a96565b6001600160a01b03811660009081526004602052604081205460ff166104bb565b600061057c81610940565b6104d582610ad6565b6001600160a01b0381163f60009081526005602052604081205460ff166104bb565b60006105b281610940565b6104d582610b13565b60006105c681610940565b6104d582610b56565b60006105da81610940565b6104d582610b96565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006104bb826001600160a01b03163f610bd3565b60006104bb82610bff565b60006104bb82610c34565b600061064281610940565b6104d582610c8f565b600061065681610940565b61067373f42aa99f011a1fa7cda90e5e98b277e306bca83e610c8f565b61069073fed24ec7e22f573c2e08aef55aa6797ca2b3a051610c8f565b6106ad73d42638863462d2f21bb7d4275d7637ee5d5541eb610c8f565b6106ca7308ce97807a81896e85841d74fb7e7b065ab3ef05610c8f565b6106e77392de3a1511ef22abcf3526c302159882a4755b22610c8f565b61070473cd80c916b1194beb48abf007d0b79a7238436d56610c8f565b61072173b16c1342e617a5b6e4b631eb114483fdb289c0a4610c8f565b61073e730fc584529a2aefa997697fafacba5831fac0c22d610c8f565b6107566ee655fae4d56241588680f86e3b2377610c8f565b61076e6e60c4ca14cfc4325359062ace33fe3d610c8f565b6107866e5228b791a99a61f36a130d50600106610c8f565b61079c6cadc04c56bf30ac9d3c0aaf14dc610c8f565b6107b36dad05ccc4f10045630fb830b95127610c8f565b6107cb6ea39bb272e79075ade125fd351887ac610c8f565b6107e87329469395eaf6f95920e59f858042f0e28d98a20b610c8f565b6108057339da41747a83aee658334415666f3ef92dd0d541610c8f565b61082273b2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5610c8f565b61083f73b2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5610c8f565b61085c732f18f339620a63e43f0839eeb18d7de1e1be4dfb610c8f565b610879731e0049783f008a0085193e00003d00cd54003c71610c8f565b50565b600061088781610940565b6104d582610cdb565b6000828152602081905260409020600101546108ab81610940565b6104fe8383610a2b565b60065460009060ff16151581036108e45760006108d183610d24565b905080156108e25750600092915050565b505b60035460ff1615156000036109055760006108fe83610c34565b9392505050565b506001919050565b600061091881610940565b6104d582610d87565b600061092c81610940565b6104d582610dca565b60006104bb82610d24565b6108798133610e13565b6001600160a01b0381166000818152600160208190526040808320805460ff1916909217909155517f4e39b933e21853d159392774c02373f2c181dca21651e668d73ce312eeed0d689190a250565b60006109a583836105e3565b610a23576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556109db3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016104bb565b5060006104bb565b6000610a3783836105e3565b15610a23576000838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016104bb565b600081815260056020526040808220805460ff191690555182917fdad3cf677faf6bc8dad3a52dfdbe15d34e8536bab96cd645b7e337a3c5190c7991a250565b6003805460ff19168215159081179091556040517f43433567237bbb8eb8d0158caa4c9b69b97e8d451adac8a4dd378b11ed327a5790600090a250565b600081815260026020526040808220805460ff191660011790555182917f8b06bb23c5e3b589a3f84814cf6bdc4d8d8702d9abd0796bd8161b3f74cc9bda91a250565b600081815260026020526040808220805460ff191690555182917f686e629df5c948449884774ecadc1012ef67b104e1fcb8c7eb30ca85d5ac483c91a250565b6006805460ff19168215159081179091556040517f12df2e4227585a44fe90a55655585b0ea85a1fe50ef23b533178618358a5563e90600090a250565b60035460009060ff1615610be957506001919050565b5060009081526002602052604090205460ff1690565b60035460009060ff1615610c1557506001919050565b506001600160a01b031660009081526001602052604090205460ff1690565b60006001600160a01b0382163203610c4e57506001919050565b6001600160a01b0382163b15610c8757610c6782610bff565b15610c7457506001919050565b6104bb826001600160a01b03163f610bd3565b506000919050565b6001600160a01b038116600081815260046020526040808220805460ff19166001179055517f23382e7641c21ea4190ff8d45471a342678a259f0501282e5572711ea3e4b72c9190a250565b6001600160a01b038116600081815260046020526040808220805460ff19169055517fad7e64d41ca834624b79d1548c56f673c19cae45e4b70565fefd0938a63e81299190a250565b6001600160a01b03811660009081526004602052604081205460ff1615610d4d57506001919050565b6001600160a01b0382163b15610c87576001600160a01b0382163f60009081526005602052604090205460ff1615610c8757506001919050565b600081815260056020526040808220805460ff191660011790555182917fa99f4e2266779c30a7ad8c04d0cd419d826e9294c982cf0d6cefaa9d7bf0e5fe91a250565b6001600160a01b038116600081815260016020526040808220805460ff19169055517f90cf8018f9a90763638ab70f23b6f0181e810878e828fbbd7a6b8453932f97889190a250565b610e1d82826105e3565b6104d55760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440160405180910390fd5b600060208284031215610e6257600080fd5b81356001600160e01b0319811681146108fe57600080fd5b80356001600160a01b0381168114610e9157600080fd5b919050565b600060208284031215610ea857600080fd5b6108fe82610e7a565b600060208284031215610ec357600080fd5b5035919050565b60008060408385031215610edd57600080fd5b82359150610eed60208401610e7a565b90509250929050565b600060208284031215610f0857600080fd5b813580151581146108fe57600080fdfea26469706673582212205b262cd9cce749d4a99ea53e2309717304d52992d6ef3d575c86045e86b3d9a664736f6c63430008140033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063897b0b2e1161010f578063c7fdb8c5116100a2578063ed78d50f11610071578063ed78d50f1461042e578063efaa372414610441578063f5f9c65f14610454578063fbac39511461047757600080fd5b8063c7fdb8c5146103ed578063d0240903146103f5578063d547741f14610408578063e18bc08a1461041b57600080fd5b8063a1806b67116100de578063a1806b67146103ac578063a217fddf146103bf578063babcc539146103c7578063c0ff4a69146103da57600080fd5b8063897b0b2e1461035057806389a7eda31461036357806391d14854146103865780639a2496e51461039957600080fd5b8063426462f911610187578063687a055711610156578063687a0557146102e4578063687e44fd1461030757806370f3b1c81461032a578063843ca23f1461033d57600080fd5b8063426462f91461029e57806349887146146102ab5780635356a70a146102be5780635eec76d0146102d157600080fd5b8063248a9ca3116101c3578063248a9ca3146102345780632f2ff15d1461026557806336568abe1461027857806336d9a3e21461028b57600080fd5b806301ffc9a7146101ea57806310921f12146102125780632206ef371461021f575b600080fd5b6101fd6101f8366004610e50565b61048a565b60405190151581526020015b60405180910390f35b6006546101fd9060ff1681565b61023261022d366004610e96565b6104c1565b005b610257610242366004610eb1565b60009081526020819052604090206001015490565b604051908152602001610209565b610232610273366004610eca565b6104d9565b610232610286366004610eca565b610504565b610232610299366004610eb1565b61053c565b6003546101fd9060ff1681565b6101fd6102b9366004610e96565b610550565b6102326102cc366004610ef6565b610571565b6101fd6102df366004610e96565b610585565b6101fd6102f2366004610e96565b60016020526000908152604090205460ff1681565b6101fd610315366004610eb1565b60056020526000908152604090205460ff1681565b610232610338366004610eb1565b6105a7565b61023261034b366004610eb1565b6105bb565b61023261035e366004610ef6565b6105cf565b6101fd610371366004610eb1565b60026020526000908152604090205460ff1681565b6101fd610394366004610eca565b6105e3565b6101fd6103a7366004610e96565b61060c565b6101fd6103ba366004610e96565b610621565b610257600081565b6101fd6103d5366004610e96565b61062c565b6102326103e8366004610e96565b610637565b61023261064b565b610232610403366004610e96565b61087c565b610232610416366004610eca565b610890565b6101fd610429366004610e96565b6108b5565b61023261043c366004610eb1565b61090d565b61023261044f366004610e96565b610921565b6101fd610462366004610e96565b60046020526000908152604090205460ff1681565b6101fd610485366004610e96565b610935565b60006001600160e01b03198216637965db0b60e01b14806104bb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006104cc81610940565b6104d58261094a565b5050565b6000828152602081905260409020600101546104f481610940565b6104fe8383610999565b50505050565b6001600160a01b038116331461052d5760405163334bd91960e11b815260040160405180910390fd5b6105378282610a2b565b505050565b600061054781610940565b6104d582610a96565b6001600160a01b03811660009081526004602052604081205460ff166104bb565b600061057c81610940565b6104d582610ad6565b6001600160a01b0381163f60009081526005602052604081205460ff166104bb565b60006105b281610940565b6104d582610b13565b60006105c681610940565b6104d582610b56565b60006105da81610940565b6104d582610b96565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006104bb826001600160a01b03163f610bd3565b60006104bb82610bff565b60006104bb82610c34565b600061064281610940565b6104d582610c8f565b600061065681610940565b61067373f42aa99f011a1fa7cda90e5e98b277e306bca83e610c8f565b61069073fed24ec7e22f573c2e08aef55aa6797ca2b3a051610c8f565b6106ad73d42638863462d2f21bb7d4275d7637ee5d5541eb610c8f565b6106ca7308ce97807a81896e85841d74fb7e7b065ab3ef05610c8f565b6106e77392de3a1511ef22abcf3526c302159882a4755b22610c8f565b61070473cd80c916b1194beb48abf007d0b79a7238436d56610c8f565b61072173b16c1342e617a5b6e4b631eb114483fdb289c0a4610c8f565b61073e730fc584529a2aefa997697fafacba5831fac0c22d610c8f565b6107566ee655fae4d56241588680f86e3b2377610c8f565b61076e6e60c4ca14cfc4325359062ace33fe3d610c8f565b6107866e5228b791a99a61f36a130d50600106610c8f565b61079c6cadc04c56bf30ac9d3c0aaf14dc610c8f565b6107b36dad05ccc4f10045630fb830b95127610c8f565b6107cb6ea39bb272e79075ade125fd351887ac610c8f565b6107e87329469395eaf6f95920e59f858042f0e28d98a20b610c8f565b6108057339da41747a83aee658334415666f3ef92dd0d541610c8f565b61082273b2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5610c8f565b61083f73b2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5610c8f565b61085c732f18f339620a63e43f0839eeb18d7de1e1be4dfb610c8f565b610879731e0049783f008a0085193e00003d00cd54003c71610c8f565b50565b600061088781610940565b6104d582610cdb565b6000828152602081905260409020600101546108ab81610940565b6104fe8383610a2b565b60065460009060ff16151581036108e45760006108d183610d24565b905080156108e25750600092915050565b505b60035460ff1615156000036109055760006108fe83610c34565b9392505050565b506001919050565b600061091881610940565b6104d582610d87565b600061092c81610940565b6104d582610dca565b60006104bb82610d24565b6108798133610e13565b6001600160a01b0381166000818152600160208190526040808320805460ff1916909217909155517f4e39b933e21853d159392774c02373f2c181dca21651e668d73ce312eeed0d689190a250565b60006109a583836105e3565b610a23576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556109db3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016104bb565b5060006104bb565b6000610a3783836105e3565b15610a23576000838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016104bb565b600081815260056020526040808220805460ff191690555182917fdad3cf677faf6bc8dad3a52dfdbe15d34e8536bab96cd645b7e337a3c5190c7991a250565b6003805460ff19168215159081179091556040517f43433567237bbb8eb8d0158caa4c9b69b97e8d451adac8a4dd378b11ed327a5790600090a250565b600081815260026020526040808220805460ff191660011790555182917f8b06bb23c5e3b589a3f84814cf6bdc4d8d8702d9abd0796bd8161b3f74cc9bda91a250565b600081815260026020526040808220805460ff191690555182917f686e629df5c948449884774ecadc1012ef67b104e1fcb8c7eb30ca85d5ac483c91a250565b6006805460ff19168215159081179091556040517f12df2e4227585a44fe90a55655585b0ea85a1fe50ef23b533178618358a5563e90600090a250565b60035460009060ff1615610be957506001919050565b5060009081526002602052604090205460ff1690565b60035460009060ff1615610c1557506001919050565b506001600160a01b031660009081526001602052604090205460ff1690565b60006001600160a01b0382163203610c4e57506001919050565b6001600160a01b0382163b15610c8757610c6782610bff565b15610c7457506001919050565b6104bb826001600160a01b03163f610bd3565b506000919050565b6001600160a01b038116600081815260046020526040808220805460ff19166001179055517f23382e7641c21ea4190ff8d45471a342678a259f0501282e5572711ea3e4b72c9190a250565b6001600160a01b038116600081815260046020526040808220805460ff19169055517fad7e64d41ca834624b79d1548c56f673c19cae45e4b70565fefd0938a63e81299190a250565b6001600160a01b03811660009081526004602052604081205460ff1615610d4d57506001919050565b6001600160a01b0382163b15610c87576001600160a01b0382163f60009081526005602052604090205460ff1615610c8757506001919050565b600081815260056020526040808220805460ff191660011790555182917fa99f4e2266779c30a7ad8c04d0cd419d826e9294c982cf0d6cefaa9d7bf0e5fe91a250565b6001600160a01b038116600081815260016020526040808220805460ff19169055517f90cf8018f9a90763638ab70f23b6f0181e810878e828fbbd7a6b8453932f97889190a250565b610e1d82826105e3565b6104d55760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440160405180910390fd5b600060208284031215610e6257600080fd5b81356001600160e01b0319811681146108fe57600080fd5b80356001600160a01b0381168114610e9157600080fd5b919050565b600060208284031215610ea857600080fd5b6108fe82610e7a565b600060208284031215610ec357600080fd5b5035919050565b60008060408385031215610edd57600080fd5b82359150610eed60208401610e7a565b90509250929050565b600060208284031215610f0857600080fd5b813580151581146108fe57600080fdfea26469706673582212205b262cd9cce749d4a99ea53e2309717304d52992d6ef3d575c86045e86b3d9a664736f6c63430008140033

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.